diff --git a/docs/examples/1.8.x/client-android/java/account/create-j-w-t.md b/docs/examples/1.8.x/client-android/java/account/create-jwt.md similarity index 100% rename from docs/examples/1.8.x/client-android/java/account/create-j-w-t.md rename to docs/examples/1.8.x/client-android/java/account/create-jwt.md diff --git a/docs/examples/1.8.x/client-android/java/account/create-m-f-a-authenticator.md b/docs/examples/1.8.x/client-android/java/account/create-m-f-a-authenticator.md deleted file mode 100644 index d236f46c6c..0000000000 --- a/docs/examples/1.8.x/client-android/java/account/create-m-f-a-authenticator.md +++ /dev/null @@ -1,23 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Account; -import io.appwrite.enums.AuthenticatorType; - -Client client = new Client(context) - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject(""); // Your project ID - -Account account = new Account(client); - -account.createMFAAuthenticator( - AuthenticatorType.TOTP, // type - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - Log.d("Appwrite", result.toString()); - }) -); - diff --git a/docs/examples/1.8.x/client-android/java/account/create-m-f-a-challenge.md b/docs/examples/1.8.x/client-android/java/account/create-m-f-a-challenge.md deleted file mode 100644 index 222c0bdad2..0000000000 --- a/docs/examples/1.8.x/client-android/java/account/create-m-f-a-challenge.md +++ /dev/null @@ -1,23 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Account; -import io.appwrite.enums.AuthenticationFactor; - -Client client = new Client(context) - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject(""); // Your project ID - -Account account = new Account(client); - -account.createMFAChallenge( - AuthenticationFactor.EMAIL, // factor - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - Log.d("Appwrite", result.toString()); - }) -); - diff --git a/docs/examples/1.8.x/client-android/java/account/create-m-f-a-recovery-codes.md b/docs/examples/1.8.x/client-android/java/account/create-m-f-a-recovery-codes.md deleted file mode 100644 index 792e0860f7..0000000000 --- a/docs/examples/1.8.x/client-android/java/account/create-m-f-a-recovery-codes.md +++ /dev/null @@ -1,18 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Account; - -Client client = new Client(context) - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject(""); // Your project ID - -Account account = new Account(client); - -account.createMFARecoveryCodes(new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - Log.d("Appwrite", result.toString()); -})); diff --git a/docs/examples/1.8.x/client-android/java/account/create-magic-u-r-l-token.md b/docs/examples/1.8.x/client-android/java/account/create-magic-url-token.md similarity index 100% rename from docs/examples/1.8.x/client-android/java/account/create-magic-u-r-l-token.md rename to docs/examples/1.8.x/client-android/java/account/create-magic-url-token.md diff --git a/docs/examples/1.8.x/client-android/java/account/create-mfa-authenticator.md b/docs/examples/1.8.x/client-android/java/account/create-mfa-authenticator.md index 54781f2dc8..d236f46c6c 100644 --- a/docs/examples/1.8.x/client-android/java/account/create-mfa-authenticator.md +++ b/docs/examples/1.8.x/client-android/java/account/create-mfa-authenticator.md @@ -9,7 +9,7 @@ Client client = new Client(context) Account account = new Account(client); -account.createMfaAuthenticator( +account.createMFAAuthenticator( AuthenticatorType.TOTP, // type new CoroutineCallback<>((result, error) -> { if (error != null) { diff --git a/docs/examples/1.8.x/client-android/java/account/create-mfa-challenge.md b/docs/examples/1.8.x/client-android/java/account/create-mfa-challenge.md index 87a56fe350..222c0bdad2 100644 --- a/docs/examples/1.8.x/client-android/java/account/create-mfa-challenge.md +++ b/docs/examples/1.8.x/client-android/java/account/create-mfa-challenge.md @@ -9,7 +9,7 @@ Client client = new Client(context) Account account = new Account(client); -account.createMfaChallenge( +account.createMFAChallenge( AuthenticationFactor.EMAIL, // factor new CoroutineCallback<>((result, error) -> { if (error != null) { diff --git a/docs/examples/1.8.x/client-android/java/account/create-mfa-recovery-codes.md b/docs/examples/1.8.x/client-android/java/account/create-mfa-recovery-codes.md index ab50734215..792e0860f7 100644 --- a/docs/examples/1.8.x/client-android/java/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/client-android/java/account/create-mfa-recovery-codes.md @@ -8,7 +8,7 @@ Client client = new Client(context) Account account = new Account(client); -account.createMfaRecoveryCodes(new CoroutineCallback<>((result, error) -> { +account.createMFARecoveryCodes(new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); return; diff --git a/docs/examples/1.8.x/client-android/java/account/create-o-auth2session.md b/docs/examples/1.8.x/client-android/java/account/create-o-auth-2-session.md similarity index 100% rename from docs/examples/1.8.x/client-android/java/account/create-o-auth2session.md rename to docs/examples/1.8.x/client-android/java/account/create-o-auth-2-session.md diff --git a/docs/examples/1.8.x/client-android/java/account/create-o-auth2token.md b/docs/examples/1.8.x/client-android/java/account/create-o-auth-2-token.md similarity index 100% rename from docs/examples/1.8.x/client-android/java/account/create-o-auth2token.md rename to docs/examples/1.8.x/client-android/java/account/create-o-auth-2-token.md diff --git a/docs/examples/1.8.x/client-android/java/account/delete-m-f-a-authenticator.md b/docs/examples/1.8.x/client-android/java/account/delete-m-f-a-authenticator.md deleted file mode 100644 index b5ff26cbec..0000000000 --- a/docs/examples/1.8.x/client-android/java/account/delete-m-f-a-authenticator.md +++ /dev/null @@ -1,23 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Account; -import io.appwrite.enums.AuthenticatorType; - -Client client = new Client(context) - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject(""); // Your project ID - -Account account = new Account(client); - -account.deleteMFAAuthenticator( - AuthenticatorType.TOTP, // type - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - Log.d("Appwrite", result.toString()); - }) -); - diff --git a/docs/examples/1.8.x/client-android/java/account/delete-mfa-authenticator.md b/docs/examples/1.8.x/client-android/java/account/delete-mfa-authenticator.md index 4a9693bf8c..b5ff26cbec 100644 --- a/docs/examples/1.8.x/client-android/java/account/delete-mfa-authenticator.md +++ b/docs/examples/1.8.x/client-android/java/account/delete-mfa-authenticator.md @@ -9,7 +9,7 @@ Client client = new Client(context) Account account = new Account(client); -account.deleteMfaAuthenticator( +account.deleteMFAAuthenticator( AuthenticatorType.TOTP, // type new CoroutineCallback<>((result, error) -> { if (error != null) { diff --git a/docs/examples/1.8.x/client-android/java/account/get-m-f-a-recovery-codes.md b/docs/examples/1.8.x/client-android/java/account/get-m-f-a-recovery-codes.md deleted file mode 100644 index 22bc1c1637..0000000000 --- a/docs/examples/1.8.x/client-android/java/account/get-m-f-a-recovery-codes.md +++ /dev/null @@ -1,18 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Account; - -Client client = new Client(context) - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject(""); // Your project ID - -Account account = new Account(client); - -account.getMFARecoveryCodes(new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - Log.d("Appwrite", result.toString()); -})); diff --git a/docs/examples/1.8.x/client-android/java/account/get-mfa-recovery-codes.md b/docs/examples/1.8.x/client-android/java/account/get-mfa-recovery-codes.md index 8274bb351a..22bc1c1637 100644 --- a/docs/examples/1.8.x/client-android/java/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/client-android/java/account/get-mfa-recovery-codes.md @@ -8,7 +8,7 @@ Client client = new Client(context) Account account = new Account(client); -account.getMfaRecoveryCodes(new CoroutineCallback<>((result, error) -> { +account.getMFARecoveryCodes(new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); return; diff --git a/docs/examples/1.8.x/client-android/java/account/list-m-f-a-factors.md b/docs/examples/1.8.x/client-android/java/account/list-m-f-a-factors.md deleted file mode 100644 index 06f20e1a5a..0000000000 --- a/docs/examples/1.8.x/client-android/java/account/list-m-f-a-factors.md +++ /dev/null @@ -1,18 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Account; - -Client client = new Client(context) - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject(""); // Your project ID - -Account account = new Account(client); - -account.listMFAFactors(new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - Log.d("Appwrite", result.toString()); -})); diff --git a/docs/examples/1.8.x/client-android/java/account/list-mfa-factors.md b/docs/examples/1.8.x/client-android/java/account/list-mfa-factors.md index 9ea8331620..06f20e1a5a 100644 --- a/docs/examples/1.8.x/client-android/java/account/list-mfa-factors.md +++ b/docs/examples/1.8.x/client-android/java/account/list-mfa-factors.md @@ -8,7 +8,7 @@ Client client = new Client(context) Account account = new Account(client); -account.listMfaFactors(new CoroutineCallback<>((result, error) -> { +account.listMFAFactors(new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); return; diff --git a/docs/examples/1.8.x/client-android/java/account/update-m-f-a-authenticator.md b/docs/examples/1.8.x/client-android/java/account/update-m-f-a-authenticator.md deleted file mode 100644 index 00ddd46b26..0000000000 --- a/docs/examples/1.8.x/client-android/java/account/update-m-f-a-authenticator.md +++ /dev/null @@ -1,24 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Account; -import io.appwrite.enums.AuthenticatorType; - -Client client = new Client(context) - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject(""); // Your project ID - -Account account = new Account(client); - -account.updateMFAAuthenticator( - AuthenticatorType.TOTP, // type - "", // otp - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - Log.d("Appwrite", result.toString()); - }) -); - diff --git a/docs/examples/1.8.x/client-android/java/account/update-m-f-a-challenge.md b/docs/examples/1.8.x/client-android/java/account/update-m-f-a-challenge.md deleted file mode 100644 index 10b5db49f8..0000000000 --- a/docs/examples/1.8.x/client-android/java/account/update-m-f-a-challenge.md +++ /dev/null @@ -1,23 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Account; - -Client client = new Client(context) - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject(""); // Your project ID - -Account account = new Account(client); - -account.updateMFAChallenge( - "", // challengeId - "", // otp - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - Log.d("Appwrite", result.toString()); - }) -); - diff --git a/docs/examples/1.8.x/client-android/java/account/update-m-f-a-recovery-codes.md b/docs/examples/1.8.x/client-android/java/account/update-m-f-a-recovery-codes.md deleted file mode 100644 index c0d6c69fa0..0000000000 --- a/docs/examples/1.8.x/client-android/java/account/update-m-f-a-recovery-codes.md +++ /dev/null @@ -1,18 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Account; - -Client client = new Client(context) - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject(""); // Your project ID - -Account account = new Account(client); - -account.updateMFARecoveryCodes(new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - Log.d("Appwrite", result.toString()); -})); diff --git a/docs/examples/1.8.x/client-android/java/account/update-magic-u-r-l-session.md b/docs/examples/1.8.x/client-android/java/account/update-magic-url-session.md similarity index 100% rename from docs/examples/1.8.x/client-android/java/account/update-magic-u-r-l-session.md rename to docs/examples/1.8.x/client-android/java/account/update-magic-url-session.md diff --git a/docs/examples/1.8.x/client-android/java/account/update-mfa-authenticator.md b/docs/examples/1.8.x/client-android/java/account/update-mfa-authenticator.md index b8016e75f2..00ddd46b26 100644 --- a/docs/examples/1.8.x/client-android/java/account/update-mfa-authenticator.md +++ b/docs/examples/1.8.x/client-android/java/account/update-mfa-authenticator.md @@ -9,7 +9,7 @@ Client client = new Client(context) Account account = new Account(client); -account.updateMfaAuthenticator( +account.updateMFAAuthenticator( AuthenticatorType.TOTP, // type "", // otp new CoroutineCallback<>((result, error) -> { diff --git a/docs/examples/1.8.x/client-android/java/account/update-mfa-challenge.md b/docs/examples/1.8.x/client-android/java/account/update-mfa-challenge.md index c6401504d8..10b5db49f8 100644 --- a/docs/examples/1.8.x/client-android/java/account/update-mfa-challenge.md +++ b/docs/examples/1.8.x/client-android/java/account/update-mfa-challenge.md @@ -8,7 +8,7 @@ Client client = new Client(context) Account account = new Account(client); -account.updateMfaChallenge( +account.updateMFAChallenge( "", // challengeId "", // otp new CoroutineCallback<>((result, error) -> { diff --git a/docs/examples/1.8.x/client-android/java/account/update-mfa-recovery-codes.md b/docs/examples/1.8.x/client-android/java/account/update-mfa-recovery-codes.md index 650ae24128..c0d6c69fa0 100644 --- a/docs/examples/1.8.x/client-android/java/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/client-android/java/account/update-mfa-recovery-codes.md @@ -8,7 +8,7 @@ Client client = new Client(context) Account account = new Account(client); -account.updateMfaRecoveryCodes(new CoroutineCallback<>((result, error) -> { +account.updateMFARecoveryCodes(new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); return; diff --git a/docs/examples/1.8.x/client-android/java/account/update-m-f-a.md b/docs/examples/1.8.x/client-android/java/account/update-mfa.md similarity index 100% rename from docs/examples/1.8.x/client-android/java/account/update-m-f-a.md rename to docs/examples/1.8.x/client-android/java/account/update-mfa.md diff --git a/docs/examples/1.8.x/client-android/java/avatars/get-q-r.md b/docs/examples/1.8.x/client-android/java/avatars/get-qr.md similarity index 100% rename from docs/examples/1.8.x/client-android/java/avatars/get-q-r.md rename to docs/examples/1.8.x/client-android/java/avatars/get-qr.md diff --git a/docs/examples/1.8.x/client-android/java/databases/create-documents.md b/docs/examples/1.8.x/client-android/java/databases/create-documents.md deleted file mode 100644 index d5629b803f..0000000000 --- a/docs/examples/1.8.x/client-android/java/databases/create-documents.md +++ /dev/null @@ -1,25 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Databases; - -Client client = new Client(context) - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setAdmin("") // - .setKey(""); // - -Databases databases = new Databases(client); - -databases.createDocuments( - "", // databaseId - "", // collectionId - listOf(), // documents - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - Log.d("Appwrite", result.toString()); - }) -); - diff --git a/docs/examples/1.8.x/client-android/java/grids/create-row.md b/docs/examples/1.8.x/client-android/java/grids/create-row.md deleted file mode 100644 index 93cea1f09c..0000000000 --- a/docs/examples/1.8.x/client-android/java/grids/create-row.md +++ /dev/null @@ -1,26 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client(context) - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject(""); // Your project ID - -Grids grids = new Grids(client); - -grids.createRow( - "", // databaseId - "", // tableId - "", // rowId - mapOf( "a" to "b" ), // data - listOf("read("any")"), // permissions (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - Log.d("Appwrite", result.toString()); - }) -); - diff --git a/docs/examples/1.8.x/client-android/java/grids/delete-row.md b/docs/examples/1.8.x/client-android/java/grids/delete-row.md deleted file mode 100644 index a73c03a06e..0000000000 --- a/docs/examples/1.8.x/client-android/java/grids/delete-row.md +++ /dev/null @@ -1,24 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client(context) - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject(""); // Your project ID - -Grids grids = new Grids(client); - -grids.deleteRow( - "", // databaseId - "", // tableId - "", // rowId - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - Log.d("Appwrite", result.toString()); - }) -); - diff --git a/docs/examples/1.8.x/client-android/java/grids/get-row.md b/docs/examples/1.8.x/client-android/java/grids/get-row.md deleted file mode 100644 index 4968759d6b..0000000000 --- a/docs/examples/1.8.x/client-android/java/grids/get-row.md +++ /dev/null @@ -1,25 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client(context) - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject(""); // Your project ID - -Grids grids = new Grids(client); - -grids.getRow( - "", // databaseId - "", // tableId - "", // rowId - listOf(), // queries (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - Log.d("Appwrite", result.toString()); - }) -); - diff --git a/docs/examples/1.8.x/client-android/java/grids/list-rows.md b/docs/examples/1.8.x/client-android/java/grids/list-rows.md deleted file mode 100644 index 55336dc452..0000000000 --- a/docs/examples/1.8.x/client-android/java/grids/list-rows.md +++ /dev/null @@ -1,24 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client(context) - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject(""); // Your project ID - -Grids grids = new Grids(client); - -grids.listRows( - "", // databaseId - "", // tableId - listOf(), // queries (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - Log.d("Appwrite", result.toString()); - }) -); - diff --git a/docs/examples/1.8.x/client-android/java/grids/update-row.md b/docs/examples/1.8.x/client-android/java/grids/update-row.md deleted file mode 100644 index 23dc0907eb..0000000000 --- a/docs/examples/1.8.x/client-android/java/grids/update-row.md +++ /dev/null @@ -1,26 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client(context) - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject(""); // Your project ID - -Grids grids = new Grids(client); - -grids.updateRow( - "", // databaseId - "", // tableId - "", // rowId - mapOf( "a" to "b" ), // data (optional) - listOf("read("any")"), // permissions (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - Log.d("Appwrite", result.toString()); - }) -); - diff --git a/docs/examples/1.8.x/client-android/java/grids/upsert-row.md b/docs/examples/1.8.x/client-android/java/grids/upsert-row.md deleted file mode 100644 index 3938fde103..0000000000 --- a/docs/examples/1.8.x/client-android/java/grids/upsert-row.md +++ /dev/null @@ -1,26 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client(context) - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject(""); // Your project ID - -Grids grids = new Grids(client); - -grids.upsertRow( - "", // databaseId - "", // tableId - "", // rowId - mapOf( "a" to "b" ), // data (optional) - listOf("read("any")"), // permissions (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - Log.d("Appwrite", result.toString()); - }) -); - diff --git a/docs/examples/1.8.x/client-android/java/locale/list-countries-e-u.md b/docs/examples/1.8.x/client-android/java/locale/list-countries-eu.md similarity index 100% rename from docs/examples/1.8.x/client-android/java/locale/list-countries-e-u.md rename to docs/examples/1.8.x/client-android/java/locale/list-countries-eu.md diff --git a/docs/examples/1.8.x/client-android/kotlin/account/create-j-w-t.md b/docs/examples/1.8.x/client-android/kotlin/account/create-jwt.md similarity index 100% rename from docs/examples/1.8.x/client-android/kotlin/account/create-j-w-t.md rename to docs/examples/1.8.x/client-android/kotlin/account/create-jwt.md diff --git a/docs/examples/1.8.x/client-android/kotlin/account/create-m-f-a-authenticator.md b/docs/examples/1.8.x/client-android/kotlin/account/create-m-f-a-authenticator.md deleted file mode 100644 index 934de1cc1c..0000000000 --- a/docs/examples/1.8.x/client-android/kotlin/account/create-m-f-a-authenticator.md +++ /dev/null @@ -1,14 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Account -import io.appwrite.enums.AuthenticatorType - -val client = Client(context) - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - -val account = Account(client) - -val result = account.createMFAAuthenticator( - type = AuthenticatorType.TOTP, -) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-android/kotlin/account/create-m-f-a-challenge.md b/docs/examples/1.8.x/client-android/kotlin/account/create-m-f-a-challenge.md deleted file mode 100644 index f79c49891a..0000000000 --- a/docs/examples/1.8.x/client-android/kotlin/account/create-m-f-a-challenge.md +++ /dev/null @@ -1,14 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Account -import io.appwrite.enums.AuthenticationFactor - -val client = Client(context) - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - -val account = Account(client) - -val result = account.createMFAChallenge( - factor = AuthenticationFactor.EMAIL, -) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-android/kotlin/account/create-m-f-a-recovery-codes.md b/docs/examples/1.8.x/client-android/kotlin/account/create-m-f-a-recovery-codes.md deleted file mode 100644 index cc5696646c..0000000000 --- a/docs/examples/1.8.x/client-android/kotlin/account/create-m-f-a-recovery-codes.md +++ /dev/null @@ -1,11 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Account - -val client = Client(context) - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - -val account = Account(client) - -val result = account.createMFARecoveryCodes() diff --git a/docs/examples/1.8.x/client-android/kotlin/account/create-magic-u-r-l-token.md b/docs/examples/1.8.x/client-android/kotlin/account/create-magic-url-token.md similarity index 100% rename from docs/examples/1.8.x/client-android/kotlin/account/create-magic-u-r-l-token.md rename to docs/examples/1.8.x/client-android/kotlin/account/create-magic-url-token.md diff --git a/docs/examples/1.8.x/client-android/kotlin/account/create-mfa-authenticator.md b/docs/examples/1.8.x/client-android/kotlin/account/create-mfa-authenticator.md index ffb2f2f9bf..934de1cc1c 100644 --- a/docs/examples/1.8.x/client-android/kotlin/account/create-mfa-authenticator.md +++ b/docs/examples/1.8.x/client-android/kotlin/account/create-mfa-authenticator.md @@ -9,6 +9,6 @@ val client = Client(context) val account = Account(client) -val result = account.createMfaAuthenticator( +val result = account.createMFAAuthenticator( type = AuthenticatorType.TOTP, ) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-android/kotlin/account/create-mfa-challenge.md b/docs/examples/1.8.x/client-android/kotlin/account/create-mfa-challenge.md index 36b12d3f98..f79c49891a 100644 --- a/docs/examples/1.8.x/client-android/kotlin/account/create-mfa-challenge.md +++ b/docs/examples/1.8.x/client-android/kotlin/account/create-mfa-challenge.md @@ -9,6 +9,6 @@ val client = Client(context) val account = Account(client) -val result = account.createMfaChallenge( +val result = account.createMFAChallenge( factor = AuthenticationFactor.EMAIL, ) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-android/kotlin/account/create-mfa-recovery-codes.md b/docs/examples/1.8.x/client-android/kotlin/account/create-mfa-recovery-codes.md index 974c8f25a0..cc5696646c 100644 --- a/docs/examples/1.8.x/client-android/kotlin/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/client-android/kotlin/account/create-mfa-recovery-codes.md @@ -8,4 +8,4 @@ val client = Client(context) val account = Account(client) -val result = account.createMfaRecoveryCodes() +val result = account.createMFARecoveryCodes() diff --git a/docs/examples/1.8.x/client-android/kotlin/account/create-o-auth2session.md b/docs/examples/1.8.x/client-android/kotlin/account/create-o-auth-2-session.md similarity index 100% rename from docs/examples/1.8.x/client-android/kotlin/account/create-o-auth2session.md rename to docs/examples/1.8.x/client-android/kotlin/account/create-o-auth-2-session.md diff --git a/docs/examples/1.8.x/client-android/kotlin/account/create-o-auth2token.md b/docs/examples/1.8.x/client-android/kotlin/account/create-o-auth-2-token.md similarity index 100% rename from docs/examples/1.8.x/client-android/kotlin/account/create-o-auth2token.md rename to docs/examples/1.8.x/client-android/kotlin/account/create-o-auth-2-token.md diff --git a/docs/examples/1.8.x/client-android/kotlin/account/delete-m-f-a-authenticator.md b/docs/examples/1.8.x/client-android/kotlin/account/delete-m-f-a-authenticator.md deleted file mode 100644 index b140a11f55..0000000000 --- a/docs/examples/1.8.x/client-android/kotlin/account/delete-m-f-a-authenticator.md +++ /dev/null @@ -1,14 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Account -import io.appwrite.enums.AuthenticatorType - -val client = Client(context) - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - -val account = Account(client) - -val result = account.deleteMFAAuthenticator( - type = AuthenticatorType.TOTP, -) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-android/kotlin/account/delete-mfa-authenticator.md b/docs/examples/1.8.x/client-android/kotlin/account/delete-mfa-authenticator.md index 057e021f6d..b140a11f55 100644 --- a/docs/examples/1.8.x/client-android/kotlin/account/delete-mfa-authenticator.md +++ b/docs/examples/1.8.x/client-android/kotlin/account/delete-mfa-authenticator.md @@ -9,6 +9,6 @@ val client = Client(context) val account = Account(client) -val result = account.deleteMfaAuthenticator( +val result = account.deleteMFAAuthenticator( type = AuthenticatorType.TOTP, ) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-android/kotlin/account/get-m-f-a-recovery-codes.md b/docs/examples/1.8.x/client-android/kotlin/account/get-m-f-a-recovery-codes.md deleted file mode 100644 index f9d36122bb..0000000000 --- a/docs/examples/1.8.x/client-android/kotlin/account/get-m-f-a-recovery-codes.md +++ /dev/null @@ -1,11 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Account - -val client = Client(context) - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - -val account = Account(client) - -val result = account.getMFARecoveryCodes() diff --git a/docs/examples/1.8.x/client-android/kotlin/account/get-mfa-recovery-codes.md b/docs/examples/1.8.x/client-android/kotlin/account/get-mfa-recovery-codes.md index 6201658fe3..f9d36122bb 100644 --- a/docs/examples/1.8.x/client-android/kotlin/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/client-android/kotlin/account/get-mfa-recovery-codes.md @@ -8,4 +8,4 @@ val client = Client(context) val account = Account(client) -val result = account.getMfaRecoveryCodes() +val result = account.getMFARecoveryCodes() diff --git a/docs/examples/1.8.x/client-android/kotlin/account/list-m-f-a-factors.md b/docs/examples/1.8.x/client-android/kotlin/account/list-m-f-a-factors.md deleted file mode 100644 index 56d1c4dbc4..0000000000 --- a/docs/examples/1.8.x/client-android/kotlin/account/list-m-f-a-factors.md +++ /dev/null @@ -1,11 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Account - -val client = Client(context) - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - -val account = Account(client) - -val result = account.listMFAFactors() diff --git a/docs/examples/1.8.x/client-android/kotlin/account/list-mfa-factors.md b/docs/examples/1.8.x/client-android/kotlin/account/list-mfa-factors.md index 09119ab65a..56d1c4dbc4 100644 --- a/docs/examples/1.8.x/client-android/kotlin/account/list-mfa-factors.md +++ b/docs/examples/1.8.x/client-android/kotlin/account/list-mfa-factors.md @@ -8,4 +8,4 @@ val client = Client(context) val account = Account(client) -val result = account.listMfaFactors() +val result = account.listMFAFactors() diff --git a/docs/examples/1.8.x/client-android/kotlin/account/update-m-f-a-authenticator.md b/docs/examples/1.8.x/client-android/kotlin/account/update-m-f-a-authenticator.md deleted file mode 100644 index 4f6ecd7d39..0000000000 --- a/docs/examples/1.8.x/client-android/kotlin/account/update-m-f-a-authenticator.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Account -import io.appwrite.enums.AuthenticatorType - -val client = Client(context) - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - -val account = Account(client) - -val result = account.updateMFAAuthenticator( - type = AuthenticatorType.TOTP, - otp = "", -) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-android/kotlin/account/update-m-f-a-challenge.md b/docs/examples/1.8.x/client-android/kotlin/account/update-m-f-a-challenge.md deleted file mode 100644 index d5cbc1fdab..0000000000 --- a/docs/examples/1.8.x/client-android/kotlin/account/update-m-f-a-challenge.md +++ /dev/null @@ -1,14 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Account - -val client = Client(context) - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - -val account = Account(client) - -val result = account.updateMFAChallenge( - challengeId = "", - otp = "", -) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-android/kotlin/account/update-m-f-a-recovery-codes.md b/docs/examples/1.8.x/client-android/kotlin/account/update-m-f-a-recovery-codes.md deleted file mode 100644 index 0277ca7587..0000000000 --- a/docs/examples/1.8.x/client-android/kotlin/account/update-m-f-a-recovery-codes.md +++ /dev/null @@ -1,11 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Account - -val client = Client(context) - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - -val account = Account(client) - -val result = account.updateMFARecoveryCodes() diff --git a/docs/examples/1.8.x/client-android/kotlin/account/update-magic-u-r-l-session.md b/docs/examples/1.8.x/client-android/kotlin/account/update-magic-url-session.md similarity index 100% rename from docs/examples/1.8.x/client-android/kotlin/account/update-magic-u-r-l-session.md rename to docs/examples/1.8.x/client-android/kotlin/account/update-magic-url-session.md diff --git a/docs/examples/1.8.x/client-android/kotlin/account/update-mfa-authenticator.md b/docs/examples/1.8.x/client-android/kotlin/account/update-mfa-authenticator.md index 987825e589..4f6ecd7d39 100644 --- a/docs/examples/1.8.x/client-android/kotlin/account/update-mfa-authenticator.md +++ b/docs/examples/1.8.x/client-android/kotlin/account/update-mfa-authenticator.md @@ -9,7 +9,7 @@ val client = Client(context) val account = Account(client) -val result = account.updateMfaAuthenticator( +val result = account.updateMFAAuthenticator( type = AuthenticatorType.TOTP, otp = "", ) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-android/kotlin/account/update-mfa-challenge.md b/docs/examples/1.8.x/client-android/kotlin/account/update-mfa-challenge.md index c7f8139f15..d5cbc1fdab 100644 --- a/docs/examples/1.8.x/client-android/kotlin/account/update-mfa-challenge.md +++ b/docs/examples/1.8.x/client-android/kotlin/account/update-mfa-challenge.md @@ -8,7 +8,7 @@ val client = Client(context) val account = Account(client) -val result = account.updateMfaChallenge( +val result = account.updateMFAChallenge( challengeId = "", otp = "", ) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-android/kotlin/account/update-mfa-recovery-codes.md b/docs/examples/1.8.x/client-android/kotlin/account/update-mfa-recovery-codes.md index c0ee3c386f..0277ca7587 100644 --- a/docs/examples/1.8.x/client-android/kotlin/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/client-android/kotlin/account/update-mfa-recovery-codes.md @@ -8,4 +8,4 @@ val client = Client(context) val account = Account(client) -val result = account.updateMfaRecoveryCodes() +val result = account.updateMFARecoveryCodes() diff --git a/docs/examples/1.8.x/client-android/kotlin/account/update-m-f-a.md b/docs/examples/1.8.x/client-android/kotlin/account/update-mfa.md similarity index 100% rename from docs/examples/1.8.x/client-android/kotlin/account/update-m-f-a.md rename to docs/examples/1.8.x/client-android/kotlin/account/update-mfa.md diff --git a/docs/examples/1.8.x/client-android/kotlin/avatars/get-q-r.md b/docs/examples/1.8.x/client-android/kotlin/avatars/get-qr.md similarity index 100% rename from docs/examples/1.8.x/client-android/kotlin/avatars/get-q-r.md rename to docs/examples/1.8.x/client-android/kotlin/avatars/get-qr.md diff --git a/docs/examples/1.8.x/client-android/kotlin/databases/create-documents.md b/docs/examples/1.8.x/client-android/kotlin/databases/create-documents.md deleted file mode 100644 index 6f9e1f98f7..0000000000 --- a/docs/examples/1.8.x/client-android/kotlin/databases/create-documents.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Databases - -val client = Client(context) - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setAdmin("") // - .setKey("") // - -val databases = Databases(client) - -val result = databases.createDocuments( - databaseId = "", - collectionId = "", - documents = listOf(), -) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-android/kotlin/grids/create-row.md b/docs/examples/1.8.x/client-android/kotlin/grids/create-row.md deleted file mode 100644 index 5b29ac0db0..0000000000 --- a/docs/examples/1.8.x/client-android/kotlin/grids/create-row.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client(context) - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - -val grids = Grids(client) - -val result = grids.createRow( - databaseId = "", - tableId = "", - rowId = "", - data = mapOf( "a" to "b" ), - permissions = listOf("read("any")"), // (optional) -) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-android/kotlin/grids/delete-row.md b/docs/examples/1.8.x/client-android/kotlin/grids/delete-row.md deleted file mode 100644 index e85ff6c4ad..0000000000 --- a/docs/examples/1.8.x/client-android/kotlin/grids/delete-row.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client(context) - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - -val grids = Grids(client) - -val result = grids.deleteRow( - databaseId = "", - tableId = "", - rowId = "", -) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-android/kotlin/grids/get-row.md b/docs/examples/1.8.x/client-android/kotlin/grids/get-row.md deleted file mode 100644 index 0b6c313645..0000000000 --- a/docs/examples/1.8.x/client-android/kotlin/grids/get-row.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client(context) - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - -val grids = Grids(client) - -val result = grids.getRow( - databaseId = "", - tableId = "", - rowId = "", - queries = listOf(), // (optional) -) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-android/kotlin/grids/list-rows.md b/docs/examples/1.8.x/client-android/kotlin/grids/list-rows.md deleted file mode 100644 index 153e62787f..0000000000 --- a/docs/examples/1.8.x/client-android/kotlin/grids/list-rows.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client(context) - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - -val grids = Grids(client) - -val result = grids.listRows( - databaseId = "", - tableId = "", - queries = listOf(), // (optional) -) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-android/kotlin/grids/update-row.md b/docs/examples/1.8.x/client-android/kotlin/grids/update-row.md deleted file mode 100644 index 8dff0b157c..0000000000 --- a/docs/examples/1.8.x/client-android/kotlin/grids/update-row.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client(context) - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - -val grids = Grids(client) - -val result = grids.updateRow( - databaseId = "", - tableId = "", - rowId = "", - data = mapOf( "a" to "b" ), // (optional) - permissions = listOf("read("any")"), // (optional) -) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-android/kotlin/grids/upsert-row.md b/docs/examples/1.8.x/client-android/kotlin/grids/upsert-row.md deleted file mode 100644 index a6f5bb846e..0000000000 --- a/docs/examples/1.8.x/client-android/kotlin/grids/upsert-row.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client(context) - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - -val grids = Grids(client) - -val result = grids.upsertRow( - databaseId = "", - tableId = "", - rowId = "", - data = mapOf( "a" to "b" ), // (optional) - permissions = listOf("read("any")"), // (optional) -) \ No newline at end of file diff --git a/docs/examples/1.8.x/client-android/kotlin/locale/list-countries-e-u.md b/docs/examples/1.8.x/client-android/kotlin/locale/list-countries-eu.md similarity index 100% rename from docs/examples/1.8.x/client-android/kotlin/locale/list-countries-e-u.md rename to docs/examples/1.8.x/client-android/kotlin/locale/list-countries-eu.md diff --git a/docs/examples/1.8.x/client-apple/examples/account/create-j-w-t.md b/docs/examples/1.8.x/client-apple/examples/account/create-jwt.md similarity index 100% rename from docs/examples/1.8.x/client-apple/examples/account/create-j-w-t.md rename to docs/examples/1.8.x/client-apple/examples/account/create-jwt.md diff --git a/docs/examples/1.8.x/client-apple/examples/account/create-m-f-a-authenticator.md b/docs/examples/1.8.x/client-apple/examples/account/create-m-f-a-authenticator.md deleted file mode 100644 index cfe0082fba..0000000000 --- a/docs/examples/1.8.x/client-apple/examples/account/create-m-f-a-authenticator.md +++ /dev/null @@ -1,13 +0,0 @@ -import Appwrite -import AppwriteEnums - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - -let account = Account(client) - -let mfaType = try await account.createMFAAuthenticator( - type: .totp -) - diff --git a/docs/examples/1.8.x/client-apple/examples/account/create-m-f-a-challenge.md b/docs/examples/1.8.x/client-apple/examples/account/create-m-f-a-challenge.md deleted file mode 100644 index 27f1bc1784..0000000000 --- a/docs/examples/1.8.x/client-apple/examples/account/create-m-f-a-challenge.md +++ /dev/null @@ -1,13 +0,0 @@ -import Appwrite -import AppwriteEnums - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - -let account = Account(client) - -let mfaChallenge = try await account.createMFAChallenge( - factor: .email -) - diff --git a/docs/examples/1.8.x/client-apple/examples/account/create-m-f-a-recovery-codes.md b/docs/examples/1.8.x/client-apple/examples/account/create-m-f-a-recovery-codes.md deleted file mode 100644 index 2674a40760..0000000000 --- a/docs/examples/1.8.x/client-apple/examples/account/create-m-f-a-recovery-codes.md +++ /dev/null @@ -1,10 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - -let account = Account(client) - -let mfaRecoveryCodes = try await account.createMFARecoveryCodes() - diff --git a/docs/examples/1.8.x/client-apple/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.8.x/client-apple/examples/account/create-magic-url-token.md similarity index 100% rename from docs/examples/1.8.x/client-apple/examples/account/create-magic-u-r-l-token.md rename to docs/examples/1.8.x/client-apple/examples/account/create-magic-url-token.md diff --git a/docs/examples/1.8.x/client-apple/examples/account/create-mfa-authenticator.md b/docs/examples/1.8.x/client-apple/examples/account/create-mfa-authenticator.md index 56799e327e..cfe0082fba 100644 --- a/docs/examples/1.8.x/client-apple/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.8.x/client-apple/examples/account/create-mfa-authenticator.md @@ -7,7 +7,7 @@ let client = Client() let account = Account(client) -let mfaType = try await account.createMfaAuthenticator( +let mfaType = try await account.createMFAAuthenticator( type: .totp ) diff --git a/docs/examples/1.8.x/client-apple/examples/account/create-mfa-challenge.md b/docs/examples/1.8.x/client-apple/examples/account/create-mfa-challenge.md index 0b5d385999..27f1bc1784 100644 --- a/docs/examples/1.8.x/client-apple/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.8.x/client-apple/examples/account/create-mfa-challenge.md @@ -7,7 +7,7 @@ let client = Client() let account = Account(client) -let mfaChallenge = try await account.createMfaChallenge( +let mfaChallenge = try await account.createMFAChallenge( factor: .email ) diff --git a/docs/examples/1.8.x/client-apple/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.8.x/client-apple/examples/account/create-mfa-recovery-codes.md index c0ccb39e86..2674a40760 100644 --- a/docs/examples/1.8.x/client-apple/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/client-apple/examples/account/create-mfa-recovery-codes.md @@ -6,5 +6,5 @@ let client = Client() let account = Account(client) -let mfaRecoveryCodes = try await account.createMfaRecoveryCodes() +let mfaRecoveryCodes = try await account.createMFARecoveryCodes() diff --git a/docs/examples/1.8.x/client-apple/examples/account/create-o-auth2session.md b/docs/examples/1.8.x/client-apple/examples/account/create-o-auth-2-session.md similarity index 100% rename from docs/examples/1.8.x/client-apple/examples/account/create-o-auth2session.md rename to docs/examples/1.8.x/client-apple/examples/account/create-o-auth-2-session.md diff --git a/docs/examples/1.8.x/client-apple/examples/account/create-o-auth2token.md b/docs/examples/1.8.x/client-apple/examples/account/create-o-auth-2-token.md similarity index 100% rename from docs/examples/1.8.x/client-apple/examples/account/create-o-auth2token.md rename to docs/examples/1.8.x/client-apple/examples/account/create-o-auth-2-token.md diff --git a/docs/examples/1.8.x/client-apple/examples/account/delete-m-f-a-authenticator.md b/docs/examples/1.8.x/client-apple/examples/account/delete-m-f-a-authenticator.md deleted file mode 100644 index adfa363bcc..0000000000 --- a/docs/examples/1.8.x/client-apple/examples/account/delete-m-f-a-authenticator.md +++ /dev/null @@ -1,13 +0,0 @@ -import Appwrite -import AppwriteEnums - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - -let account = Account(client) - -let result = try await account.deleteMFAAuthenticator( - type: .totp -) - diff --git a/docs/examples/1.8.x/client-apple/examples/account/delete-mfa-authenticator.md b/docs/examples/1.8.x/client-apple/examples/account/delete-mfa-authenticator.md index 16cbbe3b72..adfa363bcc 100644 --- a/docs/examples/1.8.x/client-apple/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.8.x/client-apple/examples/account/delete-mfa-authenticator.md @@ -7,7 +7,7 @@ let client = Client() let account = Account(client) -let result = try await account.deleteMfaAuthenticator( +let result = try await account.deleteMFAAuthenticator( type: .totp ) diff --git a/docs/examples/1.8.x/client-apple/examples/account/get-m-f-a-recovery-codes.md b/docs/examples/1.8.x/client-apple/examples/account/get-m-f-a-recovery-codes.md deleted file mode 100644 index efee499ea7..0000000000 --- a/docs/examples/1.8.x/client-apple/examples/account/get-m-f-a-recovery-codes.md +++ /dev/null @@ -1,10 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - -let account = Account(client) - -let mfaRecoveryCodes = try await account.getMFARecoveryCodes() - diff --git a/docs/examples/1.8.x/client-apple/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.8.x/client-apple/examples/account/get-mfa-recovery-codes.md index 2f5d623304..efee499ea7 100644 --- a/docs/examples/1.8.x/client-apple/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/client-apple/examples/account/get-mfa-recovery-codes.md @@ -6,5 +6,5 @@ let client = Client() let account = Account(client) -let mfaRecoveryCodes = try await account.getMfaRecoveryCodes() +let mfaRecoveryCodes = try await account.getMFARecoveryCodes() diff --git a/docs/examples/1.8.x/client-apple/examples/account/list-m-f-a-factors.md b/docs/examples/1.8.x/client-apple/examples/account/list-m-f-a-factors.md deleted file mode 100644 index d81e77e7ac..0000000000 --- a/docs/examples/1.8.x/client-apple/examples/account/list-m-f-a-factors.md +++ /dev/null @@ -1,10 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - -let account = Account(client) - -let mfaFactors = try await account.listMFAFactors() - diff --git a/docs/examples/1.8.x/client-apple/examples/account/list-mfa-factors.md b/docs/examples/1.8.x/client-apple/examples/account/list-mfa-factors.md index f6d7a6fe75..d81e77e7ac 100644 --- a/docs/examples/1.8.x/client-apple/examples/account/list-mfa-factors.md +++ b/docs/examples/1.8.x/client-apple/examples/account/list-mfa-factors.md @@ -6,5 +6,5 @@ let client = Client() let account = Account(client) -let mfaFactors = try await account.listMfaFactors() +let mfaFactors = try await account.listMFAFactors() diff --git a/docs/examples/1.8.x/client-apple/examples/account/update-m-f-a-authenticator.md b/docs/examples/1.8.x/client-apple/examples/account/update-m-f-a-authenticator.md deleted file mode 100644 index 5245be2ec3..0000000000 --- a/docs/examples/1.8.x/client-apple/examples/account/update-m-f-a-authenticator.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite -import AppwriteEnums - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - -let account = Account(client) - -let user = try await account.updateMFAAuthenticator( - type: .totp, - otp: "" -) - diff --git a/docs/examples/1.8.x/client-apple/examples/account/update-m-f-a-challenge.md b/docs/examples/1.8.x/client-apple/examples/account/update-m-f-a-challenge.md deleted file mode 100644 index 473393eecd..0000000000 --- a/docs/examples/1.8.x/client-apple/examples/account/update-m-f-a-challenge.md +++ /dev/null @@ -1,13 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - -let account = Account(client) - -let session = try await account.updateMFAChallenge( - challengeId: "", - otp: "" -) - diff --git a/docs/examples/1.8.x/client-apple/examples/account/update-m-f-a-recovery-codes.md b/docs/examples/1.8.x/client-apple/examples/account/update-m-f-a-recovery-codes.md deleted file mode 100644 index fbd6847e89..0000000000 --- a/docs/examples/1.8.x/client-apple/examples/account/update-m-f-a-recovery-codes.md +++ /dev/null @@ -1,10 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - -let account = Account(client) - -let mfaRecoveryCodes = try await account.updateMFARecoveryCodes() - diff --git a/docs/examples/1.8.x/client-apple/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.8.x/client-apple/examples/account/update-magic-url-session.md similarity index 100% rename from docs/examples/1.8.x/client-apple/examples/account/update-magic-u-r-l-session.md rename to docs/examples/1.8.x/client-apple/examples/account/update-magic-url-session.md diff --git a/docs/examples/1.8.x/client-apple/examples/account/update-mfa-authenticator.md b/docs/examples/1.8.x/client-apple/examples/account/update-mfa-authenticator.md index 6a42fb9b6d..5245be2ec3 100644 --- a/docs/examples/1.8.x/client-apple/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.8.x/client-apple/examples/account/update-mfa-authenticator.md @@ -7,7 +7,7 @@ let client = Client() let account = Account(client) -let user = try await account.updateMfaAuthenticator( +let user = try await account.updateMFAAuthenticator( type: .totp, otp: "" ) diff --git a/docs/examples/1.8.x/client-apple/examples/account/update-mfa-challenge.md b/docs/examples/1.8.x/client-apple/examples/account/update-mfa-challenge.md index db9753b777..473393eecd 100644 --- a/docs/examples/1.8.x/client-apple/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.8.x/client-apple/examples/account/update-mfa-challenge.md @@ -6,7 +6,7 @@ let client = Client() let account = Account(client) -let session = try await account.updateMfaChallenge( +let session = try await account.updateMFAChallenge( challengeId: "", otp: "" ) diff --git a/docs/examples/1.8.x/client-apple/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.8.x/client-apple/examples/account/update-mfa-recovery-codes.md index c3b8d412c5..fbd6847e89 100644 --- a/docs/examples/1.8.x/client-apple/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/client-apple/examples/account/update-mfa-recovery-codes.md @@ -6,5 +6,5 @@ let client = Client() let account = Account(client) -let mfaRecoveryCodes = try await account.updateMfaRecoveryCodes() +let mfaRecoveryCodes = try await account.updateMFARecoveryCodes() diff --git a/docs/examples/1.8.x/client-apple/examples/account/update-m-f-a.md b/docs/examples/1.8.x/client-apple/examples/account/update-mfa.md similarity index 100% rename from docs/examples/1.8.x/client-apple/examples/account/update-m-f-a.md rename to docs/examples/1.8.x/client-apple/examples/account/update-mfa.md diff --git a/docs/examples/1.8.x/client-apple/examples/avatars/get-q-r.md b/docs/examples/1.8.x/client-apple/examples/avatars/get-qr.md similarity index 100% rename from docs/examples/1.8.x/client-apple/examples/avatars/get-q-r.md rename to docs/examples/1.8.x/client-apple/examples/avatars/get-qr.md diff --git a/docs/examples/1.8.x/client-apple/examples/databases/create-documents.md b/docs/examples/1.8.x/client-apple/examples/databases/create-documents.md deleted file mode 100644 index d60cf01cd9..0000000000 --- a/docs/examples/1.8.x/client-apple/examples/databases/create-documents.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setAdmin("") // - .setKey("") // - -let databases = Databases(client) - -let documentList = try await databases.createDocuments( - databaseId: "", - collectionId: "", - documents: [] -) - diff --git a/docs/examples/1.8.x/client-apple/examples/grids/create-row.md b/docs/examples/1.8.x/client-apple/examples/grids/create-row.md deleted file mode 100644 index 0739b27949..0000000000 --- a/docs/examples/1.8.x/client-apple/examples/grids/create-row.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - -let grids = Grids(client) - -let row = try await grids.createRow( - databaseId: "", - tableId: "", - rowId: "", - data: [:], - permissions: ["read("any")"] // optional -) - diff --git a/docs/examples/1.8.x/client-apple/examples/grids/delete-row.md b/docs/examples/1.8.x/client-apple/examples/grids/delete-row.md deleted file mode 100644 index 58ae835ec5..0000000000 --- a/docs/examples/1.8.x/client-apple/examples/grids/delete-row.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - -let grids = Grids(client) - -let result = try await grids.deleteRow( - databaseId: "", - tableId: "", - rowId: "" -) - diff --git a/docs/examples/1.8.x/client-apple/examples/grids/get-row.md b/docs/examples/1.8.x/client-apple/examples/grids/get-row.md deleted file mode 100644 index fccdad1f34..0000000000 --- a/docs/examples/1.8.x/client-apple/examples/grids/get-row.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - -let grids = Grids(client) - -let row = try await grids.getRow( - databaseId: "", - tableId: "", - rowId: "", - queries: [] // optional -) - diff --git a/docs/examples/1.8.x/client-apple/examples/grids/list-rows.md b/docs/examples/1.8.x/client-apple/examples/grids/list-rows.md deleted file mode 100644 index 1b4d885a64..0000000000 --- a/docs/examples/1.8.x/client-apple/examples/grids/list-rows.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - -let grids = Grids(client) - -let rowList = try await grids.listRows( - databaseId: "", - tableId: "", - queries: [] // optional -) - diff --git a/docs/examples/1.8.x/client-apple/examples/grids/update-row.md b/docs/examples/1.8.x/client-apple/examples/grids/update-row.md deleted file mode 100644 index 95a3611a92..0000000000 --- a/docs/examples/1.8.x/client-apple/examples/grids/update-row.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - -let grids = Grids(client) - -let row = try await grids.updateRow( - databaseId: "", - tableId: "", - rowId: "", - data: [:], // optional - permissions: ["read("any")"] // optional -) - diff --git a/docs/examples/1.8.x/client-apple/examples/grids/upsert-row.md b/docs/examples/1.8.x/client-apple/examples/grids/upsert-row.md deleted file mode 100644 index c5638a4881..0000000000 --- a/docs/examples/1.8.x/client-apple/examples/grids/upsert-row.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("") // Your project ID - -let grids = Grids(client) - -let row = try await grids.upsertRow( - databaseId: "", - tableId: "", - rowId: "", - data: [:], // optional - permissions: ["read("any")"] // optional -) - diff --git a/docs/examples/1.8.x/client-apple/examples/locale/list-countries-e-u.md b/docs/examples/1.8.x/client-apple/examples/locale/list-countries-eu.md similarity index 100% rename from docs/examples/1.8.x/client-apple/examples/locale/list-countries-e-u.md rename to docs/examples/1.8.x/client-apple/examples/locale/list-countries-eu.md diff --git a/docs/examples/1.8.x/client-flutter/examples/account/create-j-w-t.md b/docs/examples/1.8.x/client-flutter/examples/account/create-jwt.md similarity index 100% rename from docs/examples/1.8.x/client-flutter/examples/account/create-j-w-t.md rename to docs/examples/1.8.x/client-flutter/examples/account/create-jwt.md diff --git a/docs/examples/1.8.x/client-flutter/examples/account/create-m-f-a-authenticator.md b/docs/examples/1.8.x/client-flutter/examples/account/create-m-f-a-authenticator.md deleted file mode 100644 index b9d7e967b2..0000000000 --- a/docs/examples/1.8.x/client-flutter/examples/account/create-m-f-a-authenticator.md +++ /dev/null @@ -1,11 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -Account account = Account(client); - -MfaType result = await account.createMFAAuthenticator( - type: AuthenticatorType.totp, -); diff --git a/docs/examples/1.8.x/client-flutter/examples/account/create-m-f-a-challenge.md b/docs/examples/1.8.x/client-flutter/examples/account/create-m-f-a-challenge.md deleted file mode 100644 index 09ce17b27c..0000000000 --- a/docs/examples/1.8.x/client-flutter/examples/account/create-m-f-a-challenge.md +++ /dev/null @@ -1,11 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -Account account = Account(client); - -MfaChallenge result = await account.createMFAChallenge( - factor: AuthenticationFactor.email, -); diff --git a/docs/examples/1.8.x/client-flutter/examples/account/create-m-f-a-recovery-codes.md b/docs/examples/1.8.x/client-flutter/examples/account/create-m-f-a-recovery-codes.md deleted file mode 100644 index 9b69ad1bd9..0000000000 --- a/docs/examples/1.8.x/client-flutter/examples/account/create-m-f-a-recovery-codes.md +++ /dev/null @@ -1,9 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -Account account = Account(client); - -MfaRecoveryCodes result = await account.createMFARecoveryCodes(); diff --git a/docs/examples/1.8.x/client-flutter/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.8.x/client-flutter/examples/account/create-magic-url-token.md similarity index 100% rename from docs/examples/1.8.x/client-flutter/examples/account/create-magic-u-r-l-token.md rename to docs/examples/1.8.x/client-flutter/examples/account/create-magic-url-token.md diff --git a/docs/examples/1.8.x/client-flutter/examples/account/create-mfa-authenticator.md b/docs/examples/1.8.x/client-flutter/examples/account/create-mfa-authenticator.md index ca66149654..b9d7e967b2 100644 --- a/docs/examples/1.8.x/client-flutter/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.8.x/client-flutter/examples/account/create-mfa-authenticator.md @@ -6,6 +6,6 @@ Client client = Client() Account account = Account(client); -MfaType result = await account.createMfaAuthenticator( +MfaType result = await account.createMFAAuthenticator( type: AuthenticatorType.totp, ); diff --git a/docs/examples/1.8.x/client-flutter/examples/account/create-mfa-challenge.md b/docs/examples/1.8.x/client-flutter/examples/account/create-mfa-challenge.md index 6815e5c52f..09ce17b27c 100644 --- a/docs/examples/1.8.x/client-flutter/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.8.x/client-flutter/examples/account/create-mfa-challenge.md @@ -6,6 +6,6 @@ Client client = Client() Account account = Account(client); -MfaChallenge result = await account.createMfaChallenge( +MfaChallenge result = await account.createMFAChallenge( factor: AuthenticationFactor.email, ); diff --git a/docs/examples/1.8.x/client-flutter/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.8.x/client-flutter/examples/account/create-mfa-recovery-codes.md index 274dc598a8..9b69ad1bd9 100644 --- a/docs/examples/1.8.x/client-flutter/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/client-flutter/examples/account/create-mfa-recovery-codes.md @@ -6,4 +6,4 @@ Client client = Client() Account account = Account(client); -MfaRecoveryCodes result = await account.createMfaRecoveryCodes(); +MfaRecoveryCodes result = await account.createMFARecoveryCodes(); diff --git a/docs/examples/1.8.x/client-flutter/examples/account/create-o-auth2session.md b/docs/examples/1.8.x/client-flutter/examples/account/create-o-auth-2-session.md similarity index 100% rename from docs/examples/1.8.x/client-flutter/examples/account/create-o-auth2session.md rename to docs/examples/1.8.x/client-flutter/examples/account/create-o-auth-2-session.md diff --git a/docs/examples/1.8.x/client-flutter/examples/account/create-o-auth2token.md b/docs/examples/1.8.x/client-flutter/examples/account/create-o-auth-2-token.md similarity index 100% rename from docs/examples/1.8.x/client-flutter/examples/account/create-o-auth2token.md rename to docs/examples/1.8.x/client-flutter/examples/account/create-o-auth-2-token.md diff --git a/docs/examples/1.8.x/client-flutter/examples/account/delete-m-f-a-authenticator.md b/docs/examples/1.8.x/client-flutter/examples/account/delete-m-f-a-authenticator.md deleted file mode 100644 index b938ca68e9..0000000000 --- a/docs/examples/1.8.x/client-flutter/examples/account/delete-m-f-a-authenticator.md +++ /dev/null @@ -1,11 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -Account account = Account(client); - -await account.deleteMFAAuthenticator( - type: AuthenticatorType.totp, -); diff --git a/docs/examples/1.8.x/client-flutter/examples/account/delete-mfa-authenticator.md b/docs/examples/1.8.x/client-flutter/examples/account/delete-mfa-authenticator.md index bf4b0c509b..b938ca68e9 100644 --- a/docs/examples/1.8.x/client-flutter/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.8.x/client-flutter/examples/account/delete-mfa-authenticator.md @@ -6,6 +6,6 @@ Client client = Client() Account account = Account(client); -await account.deleteMfaAuthenticator( +await account.deleteMFAAuthenticator( type: AuthenticatorType.totp, ); diff --git a/docs/examples/1.8.x/client-flutter/examples/account/get-m-f-a-recovery-codes.md b/docs/examples/1.8.x/client-flutter/examples/account/get-m-f-a-recovery-codes.md deleted file mode 100644 index 09bff7ffbd..0000000000 --- a/docs/examples/1.8.x/client-flutter/examples/account/get-m-f-a-recovery-codes.md +++ /dev/null @@ -1,9 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -Account account = Account(client); - -MfaRecoveryCodes result = await account.getMFARecoveryCodes(); diff --git a/docs/examples/1.8.x/client-flutter/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.8.x/client-flutter/examples/account/get-mfa-recovery-codes.md index f9d50131e5..09bff7ffbd 100644 --- a/docs/examples/1.8.x/client-flutter/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/client-flutter/examples/account/get-mfa-recovery-codes.md @@ -6,4 +6,4 @@ Client client = Client() Account account = Account(client); -MfaRecoveryCodes result = await account.getMfaRecoveryCodes(); +MfaRecoveryCodes result = await account.getMFARecoveryCodes(); diff --git a/docs/examples/1.8.x/client-flutter/examples/account/list-m-f-a-factors.md b/docs/examples/1.8.x/client-flutter/examples/account/list-m-f-a-factors.md deleted file mode 100644 index 5e87cbaac5..0000000000 --- a/docs/examples/1.8.x/client-flutter/examples/account/list-m-f-a-factors.md +++ /dev/null @@ -1,9 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -Account account = Account(client); - -MfaFactors result = await account.listMFAFactors(); diff --git a/docs/examples/1.8.x/client-flutter/examples/account/list-mfa-factors.md b/docs/examples/1.8.x/client-flutter/examples/account/list-mfa-factors.md index 9f945400ac..5e87cbaac5 100644 --- a/docs/examples/1.8.x/client-flutter/examples/account/list-mfa-factors.md +++ b/docs/examples/1.8.x/client-flutter/examples/account/list-mfa-factors.md @@ -6,4 +6,4 @@ Client client = Client() Account account = Account(client); -MfaFactors result = await account.listMfaFactors(); +MfaFactors result = await account.listMFAFactors(); diff --git a/docs/examples/1.8.x/client-flutter/examples/account/update-m-f-a-authenticator.md b/docs/examples/1.8.x/client-flutter/examples/account/update-m-f-a-authenticator.md deleted file mode 100644 index 96bdcc1bc3..0000000000 --- a/docs/examples/1.8.x/client-flutter/examples/account/update-m-f-a-authenticator.md +++ /dev/null @@ -1,12 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -Account account = Account(client); - -User result = await account.updateMFAAuthenticator( - type: AuthenticatorType.totp, - otp: '', -); diff --git a/docs/examples/1.8.x/client-flutter/examples/account/update-m-f-a-challenge.md b/docs/examples/1.8.x/client-flutter/examples/account/update-m-f-a-challenge.md deleted file mode 100644 index b917e4119c..0000000000 --- a/docs/examples/1.8.x/client-flutter/examples/account/update-m-f-a-challenge.md +++ /dev/null @@ -1,12 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -Account account = Account(client); - -Session result = await account.updateMFAChallenge( - challengeId: '', - otp: '', -); diff --git a/docs/examples/1.8.x/client-flutter/examples/account/update-m-f-a-recovery-codes.md b/docs/examples/1.8.x/client-flutter/examples/account/update-m-f-a-recovery-codes.md deleted file mode 100644 index 377149bf60..0000000000 --- a/docs/examples/1.8.x/client-flutter/examples/account/update-m-f-a-recovery-codes.md +++ /dev/null @@ -1,9 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -Account account = Account(client); - -MfaRecoveryCodes result = await account.updateMFARecoveryCodes(); diff --git a/docs/examples/1.8.x/client-flutter/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.8.x/client-flutter/examples/account/update-magic-url-session.md similarity index 100% rename from docs/examples/1.8.x/client-flutter/examples/account/update-magic-u-r-l-session.md rename to docs/examples/1.8.x/client-flutter/examples/account/update-magic-url-session.md diff --git a/docs/examples/1.8.x/client-flutter/examples/account/update-mfa-authenticator.md b/docs/examples/1.8.x/client-flutter/examples/account/update-mfa-authenticator.md index 7f026578c5..96bdcc1bc3 100644 --- a/docs/examples/1.8.x/client-flutter/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.8.x/client-flutter/examples/account/update-mfa-authenticator.md @@ -6,7 +6,7 @@ Client client = Client() Account account = Account(client); -User result = await account.updateMfaAuthenticator( +User result = await account.updateMFAAuthenticator( type: AuthenticatorType.totp, otp: '', ); diff --git a/docs/examples/1.8.x/client-flutter/examples/account/update-mfa-challenge.md b/docs/examples/1.8.x/client-flutter/examples/account/update-mfa-challenge.md index a938f0af68..b917e4119c 100644 --- a/docs/examples/1.8.x/client-flutter/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.8.x/client-flutter/examples/account/update-mfa-challenge.md @@ -6,7 +6,7 @@ Client client = Client() Account account = Account(client); -Session result = await account.updateMfaChallenge( +Session result = await account.updateMFAChallenge( challengeId: '', otp: '', ); diff --git a/docs/examples/1.8.x/client-flutter/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.8.x/client-flutter/examples/account/update-mfa-recovery-codes.md index 37334ef69a..377149bf60 100644 --- a/docs/examples/1.8.x/client-flutter/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/client-flutter/examples/account/update-mfa-recovery-codes.md @@ -6,4 +6,4 @@ Client client = Client() Account account = Account(client); -MfaRecoveryCodes result = await account.updateMfaRecoveryCodes(); +MfaRecoveryCodes result = await account.updateMFARecoveryCodes(); diff --git a/docs/examples/1.8.x/client-flutter/examples/account/update-m-f-a.md b/docs/examples/1.8.x/client-flutter/examples/account/update-mfa.md similarity index 100% rename from docs/examples/1.8.x/client-flutter/examples/account/update-m-f-a.md rename to docs/examples/1.8.x/client-flutter/examples/account/update-mfa.md diff --git a/docs/examples/1.8.x/client-flutter/examples/avatars/get-q-r.md b/docs/examples/1.8.x/client-flutter/examples/avatars/get-qr.md similarity index 100% rename from docs/examples/1.8.x/client-flutter/examples/avatars/get-q-r.md rename to docs/examples/1.8.x/client-flutter/examples/avatars/get-qr.md diff --git a/docs/examples/1.8.x/client-flutter/examples/databases/create-documents.md b/docs/examples/1.8.x/client-flutter/examples/databases/create-documents.md deleted file mode 100644 index 29014be0e2..0000000000 --- a/docs/examples/1.8.x/client-flutter/examples/databases/create-documents.md +++ /dev/null @@ -1,14 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setAdmin('') // - .setKey(''); // - -Databases databases = Databases(client); - -DocumentList result = await databases.createDocuments( - databaseId: '', - collectionId: '', - documents: [], -); diff --git a/docs/examples/1.8.x/client-flutter/examples/grids/create-row.md b/docs/examples/1.8.x/client-flutter/examples/grids/create-row.md deleted file mode 100644 index 2f80a01806..0000000000 --- a/docs/examples/1.8.x/client-flutter/examples/grids/create-row.md +++ /dev/null @@ -1,15 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -Grids grids = Grids(client); - -Row result = await grids.createRow( - databaseId: '', - tableId: '', - rowId: '', - data: {}, - permissions: ["read("any")"], // optional -); diff --git a/docs/examples/1.8.x/client-flutter/examples/grids/delete-row.md b/docs/examples/1.8.x/client-flutter/examples/grids/delete-row.md deleted file mode 100644 index 04f5aec544..0000000000 --- a/docs/examples/1.8.x/client-flutter/examples/grids/delete-row.md +++ /dev/null @@ -1,13 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -Grids grids = Grids(client); - -await grids.deleteRow( - databaseId: '', - tableId: '', - rowId: '', -); diff --git a/docs/examples/1.8.x/client-flutter/examples/grids/get-row.md b/docs/examples/1.8.x/client-flutter/examples/grids/get-row.md deleted file mode 100644 index a8a380ee7c..0000000000 --- a/docs/examples/1.8.x/client-flutter/examples/grids/get-row.md +++ /dev/null @@ -1,14 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -Grids grids = Grids(client); - -Row result = await grids.getRow( - databaseId: '', - tableId: '', - rowId: '', - queries: [], // optional -); diff --git a/docs/examples/1.8.x/client-flutter/examples/grids/list-rows.md b/docs/examples/1.8.x/client-flutter/examples/grids/list-rows.md deleted file mode 100644 index 6654c57aaa..0000000000 --- a/docs/examples/1.8.x/client-flutter/examples/grids/list-rows.md +++ /dev/null @@ -1,13 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -Grids grids = Grids(client); - -RowList result = await grids.listRows( - databaseId: '', - tableId: '', - queries: [], // optional -); diff --git a/docs/examples/1.8.x/client-flutter/examples/grids/update-row.md b/docs/examples/1.8.x/client-flutter/examples/grids/update-row.md deleted file mode 100644 index 293f38877a..0000000000 --- a/docs/examples/1.8.x/client-flutter/examples/grids/update-row.md +++ /dev/null @@ -1,15 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -Grids grids = Grids(client); - -Row result = await grids.updateRow( - databaseId: '', - tableId: '', - rowId: '', - data: {}, // optional - permissions: ["read("any")"], // optional -); diff --git a/docs/examples/1.8.x/client-flutter/examples/grids/upsert-row.md b/docs/examples/1.8.x/client-flutter/examples/grids/upsert-row.md deleted file mode 100644 index 2cec5621b7..0000000000 --- a/docs/examples/1.8.x/client-flutter/examples/grids/upsert-row.md +++ /dev/null @@ -1,15 +0,0 @@ -import 'package:appwrite/appwrite.dart'; - -Client client = Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -Grids grids = Grids(client); - -Row result = await grids.upsertRow( - databaseId: '', - tableId: '', - rowId: '', - data: {}, // optional - permissions: ["read("any")"], // optional -); diff --git a/docs/examples/1.8.x/client-flutter/examples/locale/list-countries-e-u.md b/docs/examples/1.8.x/client-flutter/examples/locale/list-countries-eu.md similarity index 100% rename from docs/examples/1.8.x/client-flutter/examples/locale/list-countries-e-u.md rename to docs/examples/1.8.x/client-flutter/examples/locale/list-countries-eu.md diff --git a/docs/examples/1.8.x/client-graphql/examples/account/create-j-w-t.md b/docs/examples/1.8.x/client-graphql/examples/account/create-jwt.md similarity index 100% rename from docs/examples/1.8.x/client-graphql/examples/account/create-j-w-t.md rename to docs/examples/1.8.x/client-graphql/examples/account/create-jwt.md diff --git a/docs/examples/1.8.x/client-graphql/examples/account/create-m-f-a-authenticator.md b/docs/examples/1.8.x/client-graphql/examples/account/create-m-f-a-authenticator.md deleted file mode 100644 index 8605340168..0000000000 --- a/docs/examples/1.8.x/client-graphql/examples/account/create-m-f-a-authenticator.md +++ /dev/null @@ -1,8 +0,0 @@ -mutation { - accountCreateMFAAuthenticator( - type: "totp" - ) { - secret - uri - } -} diff --git a/docs/examples/1.8.x/client-graphql/examples/account/create-m-f-a-challenge.md b/docs/examples/1.8.x/client-graphql/examples/account/create-m-f-a-challenge.md deleted file mode 100644 index aff5a10123..0000000000 --- a/docs/examples/1.8.x/client-graphql/examples/account/create-m-f-a-challenge.md +++ /dev/null @@ -1,10 +0,0 @@ -mutation { - accountCreateMFAChallenge( - factor: "email" - ) { - _id - _createdAt - userId - expire - } -} diff --git a/docs/examples/1.8.x/client-graphql/examples/account/create-m-f-a-recovery-codes.md b/docs/examples/1.8.x/client-graphql/examples/account/create-m-f-a-recovery-codes.md deleted file mode 100644 index 4cb6d36d42..0000000000 --- a/docs/examples/1.8.x/client-graphql/examples/account/create-m-f-a-recovery-codes.md +++ /dev/null @@ -1,5 +0,0 @@ -mutation { - accountCreateMFARecoveryCodes { - recoveryCodes - } -} diff --git a/docs/examples/1.8.x/client-graphql/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.8.x/client-graphql/examples/account/create-magic-url-token.md similarity index 100% rename from docs/examples/1.8.x/client-graphql/examples/account/create-magic-u-r-l-token.md rename to docs/examples/1.8.x/client-graphql/examples/account/create-magic-url-token.md diff --git a/docs/examples/1.8.x/client-graphql/examples/account/create-mfa-authenticator.md b/docs/examples/1.8.x/client-graphql/examples/account/create-mfa-authenticator.md index 6b29292494..8605340168 100644 --- a/docs/examples/1.8.x/client-graphql/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.8.x/client-graphql/examples/account/create-mfa-authenticator.md @@ -1,5 +1,5 @@ mutation { - accountCreateMfaAuthenticator( + accountCreateMFAAuthenticator( type: "totp" ) { secret diff --git a/docs/examples/1.8.x/client-graphql/examples/account/create-mfa-challenge.md b/docs/examples/1.8.x/client-graphql/examples/account/create-mfa-challenge.md index eb5cba127d..aff5a10123 100644 --- a/docs/examples/1.8.x/client-graphql/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.8.x/client-graphql/examples/account/create-mfa-challenge.md @@ -1,5 +1,5 @@ mutation { - accountCreateMfaChallenge( + accountCreateMFAChallenge( factor: "email" ) { _id diff --git a/docs/examples/1.8.x/client-graphql/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.8.x/client-graphql/examples/account/create-mfa-recovery-codes.md index f39b7d080d..4cb6d36d42 100644 --- a/docs/examples/1.8.x/client-graphql/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/client-graphql/examples/account/create-mfa-recovery-codes.md @@ -1,5 +1,5 @@ mutation { - accountCreateMfaRecoveryCodes { + accountCreateMFARecoveryCodes { recoveryCodes } } diff --git a/docs/examples/1.8.x/client-graphql/examples/account/delete-m-f-a-authenticator.md b/docs/examples/1.8.x/client-graphql/examples/account/delete-m-f-a-authenticator.md deleted file mode 100644 index 03e876e3f9..0000000000 --- a/docs/examples/1.8.x/client-graphql/examples/account/delete-m-f-a-authenticator.md +++ /dev/null @@ -1,7 +0,0 @@ -mutation { - accountDeleteMFAAuthenticator( - type: "totp" - ) { - status - } -} diff --git a/docs/examples/1.8.x/client-graphql/examples/account/delete-mfa-authenticator.md b/docs/examples/1.8.x/client-graphql/examples/account/delete-mfa-authenticator.md index fc5486623a..03e876e3f9 100644 --- a/docs/examples/1.8.x/client-graphql/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.8.x/client-graphql/examples/account/delete-mfa-authenticator.md @@ -1,5 +1,5 @@ mutation { - accountDeleteMfaAuthenticator( + accountDeleteMFAAuthenticator( type: "totp" ) { status diff --git a/docs/examples/1.8.x/client-graphql/examples/account/update-m-f-a-authenticator.md b/docs/examples/1.8.x/client-graphql/examples/account/update-m-f-a-authenticator.md deleted file mode 100644 index b3021b70b8..0000000000 --- a/docs/examples/1.8.x/client-graphql/examples/account/update-m-f-a-authenticator.md +++ /dev/null @@ -1,38 +0,0 @@ -mutation { - accountUpdateMFAAuthenticator( - type: "totp", - otp: "" - ) { - _id - _createdAt - _updatedAt - name - password - hash - hashOptions - registration - status - labels - passwordUpdate - email - phone - emailVerification - phoneVerification - mfa - prefs { - data - } - targets { - _id - _createdAt - _updatedAt - name - userId - providerId - providerType - identifier - expired - } - accessedAt - } -} diff --git a/docs/examples/1.8.x/client-graphql/examples/account/update-m-f-a-challenge.md b/docs/examples/1.8.x/client-graphql/examples/account/update-m-f-a-challenge.md deleted file mode 100644 index bf389f1eff..0000000000 --- a/docs/examples/1.8.x/client-graphql/examples/account/update-m-f-a-challenge.md +++ /dev/null @@ -1,36 +0,0 @@ -mutation { - accountUpdateMFAChallenge( - challengeId: "", - otp: "" - ) { - _id - _createdAt - _updatedAt - userId - expire - provider - providerUid - providerAccessToken - providerAccessTokenExpiry - providerRefreshToken - ip - osCode - osName - osVersion - clientType - clientCode - clientName - clientVersion - clientEngine - clientEngineVersion - deviceName - deviceBrand - deviceModel - countryCode - countryName - current - factors - secret - mfaUpdatedAt - } -} diff --git a/docs/examples/1.8.x/client-graphql/examples/account/update-m-f-a-recovery-codes.md b/docs/examples/1.8.x/client-graphql/examples/account/update-m-f-a-recovery-codes.md deleted file mode 100644 index dc46be71ad..0000000000 --- a/docs/examples/1.8.x/client-graphql/examples/account/update-m-f-a-recovery-codes.md +++ /dev/null @@ -1,5 +0,0 @@ -mutation { - accountUpdateMFARecoveryCodes { - recoveryCodes - } -} diff --git a/docs/examples/1.8.x/client-graphql/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.8.x/client-graphql/examples/account/update-magic-url-session.md similarity index 100% rename from docs/examples/1.8.x/client-graphql/examples/account/update-magic-u-r-l-session.md rename to docs/examples/1.8.x/client-graphql/examples/account/update-magic-url-session.md diff --git a/docs/examples/1.8.x/client-graphql/examples/account/update-mfa-authenticator.md b/docs/examples/1.8.x/client-graphql/examples/account/update-mfa-authenticator.md index 9cfe9150be..b3021b70b8 100644 --- a/docs/examples/1.8.x/client-graphql/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.8.x/client-graphql/examples/account/update-mfa-authenticator.md @@ -1,5 +1,5 @@ mutation { - accountUpdateMfaAuthenticator( + accountUpdateMFAAuthenticator( type: "totp", otp: "" ) { diff --git a/docs/examples/1.8.x/client-graphql/examples/account/update-mfa-challenge.md b/docs/examples/1.8.x/client-graphql/examples/account/update-mfa-challenge.md index 0bcec2157f..bf389f1eff 100644 --- a/docs/examples/1.8.x/client-graphql/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.8.x/client-graphql/examples/account/update-mfa-challenge.md @@ -1,5 +1,5 @@ mutation { - accountUpdateMfaChallenge( + accountUpdateMFAChallenge( challengeId: "", otp: "" ) { diff --git a/docs/examples/1.8.x/client-graphql/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.8.x/client-graphql/examples/account/update-mfa-recovery-codes.md index e706d2b9d7..dc46be71ad 100644 --- a/docs/examples/1.8.x/client-graphql/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/client-graphql/examples/account/update-mfa-recovery-codes.md @@ -1,5 +1,5 @@ mutation { - accountUpdateMfaRecoveryCodes { + accountUpdateMFARecoveryCodes { recoveryCodes } } diff --git a/docs/examples/1.8.x/client-graphql/examples/account/update-m-f-a.md b/docs/examples/1.8.x/client-graphql/examples/account/update-mfa.md similarity index 100% rename from docs/examples/1.8.x/client-graphql/examples/account/update-m-f-a.md rename to docs/examples/1.8.x/client-graphql/examples/account/update-mfa.md diff --git a/docs/examples/1.8.x/client-graphql/examples/account/get-m-f-a-recovery-codes.md b/docs/examples/1.8.x/client-graphql/examples/avatars/get-qr.md similarity index 100% rename from docs/examples/1.8.x/client-graphql/examples/account/get-m-f-a-recovery-codes.md rename to docs/examples/1.8.x/client-graphql/examples/avatars/get-qr.md diff --git a/docs/examples/1.8.x/client-graphql/examples/databases/create-documents.md b/docs/examples/1.8.x/client-graphql/examples/databases/create-documents.md deleted file mode 100644 index 8ce79dcbb5..0000000000 --- a/docs/examples/1.8.x/client-graphql/examples/databases/create-documents.md +++ /dev/null @@ -1,19 +0,0 @@ -mutation { - databasesCreateDocuments( - databaseId: "", - collectionId: "", - documents: [] - ) { - total - documents { - _id - _sequence - _collectionId - _databaseId - _createdAt - _updatedAt - _permissions - data - } - } -} diff --git a/docs/examples/1.8.x/client-graphql/examples/grids/create-row.md b/docs/examples/1.8.x/client-graphql/examples/grids/create-row.md deleted file mode 100644 index cffb7361f2..0000000000 --- a/docs/examples/1.8.x/client-graphql/examples/grids/create-row.md +++ /dev/null @@ -1,18 +0,0 @@ -mutation { - gridsCreateRow( - databaseId: "", - tableId: "", - rowId: "", - data: "{}", - permissions: ["read("any")"] - ) { - _id - _sequence - _tableId - _databaseId - _createdAt - _updatedAt - _permissions - data - } -} diff --git a/docs/examples/1.8.x/client-graphql/examples/grids/delete-row.md b/docs/examples/1.8.x/client-graphql/examples/grids/delete-row.md deleted file mode 100644 index 40dcbdc219..0000000000 --- a/docs/examples/1.8.x/client-graphql/examples/grids/delete-row.md +++ /dev/null @@ -1,9 +0,0 @@ -mutation { - gridsDeleteRow( - databaseId: "", - tableId: "", - rowId: "" - ) { - status - } -} diff --git a/docs/examples/1.8.x/client-graphql/examples/grids/update-row.md b/docs/examples/1.8.x/client-graphql/examples/grids/update-row.md deleted file mode 100644 index 2bb105e8c0..0000000000 --- a/docs/examples/1.8.x/client-graphql/examples/grids/update-row.md +++ /dev/null @@ -1,18 +0,0 @@ -mutation { - gridsUpdateRow( - databaseId: "", - tableId: "", - rowId: "", - data: "{}", - permissions: ["read("any")"] - ) { - _id - _sequence - _tableId - _databaseId - _createdAt - _updatedAt - _permissions - data - } -} diff --git a/docs/examples/1.8.x/client-graphql/examples/grids/upsert-row.md b/docs/examples/1.8.x/client-graphql/examples/grids/upsert-row.md deleted file mode 100644 index f8e0606109..0000000000 --- a/docs/examples/1.8.x/client-graphql/examples/grids/upsert-row.md +++ /dev/null @@ -1,18 +0,0 @@ -mutation { - gridsUpsertRow( - databaseId: "", - tableId: "", - rowId: "", - data: "{}", - permissions: ["read("any")"] - ) { - _id - _sequence - _tableId - _databaseId - _createdAt - _updatedAt - _permissions - data - } -} diff --git a/docs/examples/1.8.x/client-graphql/examples/locale/list-countries-e-u.md b/docs/examples/1.8.x/client-graphql/examples/locale/list-countries-e-u.md deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/docs/examples/1.8.x/client-graphql/examples/account/list-m-f-a-factors.md b/docs/examples/1.8.x/client-graphql/examples/locale/list-countries-eu.md similarity index 100% rename from docs/examples/1.8.x/client-graphql/examples/account/list-m-f-a-factors.md rename to docs/examples/1.8.x/client-graphql/examples/locale/list-countries-eu.md diff --git a/docs/examples/1.8.x/client-react-native/examples/account/create-email-token.md b/docs/examples/1.8.x/client-react-native/examples/account/create-email-token.md index fbb79bf8b6..aef74a8e46 100644 --- a/docs/examples/1.8.x/client-react-native/examples/account/create-email-token.md +++ b/docs/examples/1.8.x/client-react-native/examples/account/create-email-token.md @@ -9,7 +9,7 @@ const account = new Account(client); const result = await account.createEmailToken({ userId: '', email: 'email@example.com', - phrase: false + phrase: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/account/create-j-w-t.md b/docs/examples/1.8.x/client-react-native/examples/account/create-jwt.md similarity index 100% rename from docs/examples/1.8.x/client-react-native/examples/account/create-j-w-t.md rename to docs/examples/1.8.x/client-react-native/examples/account/create-jwt.md diff --git a/docs/examples/1.8.x/client-react-native/examples/account/create-m-f-a-authenticator.md b/docs/examples/1.8.x/client-react-native/examples/account/create-m-f-a-authenticator.md deleted file mode 100644 index d859850f2f..0000000000 --- a/docs/examples/1.8.x/client-react-native/examples/account/create-m-f-a-authenticator.md +++ /dev/null @@ -1,13 +0,0 @@ -import { Client, Account, AuthenticatorType } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const account = new Account(client); - -const result = await account.createMFAAuthenticator({ - type: AuthenticatorType.Totp -}); - -console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/account/create-m-f-a-challenge.md b/docs/examples/1.8.x/client-react-native/examples/account/create-m-f-a-challenge.md deleted file mode 100644 index c7e5f6216a..0000000000 --- a/docs/examples/1.8.x/client-react-native/examples/account/create-m-f-a-challenge.md +++ /dev/null @@ -1,13 +0,0 @@ -import { Client, Account, AuthenticationFactor } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const account = new Account(client); - -const result = await account.createMFAChallenge({ - factor: AuthenticationFactor.Email -}); - -console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/account/create-m-f-a-recovery-codes.md b/docs/examples/1.8.x/client-react-native/examples/account/create-m-f-a-recovery-codes.md deleted file mode 100644 index 22d6a579d6..0000000000 --- a/docs/examples/1.8.x/client-react-native/examples/account/create-m-f-a-recovery-codes.md +++ /dev/null @@ -1,11 +0,0 @@ -import { Client, Account } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const account = new Account(client); - -const result = await account.createMFARecoveryCodes(); - -console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.8.x/client-react-native/examples/account/create-magic-url-token.md similarity index 84% rename from docs/examples/1.8.x/client-react-native/examples/account/create-magic-u-r-l-token.md rename to docs/examples/1.8.x/client-react-native/examples/account/create-magic-url-token.md index a6164b0eb9..5c30ef538e 100644 --- a/docs/examples/1.8.x/client-react-native/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.8.x/client-react-native/examples/account/create-magic-url-token.md @@ -9,8 +9,8 @@ const account = new Account(client); const result = await account.createMagicURLToken({ userId: '', email: 'email@example.com', - url: 'https://example.com', - phrase: false + url: 'https://example.com', // optional + phrase: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/account/create-mfa-authenticator.md b/docs/examples/1.8.x/client-react-native/examples/account/create-mfa-authenticator.md index 92905b299b..d859850f2f 100644 --- a/docs/examples/1.8.x/client-react-native/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.8.x/client-react-native/examples/account/create-mfa-authenticator.md @@ -6,7 +6,7 @@ const client = new Client() const account = new Account(client); -const result = await account.createMfaAuthenticator({ +const result = await account.createMFAAuthenticator({ type: AuthenticatorType.Totp }); diff --git a/docs/examples/1.8.x/client-react-native/examples/account/create-mfa-challenge.md b/docs/examples/1.8.x/client-react-native/examples/account/create-mfa-challenge.md index 77b071eae7..c7e5f6216a 100644 --- a/docs/examples/1.8.x/client-react-native/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.8.x/client-react-native/examples/account/create-mfa-challenge.md @@ -6,7 +6,7 @@ const client = new Client() const account = new Account(client); -const result = await account.createMfaChallenge({ +const result = await account.createMFAChallenge({ factor: AuthenticationFactor.Email }); diff --git a/docs/examples/1.8.x/client-react-native/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.8.x/client-react-native/examples/account/create-mfa-recovery-codes.md index f256be308b..22d6a579d6 100644 --- a/docs/examples/1.8.x/client-react-native/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/client-react-native/examples/account/create-mfa-recovery-codes.md @@ -6,6 +6,6 @@ const client = new Client() const account = new Account(client); -const result = await account.createMfaRecoveryCodes(); +const result = await account.createMFARecoveryCodes(); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/account/create-o-auth2session.md b/docs/examples/1.8.x/client-react-native/examples/account/create-o-auth-2-session.md similarity index 73% rename from docs/examples/1.8.x/client-react-native/examples/account/create-o-auth2session.md rename to docs/examples/1.8.x/client-react-native/examples/account/create-o-auth-2-session.md index c5100f25b5..4212803ca8 100644 --- a/docs/examples/1.8.x/client-react-native/examples/account/create-o-auth2session.md +++ b/docs/examples/1.8.x/client-react-native/examples/account/create-o-auth-2-session.md @@ -8,8 +8,8 @@ const account = new Account(client); account.createOAuth2Session({ provider: OAuthProvider.Amazon, - success: 'https://example.com', - failure: 'https://example.com', - scopes: [] + success: 'https://example.com', // optional + failure: 'https://example.com', // optional + scopes: [] // optional }); diff --git a/docs/examples/1.8.x/client-react-native/examples/account/create-o-auth2token.md b/docs/examples/1.8.x/client-react-native/examples/account/create-o-auth-2-token.md similarity index 73% rename from docs/examples/1.8.x/client-react-native/examples/account/create-o-auth2token.md rename to docs/examples/1.8.x/client-react-native/examples/account/create-o-auth-2-token.md index 2637166ac8..8989e489c2 100644 --- a/docs/examples/1.8.x/client-react-native/examples/account/create-o-auth2token.md +++ b/docs/examples/1.8.x/client-react-native/examples/account/create-o-auth-2-token.md @@ -8,8 +8,8 @@ const account = new Account(client); account.createOAuth2Token({ provider: OAuthProvider.Amazon, - success: 'https://example.com', - failure: 'https://example.com', - scopes: [] + success: 'https://example.com', // optional + failure: 'https://example.com', // optional + scopes: [] // optional }); diff --git a/docs/examples/1.8.x/client-react-native/examples/account/create-push-target.md b/docs/examples/1.8.x/client-react-native/examples/account/create-push-target.md index a5568db144..d3fae6fd84 100644 --- a/docs/examples/1.8.x/client-react-native/examples/account/create-push-target.md +++ b/docs/examples/1.8.x/client-react-native/examples/account/create-push-target.md @@ -9,7 +9,7 @@ const account = new Account(client); const result = await account.createPushTarget({ targetId: '', identifier: '', - providerId: '' + providerId: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/account/create.md b/docs/examples/1.8.x/client-react-native/examples/account/create.md index 43c8f3cda3..2c6850a101 100644 --- a/docs/examples/1.8.x/client-react-native/examples/account/create.md +++ b/docs/examples/1.8.x/client-react-native/examples/account/create.md @@ -10,7 +10,7 @@ const result = await account.create({ userId: '', email: 'email@example.com', password: '', - name: '' + name: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/account/delete-m-f-a-authenticator.md b/docs/examples/1.8.x/client-react-native/examples/account/delete-m-f-a-authenticator.md deleted file mode 100644 index 90a6e347a8..0000000000 --- a/docs/examples/1.8.x/client-react-native/examples/account/delete-m-f-a-authenticator.md +++ /dev/null @@ -1,13 +0,0 @@ -import { Client, Account, AuthenticatorType } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const account = new Account(client); - -const result = await account.deleteMFAAuthenticator({ - type: AuthenticatorType.Totp -}); - -console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/account/delete-mfa-authenticator.md b/docs/examples/1.8.x/client-react-native/examples/account/delete-mfa-authenticator.md index bf6575f868..90a6e347a8 100644 --- a/docs/examples/1.8.x/client-react-native/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.8.x/client-react-native/examples/account/delete-mfa-authenticator.md @@ -6,7 +6,7 @@ const client = new Client() const account = new Account(client); -const result = await account.deleteMfaAuthenticator({ +const result = await account.deleteMFAAuthenticator({ type: AuthenticatorType.Totp }); diff --git a/docs/examples/1.8.x/client-react-native/examples/account/get-m-f-a-recovery-codes.md b/docs/examples/1.8.x/client-react-native/examples/account/get-m-f-a-recovery-codes.md deleted file mode 100644 index 94896eb752..0000000000 --- a/docs/examples/1.8.x/client-react-native/examples/account/get-m-f-a-recovery-codes.md +++ /dev/null @@ -1,11 +0,0 @@ -import { Client, Account } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const account = new Account(client); - -const result = await account.getMFARecoveryCodes(); - -console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.8.x/client-react-native/examples/account/get-mfa-recovery-codes.md index c660a17ab8..94896eb752 100644 --- a/docs/examples/1.8.x/client-react-native/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/client-react-native/examples/account/get-mfa-recovery-codes.md @@ -6,6 +6,6 @@ const client = new Client() const account = new Account(client); -const result = await account.getMfaRecoveryCodes(); +const result = await account.getMFARecoveryCodes(); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/account/list-identities.md b/docs/examples/1.8.x/client-react-native/examples/account/list-identities.md index c9e742a5f4..2a3bbae35d 100644 --- a/docs/examples/1.8.x/client-react-native/examples/account/list-identities.md +++ b/docs/examples/1.8.x/client-react-native/examples/account/list-identities.md @@ -7,7 +7,7 @@ const client = new Client() const account = new Account(client); const result = await account.listIdentities({ - queries: [] + queries: [] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/account/list-logs.md b/docs/examples/1.8.x/client-react-native/examples/account/list-logs.md index 4621a613c9..4bb9f9fd88 100644 --- a/docs/examples/1.8.x/client-react-native/examples/account/list-logs.md +++ b/docs/examples/1.8.x/client-react-native/examples/account/list-logs.md @@ -7,7 +7,7 @@ const client = new Client() const account = new Account(client); const result = await account.listLogs({ - queries: [] + queries: [] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/account/list-m-f-a-factors.md b/docs/examples/1.8.x/client-react-native/examples/account/list-m-f-a-factors.md deleted file mode 100644 index 98ba939768..0000000000 --- a/docs/examples/1.8.x/client-react-native/examples/account/list-m-f-a-factors.md +++ /dev/null @@ -1,11 +0,0 @@ -import { Client, Account } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const account = new Account(client); - -const result = await account.listMFAFactors(); - -console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/account/list-mfa-factors.md b/docs/examples/1.8.x/client-react-native/examples/account/list-mfa-factors.md index 51b76c90e4..98ba939768 100644 --- a/docs/examples/1.8.x/client-react-native/examples/account/list-mfa-factors.md +++ b/docs/examples/1.8.x/client-react-native/examples/account/list-mfa-factors.md @@ -6,6 +6,6 @@ const client = new Client() const account = new Account(client); -const result = await account.listMfaFactors(); +const result = await account.listMFAFactors(); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/account/update-m-f-a-authenticator.md b/docs/examples/1.8.x/client-react-native/examples/account/update-m-f-a-authenticator.md deleted file mode 100644 index 58f2329564..0000000000 --- a/docs/examples/1.8.x/client-react-native/examples/account/update-m-f-a-authenticator.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Account, AuthenticatorType } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const account = new Account(client); - -const result = await account.updateMFAAuthenticator({ - type: AuthenticatorType.Totp, - otp: '' -}); - -console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/account/update-m-f-a-challenge.md b/docs/examples/1.8.x/client-react-native/examples/account/update-m-f-a-challenge.md deleted file mode 100644 index c2ce59f6ef..0000000000 --- a/docs/examples/1.8.x/client-react-native/examples/account/update-m-f-a-challenge.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Account } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const account = new Account(client); - -const result = await account.updateMFAChallenge({ - challengeId: '', - otp: '' -}); - -console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/account/update-m-f-a-recovery-codes.md b/docs/examples/1.8.x/client-react-native/examples/account/update-m-f-a-recovery-codes.md deleted file mode 100644 index 1f7b4f0d96..0000000000 --- a/docs/examples/1.8.x/client-react-native/examples/account/update-m-f-a-recovery-codes.md +++ /dev/null @@ -1,11 +0,0 @@ -import { Client, Account } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const account = new Account(client); - -const result = await account.updateMFARecoveryCodes(); - -console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.8.x/client-react-native/examples/account/update-magic-url-session.md similarity index 100% rename from docs/examples/1.8.x/client-react-native/examples/account/update-magic-u-r-l-session.md rename to docs/examples/1.8.x/client-react-native/examples/account/update-magic-url-session.md diff --git a/docs/examples/1.8.x/client-react-native/examples/account/update-mfa-authenticator.md b/docs/examples/1.8.x/client-react-native/examples/account/update-mfa-authenticator.md index e2476b1f57..58f2329564 100644 --- a/docs/examples/1.8.x/client-react-native/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.8.x/client-react-native/examples/account/update-mfa-authenticator.md @@ -6,7 +6,7 @@ const client = new Client() const account = new Account(client); -const result = await account.updateMfaAuthenticator({ +const result = await account.updateMFAAuthenticator({ type: AuthenticatorType.Totp, otp: '' }); diff --git a/docs/examples/1.8.x/client-react-native/examples/account/update-mfa-challenge.md b/docs/examples/1.8.x/client-react-native/examples/account/update-mfa-challenge.md index ca254c0aad..c2ce59f6ef 100644 --- a/docs/examples/1.8.x/client-react-native/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.8.x/client-react-native/examples/account/update-mfa-challenge.md @@ -6,7 +6,7 @@ const client = new Client() const account = new Account(client); -const result = await account.updateMfaChallenge({ +const result = await account.updateMFAChallenge({ challengeId: '', otp: '' }); diff --git a/docs/examples/1.8.x/client-react-native/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.8.x/client-react-native/examples/account/update-mfa-recovery-codes.md index 2ed9bb0204..1f7b4f0d96 100644 --- a/docs/examples/1.8.x/client-react-native/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/client-react-native/examples/account/update-mfa-recovery-codes.md @@ -6,6 +6,6 @@ const client = new Client() const account = new Account(client); -const result = await account.updateMfaRecoveryCodes(); +const result = await account.updateMFARecoveryCodes(); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/account/update-m-f-a.md b/docs/examples/1.8.x/client-react-native/examples/account/update-mfa.md similarity index 100% rename from docs/examples/1.8.x/client-react-native/examples/account/update-m-f-a.md rename to docs/examples/1.8.x/client-react-native/examples/account/update-mfa.md diff --git a/docs/examples/1.8.x/client-react-native/examples/account/update-password.md b/docs/examples/1.8.x/client-react-native/examples/account/update-password.md index 0855e98002..89f99d9790 100644 --- a/docs/examples/1.8.x/client-react-native/examples/account/update-password.md +++ b/docs/examples/1.8.x/client-react-native/examples/account/update-password.md @@ -8,7 +8,7 @@ const account = new Account(client); const result = await account.updatePassword({ password: '', - oldPassword: 'password' + oldPassword: 'password' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/avatars/get-browser.md b/docs/examples/1.8.x/client-react-native/examples/avatars/get-browser.md index 410e4255ff..6506f2e715 100644 --- a/docs/examples/1.8.x/client-react-native/examples/avatars/get-browser.md +++ b/docs/examples/1.8.x/client-react-native/examples/avatars/get-browser.md @@ -8,9 +8,9 @@ const avatars = new Avatars(client); const result = avatars.getBrowser({ code: Browser.AvantBrowser, - width: 0, - height: 0, - quality: -1 + width: 0, // optional + height: 0, // optional + quality: -1 // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/avatars/get-credit-card.md b/docs/examples/1.8.x/client-react-native/examples/avatars/get-credit-card.md index 466dc74b72..05d3a53b4c 100644 --- a/docs/examples/1.8.x/client-react-native/examples/avatars/get-credit-card.md +++ b/docs/examples/1.8.x/client-react-native/examples/avatars/get-credit-card.md @@ -8,9 +8,9 @@ const avatars = new Avatars(client); const result = avatars.getCreditCard({ code: CreditCard.AmericanExpress, - width: 0, - height: 0, - quality: -1 + width: 0, // optional + height: 0, // optional + quality: -1 // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/avatars/get-flag.md b/docs/examples/1.8.x/client-react-native/examples/avatars/get-flag.md index 25732a8816..651771a0ef 100644 --- a/docs/examples/1.8.x/client-react-native/examples/avatars/get-flag.md +++ b/docs/examples/1.8.x/client-react-native/examples/avatars/get-flag.md @@ -8,9 +8,9 @@ const avatars = new Avatars(client); const result = avatars.getFlag({ code: Flag.Afghanistan, - width: 0, - height: 0, - quality: -1 + width: 0, // optional + height: 0, // optional + quality: -1 // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/avatars/get-image.md b/docs/examples/1.8.x/client-react-native/examples/avatars/get-image.md index 9128002ddd..e3b89c31d7 100644 --- a/docs/examples/1.8.x/client-react-native/examples/avatars/get-image.md +++ b/docs/examples/1.8.x/client-react-native/examples/avatars/get-image.md @@ -8,8 +8,8 @@ const avatars = new Avatars(client); const result = avatars.getImage({ url: 'https://example.com', - width: 0, - height: 0 + width: 0, // optional + height: 0 // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/avatars/get-initials.md b/docs/examples/1.8.x/client-react-native/examples/avatars/get-initials.md index 2da8ba379d..3abc399a24 100644 --- a/docs/examples/1.8.x/client-react-native/examples/avatars/get-initials.md +++ b/docs/examples/1.8.x/client-react-native/examples/avatars/get-initials.md @@ -7,10 +7,10 @@ const client = new Client() const avatars = new Avatars(client); const result = avatars.getInitials({ - name: '', - width: 0, - height: 0, - background: '' + name: '', // optional + width: 0, // optional + height: 0, // optional + background: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/avatars/get-q-r.md b/docs/examples/1.8.x/client-react-native/examples/avatars/get-qr.md similarity index 80% rename from docs/examples/1.8.x/client-react-native/examples/avatars/get-q-r.md rename to docs/examples/1.8.x/client-react-native/examples/avatars/get-qr.md index 9fa9f12324..3cbe72a920 100644 --- a/docs/examples/1.8.x/client-react-native/examples/avatars/get-q-r.md +++ b/docs/examples/1.8.x/client-react-native/examples/avatars/get-qr.md @@ -8,9 +8,9 @@ const avatars = new Avatars(client); const result = avatars.getQR({ text: '', - size: 1, - margin: 0, - download: false + size: 1, // optional + margin: 0, // optional + download: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/databases/create-document.md b/docs/examples/1.8.x/client-react-native/examples/databases/create-document.md index 2576ab5af6..d0d25bd87d 100644 --- a/docs/examples/1.8.x/client-react-native/examples/databases/create-document.md +++ b/docs/examples/1.8.x/client-react-native/examples/databases/create-document.md @@ -11,7 +11,7 @@ const result = await databases.createDocument({ collectionId: '', documentId: '', data: {}, - permissions: ["read("any")"] + permissions: ["read("any")"] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/databases/create-documents.md b/docs/examples/1.8.x/client-react-native/examples/databases/create-documents.md deleted file mode 100644 index c0a8f1d03c..0000000000 --- a/docs/examples/1.8.x/client-react-native/examples/databases/create-documents.md +++ /dev/null @@ -1,16 +0,0 @@ -import { Client, Databases } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setAdmin('') // - .setKey(''); // - -const databases = new Databases(client); - -const result = await databases.createDocuments( - '', // databaseId - '', // collectionId - [] // documents -); - -console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/databases/decrement-document-attribute.md b/docs/examples/1.8.x/client-react-native/examples/databases/decrement-document-attribute.md index 476b10e009..8eb4387cfa 100644 --- a/docs/examples/1.8.x/client-react-native/examples/databases/decrement-document-attribute.md +++ b/docs/examples/1.8.x/client-react-native/examples/databases/decrement-document-attribute.md @@ -11,8 +11,8 @@ const result = await databases.decrementDocumentAttribute({ collectionId: '', documentId: '', attribute: '', - value: null, - min: null + value: null, // optional + min: null // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/databases/get-document.md b/docs/examples/1.8.x/client-react-native/examples/databases/get-document.md index 962dc08349..7d28ee03d5 100644 --- a/docs/examples/1.8.x/client-react-native/examples/databases/get-document.md +++ b/docs/examples/1.8.x/client-react-native/examples/databases/get-document.md @@ -10,7 +10,7 @@ const result = await databases.getDocument({ databaseId: '', collectionId: '', documentId: '', - queries: [] + queries: [] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/databases/increment-document-attribute.md b/docs/examples/1.8.x/client-react-native/examples/databases/increment-document-attribute.md index 269e7c88ff..8cb3d816cb 100644 --- a/docs/examples/1.8.x/client-react-native/examples/databases/increment-document-attribute.md +++ b/docs/examples/1.8.x/client-react-native/examples/databases/increment-document-attribute.md @@ -11,8 +11,8 @@ const result = await databases.incrementDocumentAttribute({ collectionId: '', documentId: '', attribute: '', - value: null, - max: null + value: null, // optional + max: null // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/databases/list-documents.md b/docs/examples/1.8.x/client-react-native/examples/databases/list-documents.md index 10bf95da8b..8d210b08e9 100644 --- a/docs/examples/1.8.x/client-react-native/examples/databases/list-documents.md +++ b/docs/examples/1.8.x/client-react-native/examples/databases/list-documents.md @@ -9,7 +9,7 @@ const databases = new Databases(client); const result = await databases.listDocuments({ databaseId: '', collectionId: '', - queries: [] + queries: [] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/databases/update-document.md b/docs/examples/1.8.x/client-react-native/examples/databases/update-document.md index d16b2d86fb..ce4a6f2222 100644 --- a/docs/examples/1.8.x/client-react-native/examples/databases/update-document.md +++ b/docs/examples/1.8.x/client-react-native/examples/databases/update-document.md @@ -10,8 +10,8 @@ const result = await databases.updateDocument({ databaseId: '', collectionId: '', documentId: '', - data: {}, - permissions: ["read("any")"] + data: {}, // optional + permissions: ["read("any")"] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/databases/upsert-document.md b/docs/examples/1.8.x/client-react-native/examples/databases/upsert-document.md index 931d2337dd..a351ed7d4d 100644 --- a/docs/examples/1.8.x/client-react-native/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/client-react-native/examples/databases/upsert-document.md @@ -11,7 +11,7 @@ const result = await databases.upsertDocument({ collectionId: '', documentId: '', data: {}, - permissions: ["read("any")"] + permissions: ["read("any")"] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/functions/create-execution.md b/docs/examples/1.8.x/client-react-native/examples/functions/create-execution.md index 4f5de5f4d6..b9e6682f3e 100644 --- a/docs/examples/1.8.x/client-react-native/examples/functions/create-execution.md +++ b/docs/examples/1.8.x/client-react-native/examples/functions/create-execution.md @@ -8,12 +8,12 @@ const functions = new Functions(client); const result = await functions.createExecution({ functionId: '', - body: '', - async: false, - path: '', - method: ExecutionMethod.GET, - headers: {}, - scheduledAt: '' + body: '', // optional + async: false, // optional + path: '', // optional + method: ExecutionMethod.GET, // optional + headers: {}, // optional + scheduledAt: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/functions/list-executions.md b/docs/examples/1.8.x/client-react-native/examples/functions/list-executions.md index 3fbb91e48d..7b046dde82 100644 --- a/docs/examples/1.8.x/client-react-native/examples/functions/list-executions.md +++ b/docs/examples/1.8.x/client-react-native/examples/functions/list-executions.md @@ -8,7 +8,7 @@ const functions = new Functions(client); const result = await functions.listExecutions({ functionId: '', - queries: [] + queries: [] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/grids/create-row.md b/docs/examples/1.8.x/client-react-native/examples/grids/create-row.md deleted file mode 100644 index 9fdbce2dd9..0000000000 --- a/docs/examples/1.8.x/client-react-native/examples/grids/create-row.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Grids } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.createRow( - '', // databaseId - '', // tableId - '', // rowId - {}, // data - ["read("any")"] // permissions (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/grids/delete-row.md b/docs/examples/1.8.x/client-react-native/examples/grids/delete-row.md deleted file mode 100644 index 33a5a50a69..0000000000 --- a/docs/examples/1.8.x/client-react-native/examples/grids/delete-row.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Grids } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.deleteRow( - '', // databaseId - '', // tableId - '' // rowId -); - -console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/grids/get-row.md b/docs/examples/1.8.x/client-react-native/examples/grids/get-row.md deleted file mode 100644 index 7df0636b2e..0000000000 --- a/docs/examples/1.8.x/client-react-native/examples/grids/get-row.md +++ /dev/null @@ -1,16 +0,0 @@ -import { Client, Grids } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.getRow( - '', // databaseId - '', // tableId - '', // rowId - [] // queries (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/grids/list-rows.md b/docs/examples/1.8.x/client-react-native/examples/grids/list-rows.md deleted file mode 100644 index 3fd58773ef..0000000000 --- a/docs/examples/1.8.x/client-react-native/examples/grids/list-rows.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Grids } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.listRows( - '', // databaseId - '', // tableId - [] // queries (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/grids/update-row.md b/docs/examples/1.8.x/client-react-native/examples/grids/update-row.md deleted file mode 100644 index 39b147758f..0000000000 --- a/docs/examples/1.8.x/client-react-native/examples/grids/update-row.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Grids } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.updateRow( - '', // databaseId - '', // tableId - '', // rowId - {}, // data (optional) - ["read("any")"] // permissions (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/grids/upsert-row.md b/docs/examples/1.8.x/client-react-native/examples/grids/upsert-row.md deleted file mode 100644 index 54443a6a4d..0000000000 --- a/docs/examples/1.8.x/client-react-native/examples/grids/upsert-row.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Grids } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.upsertRow( - '', // databaseId - '', // tableId - '', // rowId - {}, // data (optional) - ["read("any")"] // permissions (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/locale/list-countries-e-u.md b/docs/examples/1.8.x/client-react-native/examples/locale/list-countries-eu.md similarity index 100% rename from docs/examples/1.8.x/client-react-native/examples/locale/list-countries-e-u.md rename to docs/examples/1.8.x/client-react-native/examples/locale/list-countries-eu.md diff --git a/docs/examples/1.8.x/client-react-native/examples/storage/create-file.md b/docs/examples/1.8.x/client-react-native/examples/storage/create-file.md index cb71753c7e..4a44d3ca5e 100644 --- a/docs/examples/1.8.x/client-react-native/examples/storage/create-file.md +++ b/docs/examples/1.8.x/client-react-native/examples/storage/create-file.md @@ -10,7 +10,7 @@ const result = await storage.createFile({ bucketId: '', fileId: '', file: await pickSingle(), - permissions: ["read("any")"] + permissions: ["read("any")"] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/storage/get-file-download.md b/docs/examples/1.8.x/client-react-native/examples/storage/get-file-download.md index db8157e7fe..317141c87d 100644 --- a/docs/examples/1.8.x/client-react-native/examples/storage/get-file-download.md +++ b/docs/examples/1.8.x/client-react-native/examples/storage/get-file-download.md @@ -9,7 +9,7 @@ const storage = new Storage(client); const result = storage.getFileDownload({ bucketId: '', fileId: '', - token: '' + token: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/storage/get-file-preview.md b/docs/examples/1.8.x/client-react-native/examples/storage/get-file-preview.md index cbf9424a08..94623fb011 100644 --- a/docs/examples/1.8.x/client-react-native/examples/storage/get-file-preview.md +++ b/docs/examples/1.8.x/client-react-native/examples/storage/get-file-preview.md @@ -9,18 +9,18 @@ const storage = new Storage(client); const result = storage.getFilePreview({ bucketId: '', fileId: '', - width: 0, - height: 0, - gravity: ImageGravity.Center, - quality: -1, - borderWidth: 0, - borderColor: '', - borderRadius: 0, - opacity: 0, - rotation: -360, - background: '', - output: ImageFormat.Jpg, - token: '' + width: 0, // optional + height: 0, // optional + gravity: ImageGravity.Center, // optional + quality: -1, // optional + borderWidth: 0, // optional + borderColor: '', // optional + borderRadius: 0, // optional + opacity: 0, // optional + rotation: -360, // optional + background: '', // optional + output: ImageFormat.Jpg, // optional + token: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/storage/get-file-view.md b/docs/examples/1.8.x/client-react-native/examples/storage/get-file-view.md index f7f010bef2..bacd1088c9 100644 --- a/docs/examples/1.8.x/client-react-native/examples/storage/get-file-view.md +++ b/docs/examples/1.8.x/client-react-native/examples/storage/get-file-view.md @@ -9,7 +9,7 @@ const storage = new Storage(client); const result = storage.getFileView({ bucketId: '', fileId: '', - token: '' + token: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/storage/list-files.md b/docs/examples/1.8.x/client-react-native/examples/storage/list-files.md index 735b5ba557..4c6e159d38 100644 --- a/docs/examples/1.8.x/client-react-native/examples/storage/list-files.md +++ b/docs/examples/1.8.x/client-react-native/examples/storage/list-files.md @@ -8,8 +8,8 @@ const storage = new Storage(client); const result = await storage.listFiles({ bucketId: '', - queries: [], - search: '' + queries: [], // optional + search: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/storage/update-file.md b/docs/examples/1.8.x/client-react-native/examples/storage/update-file.md index 642f9865ae..2a8092f86d 100644 --- a/docs/examples/1.8.x/client-react-native/examples/storage/update-file.md +++ b/docs/examples/1.8.x/client-react-native/examples/storage/update-file.md @@ -9,8 +9,8 @@ const storage = new Storage(client); const result = await storage.updateFile({ bucketId: '', fileId: '', - name: '', - permissions: ["read("any")"] + name: '', // optional + permissions: ["read("any")"] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/tablesdb/create-row.md b/docs/examples/1.8.x/client-react-native/examples/tablesdb/create-row.md index c9332e53f1..43018476f3 100644 --- a/docs/examples/1.8.x/client-react-native/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/client-react-native/examples/tablesdb/create-row.md @@ -11,7 +11,7 @@ const result = await tablesDB.createRow({ tableId: '', rowId: '', data: {}, - permissions: ["read("any")"] + permissions: ["read("any")"] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/tablesdb/decrement-row-column.md b/docs/examples/1.8.x/client-react-native/examples/tablesdb/decrement-row-column.md index f11eef4be8..6b47c18cf9 100644 --- a/docs/examples/1.8.x/client-react-native/examples/tablesdb/decrement-row-column.md +++ b/docs/examples/1.8.x/client-react-native/examples/tablesdb/decrement-row-column.md @@ -11,8 +11,8 @@ const result = await tablesDB.decrementRowColumn({ tableId: '', rowId: '', column: '', - value: null, - min: null + value: null, // optional + min: null // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/tablesdb/get-row.md b/docs/examples/1.8.x/client-react-native/examples/tablesdb/get-row.md index 798298fe60..081db46f18 100644 --- a/docs/examples/1.8.x/client-react-native/examples/tablesdb/get-row.md +++ b/docs/examples/1.8.x/client-react-native/examples/tablesdb/get-row.md @@ -10,7 +10,7 @@ const result = await tablesDB.getRow({ databaseId: '', tableId: '', rowId: '', - queries: [] + queries: [] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/tablesdb/increment-row-column.md b/docs/examples/1.8.x/client-react-native/examples/tablesdb/increment-row-column.md index b9126dd4c5..62b7dd0c21 100644 --- a/docs/examples/1.8.x/client-react-native/examples/tablesdb/increment-row-column.md +++ b/docs/examples/1.8.x/client-react-native/examples/tablesdb/increment-row-column.md @@ -11,8 +11,8 @@ const result = await tablesDB.incrementRowColumn({ tableId: '', rowId: '', column: '', - value: null, - max: null + value: null, // optional + max: null // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/tablesdb/list-rows.md b/docs/examples/1.8.x/client-react-native/examples/tablesdb/list-rows.md index e6d2acfd24..6148e97e90 100644 --- a/docs/examples/1.8.x/client-react-native/examples/tablesdb/list-rows.md +++ b/docs/examples/1.8.x/client-react-native/examples/tablesdb/list-rows.md @@ -9,7 +9,7 @@ const tablesDB = new TablesDB(client); const result = await tablesDB.listRows({ databaseId: '', tableId: '', - queries: [] + queries: [] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/tablesdb/update-row.md b/docs/examples/1.8.x/client-react-native/examples/tablesdb/update-row.md index 6d026eb25a..01ed6e6acc 100644 --- a/docs/examples/1.8.x/client-react-native/examples/tablesdb/update-row.md +++ b/docs/examples/1.8.x/client-react-native/examples/tablesdb/update-row.md @@ -10,8 +10,8 @@ const result = await tablesDB.updateRow({ databaseId: '', tableId: '', rowId: '', - data: {}, - permissions: ["read("any")"] + data: {}, // optional + permissions: ["read("any")"] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/tablesdb/upsert-row.md b/docs/examples/1.8.x/client-react-native/examples/tablesdb/upsert-row.md index bf1589ae88..72fad15ac4 100644 --- a/docs/examples/1.8.x/client-react-native/examples/tablesdb/upsert-row.md +++ b/docs/examples/1.8.x/client-react-native/examples/tablesdb/upsert-row.md @@ -10,8 +10,8 @@ const result = await tablesDB.upsertRow({ databaseId: '', tableId: '', rowId: '', - data: {}, - permissions: ["read("any")"] + data: {}, // optional + permissions: ["read("any")"] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/teams/create-membership.md b/docs/examples/1.8.x/client-react-native/examples/teams/create-membership.md index ae69fcf399..e89d2deddb 100644 --- a/docs/examples/1.8.x/client-react-native/examples/teams/create-membership.md +++ b/docs/examples/1.8.x/client-react-native/examples/teams/create-membership.md @@ -9,11 +9,11 @@ const teams = new Teams(client); const result = await teams.createMembership({ teamId: '', roles: [], - email: 'email@example.com', - userId: '', - phone: '+12065550100', - url: 'https://example.com', - name: '' + email: 'email@example.com', // optional + userId: '', // optional + phone: '+12065550100', // optional + url: 'https://example.com', // optional + name: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/teams/create.md b/docs/examples/1.8.x/client-react-native/examples/teams/create.md index 1e203efb1d..6c8dbbba49 100644 --- a/docs/examples/1.8.x/client-react-native/examples/teams/create.md +++ b/docs/examples/1.8.x/client-react-native/examples/teams/create.md @@ -9,7 +9,7 @@ const teams = new Teams(client); const result = await teams.create({ teamId: '', name: '', - roles: [] + roles: [] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/teams/list-memberships.md b/docs/examples/1.8.x/client-react-native/examples/teams/list-memberships.md index 3df8a6b709..12f71549b5 100644 --- a/docs/examples/1.8.x/client-react-native/examples/teams/list-memberships.md +++ b/docs/examples/1.8.x/client-react-native/examples/teams/list-memberships.md @@ -8,8 +8,8 @@ const teams = new Teams(client); const result = await teams.listMemberships({ teamId: '', - queries: [], - search: '' + queries: [], // optional + search: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-react-native/examples/teams/list.md b/docs/examples/1.8.x/client-react-native/examples/teams/list.md index 83c898264a..f9ca4c4054 100644 --- a/docs/examples/1.8.x/client-react-native/examples/teams/list.md +++ b/docs/examples/1.8.x/client-react-native/examples/teams/list.md @@ -7,8 +7,8 @@ const client = new Client() const teams = new Teams(client); const result = await teams.list({ - queries: [], - search: '' + queries: [], // optional + search: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-rest/examples/account/create-j-w-t.md b/docs/examples/1.8.x/client-rest/examples/account/create-jwt.md similarity index 100% rename from docs/examples/1.8.x/client-rest/examples/account/create-j-w-t.md rename to docs/examples/1.8.x/client-rest/examples/account/create-jwt.md diff --git a/docs/examples/1.8.x/client-rest/examples/account/create-m-f-a-authenticator.md b/docs/examples/1.8.x/client-rest/examples/account/create-m-f-a-authenticator.md deleted file mode 100644 index 62a068b6cf..0000000000 --- a/docs/examples/1.8.x/client-rest/examples/account/create-m-f-a-authenticator.md +++ /dev/null @@ -1,8 +0,0 @@ -POST /v1/account/mfa/authenticators/{type} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Session: -X-Appwrite-JWT: - diff --git a/docs/examples/1.8.x/client-rest/examples/account/create-m-f-a-challenge.md b/docs/examples/1.8.x/client-rest/examples/account/create-m-f-a-challenge.md deleted file mode 100644 index dd5ef4c731..0000000000 --- a/docs/examples/1.8.x/client-rest/examples/account/create-m-f-a-challenge.md +++ /dev/null @@ -1,9 +0,0 @@ -POST /v1/account/mfa/challenge HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: - -{ - "factor": "email" -} diff --git a/docs/examples/1.8.x/client-rest/examples/account/create-m-f-a-recovery-codes.md b/docs/examples/1.8.x/client-rest/examples/account/create-m-f-a-recovery-codes.md deleted file mode 100644 index f09323df0b..0000000000 --- a/docs/examples/1.8.x/client-rest/examples/account/create-m-f-a-recovery-codes.md +++ /dev/null @@ -1,8 +0,0 @@ -POST /v1/account/mfa/recovery-codes HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Session: -X-Appwrite-JWT: - diff --git a/docs/examples/1.8.x/client-rest/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.8.x/client-rest/examples/account/create-magic-url-token.md similarity index 100% rename from docs/examples/1.8.x/client-rest/examples/account/create-magic-u-r-l-token.md rename to docs/examples/1.8.x/client-rest/examples/account/create-magic-url-token.md diff --git a/docs/examples/1.8.x/client-rest/examples/account/create-o-auth2session.md b/docs/examples/1.8.x/client-rest/examples/account/create-o-auth-2-session.md similarity index 100% rename from docs/examples/1.8.x/client-rest/examples/account/create-o-auth2session.md rename to docs/examples/1.8.x/client-rest/examples/account/create-o-auth-2-session.md diff --git a/docs/examples/1.8.x/client-rest/examples/account/create-o-auth2token.md b/docs/examples/1.8.x/client-rest/examples/account/create-o-auth-2-token.md similarity index 100% rename from docs/examples/1.8.x/client-rest/examples/account/create-o-auth2token.md rename to docs/examples/1.8.x/client-rest/examples/account/create-o-auth-2-token.md diff --git a/docs/examples/1.8.x/client-rest/examples/account/delete-m-f-a-authenticator.md b/docs/examples/1.8.x/client-rest/examples/account/delete-m-f-a-authenticator.md deleted file mode 100644 index a0eb5a0869..0000000000 --- a/docs/examples/1.8.x/client-rest/examples/account/delete-m-f-a-authenticator.md +++ /dev/null @@ -1,8 +0,0 @@ -DELETE /v1/account/mfa/authenticators/{type} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Session: -X-Appwrite-JWT: - diff --git a/docs/examples/1.8.x/client-rest/examples/account/get-m-f-a-recovery-codes.md b/docs/examples/1.8.x/client-rest/examples/account/get-m-f-a-recovery-codes.md deleted file mode 100644 index 2ab10a2475..0000000000 --- a/docs/examples/1.8.x/client-rest/examples/account/get-m-f-a-recovery-codes.md +++ /dev/null @@ -1,6 +0,0 @@ -GET /v1/account/mfa/recovery-codes HTTP/1.1 -Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Session: -X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/list-m-f-a-factors.md b/docs/examples/1.8.x/client-rest/examples/account/list-m-f-a-factors.md deleted file mode 100644 index c591143d4e..0000000000 --- a/docs/examples/1.8.x/client-rest/examples/account/list-m-f-a-factors.md +++ /dev/null @@ -1,6 +0,0 @@ -GET /v1/account/mfa/factors HTTP/1.1 -Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Session: -X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/account/update-m-f-a-authenticator.md b/docs/examples/1.8.x/client-rest/examples/account/update-m-f-a-authenticator.md deleted file mode 100644 index 780472291c..0000000000 --- a/docs/examples/1.8.x/client-rest/examples/account/update-m-f-a-authenticator.md +++ /dev/null @@ -1,11 +0,0 @@ -PUT /v1/account/mfa/authenticators/{type} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Session: -X-Appwrite-JWT: - -{ - "otp": "" -} diff --git a/docs/examples/1.8.x/client-rest/examples/account/update-m-f-a-challenge.md b/docs/examples/1.8.x/client-rest/examples/account/update-m-f-a-challenge.md deleted file mode 100644 index b6a7e92b28..0000000000 --- a/docs/examples/1.8.x/client-rest/examples/account/update-m-f-a-challenge.md +++ /dev/null @@ -1,12 +0,0 @@ -PUT /v1/account/mfa/challenge HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Session: -X-Appwrite-JWT: - -{ - "challengeId": "", - "otp": "" -} diff --git a/docs/examples/1.8.x/client-rest/examples/account/update-m-f-a-recovery-codes.md b/docs/examples/1.8.x/client-rest/examples/account/update-m-f-a-recovery-codes.md deleted file mode 100644 index 74e9225f3e..0000000000 --- a/docs/examples/1.8.x/client-rest/examples/account/update-m-f-a-recovery-codes.md +++ /dev/null @@ -1,8 +0,0 @@ -PATCH /v1/account/mfa/recovery-codes HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Session: -X-Appwrite-JWT: - diff --git a/docs/examples/1.8.x/client-rest/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.8.x/client-rest/examples/account/update-magic-url-session.md similarity index 100% rename from docs/examples/1.8.x/client-rest/examples/account/update-magic-u-r-l-session.md rename to docs/examples/1.8.x/client-rest/examples/account/update-magic-url-session.md diff --git a/docs/examples/1.8.x/client-rest/examples/account/update-m-f-a.md b/docs/examples/1.8.x/client-rest/examples/account/update-mfa.md similarity index 100% rename from docs/examples/1.8.x/client-rest/examples/account/update-m-f-a.md rename to docs/examples/1.8.x/client-rest/examples/account/update-mfa.md diff --git a/docs/examples/1.8.x/client-rest/examples/avatars/get-q-r.md b/docs/examples/1.8.x/client-rest/examples/avatars/get-qr.md similarity index 100% rename from docs/examples/1.8.x/client-rest/examples/avatars/get-q-r.md rename to docs/examples/1.8.x/client-rest/examples/avatars/get-qr.md diff --git a/docs/examples/1.8.x/client-rest/examples/databases/create-documents.md b/docs/examples/1.8.x/client-rest/examples/databases/create-documents.md deleted file mode 100644 index e4d2b956e0..0000000000 --- a/docs/examples/1.8.x/client-rest/examples/databases/create-documents.md +++ /dev/null @@ -1,11 +0,0 @@ -POST /v1/databases/{databaseId}/collections/{collectionId}/documents HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.7.0 -X-Appwrite-Project: -X-Appwrite-Session: -X-Appwrite-JWT: - -{ - "documents": [] -} diff --git a/docs/examples/1.8.x/client-rest/examples/grids/create-row.md b/docs/examples/1.8.x/client-rest/examples/grids/create-row.md deleted file mode 100644 index 98b261ecba..0000000000 --- a/docs/examples/1.8.x/client-rest/examples/grids/create-row.md +++ /dev/null @@ -1,13 +0,0 @@ -POST /v1/databases/{databaseId}/grids/tables/{tableId}/rows HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Session: -X-Appwrite-JWT: - -{ - "rowId": "", - "data": {}, - "permissions": ["read(\"any\")"] -} diff --git a/docs/examples/1.8.x/client-rest/examples/grids/delete-row.md b/docs/examples/1.8.x/client-rest/examples/grids/delete-row.md deleted file mode 100644 index 6f702a8526..0000000000 --- a/docs/examples/1.8.x/client-rest/examples/grids/delete-row.md +++ /dev/null @@ -1,8 +0,0 @@ -DELETE /v1/databases/{databaseId}/grids/tables/{tableId}/rows/{rowId} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Session: -X-Appwrite-JWT: - diff --git a/docs/examples/1.8.x/client-rest/examples/grids/get-row.md b/docs/examples/1.8.x/client-rest/examples/grids/get-row.md deleted file mode 100644 index 876fe0f796..0000000000 --- a/docs/examples/1.8.x/client-rest/examples/grids/get-row.md +++ /dev/null @@ -1,6 +0,0 @@ -GET /v1/databases/{databaseId}/grids/tables/{tableId}/rows/{rowId} HTTP/1.1 -Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Session: -X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/grids/list-rows.md b/docs/examples/1.8.x/client-rest/examples/grids/list-rows.md deleted file mode 100644 index 86751cfcaf..0000000000 --- a/docs/examples/1.8.x/client-rest/examples/grids/list-rows.md +++ /dev/null @@ -1,6 +0,0 @@ -GET /v1/databases/{databaseId}/grids/tables/{tableId}/rows HTTP/1.1 -Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Session: -X-Appwrite-JWT: diff --git a/docs/examples/1.8.x/client-rest/examples/grids/update-row.md b/docs/examples/1.8.x/client-rest/examples/grids/update-row.md deleted file mode 100644 index bacfb5389a..0000000000 --- a/docs/examples/1.8.x/client-rest/examples/grids/update-row.md +++ /dev/null @@ -1,12 +0,0 @@ -PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/rows/{rowId} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Session: -X-Appwrite-JWT: - -{ - "data": {}, - "permissions": ["read(\"any\")"] -} diff --git a/docs/examples/1.8.x/client-rest/examples/grids/upsert-row.md b/docs/examples/1.8.x/client-rest/examples/grids/upsert-row.md deleted file mode 100644 index 7368fc436d..0000000000 --- a/docs/examples/1.8.x/client-rest/examples/grids/upsert-row.md +++ /dev/null @@ -1,12 +0,0 @@ -PUT /v1/databases/{databaseId}/grids/tables/{tableId}/rows/{rowId} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: -X-Appwrite-Session: -X-Appwrite-JWT: - -{ - "data": {}, - "permissions": ["read(\"any\")"] -} diff --git a/docs/examples/1.8.x/client-rest/examples/locale/list-countries-e-u.md b/docs/examples/1.8.x/client-rest/examples/locale/list-countries-eu.md similarity index 100% rename from docs/examples/1.8.x/client-rest/examples/locale/list-countries-e-u.md rename to docs/examples/1.8.x/client-rest/examples/locale/list-countries-eu.md diff --git a/docs/examples/1.8.x/client-web/examples/account/create-email-token.md b/docs/examples/1.8.x/client-web/examples/account/create-email-token.md index 68152310d4..e0c4cdaaf8 100644 --- a/docs/examples/1.8.x/client-web/examples/account/create-email-token.md +++ b/docs/examples/1.8.x/client-web/examples/account/create-email-token.md @@ -9,7 +9,7 @@ const account = new Account(client); const result = await account.createEmailToken({ userId: '', email: 'email@example.com', - phrase: false + phrase: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/account/create-j-w-t.md b/docs/examples/1.8.x/client-web/examples/account/create-jwt.md similarity index 100% rename from docs/examples/1.8.x/client-web/examples/account/create-j-w-t.md rename to docs/examples/1.8.x/client-web/examples/account/create-jwt.md diff --git a/docs/examples/1.8.x/client-web/examples/account/create-m-f-a-authenticator.md b/docs/examples/1.8.x/client-web/examples/account/create-m-f-a-authenticator.md deleted file mode 100644 index 154be4e185..0000000000 --- a/docs/examples/1.8.x/client-web/examples/account/create-m-f-a-authenticator.md +++ /dev/null @@ -1,13 +0,0 @@ -import { Client, Account, AuthenticatorType } from "appwrite"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const account = new Account(client); - -const result = await account.createMFAAuthenticator({ - type: AuthenticatorType.Totp -}); - -console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/account/create-m-f-a-challenge.md b/docs/examples/1.8.x/client-web/examples/account/create-m-f-a-challenge.md deleted file mode 100644 index 1328305538..0000000000 --- a/docs/examples/1.8.x/client-web/examples/account/create-m-f-a-challenge.md +++ /dev/null @@ -1,13 +0,0 @@ -import { Client, Account, AuthenticationFactor } from "appwrite"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const account = new Account(client); - -const result = await account.createMFAChallenge({ - factor: AuthenticationFactor.Email -}); - -console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/account/create-m-f-a-recovery-codes.md b/docs/examples/1.8.x/client-web/examples/account/create-m-f-a-recovery-codes.md deleted file mode 100644 index d9041f273d..0000000000 --- a/docs/examples/1.8.x/client-web/examples/account/create-m-f-a-recovery-codes.md +++ /dev/null @@ -1,11 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const account = new Account(client); - -const result = await account.createMFARecoveryCodes(); - -console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.8.x/client-web/examples/account/create-magic-url-token.md similarity index 83% rename from docs/examples/1.8.x/client-web/examples/account/create-magic-u-r-l-token.md rename to docs/examples/1.8.x/client-web/examples/account/create-magic-url-token.md index 363bfaf126..16d35672b4 100644 --- a/docs/examples/1.8.x/client-web/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.8.x/client-web/examples/account/create-magic-url-token.md @@ -9,8 +9,8 @@ const account = new Account(client); const result = await account.createMagicURLToken({ userId: '', email: 'email@example.com', - url: 'https://example.com', - phrase: false + url: 'https://example.com', // optional + phrase: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/account/create-mfa-authenticator.md b/docs/examples/1.8.x/client-web/examples/account/create-mfa-authenticator.md index d78c61c5b4..154be4e185 100644 --- a/docs/examples/1.8.x/client-web/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.8.x/client-web/examples/account/create-mfa-authenticator.md @@ -6,7 +6,7 @@ const client = new Client() const account = new Account(client); -const result = await account.createMfaAuthenticator({ +const result = await account.createMFAAuthenticator({ type: AuthenticatorType.Totp }); diff --git a/docs/examples/1.8.x/client-web/examples/account/create-mfa-challenge.md b/docs/examples/1.8.x/client-web/examples/account/create-mfa-challenge.md index a2a8c52669..1328305538 100644 --- a/docs/examples/1.8.x/client-web/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.8.x/client-web/examples/account/create-mfa-challenge.md @@ -6,7 +6,7 @@ const client = new Client() const account = new Account(client); -const result = await account.createMfaChallenge({ +const result = await account.createMFAChallenge({ factor: AuthenticationFactor.Email }); diff --git a/docs/examples/1.8.x/client-web/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.8.x/client-web/examples/account/create-mfa-recovery-codes.md index 2cc744175e..d9041f273d 100644 --- a/docs/examples/1.8.x/client-web/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/client-web/examples/account/create-mfa-recovery-codes.md @@ -6,6 +6,6 @@ const client = new Client() const account = new Account(client); -const result = await account.createMfaRecoveryCodes(); +const result = await account.createMFARecoveryCodes(); console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/account/create-o-auth2session.md b/docs/examples/1.8.x/client-web/examples/account/create-o-auth-2-session.md similarity index 73% rename from docs/examples/1.8.x/client-web/examples/account/create-o-auth2session.md rename to docs/examples/1.8.x/client-web/examples/account/create-o-auth-2-session.md index 5d185a21f0..b451e25e5e 100644 --- a/docs/examples/1.8.x/client-web/examples/account/create-o-auth2session.md +++ b/docs/examples/1.8.x/client-web/examples/account/create-o-auth-2-session.md @@ -8,8 +8,8 @@ const account = new Account(client); account.createOAuth2Session({ provider: OAuthProvider.Amazon, - success: 'https://example.com', - failure: 'https://example.com', - scopes: [] + success: 'https://example.com', // optional + failure: 'https://example.com', // optional + scopes: [] // optional }); diff --git a/docs/examples/1.8.x/client-web/examples/account/create-o-auth2token.md b/docs/examples/1.8.x/client-web/examples/account/create-o-auth-2-token.md similarity index 72% rename from docs/examples/1.8.x/client-web/examples/account/create-o-auth2token.md rename to docs/examples/1.8.x/client-web/examples/account/create-o-auth-2-token.md index 81726a00d4..0fce114dc6 100644 --- a/docs/examples/1.8.x/client-web/examples/account/create-o-auth2token.md +++ b/docs/examples/1.8.x/client-web/examples/account/create-o-auth-2-token.md @@ -8,8 +8,8 @@ const account = new Account(client); account.createOAuth2Token({ provider: OAuthProvider.Amazon, - success: 'https://example.com', - failure: 'https://example.com', - scopes: [] + success: 'https://example.com', // optional + failure: 'https://example.com', // optional + scopes: [] // optional }); diff --git a/docs/examples/1.8.x/client-web/examples/account/create-push-target.md b/docs/examples/1.8.x/client-web/examples/account/create-push-target.md index ffc3307ef1..1f973e1b46 100644 --- a/docs/examples/1.8.x/client-web/examples/account/create-push-target.md +++ b/docs/examples/1.8.x/client-web/examples/account/create-push-target.md @@ -9,7 +9,7 @@ const account = new Account(client); const result = await account.createPushTarget({ targetId: '', identifier: '', - providerId: '' + providerId: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/account/create.md b/docs/examples/1.8.x/client-web/examples/account/create.md index 405eb0301f..dbb374daf3 100644 --- a/docs/examples/1.8.x/client-web/examples/account/create.md +++ b/docs/examples/1.8.x/client-web/examples/account/create.md @@ -10,7 +10,7 @@ const result = await account.create({ userId: '', email: 'email@example.com', password: '', - name: '' + name: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/account/delete-m-f-a-authenticator.md b/docs/examples/1.8.x/client-web/examples/account/delete-m-f-a-authenticator.md deleted file mode 100644 index 2b1a8785fd..0000000000 --- a/docs/examples/1.8.x/client-web/examples/account/delete-m-f-a-authenticator.md +++ /dev/null @@ -1,13 +0,0 @@ -import { Client, Account, AuthenticatorType } from "appwrite"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const account = new Account(client); - -const result = await account.deleteMFAAuthenticator({ - type: AuthenticatorType.Totp -}); - -console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/account/delete-mfa-authenticator.md b/docs/examples/1.8.x/client-web/examples/account/delete-mfa-authenticator.md index 9adb5eca80..2b1a8785fd 100644 --- a/docs/examples/1.8.x/client-web/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.8.x/client-web/examples/account/delete-mfa-authenticator.md @@ -6,7 +6,7 @@ const client = new Client() const account = new Account(client); -const result = await account.deleteMfaAuthenticator({ +const result = await account.deleteMFAAuthenticator({ type: AuthenticatorType.Totp }); diff --git a/docs/examples/1.8.x/client-web/examples/account/get-m-f-a-recovery-codes.md b/docs/examples/1.8.x/client-web/examples/account/get-m-f-a-recovery-codes.md deleted file mode 100644 index 527ebd9dab..0000000000 --- a/docs/examples/1.8.x/client-web/examples/account/get-m-f-a-recovery-codes.md +++ /dev/null @@ -1,11 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const account = new Account(client); - -const result = await account.getMFARecoveryCodes(); - -console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.8.x/client-web/examples/account/get-mfa-recovery-codes.md index 850488b0c8..527ebd9dab 100644 --- a/docs/examples/1.8.x/client-web/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/client-web/examples/account/get-mfa-recovery-codes.md @@ -6,6 +6,6 @@ const client = new Client() const account = new Account(client); -const result = await account.getMfaRecoveryCodes(); +const result = await account.getMFARecoveryCodes(); console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/account/list-identities.md b/docs/examples/1.8.x/client-web/examples/account/list-identities.md index 9cfea90929..28cc409f26 100644 --- a/docs/examples/1.8.x/client-web/examples/account/list-identities.md +++ b/docs/examples/1.8.x/client-web/examples/account/list-identities.md @@ -7,7 +7,7 @@ const client = new Client() const account = new Account(client); const result = await account.listIdentities({ - queries: [] + queries: [] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/account/list-logs.md b/docs/examples/1.8.x/client-web/examples/account/list-logs.md index f6d21b3feb..ec763f9a08 100644 --- a/docs/examples/1.8.x/client-web/examples/account/list-logs.md +++ b/docs/examples/1.8.x/client-web/examples/account/list-logs.md @@ -7,7 +7,7 @@ const client = new Client() const account = new Account(client); const result = await account.listLogs({ - queries: [] + queries: [] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/account/list-m-f-a-factors.md b/docs/examples/1.8.x/client-web/examples/account/list-m-f-a-factors.md deleted file mode 100644 index 80151d977c..0000000000 --- a/docs/examples/1.8.x/client-web/examples/account/list-m-f-a-factors.md +++ /dev/null @@ -1,11 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const account = new Account(client); - -const result = await account.listMFAFactors(); - -console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/account/list-mfa-factors.md b/docs/examples/1.8.x/client-web/examples/account/list-mfa-factors.md index c9fa7da1bc..80151d977c 100644 --- a/docs/examples/1.8.x/client-web/examples/account/list-mfa-factors.md +++ b/docs/examples/1.8.x/client-web/examples/account/list-mfa-factors.md @@ -6,6 +6,6 @@ const client = new Client() const account = new Account(client); -const result = await account.listMfaFactors(); +const result = await account.listMFAFactors(); console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/account/update-m-f-a-authenticator.md b/docs/examples/1.8.x/client-web/examples/account/update-m-f-a-authenticator.md deleted file mode 100644 index f5ce65eeab..0000000000 --- a/docs/examples/1.8.x/client-web/examples/account/update-m-f-a-authenticator.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Account, AuthenticatorType } from "appwrite"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const account = new Account(client); - -const result = await account.updateMFAAuthenticator({ - type: AuthenticatorType.Totp, - otp: '' -}); - -console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/account/update-m-f-a-challenge.md b/docs/examples/1.8.x/client-web/examples/account/update-m-f-a-challenge.md deleted file mode 100644 index 016533c09b..0000000000 --- a/docs/examples/1.8.x/client-web/examples/account/update-m-f-a-challenge.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const account = new Account(client); - -const result = await account.updateMFAChallenge({ - challengeId: '', - otp: '' -}); - -console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/account/update-m-f-a-recovery-codes.md b/docs/examples/1.8.x/client-web/examples/account/update-m-f-a-recovery-codes.md deleted file mode 100644 index 3ab0385027..0000000000 --- a/docs/examples/1.8.x/client-web/examples/account/update-m-f-a-recovery-codes.md +++ /dev/null @@ -1,11 +0,0 @@ -import { Client, Account } from "appwrite"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const account = new Account(client); - -const result = await account.updateMFARecoveryCodes(); - -console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.8.x/client-web/examples/account/update-magic-url-session.md similarity index 100% rename from docs/examples/1.8.x/client-web/examples/account/update-magic-u-r-l-session.md rename to docs/examples/1.8.x/client-web/examples/account/update-magic-url-session.md diff --git a/docs/examples/1.8.x/client-web/examples/account/update-mfa-authenticator.md b/docs/examples/1.8.x/client-web/examples/account/update-mfa-authenticator.md index 0b958490ab..f5ce65eeab 100644 --- a/docs/examples/1.8.x/client-web/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.8.x/client-web/examples/account/update-mfa-authenticator.md @@ -6,7 +6,7 @@ const client = new Client() const account = new Account(client); -const result = await account.updateMfaAuthenticator({ +const result = await account.updateMFAAuthenticator({ type: AuthenticatorType.Totp, otp: '' }); diff --git a/docs/examples/1.8.x/client-web/examples/account/update-mfa-challenge.md b/docs/examples/1.8.x/client-web/examples/account/update-mfa-challenge.md index 146d4668e9..016533c09b 100644 --- a/docs/examples/1.8.x/client-web/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.8.x/client-web/examples/account/update-mfa-challenge.md @@ -6,7 +6,7 @@ const client = new Client() const account = new Account(client); -const result = await account.updateMfaChallenge({ +const result = await account.updateMFAChallenge({ challengeId: '', otp: '' }); diff --git a/docs/examples/1.8.x/client-web/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.8.x/client-web/examples/account/update-mfa-recovery-codes.md index 24ff10b1e4..3ab0385027 100644 --- a/docs/examples/1.8.x/client-web/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/client-web/examples/account/update-mfa-recovery-codes.md @@ -6,6 +6,6 @@ const client = new Client() const account = new Account(client); -const result = await account.updateMfaRecoveryCodes(); +const result = await account.updateMFARecoveryCodes(); console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/account/update-m-f-a.md b/docs/examples/1.8.x/client-web/examples/account/update-mfa.md similarity index 100% rename from docs/examples/1.8.x/client-web/examples/account/update-m-f-a.md rename to docs/examples/1.8.x/client-web/examples/account/update-mfa.md diff --git a/docs/examples/1.8.x/client-web/examples/account/update-password.md b/docs/examples/1.8.x/client-web/examples/account/update-password.md index 65100a7021..743335b8ba 100644 --- a/docs/examples/1.8.x/client-web/examples/account/update-password.md +++ b/docs/examples/1.8.x/client-web/examples/account/update-password.md @@ -8,7 +8,7 @@ const account = new Account(client); const result = await account.updatePassword({ password: '', - oldPassword: 'password' + oldPassword: 'password' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/avatars/get-browser.md b/docs/examples/1.8.x/client-web/examples/avatars/get-browser.md index 934939d854..a0deff3fbc 100644 --- a/docs/examples/1.8.x/client-web/examples/avatars/get-browser.md +++ b/docs/examples/1.8.x/client-web/examples/avatars/get-browser.md @@ -8,9 +8,9 @@ const avatars = new Avatars(client); const result = avatars.getBrowser({ code: Browser.AvantBrowser, - width: 0, - height: 0, - quality: -1 + width: 0, // optional + height: 0, // optional + quality: -1 // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/avatars/get-credit-card.md b/docs/examples/1.8.x/client-web/examples/avatars/get-credit-card.md index 7a3cd86d00..af0599ace5 100644 --- a/docs/examples/1.8.x/client-web/examples/avatars/get-credit-card.md +++ b/docs/examples/1.8.x/client-web/examples/avatars/get-credit-card.md @@ -8,9 +8,9 @@ const avatars = new Avatars(client); const result = avatars.getCreditCard({ code: CreditCard.AmericanExpress, - width: 0, - height: 0, - quality: -1 + width: 0, // optional + height: 0, // optional + quality: -1 // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/avatars/get-flag.md b/docs/examples/1.8.x/client-web/examples/avatars/get-flag.md index 1ab7dc8999..76e7733e8c 100644 --- a/docs/examples/1.8.x/client-web/examples/avatars/get-flag.md +++ b/docs/examples/1.8.x/client-web/examples/avatars/get-flag.md @@ -8,9 +8,9 @@ const avatars = new Avatars(client); const result = avatars.getFlag({ code: Flag.Afghanistan, - width: 0, - height: 0, - quality: -1 + width: 0, // optional + height: 0, // optional + quality: -1 // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/avatars/get-image.md b/docs/examples/1.8.x/client-web/examples/avatars/get-image.md index 4e7daa0907..b8fe0f08b1 100644 --- a/docs/examples/1.8.x/client-web/examples/avatars/get-image.md +++ b/docs/examples/1.8.x/client-web/examples/avatars/get-image.md @@ -8,8 +8,8 @@ const avatars = new Avatars(client); const result = avatars.getImage({ url: 'https://example.com', - width: 0, - height: 0 + width: 0, // optional + height: 0 // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/avatars/get-initials.md b/docs/examples/1.8.x/client-web/examples/avatars/get-initials.md index a831e3b11a..01c183031b 100644 --- a/docs/examples/1.8.x/client-web/examples/avatars/get-initials.md +++ b/docs/examples/1.8.x/client-web/examples/avatars/get-initials.md @@ -7,10 +7,10 @@ const client = new Client() const avatars = new Avatars(client); const result = avatars.getInitials({ - name: '', - width: 0, - height: 0, - background: '' + name: '', // optional + width: 0, // optional + height: 0, // optional + background: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/avatars/get-q-r.md b/docs/examples/1.8.x/client-web/examples/avatars/get-qr.md similarity index 79% rename from docs/examples/1.8.x/client-web/examples/avatars/get-q-r.md rename to docs/examples/1.8.x/client-web/examples/avatars/get-qr.md index 11881896a3..53202d8cd4 100644 --- a/docs/examples/1.8.x/client-web/examples/avatars/get-q-r.md +++ b/docs/examples/1.8.x/client-web/examples/avatars/get-qr.md @@ -8,9 +8,9 @@ const avatars = new Avatars(client); const result = avatars.getQR({ text: '', - size: 1, - margin: 0, - download: false + size: 1, // optional + margin: 0, // optional + download: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/databases/create-document.md b/docs/examples/1.8.x/client-web/examples/databases/create-document.md index 6698dec0c9..5c561ab799 100644 --- a/docs/examples/1.8.x/client-web/examples/databases/create-document.md +++ b/docs/examples/1.8.x/client-web/examples/databases/create-document.md @@ -11,7 +11,7 @@ const result = await databases.createDocument({ collectionId: '', documentId: '', data: {}, - permissions: ["read("any")"] + permissions: ["read("any")"] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/databases/create-documents.md b/docs/examples/1.8.x/client-web/examples/databases/create-documents.md deleted file mode 100644 index 85b1c4cb0a..0000000000 --- a/docs/examples/1.8.x/client-web/examples/databases/create-documents.md +++ /dev/null @@ -1,16 +0,0 @@ -import { Client, Databases } from "appwrite"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setAdmin('') // - .setKey(''); // - -const databases = new Databases(client); - -const result = await databases.createDocuments( - '', // databaseId - '', // collectionId - [] // documents -); - -console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/databases/decrement-document-attribute.md b/docs/examples/1.8.x/client-web/examples/databases/decrement-document-attribute.md index c7feb904da..98629c4e6c 100644 --- a/docs/examples/1.8.x/client-web/examples/databases/decrement-document-attribute.md +++ b/docs/examples/1.8.x/client-web/examples/databases/decrement-document-attribute.md @@ -11,8 +11,8 @@ const result = await databases.decrementDocumentAttribute({ collectionId: '', documentId: '', attribute: '', - value: null, - min: null + value: null, // optional + min: null // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/databases/get-document.md b/docs/examples/1.8.x/client-web/examples/databases/get-document.md index be1eb90efa..b3a7558907 100644 --- a/docs/examples/1.8.x/client-web/examples/databases/get-document.md +++ b/docs/examples/1.8.x/client-web/examples/databases/get-document.md @@ -10,7 +10,7 @@ const result = await databases.getDocument({ databaseId: '', collectionId: '', documentId: '', - queries: [] + queries: [] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/databases/increment-document-attribute.md b/docs/examples/1.8.x/client-web/examples/databases/increment-document-attribute.md index 86a53306ac..8adb5d8091 100644 --- a/docs/examples/1.8.x/client-web/examples/databases/increment-document-attribute.md +++ b/docs/examples/1.8.x/client-web/examples/databases/increment-document-attribute.md @@ -11,8 +11,8 @@ const result = await databases.incrementDocumentAttribute({ collectionId: '', documentId: '', attribute: '', - value: null, - max: null + value: null, // optional + max: null // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/databases/list-documents.md b/docs/examples/1.8.x/client-web/examples/databases/list-documents.md index 099ddf85fb..fb1d508fed 100644 --- a/docs/examples/1.8.x/client-web/examples/databases/list-documents.md +++ b/docs/examples/1.8.x/client-web/examples/databases/list-documents.md @@ -9,7 +9,7 @@ const databases = new Databases(client); const result = await databases.listDocuments({ databaseId: '', collectionId: '', - queries: [] + queries: [] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/databases/update-document.md b/docs/examples/1.8.x/client-web/examples/databases/update-document.md index 69696c062b..bf3554812d 100644 --- a/docs/examples/1.8.x/client-web/examples/databases/update-document.md +++ b/docs/examples/1.8.x/client-web/examples/databases/update-document.md @@ -10,8 +10,8 @@ const result = await databases.updateDocument({ databaseId: '', collectionId: '', documentId: '', - data: {}, - permissions: ["read("any")"] + data: {}, // optional + permissions: ["read("any")"] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/databases/upsert-document.md b/docs/examples/1.8.x/client-web/examples/databases/upsert-document.md index 33e14a42b0..c56bc5534d 100644 --- a/docs/examples/1.8.x/client-web/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/client-web/examples/databases/upsert-document.md @@ -11,7 +11,7 @@ const result = await databases.upsertDocument({ collectionId: '', documentId: '', data: {}, - permissions: ["read("any")"] + permissions: ["read("any")"] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/functions/create-execution.md b/docs/examples/1.8.x/client-web/examples/functions/create-execution.md index 2e6503dbc7..b8c955b8ec 100644 --- a/docs/examples/1.8.x/client-web/examples/functions/create-execution.md +++ b/docs/examples/1.8.x/client-web/examples/functions/create-execution.md @@ -8,12 +8,12 @@ const functions = new Functions(client); const result = await functions.createExecution({ functionId: '', - body: '', - async: false, - path: '', - method: ExecutionMethod.GET, - headers: {}, - scheduledAt: '' + body: '', // optional + async: false, // optional + path: '', // optional + method: ExecutionMethod.GET, // optional + headers: {}, // optional + scheduledAt: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/functions/list-executions.md b/docs/examples/1.8.x/client-web/examples/functions/list-executions.md index 75f665af87..159882c512 100644 --- a/docs/examples/1.8.x/client-web/examples/functions/list-executions.md +++ b/docs/examples/1.8.x/client-web/examples/functions/list-executions.md @@ -8,7 +8,7 @@ const functions = new Functions(client); const result = await functions.listExecutions({ functionId: '', - queries: [] + queries: [] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/grids/create-row.md b/docs/examples/1.8.x/client-web/examples/grids/create-row.md deleted file mode 100644 index 9dc6de2769..0000000000 --- a/docs/examples/1.8.x/client-web/examples/grids/create-row.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Grids } from "appwrite"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.createRow( - '', // databaseId - '', // tableId - '', // rowId - {}, // data - ["read("any")"] // permissions (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/grids/delete-row.md b/docs/examples/1.8.x/client-web/examples/grids/delete-row.md deleted file mode 100644 index 7d3fb7df7e..0000000000 --- a/docs/examples/1.8.x/client-web/examples/grids/delete-row.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Grids } from "appwrite"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.deleteRow( - '', // databaseId - '', // tableId - '' // rowId -); - -console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/grids/get-row.md b/docs/examples/1.8.x/client-web/examples/grids/get-row.md deleted file mode 100644 index 778377b61b..0000000000 --- a/docs/examples/1.8.x/client-web/examples/grids/get-row.md +++ /dev/null @@ -1,16 +0,0 @@ -import { Client, Grids } from "appwrite"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.getRow( - '', // databaseId - '', // tableId - '', // rowId - [] // queries (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/grids/list-rows.md b/docs/examples/1.8.x/client-web/examples/grids/list-rows.md deleted file mode 100644 index 07de125329..0000000000 --- a/docs/examples/1.8.x/client-web/examples/grids/list-rows.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Grids } from "appwrite"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.listRows( - '', // databaseId - '', // tableId - [] // queries (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/grids/update-row.md b/docs/examples/1.8.x/client-web/examples/grids/update-row.md deleted file mode 100644 index f37659e3ca..0000000000 --- a/docs/examples/1.8.x/client-web/examples/grids/update-row.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Grids } from "appwrite"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.updateRow( - '', // databaseId - '', // tableId - '', // rowId - {}, // data (optional) - ["read("any")"] // permissions (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/grids/upsert-row.md b/docs/examples/1.8.x/client-web/examples/grids/upsert-row.md deleted file mode 100644 index 8850c27ebd..0000000000 --- a/docs/examples/1.8.x/client-web/examples/grids/upsert-row.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Grids } from "appwrite"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.upsertRow( - '', // databaseId - '', // tableId - '', // rowId - {}, // data (optional) - ["read("any")"] // permissions (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/locale/list-countries-e-u.md b/docs/examples/1.8.x/client-web/examples/locale/list-countries-eu.md similarity index 100% rename from docs/examples/1.8.x/client-web/examples/locale/list-countries-e-u.md rename to docs/examples/1.8.x/client-web/examples/locale/list-countries-eu.md diff --git a/docs/examples/1.8.x/client-web/examples/storage/create-file.md b/docs/examples/1.8.x/client-web/examples/storage/create-file.md index 1b4ffa504e..999fcb20ac 100644 --- a/docs/examples/1.8.x/client-web/examples/storage/create-file.md +++ b/docs/examples/1.8.x/client-web/examples/storage/create-file.md @@ -10,7 +10,7 @@ const result = await storage.createFile({ bucketId: '', fileId: '', file: document.getElementById('uploader').files[0], - permissions: ["read("any")"] + permissions: ["read("any")"] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/storage/get-file-download.md b/docs/examples/1.8.x/client-web/examples/storage/get-file-download.md index d8cf2806b6..8454be442a 100644 --- a/docs/examples/1.8.x/client-web/examples/storage/get-file-download.md +++ b/docs/examples/1.8.x/client-web/examples/storage/get-file-download.md @@ -9,7 +9,7 @@ const storage = new Storage(client); const result = storage.getFileDownload({ bucketId: '', fileId: '', - token: '' + token: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/storage/get-file-preview.md b/docs/examples/1.8.x/client-web/examples/storage/get-file-preview.md index 92481d08bd..c4e855b207 100644 --- a/docs/examples/1.8.x/client-web/examples/storage/get-file-preview.md +++ b/docs/examples/1.8.x/client-web/examples/storage/get-file-preview.md @@ -9,18 +9,18 @@ const storage = new Storage(client); const result = storage.getFilePreview({ bucketId: '', fileId: '', - width: 0, - height: 0, - gravity: ImageGravity.Center, - quality: -1, - borderWidth: 0, - borderColor: '', - borderRadius: 0, - opacity: 0, - rotation: -360, - background: '', - output: ImageFormat.Jpg, - token: '' + width: 0, // optional + height: 0, // optional + gravity: ImageGravity.Center, // optional + quality: -1, // optional + borderWidth: 0, // optional + borderColor: '', // optional + borderRadius: 0, // optional + opacity: 0, // optional + rotation: -360, // optional + background: '', // optional + output: ImageFormat.Jpg, // optional + token: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/storage/get-file-view.md b/docs/examples/1.8.x/client-web/examples/storage/get-file-view.md index c75f7805eb..edc28f146b 100644 --- a/docs/examples/1.8.x/client-web/examples/storage/get-file-view.md +++ b/docs/examples/1.8.x/client-web/examples/storage/get-file-view.md @@ -9,7 +9,7 @@ const storage = new Storage(client); const result = storage.getFileView({ bucketId: '', fileId: '', - token: '' + token: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/storage/list-files.md b/docs/examples/1.8.x/client-web/examples/storage/list-files.md index d64e0ff525..154212dfec 100644 --- a/docs/examples/1.8.x/client-web/examples/storage/list-files.md +++ b/docs/examples/1.8.x/client-web/examples/storage/list-files.md @@ -8,8 +8,8 @@ const storage = new Storage(client); const result = await storage.listFiles({ bucketId: '', - queries: [], - search: '' + queries: [], // optional + search: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/storage/update-file.md b/docs/examples/1.8.x/client-web/examples/storage/update-file.md index 1c60d04efd..96e1dc5ee2 100644 --- a/docs/examples/1.8.x/client-web/examples/storage/update-file.md +++ b/docs/examples/1.8.x/client-web/examples/storage/update-file.md @@ -9,8 +9,8 @@ const storage = new Storage(client); const result = await storage.updateFile({ bucketId: '', fileId: '', - name: '', - permissions: ["read("any")"] + name: '', // optional + permissions: ["read("any")"] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/tablesdb/create-row.md b/docs/examples/1.8.x/client-web/examples/tablesdb/create-row.md index a055db59ab..aafe71f4a5 100644 --- a/docs/examples/1.8.x/client-web/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/client-web/examples/tablesdb/create-row.md @@ -11,7 +11,7 @@ const result = await tablesDB.createRow({ tableId: '', rowId: '', data: {}, - permissions: ["read("any")"] + permissions: ["read("any")"] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/tablesdb/decrement-row-column.md b/docs/examples/1.8.x/client-web/examples/tablesdb/decrement-row-column.md index 0af7c25a78..59f66d973f 100644 --- a/docs/examples/1.8.x/client-web/examples/tablesdb/decrement-row-column.md +++ b/docs/examples/1.8.x/client-web/examples/tablesdb/decrement-row-column.md @@ -11,8 +11,8 @@ const result = await tablesDB.decrementRowColumn({ tableId: '', rowId: '', column: '', - value: null, - min: null + value: null, // optional + min: null // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/tablesdb/get-row.md b/docs/examples/1.8.x/client-web/examples/tablesdb/get-row.md index ef2c8ec930..4e436432b7 100644 --- a/docs/examples/1.8.x/client-web/examples/tablesdb/get-row.md +++ b/docs/examples/1.8.x/client-web/examples/tablesdb/get-row.md @@ -10,7 +10,7 @@ const result = await tablesDB.getRow({ databaseId: '', tableId: '', rowId: '', - queries: [] + queries: [] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/tablesdb/increment-row-column.md b/docs/examples/1.8.x/client-web/examples/tablesdb/increment-row-column.md index 0890f8d2ec..a7f3a8c312 100644 --- a/docs/examples/1.8.x/client-web/examples/tablesdb/increment-row-column.md +++ b/docs/examples/1.8.x/client-web/examples/tablesdb/increment-row-column.md @@ -11,8 +11,8 @@ const result = await tablesDB.incrementRowColumn({ tableId: '', rowId: '', column: '', - value: null, - max: null + value: null, // optional + max: null // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/tablesdb/list-rows.md b/docs/examples/1.8.x/client-web/examples/tablesdb/list-rows.md index fb8218023b..63149aaba4 100644 --- a/docs/examples/1.8.x/client-web/examples/tablesdb/list-rows.md +++ b/docs/examples/1.8.x/client-web/examples/tablesdb/list-rows.md @@ -9,7 +9,7 @@ const tablesDB = new TablesDB(client); const result = await tablesDB.listRows({ databaseId: '', tableId: '', - queries: [] + queries: [] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/tablesdb/update-row.md b/docs/examples/1.8.x/client-web/examples/tablesdb/update-row.md index 31f1f3f24d..1dba006762 100644 --- a/docs/examples/1.8.x/client-web/examples/tablesdb/update-row.md +++ b/docs/examples/1.8.x/client-web/examples/tablesdb/update-row.md @@ -10,8 +10,8 @@ const result = await tablesDB.updateRow({ databaseId: '', tableId: '', rowId: '', - data: {}, - permissions: ["read("any")"] + data: {}, // optional + permissions: ["read("any")"] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/tablesdb/upsert-row.md b/docs/examples/1.8.x/client-web/examples/tablesdb/upsert-row.md index dc27e66785..1add1c45b9 100644 --- a/docs/examples/1.8.x/client-web/examples/tablesdb/upsert-row.md +++ b/docs/examples/1.8.x/client-web/examples/tablesdb/upsert-row.md @@ -10,8 +10,8 @@ const result = await tablesDB.upsertRow({ databaseId: '', tableId: '', rowId: '', - data: {}, - permissions: ["read("any")"] + data: {}, // optional + permissions: ["read("any")"] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/teams/create-membership.md b/docs/examples/1.8.x/client-web/examples/teams/create-membership.md index 490c7a9194..c72da99abe 100644 --- a/docs/examples/1.8.x/client-web/examples/teams/create-membership.md +++ b/docs/examples/1.8.x/client-web/examples/teams/create-membership.md @@ -9,11 +9,11 @@ const teams = new Teams(client); const result = await teams.createMembership({ teamId: '', roles: [], - email: 'email@example.com', - userId: '', - phone: '+12065550100', - url: 'https://example.com', - name: '' + email: 'email@example.com', // optional + userId: '', // optional + phone: '+12065550100', // optional + url: 'https://example.com', // optional + name: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/teams/create.md b/docs/examples/1.8.x/client-web/examples/teams/create.md index 55b8ca8227..a156156b0c 100644 --- a/docs/examples/1.8.x/client-web/examples/teams/create.md +++ b/docs/examples/1.8.x/client-web/examples/teams/create.md @@ -9,7 +9,7 @@ const teams = new Teams(client); const result = await teams.create({ teamId: '', name: '', - roles: [] + roles: [] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/teams/list-memberships.md b/docs/examples/1.8.x/client-web/examples/teams/list-memberships.md index 8c5cc9378d..d4e342044d 100644 --- a/docs/examples/1.8.x/client-web/examples/teams/list-memberships.md +++ b/docs/examples/1.8.x/client-web/examples/teams/list-memberships.md @@ -8,8 +8,8 @@ const teams = new Teams(client); const result = await teams.listMemberships({ teamId: '', - queries: [], - search: '' + queries: [], // optional + search: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/client-web/examples/teams/list.md b/docs/examples/1.8.x/client-web/examples/teams/list.md index 1e36f738e0..df57f25dfd 100644 --- a/docs/examples/1.8.x/client-web/examples/teams/list.md +++ b/docs/examples/1.8.x/client-web/examples/teams/list.md @@ -7,8 +7,8 @@ const client = new Client() const teams = new Teams(client); const result = await teams.list({ - queries: [], - search: '' + queries: [], // optional + search: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-cli/examples/account/create-anonymous-session.md b/docs/examples/1.8.x/console-cli/examples/account/create-anonymous-session.md index a7eb9c5be3..b6f2432c21 100644 --- a/docs/examples/1.8.x/console-cli/examples/account/create-anonymous-session.md +++ b/docs/examples/1.8.x/console-cli/examples/account/create-anonymous-session.md @@ -1 +1 @@ -appwrite account createAnonymousSession +appwrite account create-anonymous-session diff --git a/docs/examples/1.8.x/console-cli/examples/account/create-email-password-session.md b/docs/examples/1.8.x/console-cli/examples/account/create-email-password-session.md index 951293b4b2..b13874c732 100644 --- a/docs/examples/1.8.x/console-cli/examples/account/create-email-password-session.md +++ b/docs/examples/1.8.x/console-cli/examples/account/create-email-password-session.md @@ -1,3 +1,3 @@ -appwrite account createEmailPasswordSession \ - --email email@example.com \ - --password password +appwrite account create-email-password-session \ + --email email@example.com \ + --password password diff --git a/docs/examples/1.8.x/console-cli/examples/account/create-email-token.md b/docs/examples/1.8.x/console-cli/examples/account/create-email-token.md index 0aaf2476c9..1902e8b24a 100644 --- a/docs/examples/1.8.x/console-cli/examples/account/create-email-token.md +++ b/docs/examples/1.8.x/console-cli/examples/account/create-email-token.md @@ -1,4 +1,3 @@ -appwrite account createEmailToken \ - --userId \ - --email email@example.com \ - +appwrite account create-email-token \ + --user-id \ + --email email@example.com diff --git a/docs/examples/1.8.x/console-cli/examples/account/create-j-w-t.md b/docs/examples/1.8.x/console-cli/examples/account/create-j-w-t.md deleted file mode 100644 index 7b5337993d..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/account/create-j-w-t.md +++ /dev/null @@ -1 +0,0 @@ -appwrite account createJWT diff --git a/docs/examples/1.8.x/console-cli/examples/account/create-jwt.md b/docs/examples/1.8.x/console-cli/examples/account/create-jwt.md new file mode 100644 index 0000000000..f2d656958a --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/account/create-jwt.md @@ -0,0 +1 @@ +appwrite account create-jwt diff --git a/docs/examples/1.8.x/console-cli/examples/account/create-m-f-a-authenticator.md b/docs/examples/1.8.x/console-cli/examples/account/create-m-f-a-authenticator.md deleted file mode 100644 index a976bc8247..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/account/create-m-f-a-authenticator.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite account createMFAAuthenticator \ - --type totp diff --git a/docs/examples/1.8.x/console-cli/examples/account/create-m-f-a-challenge.md b/docs/examples/1.8.x/console-cli/examples/account/create-m-f-a-challenge.md deleted file mode 100644 index 13e38e8923..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/account/create-m-f-a-challenge.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite account createMFAChallenge \ - --factor email diff --git a/docs/examples/1.8.x/console-cli/examples/account/create-m-f-a-recovery-codes.md b/docs/examples/1.8.x/console-cli/examples/account/create-m-f-a-recovery-codes.md deleted file mode 100644 index 7c80d8877f..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/account/create-m-f-a-recovery-codes.md +++ /dev/null @@ -1 +0,0 @@ -appwrite account createMFARecoveryCodes diff --git a/docs/examples/1.8.x/console-cli/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.8.x/console-cli/examples/account/create-magic-u-r-l-token.md deleted file mode 100644 index 69203b085d..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/account/create-magic-u-r-l-token.md +++ /dev/null @@ -1,5 +0,0 @@ -appwrite account createMagicURLToken \ - --userId \ - --email email@example.com \ - - diff --git a/docs/examples/1.8.x/console-cli/examples/account/create-magic-url-token.md b/docs/examples/1.8.x/console-cli/examples/account/create-magic-url-token.md new file mode 100644 index 0000000000..4f16a8b289 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/account/create-magic-url-token.md @@ -0,0 +1,3 @@ +appwrite account create-magic-url-token \ + --user-id \ + --email email@example.com diff --git a/docs/examples/1.8.x/console-cli/examples/account/create-mfa-authenticator.md b/docs/examples/1.8.x/console-cli/examples/account/create-mfa-authenticator.md index 7634217700..a45427677d 100644 --- a/docs/examples/1.8.x/console-cli/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.8.x/console-cli/examples/account/create-mfa-authenticator.md @@ -1,2 +1,2 @@ -appwrite account createMfaAuthenticator \ - --type totp +appwrite account create-mfa-authenticator \ + --type totp diff --git a/docs/examples/1.8.x/console-cli/examples/account/create-mfa-challenge.md b/docs/examples/1.8.x/console-cli/examples/account/create-mfa-challenge.md index 8696be7ec1..24bab3d672 100644 --- a/docs/examples/1.8.x/console-cli/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.8.x/console-cli/examples/account/create-mfa-challenge.md @@ -1,2 +1,2 @@ -appwrite account createMfaChallenge \ - --factor email +appwrite account create-mfa-challenge \ + --factor email diff --git a/docs/examples/1.8.x/console-cli/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.8.x/console-cli/examples/account/create-mfa-recovery-codes.md index 0ef25446fd..4f165d9080 100644 --- a/docs/examples/1.8.x/console-cli/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/console-cli/examples/account/create-mfa-recovery-codes.md @@ -1 +1 @@ -appwrite account createMfaRecoveryCodes +appwrite account create-mfa-recovery-codes diff --git a/docs/examples/1.8.x/console-cli/examples/account/create-o-auth-2-session.md b/docs/examples/1.8.x/console-cli/examples/account/create-o-auth-2-session.md new file mode 100644 index 0000000000..fda2faacaa --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/account/create-o-auth-2-session.md @@ -0,0 +1,2 @@ +appwrite account create-o-auth-2-session \ + --provider amazon diff --git a/docs/examples/1.8.x/console-cli/examples/account/create-o-auth-2-token.md b/docs/examples/1.8.x/console-cli/examples/account/create-o-auth-2-token.md new file mode 100644 index 0000000000..7fff73f564 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/account/create-o-auth-2-token.md @@ -0,0 +1,2 @@ +appwrite account create-o-auth-2-token \ + --provider amazon diff --git a/docs/examples/1.8.x/console-cli/examples/account/create-o-auth2session.md b/docs/examples/1.8.x/console-cli/examples/account/create-o-auth2session.md deleted file mode 100644 index 9159b8f25f..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/account/create-o-auth2session.md +++ /dev/null @@ -1,5 +0,0 @@ -appwrite account createOAuth2Session \ - --provider amazon \ - - - diff --git a/docs/examples/1.8.x/console-cli/examples/account/create-o-auth2token.md b/docs/examples/1.8.x/console-cli/examples/account/create-o-auth2token.md deleted file mode 100644 index b36f350d99..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/account/create-o-auth2token.md +++ /dev/null @@ -1,5 +0,0 @@ -appwrite account createOAuth2Token \ - --provider amazon \ - - - diff --git a/docs/examples/1.8.x/console-cli/examples/account/create-phone-token.md b/docs/examples/1.8.x/console-cli/examples/account/create-phone-token.md index 23f7f19cac..619478c65f 100644 --- a/docs/examples/1.8.x/console-cli/examples/account/create-phone-token.md +++ b/docs/examples/1.8.x/console-cli/examples/account/create-phone-token.md @@ -1,3 +1,3 @@ -appwrite account createPhoneToken \ - --userId \ - --phone +12065550100 +appwrite account create-phone-token \ + --user-id \ + --phone +12065550100 diff --git a/docs/examples/1.8.x/console-cli/examples/account/create-phone-verification.md b/docs/examples/1.8.x/console-cli/examples/account/create-phone-verification.md index 3c4402ba1f..b5a95ed987 100644 --- a/docs/examples/1.8.x/console-cli/examples/account/create-phone-verification.md +++ b/docs/examples/1.8.x/console-cli/examples/account/create-phone-verification.md @@ -1 +1 @@ -appwrite account createPhoneVerification +appwrite account create-phone-verification diff --git a/docs/examples/1.8.x/console-cli/examples/account/create-push-target.md b/docs/examples/1.8.x/console-cli/examples/account/create-push-target.md index 41c380b288..1ba6fe304e 100644 --- a/docs/examples/1.8.x/console-cli/examples/account/create-push-target.md +++ b/docs/examples/1.8.x/console-cli/examples/account/create-push-target.md @@ -1,4 +1,3 @@ -appwrite account createPushTarget \ - --targetId \ - --identifier \ - +appwrite account create-push-target \ + --target-id \ + --identifier diff --git a/docs/examples/1.8.x/console-cli/examples/account/create-recovery.md b/docs/examples/1.8.x/console-cli/examples/account/create-recovery.md index ea8c145abb..d6977de8d4 100644 --- a/docs/examples/1.8.x/console-cli/examples/account/create-recovery.md +++ b/docs/examples/1.8.x/console-cli/examples/account/create-recovery.md @@ -1,3 +1,3 @@ -appwrite account createRecovery \ - --email email@example.com \ - --url https://example.com +appwrite account create-recovery \ + --email email@example.com \ + --url https://example.com diff --git a/docs/examples/1.8.x/console-cli/examples/account/create-session.md b/docs/examples/1.8.x/console-cli/examples/account/create-session.md index 426713ef50..eefeb3504e 100644 --- a/docs/examples/1.8.x/console-cli/examples/account/create-session.md +++ b/docs/examples/1.8.x/console-cli/examples/account/create-session.md @@ -1,3 +1,3 @@ -appwrite account createSession \ - --userId \ - --secret +appwrite account create-session \ + --user-id \ + --secret diff --git a/docs/examples/1.8.x/console-cli/examples/account/create-verification.md b/docs/examples/1.8.x/console-cli/examples/account/create-verification.md index 402038b4b6..6e972f2f7a 100644 --- a/docs/examples/1.8.x/console-cli/examples/account/create-verification.md +++ b/docs/examples/1.8.x/console-cli/examples/account/create-verification.md @@ -1,2 +1,2 @@ -appwrite account createVerification \ - --url https://example.com +appwrite account create-verification \ + --url https://example.com diff --git a/docs/examples/1.8.x/console-cli/examples/account/create.md b/docs/examples/1.8.x/console-cli/examples/account/create.md index 09686a2454..56eca76d49 100644 --- a/docs/examples/1.8.x/console-cli/examples/account/create.md +++ b/docs/examples/1.8.x/console-cli/examples/account/create.md @@ -1,5 +1,4 @@ appwrite account create \ - --userId \ - --email email@example.com \ - --password '' \ - + --user-id \ + --email email@example.com \ + --password '' diff --git a/docs/examples/1.8.x/console-cli/examples/account/delete-identity.md b/docs/examples/1.8.x/console-cli/examples/account/delete-identity.md index acd8511dfb..650ab7bf1c 100644 --- a/docs/examples/1.8.x/console-cli/examples/account/delete-identity.md +++ b/docs/examples/1.8.x/console-cli/examples/account/delete-identity.md @@ -1,2 +1,2 @@ -appwrite account deleteIdentity \ - --identityId +appwrite account delete-identity \ + --identity-id diff --git a/docs/examples/1.8.x/console-cli/examples/account/delete-m-f-a-authenticator.md b/docs/examples/1.8.x/console-cli/examples/account/delete-m-f-a-authenticator.md deleted file mode 100644 index 67f278f8cb..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/account/delete-m-f-a-authenticator.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite account deleteMFAAuthenticator \ - --type totp diff --git a/docs/examples/1.8.x/console-cli/examples/account/delete-mfa-authenticator.md b/docs/examples/1.8.x/console-cli/examples/account/delete-mfa-authenticator.md index d4664855b5..e3689b17a0 100644 --- a/docs/examples/1.8.x/console-cli/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.8.x/console-cli/examples/account/delete-mfa-authenticator.md @@ -1,2 +1,2 @@ -appwrite account deleteMfaAuthenticator \ - --type totp +appwrite account delete-mfa-authenticator \ + --type totp diff --git a/docs/examples/1.8.x/console-cli/examples/account/delete-push-target.md b/docs/examples/1.8.x/console-cli/examples/account/delete-push-target.md index 610ea232d8..04f94f64dd 100644 --- a/docs/examples/1.8.x/console-cli/examples/account/delete-push-target.md +++ b/docs/examples/1.8.x/console-cli/examples/account/delete-push-target.md @@ -1,2 +1,2 @@ -appwrite account deletePushTarget \ - --targetId +appwrite account delete-push-target \ + --target-id diff --git a/docs/examples/1.8.x/console-cli/examples/account/delete-session.md b/docs/examples/1.8.x/console-cli/examples/account/delete-session.md index 9774552408..6476fd9aa5 100644 --- a/docs/examples/1.8.x/console-cli/examples/account/delete-session.md +++ b/docs/examples/1.8.x/console-cli/examples/account/delete-session.md @@ -1,2 +1,2 @@ -appwrite account deleteSession \ - --sessionId +appwrite account delete-session \ + --session-id diff --git a/docs/examples/1.8.x/console-cli/examples/account/delete-sessions.md b/docs/examples/1.8.x/console-cli/examples/account/delete-sessions.md index dd11877a5d..7381069181 100644 --- a/docs/examples/1.8.x/console-cli/examples/account/delete-sessions.md +++ b/docs/examples/1.8.x/console-cli/examples/account/delete-sessions.md @@ -1 +1 @@ -appwrite account deleteSessions +appwrite account delete-sessions diff --git a/docs/examples/1.8.x/console-cli/examples/account/get-m-f-a-recovery-codes.md b/docs/examples/1.8.x/console-cli/examples/account/get-m-f-a-recovery-codes.md deleted file mode 100644 index d4e274c1b2..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/account/get-m-f-a-recovery-codes.md +++ /dev/null @@ -1 +0,0 @@ -appwrite account getMFARecoveryCodes diff --git a/docs/examples/1.8.x/console-cli/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.8.x/console-cli/examples/account/get-mfa-recovery-codes.md index 0e61d658de..01a2f35e5c 100644 --- a/docs/examples/1.8.x/console-cli/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/console-cli/examples/account/get-mfa-recovery-codes.md @@ -1 +1 @@ -appwrite account getMfaRecoveryCodes +appwrite account get-mfa-recovery-codes diff --git a/docs/examples/1.8.x/console-cli/examples/account/get-prefs.md b/docs/examples/1.8.x/console-cli/examples/account/get-prefs.md index 6569925d99..5796c083ed 100644 --- a/docs/examples/1.8.x/console-cli/examples/account/get-prefs.md +++ b/docs/examples/1.8.x/console-cli/examples/account/get-prefs.md @@ -1 +1 @@ -appwrite account getPrefs +appwrite account get-prefs diff --git a/docs/examples/1.8.x/console-cli/examples/account/get-session.md b/docs/examples/1.8.x/console-cli/examples/account/get-session.md index 120dc8277f..9901eb244e 100644 --- a/docs/examples/1.8.x/console-cli/examples/account/get-session.md +++ b/docs/examples/1.8.x/console-cli/examples/account/get-session.md @@ -1,2 +1,2 @@ -appwrite account getSession \ - --sessionId +appwrite account get-session \ + --session-id diff --git a/docs/examples/1.8.x/console-cli/examples/account/list-identities.md b/docs/examples/1.8.x/console-cli/examples/account/list-identities.md index 877b443ea8..095dcc479e 100644 --- a/docs/examples/1.8.x/console-cli/examples/account/list-identities.md +++ b/docs/examples/1.8.x/console-cli/examples/account/list-identities.md @@ -1,2 +1 @@ -appwrite account listIdentities \ - +appwrite account list-identities diff --git a/docs/examples/1.8.x/console-cli/examples/account/list-logs.md b/docs/examples/1.8.x/console-cli/examples/account/list-logs.md index e92f49063a..73fb9b629d 100644 --- a/docs/examples/1.8.x/console-cli/examples/account/list-logs.md +++ b/docs/examples/1.8.x/console-cli/examples/account/list-logs.md @@ -1,2 +1 @@ -appwrite account listLogs \ - +appwrite account list-logs diff --git a/docs/examples/1.8.x/console-cli/examples/account/list-m-f-a-factors.md b/docs/examples/1.8.x/console-cli/examples/account/list-m-f-a-factors.md deleted file mode 100644 index 3f2b6d71ae..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/account/list-m-f-a-factors.md +++ /dev/null @@ -1 +0,0 @@ -appwrite account listMFAFactors diff --git a/docs/examples/1.8.x/console-cli/examples/account/list-mfa-factors.md b/docs/examples/1.8.x/console-cli/examples/account/list-mfa-factors.md index a29f287d24..6930f34747 100644 --- a/docs/examples/1.8.x/console-cli/examples/account/list-mfa-factors.md +++ b/docs/examples/1.8.x/console-cli/examples/account/list-mfa-factors.md @@ -1 +1 @@ -appwrite account listMfaFactors +appwrite account list-mfa-factors diff --git a/docs/examples/1.8.x/console-cli/examples/account/list-sessions.md b/docs/examples/1.8.x/console-cli/examples/account/list-sessions.md index 87cbab0f66..1aca27baf4 100644 --- a/docs/examples/1.8.x/console-cli/examples/account/list-sessions.md +++ b/docs/examples/1.8.x/console-cli/examples/account/list-sessions.md @@ -1 +1 @@ -appwrite account listSessions +appwrite account list-sessions diff --git a/docs/examples/1.8.x/console-cli/examples/account/update-email.md b/docs/examples/1.8.x/console-cli/examples/account/update-email.md index 81938ff3a9..9753a064fc 100644 --- a/docs/examples/1.8.x/console-cli/examples/account/update-email.md +++ b/docs/examples/1.8.x/console-cli/examples/account/update-email.md @@ -1,3 +1,3 @@ -appwrite account updateEmail \ - --email email@example.com \ - --password password +appwrite account update-email \ + --email email@example.com \ + --password password diff --git a/docs/examples/1.8.x/console-cli/examples/account/update-m-f-a-authenticator.md b/docs/examples/1.8.x/console-cli/examples/account/update-m-f-a-authenticator.md deleted file mode 100644 index d38af3d2a0..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/account/update-m-f-a-authenticator.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite account updateMFAAuthenticator \ - --type totp \ - --otp diff --git a/docs/examples/1.8.x/console-cli/examples/account/update-m-f-a-challenge.md b/docs/examples/1.8.x/console-cli/examples/account/update-m-f-a-challenge.md deleted file mode 100644 index f6c3dcf919..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/account/update-m-f-a-challenge.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite account updateMFAChallenge \ - --challengeId \ - --otp diff --git a/docs/examples/1.8.x/console-cli/examples/account/update-m-f-a-recovery-codes.md b/docs/examples/1.8.x/console-cli/examples/account/update-m-f-a-recovery-codes.md deleted file mode 100644 index d3b398ba96..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/account/update-m-f-a-recovery-codes.md +++ /dev/null @@ -1 +0,0 @@ -appwrite account updateMFARecoveryCodes diff --git a/docs/examples/1.8.x/console-cli/examples/account/update-m-f-a.md b/docs/examples/1.8.x/console-cli/examples/account/update-m-f-a.md deleted file mode 100644 index f714d4dbe9..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/account/update-m-f-a.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite account updateMFA \ - --mfa false diff --git a/docs/examples/1.8.x/console-cli/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.8.x/console-cli/examples/account/update-magic-u-r-l-session.md deleted file mode 100644 index 919bd70a30..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/account/update-magic-u-r-l-session.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite account updateMagicURLSession \ - --userId \ - --secret diff --git a/docs/examples/1.8.x/console-cli/examples/account/update-magic-url-session.md b/docs/examples/1.8.x/console-cli/examples/account/update-magic-url-session.md new file mode 100644 index 0000000000..0bf9ed7d76 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/account/update-magic-url-session.md @@ -0,0 +1,3 @@ +appwrite account update-magic-url-session \ + --user-id \ + --secret diff --git a/docs/examples/1.8.x/console-cli/examples/account/update-mfa-authenticator.md b/docs/examples/1.8.x/console-cli/examples/account/update-mfa-authenticator.md index b51796a79e..838297ba43 100644 --- a/docs/examples/1.8.x/console-cli/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.8.x/console-cli/examples/account/update-mfa-authenticator.md @@ -1,3 +1,3 @@ -appwrite account updateMfaAuthenticator \ - --type totp \ - --otp +appwrite account update-mfa-authenticator \ + --type totp \ + --otp diff --git a/docs/examples/1.8.x/console-cli/examples/account/update-mfa-challenge.md b/docs/examples/1.8.x/console-cli/examples/account/update-mfa-challenge.md index 37e09ef4e8..4a5c8fbf63 100644 --- a/docs/examples/1.8.x/console-cli/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.8.x/console-cli/examples/account/update-mfa-challenge.md @@ -1,3 +1,3 @@ -appwrite account updateMfaChallenge \ - --challengeId \ - --otp +appwrite account update-mfa-challenge \ + --challenge-id \ + --otp diff --git a/docs/examples/1.8.x/console-cli/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.8.x/console-cli/examples/account/update-mfa-recovery-codes.md index a129ca6f98..9e9ab074bd 100644 --- a/docs/examples/1.8.x/console-cli/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/console-cli/examples/account/update-mfa-recovery-codes.md @@ -1 +1 @@ -appwrite account updateMfaRecoveryCodes +appwrite account update-mfa-recovery-codes diff --git a/docs/examples/1.8.x/console-cli/examples/account/update-mfa.md b/docs/examples/1.8.x/console-cli/examples/account/update-mfa.md new file mode 100644 index 0000000000..fa122d9bde --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/account/update-mfa.md @@ -0,0 +1,2 @@ +appwrite account update-mfa \ + --mfa false diff --git a/docs/examples/1.8.x/console-cli/examples/account/update-name.md b/docs/examples/1.8.x/console-cli/examples/account/update-name.md index 6f3b5977f4..c858d0e378 100644 --- a/docs/examples/1.8.x/console-cli/examples/account/update-name.md +++ b/docs/examples/1.8.x/console-cli/examples/account/update-name.md @@ -1,2 +1,2 @@ -appwrite account updateName \ - --name +appwrite account update-name \ + --name diff --git a/docs/examples/1.8.x/console-cli/examples/account/update-password.md b/docs/examples/1.8.x/console-cli/examples/account/update-password.md index 340baec562..e4bbdfc4e9 100644 --- a/docs/examples/1.8.x/console-cli/examples/account/update-password.md +++ b/docs/examples/1.8.x/console-cli/examples/account/update-password.md @@ -1,3 +1,2 @@ -appwrite account updatePassword \ - --password '' \ - +appwrite account update-password \ + --password '' diff --git a/docs/examples/1.8.x/console-cli/examples/account/update-phone-session.md b/docs/examples/1.8.x/console-cli/examples/account/update-phone-session.md index d70f33fab5..599a905367 100644 --- a/docs/examples/1.8.x/console-cli/examples/account/update-phone-session.md +++ b/docs/examples/1.8.x/console-cli/examples/account/update-phone-session.md @@ -1,3 +1,3 @@ -appwrite account updatePhoneSession \ - --userId \ - --secret +appwrite account update-phone-session \ + --user-id \ + --secret diff --git a/docs/examples/1.8.x/console-cli/examples/account/update-phone-verification.md b/docs/examples/1.8.x/console-cli/examples/account/update-phone-verification.md index cef2b5a40d..59dde678eb 100644 --- a/docs/examples/1.8.x/console-cli/examples/account/update-phone-verification.md +++ b/docs/examples/1.8.x/console-cli/examples/account/update-phone-verification.md @@ -1,3 +1,3 @@ -appwrite account updatePhoneVerification \ - --userId \ - --secret +appwrite account update-phone-verification \ + --user-id \ + --secret diff --git a/docs/examples/1.8.x/console-cli/examples/account/update-phone.md b/docs/examples/1.8.x/console-cli/examples/account/update-phone.md index 93a619a801..5c257c8455 100644 --- a/docs/examples/1.8.x/console-cli/examples/account/update-phone.md +++ b/docs/examples/1.8.x/console-cli/examples/account/update-phone.md @@ -1,3 +1,3 @@ -appwrite account updatePhone \ - --phone +12065550100 \ - --password password +appwrite account update-phone \ + --phone +12065550100 \ + --password password diff --git a/docs/examples/1.8.x/console-cli/examples/account/update-prefs.md b/docs/examples/1.8.x/console-cli/examples/account/update-prefs.md index 568ac66e48..7b00d7bcfc 100644 --- a/docs/examples/1.8.x/console-cli/examples/account/update-prefs.md +++ b/docs/examples/1.8.x/console-cli/examples/account/update-prefs.md @@ -1,2 +1,2 @@ -appwrite account updatePrefs \ - --prefs '{ "key": "value" }' +appwrite account update-prefs \ + --prefs '{ "key": "value" }' diff --git a/docs/examples/1.8.x/console-cli/examples/account/update-push-target.md b/docs/examples/1.8.x/console-cli/examples/account/update-push-target.md index f3aa1a906a..f71232af3e 100644 --- a/docs/examples/1.8.x/console-cli/examples/account/update-push-target.md +++ b/docs/examples/1.8.x/console-cli/examples/account/update-push-target.md @@ -1,3 +1,3 @@ -appwrite account updatePushTarget \ - --targetId \ - --identifier +appwrite account update-push-target \ + --target-id \ + --identifier diff --git a/docs/examples/1.8.x/console-cli/examples/account/update-recovery.md b/docs/examples/1.8.x/console-cli/examples/account/update-recovery.md index 903a99cc99..c2a97bda55 100644 --- a/docs/examples/1.8.x/console-cli/examples/account/update-recovery.md +++ b/docs/examples/1.8.x/console-cli/examples/account/update-recovery.md @@ -1,4 +1,4 @@ -appwrite account updateRecovery \ - --userId \ - --secret \ - --password '' +appwrite account update-recovery \ + --user-id \ + --secret \ + --password '' diff --git a/docs/examples/1.8.x/console-cli/examples/account/update-session.md b/docs/examples/1.8.x/console-cli/examples/account/update-session.md index 5fb6a2e8d5..36833c4674 100644 --- a/docs/examples/1.8.x/console-cli/examples/account/update-session.md +++ b/docs/examples/1.8.x/console-cli/examples/account/update-session.md @@ -1,2 +1,2 @@ -appwrite account updateSession \ - --sessionId +appwrite account update-session \ + --session-id diff --git a/docs/examples/1.8.x/console-cli/examples/account/update-status.md b/docs/examples/1.8.x/console-cli/examples/account/update-status.md index 8886dbbc6a..d27174920b 100644 --- a/docs/examples/1.8.x/console-cli/examples/account/update-status.md +++ b/docs/examples/1.8.x/console-cli/examples/account/update-status.md @@ -1 +1 @@ -appwrite account updateStatus +appwrite account update-status diff --git a/docs/examples/1.8.x/console-cli/examples/account/update-verification.md b/docs/examples/1.8.x/console-cli/examples/account/update-verification.md index afdfaa8372..d7276c6325 100644 --- a/docs/examples/1.8.x/console-cli/examples/account/update-verification.md +++ b/docs/examples/1.8.x/console-cli/examples/account/update-verification.md @@ -1,3 +1,3 @@ -appwrite account updateVerification \ - --userId \ - --secret +appwrite account update-verification \ + --user-id \ + --secret diff --git a/docs/examples/1.8.x/console-cli/examples/avatars/get-browser.md b/docs/examples/1.8.x/console-cli/examples/avatars/get-browser.md index 6b4f0b8007..b9dce0b974 100644 --- a/docs/examples/1.8.x/console-cli/examples/avatars/get-browser.md +++ b/docs/examples/1.8.x/console-cli/examples/avatars/get-browser.md @@ -1,5 +1,2 @@ -appwrite avatars getBrowser \ - --code aa \ - - - +appwrite avatars get-browser \ + --code aa diff --git a/docs/examples/1.8.x/console-cli/examples/avatars/get-credit-card.md b/docs/examples/1.8.x/console-cli/examples/avatars/get-credit-card.md index 365568ba19..0a8317a9fb 100644 --- a/docs/examples/1.8.x/console-cli/examples/avatars/get-credit-card.md +++ b/docs/examples/1.8.x/console-cli/examples/avatars/get-credit-card.md @@ -1,5 +1,2 @@ -appwrite avatars getCreditCard \ - --code amex \ - - - +appwrite avatars get-credit-card \ + --code amex diff --git a/docs/examples/1.8.x/console-cli/examples/avatars/get-favicon.md b/docs/examples/1.8.x/console-cli/examples/avatars/get-favicon.md index c658f1a483..c2f4c806ae 100644 --- a/docs/examples/1.8.x/console-cli/examples/avatars/get-favicon.md +++ b/docs/examples/1.8.x/console-cli/examples/avatars/get-favicon.md @@ -1,2 +1,2 @@ -appwrite avatars getFavicon \ - --url https://example.com +appwrite avatars get-favicon \ + --url https://example.com diff --git a/docs/examples/1.8.x/console-cli/examples/avatars/get-flag.md b/docs/examples/1.8.x/console-cli/examples/avatars/get-flag.md index 9f11fef840..15a3daf85e 100644 --- a/docs/examples/1.8.x/console-cli/examples/avatars/get-flag.md +++ b/docs/examples/1.8.x/console-cli/examples/avatars/get-flag.md @@ -1,5 +1,2 @@ -appwrite avatars getFlag \ - --code af \ - - - +appwrite avatars get-flag \ + --code af diff --git a/docs/examples/1.8.x/console-cli/examples/avatars/get-image.md b/docs/examples/1.8.x/console-cli/examples/avatars/get-image.md index 7df150610c..942574acea 100644 --- a/docs/examples/1.8.x/console-cli/examples/avatars/get-image.md +++ b/docs/examples/1.8.x/console-cli/examples/avatars/get-image.md @@ -1,4 +1,2 @@ -appwrite avatars getImage \ - --url https://example.com \ - - +appwrite avatars get-image \ + --url https://example.com diff --git a/docs/examples/1.8.x/console-cli/examples/avatars/get-initials.md b/docs/examples/1.8.x/console-cli/examples/avatars/get-initials.md index b0b3da71c9..f9d5110590 100644 --- a/docs/examples/1.8.x/console-cli/examples/avatars/get-initials.md +++ b/docs/examples/1.8.x/console-cli/examples/avatars/get-initials.md @@ -1,5 +1 @@ -appwrite avatars getInitials \ - - - - +appwrite avatars get-initials diff --git a/docs/examples/1.8.x/console-cli/examples/avatars/get-q-r.md b/docs/examples/1.8.x/console-cli/examples/avatars/get-q-r.md deleted file mode 100644 index 01e5085732..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/avatars/get-q-r.md +++ /dev/null @@ -1,5 +0,0 @@ -appwrite avatars getQR \ - --text \ - - - diff --git a/docs/examples/1.8.x/console-cli/examples/avatars/get-qr.md b/docs/examples/1.8.x/console-cli/examples/avatars/get-qr.md new file mode 100644 index 0000000000..75fb094a08 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/avatars/get-qr.md @@ -0,0 +1,2 @@ +appwrite avatars get-qr \ + --text diff --git a/docs/examples/1.8.x/console-cli/examples/console/get-resource.md b/docs/examples/1.8.x/console-cli/examples/console/get-resource.md index 3e55163966..5251dd6ac6 100644 --- a/docs/examples/1.8.x/console-cli/examples/console/get-resource.md +++ b/docs/examples/1.8.x/console-cli/examples/console/get-resource.md @@ -1,3 +1,3 @@ -appwrite console getResource \ - --value \ - --type rules +appwrite console get-resource \ + --value \ + --type rules diff --git a/docs/examples/1.8.x/console-cli/examples/databases/create-boolean-attribute.md b/docs/examples/1.8.x/console-cli/examples/databases/create-boolean-attribute.md index 6babbfb5af..ce4d65fa15 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/create-boolean-attribute.md @@ -1,7 +1,5 @@ -appwrite databases createBooleanAttribute \ - --databaseId \ - --collectionId \ - --key '' \ - --required false \ - - +appwrite databases create-boolean-attribute \ + --database-id \ + --collection-id \ + --key '' \ + --required false diff --git a/docs/examples/1.8.x/console-cli/examples/databases/create-collection.md b/docs/examples/1.8.x/console-cli/examples/databases/create-collection.md index d97c424d16..89a754ce24 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/create-collection.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/create-collection.md @@ -1,7 +1,4 @@ -appwrite databases createCollection \ - --databaseId \ - --collectionId \ - --name \ - - - +appwrite databases create-collection \ + --database-id \ + --collection-id \ + --name diff --git a/docs/examples/1.8.x/console-cli/examples/databases/create-datetime-attribute.md b/docs/examples/1.8.x/console-cli/examples/databases/create-datetime-attribute.md index f6aaf54fa2..b445d0841a 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/create-datetime-attribute.md @@ -1,7 +1,5 @@ -appwrite databases createDatetimeAttribute \ - --databaseId \ - --collectionId \ - --key '' \ - --required false \ - - +appwrite databases create-datetime-attribute \ + --database-id \ + --collection-id \ + --key '' \ + --required false diff --git a/docs/examples/1.8.x/console-cli/examples/databases/create-document.md b/docs/examples/1.8.x/console-cli/examples/databases/create-document.md index 513cfc4f33..a45335ad4e 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/create-document.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/create-document.md @@ -1,6 +1,5 @@ -appwrite databases createDocument \ - --databaseId \ - --collectionId \ - --documentId \ - --data '{ "key": "value" }' \ - +appwrite databases create-document \ + --database-id \ + --collection-id \ + --document-id \ + --data '{ "key": "value" }' diff --git a/docs/examples/1.8.x/console-cli/examples/databases/create-documents.md b/docs/examples/1.8.x/console-cli/examples/databases/create-documents.md index e9e65b5c3c..3512b684a7 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/create-documents.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/create-documents.md @@ -1,4 +1,4 @@ -appwrite databases createDocuments \ - --databaseId \ - --collectionId \ - --documents one two three +appwrite databases create-documents \ + --database-id \ + --collection-id \ + --documents one two three diff --git a/docs/examples/1.8.x/console-cli/examples/databases/create-email-attribute.md b/docs/examples/1.8.x/console-cli/examples/databases/create-email-attribute.md index 5c23f940de..e4e9a0ba18 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/create-email-attribute.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/create-email-attribute.md @@ -1,7 +1,5 @@ -appwrite databases createEmailAttribute \ - --databaseId \ - --collectionId \ - --key '' \ - --required false \ - - +appwrite databases create-email-attribute \ + --database-id \ + --collection-id \ + --key '' \ + --required false diff --git a/docs/examples/1.8.x/console-cli/examples/databases/create-enum-attribute.md b/docs/examples/1.8.x/console-cli/examples/databases/create-enum-attribute.md index 5d3c614410..2d4c72be0f 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/create-enum-attribute.md @@ -1,8 +1,6 @@ -appwrite databases createEnumAttribute \ - --databaseId \ - --collectionId \ - --key '' \ - --elements one two three \ - --required false \ - - +appwrite databases create-enum-attribute \ + --database-id \ + --collection-id \ + --key '' \ + --elements one two three \ + --required false diff --git a/docs/examples/1.8.x/console-cli/examples/databases/create-float-attribute.md b/docs/examples/1.8.x/console-cli/examples/databases/create-float-attribute.md index 5a6ef4e4ef..0b9988b3a4 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/create-float-attribute.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/create-float-attribute.md @@ -1,9 +1,5 @@ -appwrite databases createFloatAttribute \ - --databaseId \ - --collectionId \ - --key '' \ - --required false \ - - - - +appwrite databases create-float-attribute \ + --database-id \ + --collection-id \ + --key '' \ + --required false diff --git a/docs/examples/1.8.x/console-cli/examples/databases/create-index.md b/docs/examples/1.8.x/console-cli/examples/databases/create-index.md index 2dc95ea921..cd8fc1dc4f 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/create-index.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/create-index.md @@ -1,8 +1,6 @@ -appwrite databases createIndex \ - --databaseId \ - --collectionId \ - --key '' \ - --type key \ - --attributes one two three \ - - +appwrite databases create-index \ + --database-id \ + --collection-id \ + --key '' \ + --type key \ + --attributes one two three diff --git a/docs/examples/1.8.x/console-cli/examples/databases/create-integer-attribute.md b/docs/examples/1.8.x/console-cli/examples/databases/create-integer-attribute.md index 791f3770c9..4c2207e891 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/create-integer-attribute.md @@ -1,9 +1,5 @@ -appwrite databases createIntegerAttribute \ - --databaseId \ - --collectionId \ - --key '' \ - --required false \ - - - - +appwrite databases create-integer-attribute \ + --database-id \ + --collection-id \ + --key '' \ + --required false diff --git a/docs/examples/1.8.x/console-cli/examples/databases/create-ip-attribute.md b/docs/examples/1.8.x/console-cli/examples/databases/create-ip-attribute.md index 4f39d84bab..a1cd44e80c 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/create-ip-attribute.md @@ -1,7 +1,5 @@ -appwrite databases createIpAttribute \ - --databaseId \ - --collectionId \ - --key '' \ - --required false \ - - +appwrite databases create-ip-attribute \ + --database-id \ + --collection-id \ + --key '' \ + --required false diff --git a/docs/examples/1.8.x/console-cli/examples/databases/create-relationship-attribute.md b/docs/examples/1.8.x/console-cli/examples/databases/create-relationship-attribute.md index c7d8ae568a..700316239c 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/create-relationship-attribute.md @@ -1,9 +1,5 @@ -appwrite databases createRelationshipAttribute \ - --databaseId \ - --collectionId \ - --relatedCollectionId \ - --type oneToOne \ - - - - +appwrite databases create-relationship-attribute \ + --database-id \ + --collection-id \ + --related-collection-id \ + --type oneToOne diff --git a/docs/examples/1.8.x/console-cli/examples/databases/create-string-attribute.md b/docs/examples/1.8.x/console-cli/examples/databases/create-string-attribute.md index 37b1db644a..ed464c59dc 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/create-string-attribute.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/create-string-attribute.md @@ -1,9 +1,6 @@ -appwrite databases createStringAttribute \ - --databaseId \ - --collectionId \ - --key '' \ - --size 1 \ - --required false \ - - - +appwrite databases create-string-attribute \ + --database-id \ + --collection-id \ + --key '' \ + --size 1 \ + --required false diff --git a/docs/examples/1.8.x/console-cli/examples/databases/create-url-attribute.md b/docs/examples/1.8.x/console-cli/examples/databases/create-url-attribute.md index 4406ed7879..6968e8c621 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/create-url-attribute.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/create-url-attribute.md @@ -1,7 +1,5 @@ -appwrite databases createUrlAttribute \ - --databaseId \ - --collectionId \ - --key '' \ - --required false \ - - +appwrite databases create-url-attribute \ + --database-id \ + --collection-id \ + --key '' \ + --required false diff --git a/docs/examples/1.8.x/console-cli/examples/databases/create.md b/docs/examples/1.8.x/console-cli/examples/databases/create.md index 9e7523974f..47b0438352 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/create.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/create.md @@ -1,4 +1,3 @@ appwrite databases create \ - --databaseId \ - --name \ - + --database-id \ + --name diff --git a/docs/examples/1.8.x/console-cli/examples/databases/decrement-document-attribute.md b/docs/examples/1.8.x/console-cli/examples/databases/decrement-document-attribute.md index e6607ea833..0b9b8a6b75 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/decrement-document-attribute.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/decrement-document-attribute.md @@ -1,7 +1,5 @@ -appwrite databases decrementDocumentAttribute \ - --databaseId \ - --collectionId \ - --documentId \ - --attribute '' \ - - +appwrite databases decrement-document-attribute \ + --database-id \ + --collection-id \ + --document-id \ + --attribute '' diff --git a/docs/examples/1.8.x/console-cli/examples/databases/delete-attribute.md b/docs/examples/1.8.x/console-cli/examples/databases/delete-attribute.md index 88e7df985f..0d68358642 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/delete-attribute.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/delete-attribute.md @@ -1,4 +1,4 @@ -appwrite databases deleteAttribute \ - --databaseId \ - --collectionId \ - --key '' +appwrite databases delete-attribute \ + --database-id \ + --collection-id \ + --key '' diff --git a/docs/examples/1.8.x/console-cli/examples/databases/delete-collection.md b/docs/examples/1.8.x/console-cli/examples/databases/delete-collection.md index 0db185a7d7..d120865c8d 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/delete-collection.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/delete-collection.md @@ -1,3 +1,3 @@ -appwrite databases deleteCollection \ - --databaseId \ - --collectionId +appwrite databases delete-collection \ + --database-id \ + --collection-id diff --git a/docs/examples/1.8.x/console-cli/examples/databases/delete-document.md b/docs/examples/1.8.x/console-cli/examples/databases/delete-document.md index 3a96d35798..8e900198e7 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/delete-document.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/delete-document.md @@ -1,4 +1,4 @@ -appwrite databases deleteDocument \ - --databaseId \ - --collectionId \ - --documentId +appwrite databases delete-document \ + --database-id \ + --collection-id \ + --document-id diff --git a/docs/examples/1.8.x/console-cli/examples/databases/delete-documents.md b/docs/examples/1.8.x/console-cli/examples/databases/delete-documents.md index 6f3463cbf9..b334ed7212 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/delete-documents.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/delete-documents.md @@ -1,4 +1,3 @@ -appwrite databases deleteDocuments \ - --databaseId \ - --collectionId \ - +appwrite databases delete-documents \ + --database-id \ + --collection-id diff --git a/docs/examples/1.8.x/console-cli/examples/databases/delete-index.md b/docs/examples/1.8.x/console-cli/examples/databases/delete-index.md index 56485e7a78..2de11d36f3 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/delete-index.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/delete-index.md @@ -1,4 +1,4 @@ -appwrite databases deleteIndex \ - --databaseId \ - --collectionId \ - --key '' +appwrite databases delete-index \ + --database-id \ + --collection-id \ + --key '' diff --git a/docs/examples/1.8.x/console-cli/examples/databases/delete.md b/docs/examples/1.8.x/console-cli/examples/databases/delete.md index a24a3a04d3..474377798c 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/delete.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/delete.md @@ -1,2 +1,2 @@ appwrite databases delete \ - --databaseId + --database-id diff --git a/docs/examples/1.8.x/console-cli/examples/databases/get-attribute.md b/docs/examples/1.8.x/console-cli/examples/databases/get-attribute.md index 821698011f..70cee2c6ad 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/get-attribute.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/get-attribute.md @@ -1,4 +1,4 @@ -appwrite databases getAttribute \ - --databaseId \ - --collectionId \ - --key '' +appwrite databases get-attribute \ + --database-id \ + --collection-id \ + --key '' diff --git a/docs/examples/1.8.x/console-cli/examples/databases/get-collection-usage.md b/docs/examples/1.8.x/console-cli/examples/databases/get-collection-usage.md index b57e6c92a9..c9881e2738 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/get-collection-usage.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/get-collection-usage.md @@ -1,4 +1,3 @@ -appwrite databases getCollectionUsage \ - --databaseId \ - --collectionId \ - +appwrite databases get-collection-usage \ + --database-id \ + --collection-id diff --git a/docs/examples/1.8.x/console-cli/examples/databases/get-collection.md b/docs/examples/1.8.x/console-cli/examples/databases/get-collection.md index e763b5bbfb..17cbdbef1f 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/get-collection.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/get-collection.md @@ -1,3 +1,3 @@ -appwrite databases getCollection \ - --databaseId \ - --collectionId +appwrite databases get-collection \ + --database-id \ + --collection-id diff --git a/docs/examples/1.8.x/console-cli/examples/databases/get-database-usage.md b/docs/examples/1.8.x/console-cli/examples/databases/get-database-usage.md deleted file mode 100644 index 1001e9cd11..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/databases/get-database-usage.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite databases getDatabaseUsage \ - --databaseId \ - diff --git a/docs/examples/1.8.x/console-cli/examples/databases/get-document.md b/docs/examples/1.8.x/console-cli/examples/databases/get-document.md index 35d9615503..beb44c14c1 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/get-document.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/get-document.md @@ -1,5 +1,4 @@ -appwrite databases getDocument \ - --databaseId \ - --collectionId \ - --documentId \ - +appwrite databases get-document \ + --database-id \ + --collection-id \ + --document-id diff --git a/docs/examples/1.8.x/console-cli/examples/databases/get-index.md b/docs/examples/1.8.x/console-cli/examples/databases/get-index.md index 0071834a8c..50b5961af4 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/get-index.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/get-index.md @@ -1,4 +1,4 @@ -appwrite databases getIndex \ - --databaseId \ - --collectionId \ - --key '' +appwrite databases get-index \ + --database-id \ + --collection-id \ + --key '' diff --git a/docs/examples/1.8.x/console-cli/examples/databases/get-usage.md b/docs/examples/1.8.x/console-cli/examples/databases/get-usage.md index 95263455e9..e3c8748121 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/get-usage.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/get-usage.md @@ -1,3 +1,2 @@ -appwrite databases getUsage \ - --databaseId \ - +appwrite databases get-usage \ + --database-id diff --git a/docs/examples/1.8.x/console-cli/examples/databases/get.md b/docs/examples/1.8.x/console-cli/examples/databases/get.md index 35480b64cc..83cec7dcbc 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/get.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/get.md @@ -1,2 +1,2 @@ appwrite databases get \ - --databaseId + --database-id diff --git a/docs/examples/1.8.x/console-cli/examples/databases/increment-document-attribute.md b/docs/examples/1.8.x/console-cli/examples/databases/increment-document-attribute.md index 8a5150eebd..d51e44db23 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/increment-document-attribute.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/increment-document-attribute.md @@ -1,7 +1,5 @@ -appwrite databases incrementDocumentAttribute \ - --databaseId \ - --collectionId \ - --documentId \ - --attribute '' \ - - +appwrite databases increment-document-attribute \ + --database-id \ + --collection-id \ + --document-id \ + --attribute '' diff --git a/docs/examples/1.8.x/console-cli/examples/databases/list-attributes.md b/docs/examples/1.8.x/console-cli/examples/databases/list-attributes.md index a2382feb3a..c531111eb6 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/list-attributes.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/list-attributes.md @@ -1,4 +1,3 @@ -appwrite databases listAttributes \ - --databaseId \ - --collectionId \ - +appwrite databases list-attributes \ + --database-id \ + --collection-id diff --git a/docs/examples/1.8.x/console-cli/examples/databases/list-collection-logs.md b/docs/examples/1.8.x/console-cli/examples/databases/list-collection-logs.md index eadac47a6b..27f3a9bc5e 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/list-collection-logs.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/list-collection-logs.md @@ -1,4 +1,3 @@ -appwrite databases listCollectionLogs \ - --databaseId \ - --collectionId \ - +appwrite databases list-collection-logs \ + --database-id \ + --collection-id diff --git a/docs/examples/1.8.x/console-cli/examples/databases/list-collections.md b/docs/examples/1.8.x/console-cli/examples/databases/list-collections.md index b05c330be2..55576eb401 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/list-collections.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/list-collections.md @@ -1,4 +1,2 @@ -appwrite databases listCollections \ - --databaseId \ - - +appwrite databases list-collections \ + --database-id diff --git a/docs/examples/1.8.x/console-cli/examples/databases/list-document-logs.md b/docs/examples/1.8.x/console-cli/examples/databases/list-document-logs.md index 63b5394647..9f8fb22eb8 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/list-document-logs.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/list-document-logs.md @@ -1,5 +1,4 @@ -appwrite databases listDocumentLogs \ - --databaseId \ - --collectionId \ - --documentId \ - +appwrite databases list-document-logs \ + --database-id \ + --collection-id \ + --document-id diff --git a/docs/examples/1.8.x/console-cli/examples/databases/list-documents.md b/docs/examples/1.8.x/console-cli/examples/databases/list-documents.md index 98e389579d..69e921c012 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/list-documents.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/list-documents.md @@ -1,4 +1,3 @@ -appwrite databases listDocuments \ - --databaseId \ - --collectionId \ - +appwrite databases list-documents \ + --database-id \ + --collection-id diff --git a/docs/examples/1.8.x/console-cli/examples/databases/list-indexes.md b/docs/examples/1.8.x/console-cli/examples/databases/list-indexes.md index 50acb4d7ad..f12c1e9354 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/list-indexes.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/list-indexes.md @@ -1,4 +1,3 @@ -appwrite databases listIndexes \ - --databaseId \ - --collectionId \ - +appwrite databases list-indexes \ + --database-id \ + --collection-id diff --git a/docs/examples/1.8.x/console-cli/examples/databases/list-logs.md b/docs/examples/1.8.x/console-cli/examples/databases/list-logs.md index 38547c7c3c..293df55327 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/list-logs.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/list-logs.md @@ -1,3 +1,2 @@ -appwrite databases listLogs \ - --databaseId \ - +appwrite databases list-logs \ + --database-id diff --git a/docs/examples/1.8.x/console-cli/examples/databases/list-usage.md b/docs/examples/1.8.x/console-cli/examples/databases/list-usage.md index aad19fd2bd..6bff75fa89 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/list-usage.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/list-usage.md @@ -1,2 +1 @@ -appwrite databases listUsage \ - +appwrite databases list-usage diff --git a/docs/examples/1.8.x/console-cli/examples/databases/list-usages.md b/docs/examples/1.8.x/console-cli/examples/databases/list-usages.md deleted file mode 100644 index e909446e71..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/databases/list-usages.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite databases listUsages \ - diff --git a/docs/examples/1.8.x/console-cli/examples/databases/list.md b/docs/examples/1.8.x/console-cli/examples/databases/list.md index e723bc32ec..6681edc994 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/list.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/list.md @@ -1,3 +1 @@ -appwrite databases list \ - - +appwrite databases list diff --git a/docs/examples/1.8.x/console-cli/examples/databases/update-boolean-attribute.md b/docs/examples/1.8.x/console-cli/examples/databases/update-boolean-attribute.md index f5adb497ec..578a5dc526 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/update-boolean-attribute.md @@ -1,7 +1,6 @@ -appwrite databases updateBooleanAttribute \ - --databaseId \ - --collectionId \ - --key '' \ - --required false \ - --default false \ - +appwrite databases update-boolean-attribute \ + --database-id \ + --collection-id \ + --key '' \ + --required false \ + --default false diff --git a/docs/examples/1.8.x/console-cli/examples/databases/update-collection.md b/docs/examples/1.8.x/console-cli/examples/databases/update-collection.md index eab3617c80..0bad4850e4 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/update-collection.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/update-collection.md @@ -1,7 +1,4 @@ -appwrite databases updateCollection \ - --databaseId \ - --collectionId \ - --name \ - - - +appwrite databases update-collection \ + --database-id \ + --collection-id \ + --name diff --git a/docs/examples/1.8.x/console-cli/examples/databases/update-datetime-attribute.md b/docs/examples/1.8.x/console-cli/examples/databases/update-datetime-attribute.md index fe4a462664..53459e0218 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/update-datetime-attribute.md @@ -1,7 +1,6 @@ -appwrite databases updateDatetimeAttribute \ - --databaseId \ - --collectionId \ - --key '' \ - --required false \ - --default '' \ - +appwrite databases update-datetime-attribute \ + --database-id \ + --collection-id \ + --key '' \ + --required false \ + --default '' diff --git a/docs/examples/1.8.x/console-cli/examples/databases/update-document.md b/docs/examples/1.8.x/console-cli/examples/databases/update-document.md index a4ac55bf6b..29f14612a4 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/update-document.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/update-document.md @@ -1,6 +1,4 @@ -appwrite databases updateDocument \ - --databaseId \ - --collectionId \ - --documentId \ - - +appwrite databases update-document \ + --database-id \ + --collection-id \ + --document-id diff --git a/docs/examples/1.8.x/console-cli/examples/databases/update-documents.md b/docs/examples/1.8.x/console-cli/examples/databases/update-documents.md index 935f664440..f4f85eb79d 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/update-documents.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/update-documents.md @@ -1,5 +1,3 @@ -appwrite databases updateDocuments \ - --databaseId \ - --collectionId \ - - +appwrite databases update-documents \ + --database-id \ + --collection-id diff --git a/docs/examples/1.8.x/console-cli/examples/databases/update-email-attribute.md b/docs/examples/1.8.x/console-cli/examples/databases/update-email-attribute.md index 58510a6f8e..20ea219202 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/update-email-attribute.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/update-email-attribute.md @@ -1,7 +1,6 @@ -appwrite databases updateEmailAttribute \ - --databaseId \ - --collectionId \ - --key '' \ - --required false \ - --default email@example.com \ - +appwrite databases update-email-attribute \ + --database-id \ + --collection-id \ + --key '' \ + --required false \ + --default email@example.com diff --git a/docs/examples/1.8.x/console-cli/examples/databases/update-enum-attribute.md b/docs/examples/1.8.x/console-cli/examples/databases/update-enum-attribute.md index 21d56d3e64..dfae8d27f3 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/update-enum-attribute.md @@ -1,8 +1,7 @@ -appwrite databases updateEnumAttribute \ - --databaseId \ - --collectionId \ - --key '' \ - --elements one two three \ - --required false \ - --default \ - +appwrite databases update-enum-attribute \ + --database-id \ + --collection-id \ + --key '' \ + --elements one two three \ + --required false \ + --default diff --git a/docs/examples/1.8.x/console-cli/examples/databases/update-float-attribute.md b/docs/examples/1.8.x/console-cli/examples/databases/update-float-attribute.md index a9bba3eb5e..caeaa96f31 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/update-float-attribute.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/update-float-attribute.md @@ -1,9 +1,6 @@ -appwrite databases updateFloatAttribute \ - --databaseId \ - --collectionId \ - --key '' \ - --required false \ - --default null \ - - - +appwrite databases update-float-attribute \ + --database-id \ + --collection-id \ + --key '' \ + --required false \ + --default null diff --git a/docs/examples/1.8.x/console-cli/examples/databases/update-integer-attribute.md b/docs/examples/1.8.x/console-cli/examples/databases/update-integer-attribute.md index 660cd4d148..2ab6e12104 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/update-integer-attribute.md @@ -1,9 +1,6 @@ -appwrite databases updateIntegerAttribute \ - --databaseId \ - --collectionId \ - --key '' \ - --required false \ - --default null \ - - - +appwrite databases update-integer-attribute \ + --database-id \ + --collection-id \ + --key '' \ + --required false \ + --default null diff --git a/docs/examples/1.8.x/console-cli/examples/databases/update-ip-attribute.md b/docs/examples/1.8.x/console-cli/examples/databases/update-ip-attribute.md index a400eadc1e..44b4010570 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/update-ip-attribute.md @@ -1,7 +1,6 @@ -appwrite databases updateIpAttribute \ - --databaseId \ - --collectionId \ - --key '' \ - --required false \ - --default '' \ - +appwrite databases update-ip-attribute \ + --database-id \ + --collection-id \ + --key '' \ + --required false \ + --default '' diff --git a/docs/examples/1.8.x/console-cli/examples/databases/update-relationship-attribute.md b/docs/examples/1.8.x/console-cli/examples/databases/update-relationship-attribute.md index 6e2dbd927d..d3f27d78e2 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/update-relationship-attribute.md @@ -1,6 +1,4 @@ -appwrite databases updateRelationshipAttribute \ - --databaseId \ - --collectionId \ - --key '' \ - - +appwrite databases update-relationship-attribute \ + --database-id \ + --collection-id \ + --key '' diff --git a/docs/examples/1.8.x/console-cli/examples/databases/update-string-attribute.md b/docs/examples/1.8.x/console-cli/examples/databases/update-string-attribute.md index 526ece0b72..0e0dd714bd 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/update-string-attribute.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/update-string-attribute.md @@ -1,8 +1,6 @@ -appwrite databases updateStringAttribute \ - --databaseId \ - --collectionId \ - --key '' \ - --required false \ - --default \ - - +appwrite databases update-string-attribute \ + --database-id \ + --collection-id \ + --key '' \ + --required false \ + --default diff --git a/docs/examples/1.8.x/console-cli/examples/databases/update-url-attribute.md b/docs/examples/1.8.x/console-cli/examples/databases/update-url-attribute.md index e6f401b8ca..76e6feb15b 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/update-url-attribute.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/update-url-attribute.md @@ -1,7 +1,6 @@ -appwrite databases updateUrlAttribute \ - --databaseId \ - --collectionId \ - --key '' \ - --required false \ - --default https://example.com \ - +appwrite databases update-url-attribute \ + --database-id \ + --collection-id \ + --key '' \ + --required false \ + --default https://example.com diff --git a/docs/examples/1.8.x/console-cli/examples/databases/update.md b/docs/examples/1.8.x/console-cli/examples/databases/update.md index a1e0a844e5..e3e1de755c 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/update.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/update.md @@ -1,4 +1,3 @@ appwrite databases update \ - --databaseId \ - --name \ - + --database-id \ + --name diff --git a/docs/examples/1.8.x/console-cli/examples/databases/upsert-document.md b/docs/examples/1.8.x/console-cli/examples/databases/upsert-document.md index 40932014ba..558ffeb5c4 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/upsert-document.md @@ -1,6 +1,5 @@ -appwrite databases upsertDocument \ - --databaseId \ - --collectionId \ - --documentId \ - --data '{ "key": "value" }' \ - +appwrite databases upsert-document \ + --database-id \ + --collection-id \ + --document-id \ + --data '{ "key": "value" }' diff --git a/docs/examples/1.8.x/console-cli/examples/databases/upsert-documents.md b/docs/examples/1.8.x/console-cli/examples/databases/upsert-documents.md index cb1677b14c..e58c202da0 100644 --- a/docs/examples/1.8.x/console-cli/examples/databases/upsert-documents.md +++ b/docs/examples/1.8.x/console-cli/examples/databases/upsert-documents.md @@ -1,4 +1,4 @@ -appwrite databases upsertDocuments \ - --databaseId \ - --collectionId \ - --documents one two three +appwrite databases upsert-documents \ + --database-id \ + --collection-id \ + --documents one two three diff --git a/docs/examples/1.8.x/console-cli/examples/functions/create-deployment.md b/docs/examples/1.8.x/console-cli/examples/functions/create-deployment.md index 6ac80bd73a..465951c3ce 100644 --- a/docs/examples/1.8.x/console-cli/examples/functions/create-deployment.md +++ b/docs/examples/1.8.x/console-cli/examples/functions/create-deployment.md @@ -1,6 +1,4 @@ -appwrite functions createDeployment \ - --functionId \ - --code 'path/to/file.png' \ - --activate false \ - - +appwrite functions create-deployment \ + --function-id \ + --code 'path/to/file.png' \ + --activate false diff --git a/docs/examples/1.8.x/console-cli/examples/functions/create-duplicate-deployment.md b/docs/examples/1.8.x/console-cli/examples/functions/create-duplicate-deployment.md index 4839155bd2..7d5c28bcd6 100644 --- a/docs/examples/1.8.x/console-cli/examples/functions/create-duplicate-deployment.md +++ b/docs/examples/1.8.x/console-cli/examples/functions/create-duplicate-deployment.md @@ -1,4 +1,3 @@ -appwrite functions createDuplicateDeployment \ - --functionId \ - --deploymentId \ - +appwrite functions create-duplicate-deployment \ + --function-id \ + --deployment-id diff --git a/docs/examples/1.8.x/console-cli/examples/functions/create-execution.md b/docs/examples/1.8.x/console-cli/examples/functions/create-execution.md index febe88c541..fd3b3dd62a 100644 --- a/docs/examples/1.8.x/console-cli/examples/functions/create-execution.md +++ b/docs/examples/1.8.x/console-cli/examples/functions/create-execution.md @@ -1,8 +1,2 @@ -appwrite functions createExecution \ - --functionId \ - - - - - - +appwrite functions create-execution \ + --function-id diff --git a/docs/examples/1.8.x/console-cli/examples/functions/create-template-deployment.md b/docs/examples/1.8.x/console-cli/examples/functions/create-template-deployment.md index a6164a3d0b..f3c8487cf7 100644 --- a/docs/examples/1.8.x/console-cli/examples/functions/create-template-deployment.md +++ b/docs/examples/1.8.x/console-cli/examples/functions/create-template-deployment.md @@ -1,7 +1,6 @@ -appwrite functions createTemplateDeployment \ - --functionId \ - --repository \ - --owner \ - --rootDirectory \ - --version \ - +appwrite functions create-template-deployment \ + --function-id \ + --repository \ + --owner \ + --root-directory \ + --version diff --git a/docs/examples/1.8.x/console-cli/examples/functions/create-variable.md b/docs/examples/1.8.x/console-cli/examples/functions/create-variable.md index f35f228d41..50edcaaa72 100644 --- a/docs/examples/1.8.x/console-cli/examples/functions/create-variable.md +++ b/docs/examples/1.8.x/console-cli/examples/functions/create-variable.md @@ -1,5 +1,4 @@ -appwrite functions createVariable \ - --functionId \ - --key \ - --value \ - +appwrite functions create-variable \ + --function-id \ + --key \ + --value diff --git a/docs/examples/1.8.x/console-cli/examples/functions/create-vcs-deployment.md b/docs/examples/1.8.x/console-cli/examples/functions/create-vcs-deployment.md index 89f4caca66..8e846222c8 100644 --- a/docs/examples/1.8.x/console-cli/examples/functions/create-vcs-deployment.md +++ b/docs/examples/1.8.x/console-cli/examples/functions/create-vcs-deployment.md @@ -1,5 +1,4 @@ -appwrite functions createVcsDeployment \ - --functionId \ - --type branch \ - --reference \ - +appwrite functions create-vcs-deployment \ + --function-id \ + --type branch \ + --reference diff --git a/docs/examples/1.8.x/console-cli/examples/functions/create.md b/docs/examples/1.8.x/console-cli/examples/functions/create.md index ebca5741ed..bdca30d803 100644 --- a/docs/examples/1.8.x/console-cli/examples/functions/create.md +++ b/docs/examples/1.8.x/console-cli/examples/functions/create.md @@ -1,19 +1,4 @@ appwrite functions create \ - --functionId \ - --name \ - --runtime node-14.5 \ - - - - - - - - - - - - - - - + --function-id \ + --name \ + --runtime node-14.5 diff --git a/docs/examples/1.8.x/console-cli/examples/functions/delete-deployment.md b/docs/examples/1.8.x/console-cli/examples/functions/delete-deployment.md index 2c9a6aa04a..4f50b92780 100644 --- a/docs/examples/1.8.x/console-cli/examples/functions/delete-deployment.md +++ b/docs/examples/1.8.x/console-cli/examples/functions/delete-deployment.md @@ -1,3 +1,3 @@ -appwrite functions deleteDeployment \ - --functionId \ - --deploymentId +appwrite functions delete-deployment \ + --function-id \ + --deployment-id diff --git a/docs/examples/1.8.x/console-cli/examples/functions/delete-execution.md b/docs/examples/1.8.x/console-cli/examples/functions/delete-execution.md index 2926b5aaf1..a11c4cb7ed 100644 --- a/docs/examples/1.8.x/console-cli/examples/functions/delete-execution.md +++ b/docs/examples/1.8.x/console-cli/examples/functions/delete-execution.md @@ -1,3 +1,3 @@ -appwrite functions deleteExecution \ - --functionId \ - --executionId +appwrite functions delete-execution \ + --function-id \ + --execution-id diff --git a/docs/examples/1.8.x/console-cli/examples/functions/delete-variable.md b/docs/examples/1.8.x/console-cli/examples/functions/delete-variable.md index 835d125dc6..aebe85704f 100644 --- a/docs/examples/1.8.x/console-cli/examples/functions/delete-variable.md +++ b/docs/examples/1.8.x/console-cli/examples/functions/delete-variable.md @@ -1,3 +1,3 @@ -appwrite functions deleteVariable \ - --functionId \ - --variableId +appwrite functions delete-variable \ + --function-id \ + --variable-id diff --git a/docs/examples/1.8.x/console-cli/examples/functions/delete.md b/docs/examples/1.8.x/console-cli/examples/functions/delete.md index 0eea41c849..abf27334fc 100644 --- a/docs/examples/1.8.x/console-cli/examples/functions/delete.md +++ b/docs/examples/1.8.x/console-cli/examples/functions/delete.md @@ -1,2 +1,2 @@ appwrite functions delete \ - --functionId + --function-id diff --git a/docs/examples/1.8.x/console-cli/examples/functions/get-deployment-download.md b/docs/examples/1.8.x/console-cli/examples/functions/get-deployment-download.md index 485b608623..b9bfcabf65 100644 --- a/docs/examples/1.8.x/console-cli/examples/functions/get-deployment-download.md +++ b/docs/examples/1.8.x/console-cli/examples/functions/get-deployment-download.md @@ -1,4 +1,3 @@ -appwrite functions getDeploymentDownload \ - --functionId \ - --deploymentId \ - +appwrite functions get-deployment-download \ + --function-id \ + --deployment-id diff --git a/docs/examples/1.8.x/console-cli/examples/functions/get-deployment.md b/docs/examples/1.8.x/console-cli/examples/functions/get-deployment.md index 3da1605fea..4a658074fd 100644 --- a/docs/examples/1.8.x/console-cli/examples/functions/get-deployment.md +++ b/docs/examples/1.8.x/console-cli/examples/functions/get-deployment.md @@ -1,3 +1,3 @@ -appwrite functions getDeployment \ - --functionId \ - --deploymentId +appwrite functions get-deployment \ + --function-id \ + --deployment-id diff --git a/docs/examples/1.8.x/console-cli/examples/functions/get-execution.md b/docs/examples/1.8.x/console-cli/examples/functions/get-execution.md index d593f07c43..ac2ad14278 100644 --- a/docs/examples/1.8.x/console-cli/examples/functions/get-execution.md +++ b/docs/examples/1.8.x/console-cli/examples/functions/get-execution.md @@ -1,3 +1,3 @@ -appwrite functions getExecution \ - --functionId \ - --executionId +appwrite functions get-execution \ + --function-id \ + --execution-id diff --git a/docs/examples/1.8.x/console-cli/examples/functions/get-template.md b/docs/examples/1.8.x/console-cli/examples/functions/get-template.md index 15c6068f35..2ab2afbcf4 100644 --- a/docs/examples/1.8.x/console-cli/examples/functions/get-template.md +++ b/docs/examples/1.8.x/console-cli/examples/functions/get-template.md @@ -1,2 +1,2 @@ -appwrite functions getTemplate \ - --templateId +appwrite functions get-template \ + --template-id diff --git a/docs/examples/1.8.x/console-cli/examples/functions/get-usage.md b/docs/examples/1.8.x/console-cli/examples/functions/get-usage.md index 469db0f171..a3f061d1f5 100644 --- a/docs/examples/1.8.x/console-cli/examples/functions/get-usage.md +++ b/docs/examples/1.8.x/console-cli/examples/functions/get-usage.md @@ -1,3 +1,2 @@ -appwrite functions getUsage \ - --functionId \ - +appwrite functions get-usage \ + --function-id diff --git a/docs/examples/1.8.x/console-cli/examples/functions/get-variable.md b/docs/examples/1.8.x/console-cli/examples/functions/get-variable.md index 241a91d936..06a3a496a3 100644 --- a/docs/examples/1.8.x/console-cli/examples/functions/get-variable.md +++ b/docs/examples/1.8.x/console-cli/examples/functions/get-variable.md @@ -1,3 +1,3 @@ -appwrite functions getVariable \ - --functionId \ - --variableId +appwrite functions get-variable \ + --function-id \ + --variable-id diff --git a/docs/examples/1.8.x/console-cli/examples/functions/get.md b/docs/examples/1.8.x/console-cli/examples/functions/get.md index f678ef7663..fafa87ec39 100644 --- a/docs/examples/1.8.x/console-cli/examples/functions/get.md +++ b/docs/examples/1.8.x/console-cli/examples/functions/get.md @@ -1,2 +1,2 @@ appwrite functions get \ - --functionId + --function-id diff --git a/docs/examples/1.8.x/console-cli/examples/functions/list-deployments.md b/docs/examples/1.8.x/console-cli/examples/functions/list-deployments.md index 2befb86abc..5bb2c60192 100644 --- a/docs/examples/1.8.x/console-cli/examples/functions/list-deployments.md +++ b/docs/examples/1.8.x/console-cli/examples/functions/list-deployments.md @@ -1,4 +1,2 @@ -appwrite functions listDeployments \ - --functionId \ - - +appwrite functions list-deployments \ + --function-id diff --git a/docs/examples/1.8.x/console-cli/examples/functions/list-executions.md b/docs/examples/1.8.x/console-cli/examples/functions/list-executions.md index 8d3136e6a4..a008947741 100644 --- a/docs/examples/1.8.x/console-cli/examples/functions/list-executions.md +++ b/docs/examples/1.8.x/console-cli/examples/functions/list-executions.md @@ -1,3 +1,2 @@ -appwrite functions listExecutions \ - --functionId \ - +appwrite functions list-executions \ + --function-id diff --git a/docs/examples/1.8.x/console-cli/examples/functions/list-runtimes.md b/docs/examples/1.8.x/console-cli/examples/functions/list-runtimes.md index 15dc019c44..a0430d6cc3 100644 --- a/docs/examples/1.8.x/console-cli/examples/functions/list-runtimes.md +++ b/docs/examples/1.8.x/console-cli/examples/functions/list-runtimes.md @@ -1 +1 @@ -appwrite functions listRuntimes +appwrite functions list-runtimes diff --git a/docs/examples/1.8.x/console-cli/examples/functions/list-specifications.md b/docs/examples/1.8.x/console-cli/examples/functions/list-specifications.md index 1d64bc68e7..4fac74ec31 100644 --- a/docs/examples/1.8.x/console-cli/examples/functions/list-specifications.md +++ b/docs/examples/1.8.x/console-cli/examples/functions/list-specifications.md @@ -1 +1 @@ -appwrite functions listSpecifications +appwrite functions list-specifications diff --git a/docs/examples/1.8.x/console-cli/examples/functions/list-templates.md b/docs/examples/1.8.x/console-cli/examples/functions/list-templates.md index b48bab53e1..22209fe198 100644 --- a/docs/examples/1.8.x/console-cli/examples/functions/list-templates.md +++ b/docs/examples/1.8.x/console-cli/examples/functions/list-templates.md @@ -1,5 +1 @@ -appwrite functions listTemplates \ - - - - +appwrite functions list-templates diff --git a/docs/examples/1.8.x/console-cli/examples/functions/list-usage.md b/docs/examples/1.8.x/console-cli/examples/functions/list-usage.md index 8ae7855f45..de28c5c9d0 100644 --- a/docs/examples/1.8.x/console-cli/examples/functions/list-usage.md +++ b/docs/examples/1.8.x/console-cli/examples/functions/list-usage.md @@ -1,2 +1 @@ -appwrite functions listUsage \ - +appwrite functions list-usage diff --git a/docs/examples/1.8.x/console-cli/examples/functions/list-variables.md b/docs/examples/1.8.x/console-cli/examples/functions/list-variables.md index 21bf2eb506..03e1162551 100644 --- a/docs/examples/1.8.x/console-cli/examples/functions/list-variables.md +++ b/docs/examples/1.8.x/console-cli/examples/functions/list-variables.md @@ -1,2 +1,2 @@ -appwrite functions listVariables \ - --functionId +appwrite functions list-variables \ + --function-id diff --git a/docs/examples/1.8.x/console-cli/examples/functions/list.md b/docs/examples/1.8.x/console-cli/examples/functions/list.md index 3b7551266e..2d9f0ba7ff 100644 --- a/docs/examples/1.8.x/console-cli/examples/functions/list.md +++ b/docs/examples/1.8.x/console-cli/examples/functions/list.md @@ -1,3 +1 @@ -appwrite functions list \ - - +appwrite functions list diff --git a/docs/examples/1.8.x/console-cli/examples/functions/update-deployment-status.md b/docs/examples/1.8.x/console-cli/examples/functions/update-deployment-status.md index 06d2dcdcf0..6f0bc1e550 100644 --- a/docs/examples/1.8.x/console-cli/examples/functions/update-deployment-status.md +++ b/docs/examples/1.8.x/console-cli/examples/functions/update-deployment-status.md @@ -1,3 +1,3 @@ -appwrite functions updateDeploymentStatus \ - --functionId \ - --deploymentId +appwrite functions update-deployment-status \ + --function-id \ + --deployment-id diff --git a/docs/examples/1.8.x/console-cli/examples/functions/update-function-deployment.md b/docs/examples/1.8.x/console-cli/examples/functions/update-function-deployment.md index 652bfe809e..d3534b4e9b 100644 --- a/docs/examples/1.8.x/console-cli/examples/functions/update-function-deployment.md +++ b/docs/examples/1.8.x/console-cli/examples/functions/update-function-deployment.md @@ -1,3 +1,3 @@ -appwrite functions updateFunctionDeployment \ - --functionId \ - --deploymentId +appwrite functions update-function-deployment \ + --function-id \ + --deployment-id diff --git a/docs/examples/1.8.x/console-cli/examples/functions/update-variable.md b/docs/examples/1.8.x/console-cli/examples/functions/update-variable.md index a2b10491c6..c1d87f29fb 100644 --- a/docs/examples/1.8.x/console-cli/examples/functions/update-variable.md +++ b/docs/examples/1.8.x/console-cli/examples/functions/update-variable.md @@ -1,6 +1,4 @@ -appwrite functions updateVariable \ - --functionId \ - --variableId \ - --key \ - - +appwrite functions update-variable \ + --function-id \ + --variable-id \ + --key diff --git a/docs/examples/1.8.x/console-cli/examples/functions/update.md b/docs/examples/1.8.x/console-cli/examples/functions/update.md index 7ac63e0cd1..c436ef054c 100644 --- a/docs/examples/1.8.x/console-cli/examples/functions/update.md +++ b/docs/examples/1.8.x/console-cli/examples/functions/update.md @@ -1,19 +1,3 @@ appwrite functions update \ - --functionId \ - --name \ - - - - - - - - - - - - - - - - + --function-id \ + --name diff --git a/docs/examples/1.8.x/console-cli/examples/graphql/mutation.md b/docs/examples/1.8.x/console-cli/examples/graphql/mutation.md index f6127a175c..678fcc2e40 100644 --- a/docs/examples/1.8.x/console-cli/examples/graphql/mutation.md +++ b/docs/examples/1.8.x/console-cli/examples/graphql/mutation.md @@ -1,2 +1,2 @@ appwrite graphql mutation \ - --query '{ "key": "value" }' + --query '{ "key": "value" }' diff --git a/docs/examples/1.8.x/console-cli/examples/graphql/query.md b/docs/examples/1.8.x/console-cli/examples/graphql/query.md index 1d84bcaa6a..157115a1fc 100644 --- a/docs/examples/1.8.x/console-cli/examples/graphql/query.md +++ b/docs/examples/1.8.x/console-cli/examples/graphql/query.md @@ -1,2 +1,2 @@ appwrite graphql query \ - --query '{ "key": "value" }' + --query '{ "key": "value" }' diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-boolean-column.md b/docs/examples/1.8.x/console-cli/examples/grids/create-boolean-column.md deleted file mode 100644 index 3a26ed2935..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/create-boolean-column.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite grids createBooleanColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-database.md b/docs/examples/1.8.x/console-cli/examples/grids/create-database.md deleted file mode 100644 index 741d5f83ee..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/create-database.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite grids createDatabase \ - --databaseId \ - --name \ - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-datetime-column.md b/docs/examples/1.8.x/console-cli/examples/grids/create-datetime-column.md deleted file mode 100644 index 1efced687d..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/create-datetime-column.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite grids createDatetimeColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-email-column.md b/docs/examples/1.8.x/console-cli/examples/grids/create-email-column.md deleted file mode 100644 index f0758d2753..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/create-email-column.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite grids createEmailColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-enum-column.md b/docs/examples/1.8.x/console-cli/examples/grids/create-enum-column.md deleted file mode 100644 index e6ca5fdbd6..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/create-enum-column.md +++ /dev/null @@ -1,8 +0,0 @@ -appwrite grids createEnumColumn \ - --databaseId \ - --tableId \ - --key '' \ - --elements one two three \ - --required false \ - - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-float-column.md b/docs/examples/1.8.x/console-cli/examples/grids/create-float-column.md deleted file mode 100644 index a17535614d..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/create-float-column.md +++ /dev/null @@ -1,9 +0,0 @@ -appwrite grids createFloatColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - - - - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-index.md b/docs/examples/1.8.x/console-cli/examples/grids/create-index.md deleted file mode 100644 index 9b92ecc614..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/create-index.md +++ /dev/null @@ -1,8 +0,0 @@ -appwrite grids createIndex \ - --databaseId \ - --tableId \ - --key '' \ - --type key \ - --columns one two three \ - - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-integer-column.md b/docs/examples/1.8.x/console-cli/examples/grids/create-integer-column.md deleted file mode 100644 index 0e7d408fea..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/create-integer-column.md +++ /dev/null @@ -1,9 +0,0 @@ -appwrite grids createIntegerColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - - - - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-ip-column.md b/docs/examples/1.8.x/console-cli/examples/grids/create-ip-column.md deleted file mode 100644 index bc16e6b9a7..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/create-ip-column.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite grids createIpColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-relationship-column.md b/docs/examples/1.8.x/console-cli/examples/grids/create-relationship-column.md deleted file mode 100644 index d60fd4516a..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/create-relationship-column.md +++ /dev/null @@ -1,9 +0,0 @@ -appwrite grids createRelationshipColumn \ - --databaseId \ - --tableId \ - --relatedTableId \ - --type oneToOne \ - - - - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-row.md b/docs/examples/1.8.x/console-cli/examples/grids/create-row.md deleted file mode 100644 index f59ac8253c..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/create-row.md +++ /dev/null @@ -1,6 +0,0 @@ -appwrite grids createRow \ - --databaseId \ - --tableId \ - --rowId \ - --data '{ "key": "value" }' \ - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-rows.md b/docs/examples/1.8.x/console-cli/examples/grids/create-rows.md deleted file mode 100644 index 8d89674dc6..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/create-rows.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite grids createRows \ - --databaseId \ - --tableId \ - --rows one two three diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-string-column.md b/docs/examples/1.8.x/console-cli/examples/grids/create-string-column.md deleted file mode 100644 index 658bedec06..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/create-string-column.md +++ /dev/null @@ -1,9 +0,0 @@ -appwrite grids createStringColumn \ - --databaseId \ - --tableId \ - --key '' \ - --size 1 \ - --required false \ - - - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-table.md b/docs/examples/1.8.x/console-cli/examples/grids/create-table.md deleted file mode 100644 index 9e707fde1c..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/create-table.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite grids createTable \ - --databaseId \ - --tableId \ - --name \ - - - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/create-url-column.md b/docs/examples/1.8.x/console-cli/examples/grids/create-url-column.md deleted file mode 100644 index 88adbdbb5d..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/create-url-column.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite grids createUrlColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/decrement-row-column.md b/docs/examples/1.8.x/console-cli/examples/grids/decrement-row-column.md deleted file mode 100644 index f3c1a50c2d..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/decrement-row-column.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite grids decrementRowColumn \ - --databaseId \ - --tableId \ - --rowId \ - --column '' \ - - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/delete-column.md b/docs/examples/1.8.x/console-cli/examples/grids/delete-column.md deleted file mode 100644 index 0b60af67cc..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/delete-column.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite grids deleteColumn \ - --databaseId \ - --tableId \ - --key '' diff --git a/docs/examples/1.8.x/console-cli/examples/grids/delete-database.md b/docs/examples/1.8.x/console-cli/examples/grids/delete-database.md deleted file mode 100644 index c5e0ad3c63..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/delete-database.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite grids deleteDatabase \ - --databaseId diff --git a/docs/examples/1.8.x/console-cli/examples/grids/delete-index.md b/docs/examples/1.8.x/console-cli/examples/grids/delete-index.md deleted file mode 100644 index 0a1f6dc404..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/delete-index.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite grids deleteIndex \ - --databaseId \ - --tableId \ - --key '' diff --git a/docs/examples/1.8.x/console-cli/examples/grids/delete-row.md b/docs/examples/1.8.x/console-cli/examples/grids/delete-row.md deleted file mode 100644 index b360f6919a..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/delete-row.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite grids deleteRow \ - --databaseId \ - --tableId \ - --rowId diff --git a/docs/examples/1.8.x/console-cli/examples/grids/delete-rows.md b/docs/examples/1.8.x/console-cli/examples/grids/delete-rows.md deleted file mode 100644 index 46b768f28d..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/delete-rows.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite grids deleteRows \ - --databaseId \ - --tableId \ - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/delete-table.md b/docs/examples/1.8.x/console-cli/examples/grids/delete-table.md deleted file mode 100644 index 416a07052d..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/delete-table.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite grids deleteTable \ - --databaseId \ - --tableId diff --git a/docs/examples/1.8.x/console-cli/examples/grids/get-column.md b/docs/examples/1.8.x/console-cli/examples/grids/get-column.md deleted file mode 100644 index f875d56d33..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/get-column.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite grids getColumn \ - --databaseId \ - --tableId \ - --key '' diff --git a/docs/examples/1.8.x/console-cli/examples/grids/get-database-usage.md b/docs/examples/1.8.x/console-cli/examples/grids/get-database-usage.md deleted file mode 100644 index 0c35ea978d..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/get-database-usage.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite grids getDatabaseUsage \ - --databaseId \ - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/get-database.md b/docs/examples/1.8.x/console-cli/examples/grids/get-database.md deleted file mode 100644 index f2232bb5c0..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/get-database.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite grids getDatabase \ - --databaseId diff --git a/docs/examples/1.8.x/console-cli/examples/grids/get-index.md b/docs/examples/1.8.x/console-cli/examples/grids/get-index.md deleted file mode 100644 index 6f88f74c23..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/get-index.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite grids getIndex \ - --databaseId \ - --tableId \ - --key '' diff --git a/docs/examples/1.8.x/console-cli/examples/grids/get-row.md b/docs/examples/1.8.x/console-cli/examples/grids/get-row.md deleted file mode 100644 index 73cc207eec..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/get-row.md +++ /dev/null @@ -1,5 +0,0 @@ -appwrite grids getRow \ - --databaseId \ - --tableId \ - --rowId \ - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/get-table-usage.md b/docs/examples/1.8.x/console-cli/examples/grids/get-table-usage.md deleted file mode 100644 index e4002ec61e..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/get-table-usage.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite grids getTableUsage \ - --databaseId \ - --tableId \ - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/get-table.md b/docs/examples/1.8.x/console-cli/examples/grids/get-table.md deleted file mode 100644 index e44c98ad83..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/get-table.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite grids getTable \ - --databaseId \ - --tableId diff --git a/docs/examples/1.8.x/console-cli/examples/grids/increment-row-column.md b/docs/examples/1.8.x/console-cli/examples/grids/increment-row-column.md deleted file mode 100644 index b4b84b6392..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/increment-row-column.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite grids incrementRowColumn \ - --databaseId \ - --tableId \ - --rowId \ - --column '' \ - - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/list-columns.md b/docs/examples/1.8.x/console-cli/examples/grids/list-columns.md deleted file mode 100644 index 968643bb6c..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/list-columns.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite grids listColumns \ - --databaseId \ - --tableId \ - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/list-database-logs.md b/docs/examples/1.8.x/console-cli/examples/grids/list-database-logs.md deleted file mode 100644 index c135a2b358..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/list-database-logs.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite grids listDatabaseLogs \ - --databaseId \ - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/list-database-usage.md b/docs/examples/1.8.x/console-cli/examples/grids/list-database-usage.md deleted file mode 100644 index f13c4e4e0a..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/list-database-usage.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite grids listDatabaseUsage \ - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/list-databases.md b/docs/examples/1.8.x/console-cli/examples/grids/list-databases.md deleted file mode 100644 index 11d448043a..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/list-databases.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite grids listDatabases \ - - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/list-indexes.md b/docs/examples/1.8.x/console-cli/examples/grids/list-indexes.md deleted file mode 100644 index 85df307deb..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/list-indexes.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite grids listIndexes \ - --databaseId \ - --tableId \ - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/list-row-logs.md b/docs/examples/1.8.x/console-cli/examples/grids/list-row-logs.md deleted file mode 100644 index 3a073e4708..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/list-row-logs.md +++ /dev/null @@ -1,5 +0,0 @@ -appwrite grids listRowLogs \ - --databaseId \ - --tableId \ - --rowId \ - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/list-rows.md b/docs/examples/1.8.x/console-cli/examples/grids/list-rows.md deleted file mode 100644 index 99bf470bfb..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/list-rows.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite grids listRows \ - --databaseId \ - --tableId \ - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/list-table-logs.md b/docs/examples/1.8.x/console-cli/examples/grids/list-table-logs.md deleted file mode 100644 index e38af040a6..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/list-table-logs.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite grids listTableLogs \ - --databaseId \ - --tableId \ - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/list-tables.md b/docs/examples/1.8.x/console-cli/examples/grids/list-tables.md deleted file mode 100644 index 69f464ba86..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/list-tables.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite grids listTables \ - --databaseId \ - - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/update-boolean-column.md b/docs/examples/1.8.x/console-cli/examples/grids/update-boolean-column.md deleted file mode 100644 index a980b12aa0..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/update-boolean-column.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite grids updateBooleanColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - --default false \ - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/update-database.md b/docs/examples/1.8.x/console-cli/examples/grids/update-database.md deleted file mode 100644 index 079e88dfd0..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/update-database.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite grids updateDatabase \ - --databaseId \ - --name \ - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/update-datetime-column.md b/docs/examples/1.8.x/console-cli/examples/grids/update-datetime-column.md deleted file mode 100644 index 97ee021e80..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/update-datetime-column.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite grids updateDatetimeColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - --default '' \ - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/update-email-column.md b/docs/examples/1.8.x/console-cli/examples/grids/update-email-column.md deleted file mode 100644 index d8b0827d62..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/update-email-column.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite grids updateEmailColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - --default email@example.com \ - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/update-enum-column.md b/docs/examples/1.8.x/console-cli/examples/grids/update-enum-column.md deleted file mode 100644 index 82eb62f996..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/update-enum-column.md +++ /dev/null @@ -1,8 +0,0 @@ -appwrite grids updateEnumColumn \ - --databaseId \ - --tableId \ - --key '' \ - --elements one two three \ - --required false \ - --default \ - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/update-float-column.md b/docs/examples/1.8.x/console-cli/examples/grids/update-float-column.md deleted file mode 100644 index ef3a4ad36f..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/update-float-column.md +++ /dev/null @@ -1,9 +0,0 @@ -appwrite grids updateFloatColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - --default null \ - - - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/update-integer-column.md b/docs/examples/1.8.x/console-cli/examples/grids/update-integer-column.md deleted file mode 100644 index 5b83ca938b..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/update-integer-column.md +++ /dev/null @@ -1,9 +0,0 @@ -appwrite grids updateIntegerColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - --default null \ - - - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/update-ip-column.md b/docs/examples/1.8.x/console-cli/examples/grids/update-ip-column.md deleted file mode 100644 index b0e6b8cf3a..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/update-ip-column.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite grids updateIpColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - --default '' \ - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/update-relationship-column.md b/docs/examples/1.8.x/console-cli/examples/grids/update-relationship-column.md deleted file mode 100644 index 00ddda788c..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/update-relationship-column.md +++ /dev/null @@ -1,6 +0,0 @@ -appwrite grids updateRelationshipColumn \ - --databaseId \ - --tableId \ - --key '' \ - - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/update-row.md b/docs/examples/1.8.x/console-cli/examples/grids/update-row.md deleted file mode 100644 index b89566b570..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/update-row.md +++ /dev/null @@ -1,6 +0,0 @@ -appwrite grids updateRow \ - --databaseId \ - --tableId \ - --rowId \ - - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/update-rows.md b/docs/examples/1.8.x/console-cli/examples/grids/update-rows.md deleted file mode 100644 index 72c63ddb41..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/update-rows.md +++ /dev/null @@ -1,5 +0,0 @@ -appwrite grids updateRows \ - --databaseId \ - --tableId \ - - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/update-string-column.md b/docs/examples/1.8.x/console-cli/examples/grids/update-string-column.md deleted file mode 100644 index a6b6280560..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/update-string-column.md +++ /dev/null @@ -1,8 +0,0 @@ -appwrite grids updateStringColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - --default \ - - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/update-table.md b/docs/examples/1.8.x/console-cli/examples/grids/update-table.md deleted file mode 100644 index 66e26b1752..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/update-table.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite grids updateTable \ - --databaseId \ - --tableId \ - --name \ - - - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/update-url-column.md b/docs/examples/1.8.x/console-cli/examples/grids/update-url-column.md deleted file mode 100644 index ad41af9fa1..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/update-url-column.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite grids updateUrlColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - --default https://example.com \ - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/upsert-row.md b/docs/examples/1.8.x/console-cli/examples/grids/upsert-row.md deleted file mode 100644 index 8a356e7a1e..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/upsert-row.md +++ /dev/null @@ -1,6 +0,0 @@ -appwrite grids upsertRow \ - --databaseId \ - --tableId \ - --rowId \ - - diff --git a/docs/examples/1.8.x/console-cli/examples/grids/upsert-rows.md b/docs/examples/1.8.x/console-cli/examples/grids/upsert-rows.md deleted file mode 100644 index e4e31c1e83..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/grids/upsert-rows.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite grids upsertRows \ - --databaseId \ - --tableId \ - --rows one two three diff --git a/docs/examples/1.8.x/console-cli/examples/health/get-antivirus.md b/docs/examples/1.8.x/console-cli/examples/health/get-antivirus.md index 96dd7e78b2..2ef8b6f3d7 100644 --- a/docs/examples/1.8.x/console-cli/examples/health/get-antivirus.md +++ b/docs/examples/1.8.x/console-cli/examples/health/get-antivirus.md @@ -1 +1 @@ -appwrite health getAntivirus +appwrite health get-antivirus diff --git a/docs/examples/1.8.x/console-cli/examples/health/get-cache.md b/docs/examples/1.8.x/console-cli/examples/health/get-cache.md index ad1111ccf0..b1ff13104e 100644 --- a/docs/examples/1.8.x/console-cli/examples/health/get-cache.md +++ b/docs/examples/1.8.x/console-cli/examples/health/get-cache.md @@ -1 +1 @@ -appwrite health getCache +appwrite health get-cache diff --git a/docs/examples/1.8.x/console-cli/examples/health/get-certificate.md b/docs/examples/1.8.x/console-cli/examples/health/get-certificate.md index 4659415822..1765216107 100644 --- a/docs/examples/1.8.x/console-cli/examples/health/get-certificate.md +++ b/docs/examples/1.8.x/console-cli/examples/health/get-certificate.md @@ -1,2 +1 @@ -appwrite health getCertificate \ - +appwrite health get-certificate diff --git a/docs/examples/1.8.x/console-cli/examples/health/get-d-b.md b/docs/examples/1.8.x/console-cli/examples/health/get-d-b.md deleted file mode 100644 index b0ea2d3eac..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/health/get-d-b.md +++ /dev/null @@ -1 +0,0 @@ -appwrite health getDB diff --git a/docs/examples/1.8.x/console-cli/examples/health/get-db.md b/docs/examples/1.8.x/console-cli/examples/health/get-db.md new file mode 100644 index 0000000000..c5e9cb378e --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/health/get-db.md @@ -0,0 +1 @@ +appwrite health get-db diff --git a/docs/examples/1.8.x/console-cli/examples/health/get-failed-jobs.md b/docs/examples/1.8.x/console-cli/examples/health/get-failed-jobs.md index 724299e384..9704875bb5 100644 --- a/docs/examples/1.8.x/console-cli/examples/health/get-failed-jobs.md +++ b/docs/examples/1.8.x/console-cli/examples/health/get-failed-jobs.md @@ -1,3 +1,2 @@ -appwrite health getFailedJobs \ - --name v1-database \ - +appwrite health get-failed-jobs \ + --name v1-database diff --git a/docs/examples/1.8.x/console-cli/examples/health/get-pub-sub.md b/docs/examples/1.8.x/console-cli/examples/health/get-pub-sub.md index aa1773b35b..29e93a2b14 100644 --- a/docs/examples/1.8.x/console-cli/examples/health/get-pub-sub.md +++ b/docs/examples/1.8.x/console-cli/examples/health/get-pub-sub.md @@ -1 +1 @@ -appwrite health getPubSub +appwrite health get-pub-sub diff --git a/docs/examples/1.8.x/console-cli/examples/health/get-queue-builds.md b/docs/examples/1.8.x/console-cli/examples/health/get-queue-builds.md index 7204c2c896..657b98880c 100644 --- a/docs/examples/1.8.x/console-cli/examples/health/get-queue-builds.md +++ b/docs/examples/1.8.x/console-cli/examples/health/get-queue-builds.md @@ -1,2 +1 @@ -appwrite health getQueueBuilds \ - +appwrite health get-queue-builds diff --git a/docs/examples/1.8.x/console-cli/examples/health/get-queue-certificates.md b/docs/examples/1.8.x/console-cli/examples/health/get-queue-certificates.md index 203e8650cc..a7c1c64a9f 100644 --- a/docs/examples/1.8.x/console-cli/examples/health/get-queue-certificates.md +++ b/docs/examples/1.8.x/console-cli/examples/health/get-queue-certificates.md @@ -1,2 +1 @@ -appwrite health getQueueCertificates \ - +appwrite health get-queue-certificates diff --git a/docs/examples/1.8.x/console-cli/examples/health/get-queue-databases.md b/docs/examples/1.8.x/console-cli/examples/health/get-queue-databases.md index f30b941cbc..17d15badfd 100644 --- a/docs/examples/1.8.x/console-cli/examples/health/get-queue-databases.md +++ b/docs/examples/1.8.x/console-cli/examples/health/get-queue-databases.md @@ -1,3 +1 @@ -appwrite health getQueueDatabases \ - - +appwrite health get-queue-databases diff --git a/docs/examples/1.8.x/console-cli/examples/health/get-queue-deletes.md b/docs/examples/1.8.x/console-cli/examples/health/get-queue-deletes.md index 1d44146dc4..78ddc3223d 100644 --- a/docs/examples/1.8.x/console-cli/examples/health/get-queue-deletes.md +++ b/docs/examples/1.8.x/console-cli/examples/health/get-queue-deletes.md @@ -1,2 +1 @@ -appwrite health getQueueDeletes \ - +appwrite health get-queue-deletes diff --git a/docs/examples/1.8.x/console-cli/examples/health/get-queue-functions.md b/docs/examples/1.8.x/console-cli/examples/health/get-queue-functions.md index 4aca467306..8109a8e8a2 100644 --- a/docs/examples/1.8.x/console-cli/examples/health/get-queue-functions.md +++ b/docs/examples/1.8.x/console-cli/examples/health/get-queue-functions.md @@ -1,2 +1 @@ -appwrite health getQueueFunctions \ - +appwrite health get-queue-functions diff --git a/docs/examples/1.8.x/console-cli/examples/health/get-queue-logs.md b/docs/examples/1.8.x/console-cli/examples/health/get-queue-logs.md index 3f1386b73a..5ff48cc8ed 100644 --- a/docs/examples/1.8.x/console-cli/examples/health/get-queue-logs.md +++ b/docs/examples/1.8.x/console-cli/examples/health/get-queue-logs.md @@ -1,2 +1 @@ -appwrite health getQueueLogs \ - +appwrite health get-queue-logs diff --git a/docs/examples/1.8.x/console-cli/examples/health/get-queue-mails.md b/docs/examples/1.8.x/console-cli/examples/health/get-queue-mails.md index a41f4c308b..e44b1b629f 100644 --- a/docs/examples/1.8.x/console-cli/examples/health/get-queue-mails.md +++ b/docs/examples/1.8.x/console-cli/examples/health/get-queue-mails.md @@ -1,2 +1 @@ -appwrite health getQueueMails \ - +appwrite health get-queue-mails diff --git a/docs/examples/1.8.x/console-cli/examples/health/get-queue-messaging.md b/docs/examples/1.8.x/console-cli/examples/health/get-queue-messaging.md index 11b7ff832b..5249c73550 100644 --- a/docs/examples/1.8.x/console-cli/examples/health/get-queue-messaging.md +++ b/docs/examples/1.8.x/console-cli/examples/health/get-queue-messaging.md @@ -1,2 +1 @@ -appwrite health getQueueMessaging \ - +appwrite health get-queue-messaging diff --git a/docs/examples/1.8.x/console-cli/examples/health/get-queue-migrations.md b/docs/examples/1.8.x/console-cli/examples/health/get-queue-migrations.md index 2f17bb56f4..11b07a101b 100644 --- a/docs/examples/1.8.x/console-cli/examples/health/get-queue-migrations.md +++ b/docs/examples/1.8.x/console-cli/examples/health/get-queue-migrations.md @@ -1,2 +1 @@ -appwrite health getQueueMigrations \ - +appwrite health get-queue-migrations diff --git a/docs/examples/1.8.x/console-cli/examples/health/get-queue-stats-resources.md b/docs/examples/1.8.x/console-cli/examples/health/get-queue-stats-resources.md index 9cce963748..2e511862ca 100644 --- a/docs/examples/1.8.x/console-cli/examples/health/get-queue-stats-resources.md +++ b/docs/examples/1.8.x/console-cli/examples/health/get-queue-stats-resources.md @@ -1,2 +1 @@ -appwrite health getQueueStatsResources \ - +appwrite health get-queue-stats-resources diff --git a/docs/examples/1.8.x/console-cli/examples/health/get-queue-usage.md b/docs/examples/1.8.x/console-cli/examples/health/get-queue-usage.md index d021a3faa1..1790e0fb1d 100644 --- a/docs/examples/1.8.x/console-cli/examples/health/get-queue-usage.md +++ b/docs/examples/1.8.x/console-cli/examples/health/get-queue-usage.md @@ -1,2 +1 @@ -appwrite health getQueueUsage \ - +appwrite health get-queue-usage diff --git a/docs/examples/1.8.x/console-cli/examples/health/get-queue-webhooks.md b/docs/examples/1.8.x/console-cli/examples/health/get-queue-webhooks.md index 471175bbe4..e1753347b1 100644 --- a/docs/examples/1.8.x/console-cli/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.8.x/console-cli/examples/health/get-queue-webhooks.md @@ -1,2 +1 @@ -appwrite health getQueueWebhooks \ - +appwrite health get-queue-webhooks diff --git a/docs/examples/1.8.x/console-cli/examples/health/get-storage-local.md b/docs/examples/1.8.x/console-cli/examples/health/get-storage-local.md index b5df39fae0..512d135f0e 100644 --- a/docs/examples/1.8.x/console-cli/examples/health/get-storage-local.md +++ b/docs/examples/1.8.x/console-cli/examples/health/get-storage-local.md @@ -1 +1 @@ -appwrite health getStorageLocal +appwrite health get-storage-local diff --git a/docs/examples/1.8.x/console-cli/examples/health/get-storage.md b/docs/examples/1.8.x/console-cli/examples/health/get-storage.md index eccd21acc3..170bcfc43d 100644 --- a/docs/examples/1.8.x/console-cli/examples/health/get-storage.md +++ b/docs/examples/1.8.x/console-cli/examples/health/get-storage.md @@ -1 +1 @@ -appwrite health getStorage +appwrite health get-storage diff --git a/docs/examples/1.8.x/console-cli/examples/health/get-time.md b/docs/examples/1.8.x/console-cli/examples/health/get-time.md index 067e5daf9e..feb3901ef5 100644 --- a/docs/examples/1.8.x/console-cli/examples/health/get-time.md +++ b/docs/examples/1.8.x/console-cli/examples/health/get-time.md @@ -1 +1 @@ -appwrite health getTime +appwrite health get-time diff --git a/docs/examples/1.8.x/console-cli/examples/locale/list-codes.md b/docs/examples/1.8.x/console-cli/examples/locale/list-codes.md index 5586d1566c..ac96ac14af 100644 --- a/docs/examples/1.8.x/console-cli/examples/locale/list-codes.md +++ b/docs/examples/1.8.x/console-cli/examples/locale/list-codes.md @@ -1 +1 @@ -appwrite locale listCodes +appwrite locale list-codes diff --git a/docs/examples/1.8.x/console-cli/examples/locale/list-continents.md b/docs/examples/1.8.x/console-cli/examples/locale/list-continents.md index 775af5d9df..18267872c0 100644 --- a/docs/examples/1.8.x/console-cli/examples/locale/list-continents.md +++ b/docs/examples/1.8.x/console-cli/examples/locale/list-continents.md @@ -1 +1 @@ -appwrite locale listContinents +appwrite locale list-continents diff --git a/docs/examples/1.8.x/console-cli/examples/locale/list-countries-e-u.md b/docs/examples/1.8.x/console-cli/examples/locale/list-countries-e-u.md deleted file mode 100644 index 43b7eff7ad..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/locale/list-countries-e-u.md +++ /dev/null @@ -1 +0,0 @@ -appwrite locale listCountriesEU diff --git a/docs/examples/1.8.x/console-cli/examples/locale/list-countries-eu.md b/docs/examples/1.8.x/console-cli/examples/locale/list-countries-eu.md new file mode 100644 index 0000000000..eba8886a54 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/locale/list-countries-eu.md @@ -0,0 +1 @@ +appwrite locale list-countries-eu diff --git a/docs/examples/1.8.x/console-cli/examples/locale/list-countries-phones.md b/docs/examples/1.8.x/console-cli/examples/locale/list-countries-phones.md index 072516bf71..ea27155238 100644 --- a/docs/examples/1.8.x/console-cli/examples/locale/list-countries-phones.md +++ b/docs/examples/1.8.x/console-cli/examples/locale/list-countries-phones.md @@ -1 +1 @@ -appwrite locale listCountriesPhones +appwrite locale list-countries-phones diff --git a/docs/examples/1.8.x/console-cli/examples/locale/list-countries.md b/docs/examples/1.8.x/console-cli/examples/locale/list-countries.md index ee7101df68..652446136b 100644 --- a/docs/examples/1.8.x/console-cli/examples/locale/list-countries.md +++ b/docs/examples/1.8.x/console-cli/examples/locale/list-countries.md @@ -1 +1 @@ -appwrite locale listCountries +appwrite locale list-countries diff --git a/docs/examples/1.8.x/console-cli/examples/locale/list-currencies.md b/docs/examples/1.8.x/console-cli/examples/locale/list-currencies.md index 01b1b3c4b2..bbc0f363fe 100644 --- a/docs/examples/1.8.x/console-cli/examples/locale/list-currencies.md +++ b/docs/examples/1.8.x/console-cli/examples/locale/list-currencies.md @@ -1 +1 @@ -appwrite locale listCurrencies +appwrite locale list-currencies diff --git a/docs/examples/1.8.x/console-cli/examples/locale/list-languages.md b/docs/examples/1.8.x/console-cli/examples/locale/list-languages.md index d47622c570..a0cfe918af 100644 --- a/docs/examples/1.8.x/console-cli/examples/locale/list-languages.md +++ b/docs/examples/1.8.x/console-cli/examples/locale/list-languages.md @@ -1 +1 @@ -appwrite locale listLanguages +appwrite locale list-languages diff --git a/docs/examples/1.8.x/console-cli/examples/messaging/create-a-p-n-s-provider.md b/docs/examples/1.8.x/console-cli/examples/messaging/create-a-p-n-s-provider.md deleted file mode 100644 index e49870ddb7..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/messaging/create-a-p-n-s-provider.md +++ /dev/null @@ -1,9 +0,0 @@ -appwrite messaging createAPNSProvider \ - --providerId \ - --name \ - - - - - - diff --git a/docs/examples/1.8.x/console-cli/examples/messaging/create-apns-provider.md b/docs/examples/1.8.x/console-cli/examples/messaging/create-apns-provider.md index 8b369f403d..fd5aaa9927 100644 --- a/docs/examples/1.8.x/console-cli/examples/messaging/create-apns-provider.md +++ b/docs/examples/1.8.x/console-cli/examples/messaging/create-apns-provider.md @@ -1,9 +1,3 @@ -appwrite messaging createApnsProvider \ - --providerId \ - --name \ - - - - - - +appwrite messaging create-apns-provider \ + --provider-id \ + --name diff --git a/docs/examples/1.8.x/console-cli/examples/messaging/create-email.md b/docs/examples/1.8.x/console-cli/examples/messaging/create-email.md index 2a8e03b7da..e8ffc11633 100644 --- a/docs/examples/1.8.x/console-cli/examples/messaging/create-email.md +++ b/docs/examples/1.8.x/console-cli/examples/messaging/create-email.md @@ -1,13 +1,4 @@ -appwrite messaging createEmail \ - --messageId \ - --subject \ - --content \ - - - - - - - - - +appwrite messaging create-email \ + --message-id \ + --subject \ + --content diff --git a/docs/examples/1.8.x/console-cli/examples/messaging/create-f-c-m-provider.md b/docs/examples/1.8.x/console-cli/examples/messaging/create-f-c-m-provider.md deleted file mode 100644 index 897d1afe64..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/messaging/create-f-c-m-provider.md +++ /dev/null @@ -1,5 +0,0 @@ -appwrite messaging createFCMProvider \ - --providerId \ - --name \ - - diff --git a/docs/examples/1.8.x/console-cli/examples/messaging/create-fcm-provider.md b/docs/examples/1.8.x/console-cli/examples/messaging/create-fcm-provider.md index a19dcbe28c..487bb03981 100644 --- a/docs/examples/1.8.x/console-cli/examples/messaging/create-fcm-provider.md +++ b/docs/examples/1.8.x/console-cli/examples/messaging/create-fcm-provider.md @@ -1,5 +1,3 @@ -appwrite messaging createFcmProvider \ - --providerId \ - --name \ - - +appwrite messaging create-fcm-provider \ + --provider-id \ + --name diff --git a/docs/examples/1.8.x/console-cli/examples/messaging/create-mailgun-provider.md b/docs/examples/1.8.x/console-cli/examples/messaging/create-mailgun-provider.md index 6b07359194..2616f0074c 100644 --- a/docs/examples/1.8.x/console-cli/examples/messaging/create-mailgun-provider.md +++ b/docs/examples/1.8.x/console-cli/examples/messaging/create-mailgun-provider.md @@ -1,11 +1,3 @@ -appwrite messaging createMailgunProvider \ - --providerId \ - --name \ - - - - - - - - +appwrite messaging create-mailgun-provider \ + --provider-id \ + --name diff --git a/docs/examples/1.8.x/console-cli/examples/messaging/create-msg-91-provider.md b/docs/examples/1.8.x/console-cli/examples/messaging/create-msg-91-provider.md new file mode 100644 index 0000000000..d4f975d3c8 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/messaging/create-msg-91-provider.md @@ -0,0 +1,3 @@ +appwrite messaging create-msg-91-provider \ + --provider-id \ + --name diff --git a/docs/examples/1.8.x/console-cli/examples/messaging/create-msg91provider.md b/docs/examples/1.8.x/console-cli/examples/messaging/create-msg91provider.md deleted file mode 100644 index f687e36472..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/messaging/create-msg91provider.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite messaging createMsg91Provider \ - --providerId \ - --name \ - - - - diff --git a/docs/examples/1.8.x/console-cli/examples/messaging/create-push.md b/docs/examples/1.8.x/console-cli/examples/messaging/create-push.md index 18d8ec5aec..d5740b9394 100644 --- a/docs/examples/1.8.x/console-cli/examples/messaging/create-push.md +++ b/docs/examples/1.8.x/console-cli/examples/messaging/create-push.md @@ -1,20 +1,2 @@ -appwrite messaging createPush \ - --messageId \ - - - - - - - - - - - - - - - - - - +appwrite messaging create-push \ + --message-id diff --git a/docs/examples/1.8.x/console-cli/examples/messaging/create-s-m-s.md b/docs/examples/1.8.x/console-cli/examples/messaging/create-s-m-s.md deleted file mode 100644 index b1345cfe30..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/messaging/create-s-m-s.md +++ /dev/null @@ -1,8 +0,0 @@ -appwrite messaging createSMS \ - --messageId \ - --content \ - - - - - diff --git a/docs/examples/1.8.x/console-cli/examples/messaging/create-s-m-t-p-provider.md b/docs/examples/1.8.x/console-cli/examples/messaging/create-s-m-t-p-provider.md deleted file mode 100644 index 3e4e7de14e..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/messaging/create-s-m-t-p-provider.md +++ /dev/null @@ -1,15 +0,0 @@ -appwrite messaging createSMTPProvider \ - --providerId \ - --name \ - --host \ - - - - - - - - - - - diff --git a/docs/examples/1.8.x/console-cli/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.8.x/console-cli/examples/messaging/create-sendgrid-provider.md index de8d059abb..2a478fdb29 100644 --- a/docs/examples/1.8.x/console-cli/examples/messaging/create-sendgrid-provider.md +++ b/docs/examples/1.8.x/console-cli/examples/messaging/create-sendgrid-provider.md @@ -1,9 +1,3 @@ -appwrite messaging createSendgridProvider \ - --providerId \ - --name \ - - - - - - +appwrite messaging create-sendgrid-provider \ + --provider-id \ + --name diff --git a/docs/examples/1.8.x/console-cli/examples/messaging/create-sms.md b/docs/examples/1.8.x/console-cli/examples/messaging/create-sms.md index dfc9b27ff3..3633d06570 100644 --- a/docs/examples/1.8.x/console-cli/examples/messaging/create-sms.md +++ b/docs/examples/1.8.x/console-cli/examples/messaging/create-sms.md @@ -1,8 +1,3 @@ -appwrite messaging createSms \ - --messageId \ - --content \ - - - - - +appwrite messaging create-sms \ + --message-id \ + --content diff --git a/docs/examples/1.8.x/console-cli/examples/messaging/create-smtp-provider.md b/docs/examples/1.8.x/console-cli/examples/messaging/create-smtp-provider.md index 13f04fe648..9a4178352d 100644 --- a/docs/examples/1.8.x/console-cli/examples/messaging/create-smtp-provider.md +++ b/docs/examples/1.8.x/console-cli/examples/messaging/create-smtp-provider.md @@ -1,15 +1,4 @@ -appwrite messaging createSmtpProvider \ - --providerId \ - --name \ - --host \ - - - - - - - - - - - +appwrite messaging create-smtp-provider \ + --provider-id \ + --name \ + --host diff --git a/docs/examples/1.8.x/console-cli/examples/messaging/create-subscriber.md b/docs/examples/1.8.x/console-cli/examples/messaging/create-subscriber.md index 5e65c36df7..5fe7682f73 100644 --- a/docs/examples/1.8.x/console-cli/examples/messaging/create-subscriber.md +++ b/docs/examples/1.8.x/console-cli/examples/messaging/create-subscriber.md @@ -1,4 +1,4 @@ -appwrite messaging createSubscriber \ - --topicId \ - --subscriberId \ - --targetId +appwrite messaging create-subscriber \ + --topic-id \ + --subscriber-id \ + --target-id diff --git a/docs/examples/1.8.x/console-cli/examples/messaging/create-telesign-provider.md b/docs/examples/1.8.x/console-cli/examples/messaging/create-telesign-provider.md index 783f7594fd..052028d6c5 100644 --- a/docs/examples/1.8.x/console-cli/examples/messaging/create-telesign-provider.md +++ b/docs/examples/1.8.x/console-cli/examples/messaging/create-telesign-provider.md @@ -1,7 +1,3 @@ -appwrite messaging createTelesignProvider \ - --providerId \ - --name \ - - - - +appwrite messaging create-telesign-provider \ + --provider-id \ + --name diff --git a/docs/examples/1.8.x/console-cli/examples/messaging/create-textmagic-provider.md b/docs/examples/1.8.x/console-cli/examples/messaging/create-textmagic-provider.md index 77185c71de..6ff37b016d 100644 --- a/docs/examples/1.8.x/console-cli/examples/messaging/create-textmagic-provider.md +++ b/docs/examples/1.8.x/console-cli/examples/messaging/create-textmagic-provider.md @@ -1,7 +1,3 @@ -appwrite messaging createTextmagicProvider \ - --providerId \ - --name \ - - - - +appwrite messaging create-textmagic-provider \ + --provider-id \ + --name diff --git a/docs/examples/1.8.x/console-cli/examples/messaging/create-topic.md b/docs/examples/1.8.x/console-cli/examples/messaging/create-topic.md index 1d57e1cee0..3a28bb163d 100644 --- a/docs/examples/1.8.x/console-cli/examples/messaging/create-topic.md +++ b/docs/examples/1.8.x/console-cli/examples/messaging/create-topic.md @@ -1,4 +1,3 @@ -appwrite messaging createTopic \ - --topicId \ - --name \ - +appwrite messaging create-topic \ + --topic-id \ + --name diff --git a/docs/examples/1.8.x/console-cli/examples/messaging/create-twilio-provider.md b/docs/examples/1.8.x/console-cli/examples/messaging/create-twilio-provider.md index 91fdaae96b..2b2f00dc44 100644 --- a/docs/examples/1.8.x/console-cli/examples/messaging/create-twilio-provider.md +++ b/docs/examples/1.8.x/console-cli/examples/messaging/create-twilio-provider.md @@ -1,7 +1,3 @@ -appwrite messaging createTwilioProvider \ - --providerId \ - --name \ - - - - +appwrite messaging create-twilio-provider \ + --provider-id \ + --name diff --git a/docs/examples/1.8.x/console-cli/examples/messaging/create-vonage-provider.md b/docs/examples/1.8.x/console-cli/examples/messaging/create-vonage-provider.md index 1939d1c04b..56fb3e679f 100644 --- a/docs/examples/1.8.x/console-cli/examples/messaging/create-vonage-provider.md +++ b/docs/examples/1.8.x/console-cli/examples/messaging/create-vonage-provider.md @@ -1,7 +1,3 @@ -appwrite messaging createVonageProvider \ - --providerId \ - --name \ - - - - +appwrite messaging create-vonage-provider \ + --provider-id \ + --name diff --git a/docs/examples/1.8.x/console-cli/examples/messaging/delete-provider.md b/docs/examples/1.8.x/console-cli/examples/messaging/delete-provider.md index a93885573c..75671a99e4 100644 --- a/docs/examples/1.8.x/console-cli/examples/messaging/delete-provider.md +++ b/docs/examples/1.8.x/console-cli/examples/messaging/delete-provider.md @@ -1,2 +1,2 @@ -appwrite messaging deleteProvider \ - --providerId +appwrite messaging delete-provider \ + --provider-id diff --git a/docs/examples/1.8.x/console-cli/examples/messaging/delete-subscriber.md b/docs/examples/1.8.x/console-cli/examples/messaging/delete-subscriber.md index c535154df6..d433e3a599 100644 --- a/docs/examples/1.8.x/console-cli/examples/messaging/delete-subscriber.md +++ b/docs/examples/1.8.x/console-cli/examples/messaging/delete-subscriber.md @@ -1,3 +1,3 @@ -appwrite messaging deleteSubscriber \ - --topicId \ - --subscriberId +appwrite messaging delete-subscriber \ + --topic-id \ + --subscriber-id diff --git a/docs/examples/1.8.x/console-cli/examples/messaging/delete-topic.md b/docs/examples/1.8.x/console-cli/examples/messaging/delete-topic.md index 1fa387c6ab..0c2887c076 100644 --- a/docs/examples/1.8.x/console-cli/examples/messaging/delete-topic.md +++ b/docs/examples/1.8.x/console-cli/examples/messaging/delete-topic.md @@ -1,2 +1,2 @@ -appwrite messaging deleteTopic \ - --topicId +appwrite messaging delete-topic \ + --topic-id diff --git a/docs/examples/1.8.x/console-cli/examples/messaging/delete.md b/docs/examples/1.8.x/console-cli/examples/messaging/delete.md index 82ff141b03..eb5d2a62f1 100644 --- a/docs/examples/1.8.x/console-cli/examples/messaging/delete.md +++ b/docs/examples/1.8.x/console-cli/examples/messaging/delete.md @@ -1,2 +1,2 @@ appwrite messaging delete \ - --messageId + --message-id diff --git a/docs/examples/1.8.x/console-cli/examples/messaging/get-message.md b/docs/examples/1.8.x/console-cli/examples/messaging/get-message.md index 0144f79699..2de245efd1 100644 --- a/docs/examples/1.8.x/console-cli/examples/messaging/get-message.md +++ b/docs/examples/1.8.x/console-cli/examples/messaging/get-message.md @@ -1,2 +1,2 @@ -appwrite messaging getMessage \ - --messageId +appwrite messaging get-message \ + --message-id diff --git a/docs/examples/1.8.x/console-cli/examples/messaging/get-provider.md b/docs/examples/1.8.x/console-cli/examples/messaging/get-provider.md index 9da9f2d864..b115c52c2a 100644 --- a/docs/examples/1.8.x/console-cli/examples/messaging/get-provider.md +++ b/docs/examples/1.8.x/console-cli/examples/messaging/get-provider.md @@ -1,2 +1,2 @@ -appwrite messaging getProvider \ - --providerId +appwrite messaging get-provider \ + --provider-id diff --git a/docs/examples/1.8.x/console-cli/examples/messaging/get-subscriber.md b/docs/examples/1.8.x/console-cli/examples/messaging/get-subscriber.md index 02f8bc0e57..88c2ab60e2 100644 --- a/docs/examples/1.8.x/console-cli/examples/messaging/get-subscriber.md +++ b/docs/examples/1.8.x/console-cli/examples/messaging/get-subscriber.md @@ -1,3 +1,3 @@ -appwrite messaging getSubscriber \ - --topicId \ - --subscriberId +appwrite messaging get-subscriber \ + --topic-id \ + --subscriber-id diff --git a/docs/examples/1.8.x/console-cli/examples/messaging/get-topic.md b/docs/examples/1.8.x/console-cli/examples/messaging/get-topic.md index feb2dc66b6..7628bedf00 100644 --- a/docs/examples/1.8.x/console-cli/examples/messaging/get-topic.md +++ b/docs/examples/1.8.x/console-cli/examples/messaging/get-topic.md @@ -1,2 +1,2 @@ -appwrite messaging getTopic \ - --topicId +appwrite messaging get-topic \ + --topic-id diff --git a/docs/examples/1.8.x/console-cli/examples/messaging/list-message-logs.md b/docs/examples/1.8.x/console-cli/examples/messaging/list-message-logs.md index 91366f35f7..9cc6dc559d 100644 --- a/docs/examples/1.8.x/console-cli/examples/messaging/list-message-logs.md +++ b/docs/examples/1.8.x/console-cli/examples/messaging/list-message-logs.md @@ -1,3 +1,2 @@ -appwrite messaging listMessageLogs \ - --messageId \ - +appwrite messaging list-message-logs \ + --message-id diff --git a/docs/examples/1.8.x/console-cli/examples/messaging/list-messages.md b/docs/examples/1.8.x/console-cli/examples/messaging/list-messages.md index 6ab04b0fd2..1e8a726f9a 100644 --- a/docs/examples/1.8.x/console-cli/examples/messaging/list-messages.md +++ b/docs/examples/1.8.x/console-cli/examples/messaging/list-messages.md @@ -1,3 +1 @@ -appwrite messaging listMessages \ - - +appwrite messaging list-messages diff --git a/docs/examples/1.8.x/console-cli/examples/messaging/list-provider-logs.md b/docs/examples/1.8.x/console-cli/examples/messaging/list-provider-logs.md index 0dee2e3f4b..95e514ec8a 100644 --- a/docs/examples/1.8.x/console-cli/examples/messaging/list-provider-logs.md +++ b/docs/examples/1.8.x/console-cli/examples/messaging/list-provider-logs.md @@ -1,3 +1,2 @@ -appwrite messaging listProviderLogs \ - --providerId \ - +appwrite messaging list-provider-logs \ + --provider-id diff --git a/docs/examples/1.8.x/console-cli/examples/messaging/list-providers.md b/docs/examples/1.8.x/console-cli/examples/messaging/list-providers.md index 0a2ce47a3f..d075be571c 100644 --- a/docs/examples/1.8.x/console-cli/examples/messaging/list-providers.md +++ b/docs/examples/1.8.x/console-cli/examples/messaging/list-providers.md @@ -1,3 +1 @@ -appwrite messaging listProviders \ - - +appwrite messaging list-providers diff --git a/docs/examples/1.8.x/console-cli/examples/messaging/list-subscriber-logs.md b/docs/examples/1.8.x/console-cli/examples/messaging/list-subscriber-logs.md index 4a04ac4373..4858c6c7d9 100644 --- a/docs/examples/1.8.x/console-cli/examples/messaging/list-subscriber-logs.md +++ b/docs/examples/1.8.x/console-cli/examples/messaging/list-subscriber-logs.md @@ -1,3 +1,2 @@ -appwrite messaging listSubscriberLogs \ - --subscriberId \ - +appwrite messaging list-subscriber-logs \ + --subscriber-id diff --git a/docs/examples/1.8.x/console-cli/examples/messaging/list-subscribers.md b/docs/examples/1.8.x/console-cli/examples/messaging/list-subscribers.md index 2eed8bd3f0..c122c6845c 100644 --- a/docs/examples/1.8.x/console-cli/examples/messaging/list-subscribers.md +++ b/docs/examples/1.8.x/console-cli/examples/messaging/list-subscribers.md @@ -1,4 +1,2 @@ -appwrite messaging listSubscribers \ - --topicId \ - - +appwrite messaging list-subscribers \ + --topic-id diff --git a/docs/examples/1.8.x/console-cli/examples/messaging/list-targets.md b/docs/examples/1.8.x/console-cli/examples/messaging/list-targets.md index 7efa50ee3b..e161e9338a 100644 --- a/docs/examples/1.8.x/console-cli/examples/messaging/list-targets.md +++ b/docs/examples/1.8.x/console-cli/examples/messaging/list-targets.md @@ -1,3 +1,2 @@ -appwrite messaging listTargets \ - --messageId \ - +appwrite messaging list-targets \ + --message-id diff --git a/docs/examples/1.8.x/console-cli/examples/messaging/list-topic-logs.md b/docs/examples/1.8.x/console-cli/examples/messaging/list-topic-logs.md index f23c10aba6..121f2795c1 100644 --- a/docs/examples/1.8.x/console-cli/examples/messaging/list-topic-logs.md +++ b/docs/examples/1.8.x/console-cli/examples/messaging/list-topic-logs.md @@ -1,3 +1,2 @@ -appwrite messaging listTopicLogs \ - --topicId \ - +appwrite messaging list-topic-logs \ + --topic-id diff --git a/docs/examples/1.8.x/console-cli/examples/messaging/list-topics.md b/docs/examples/1.8.x/console-cli/examples/messaging/list-topics.md index 1810a7bd7b..0337b3d197 100644 --- a/docs/examples/1.8.x/console-cli/examples/messaging/list-topics.md +++ b/docs/examples/1.8.x/console-cli/examples/messaging/list-topics.md @@ -1,3 +1 @@ -appwrite messaging listTopics \ - - +appwrite messaging list-topics diff --git a/docs/examples/1.8.x/console-cli/examples/messaging/update-a-p-n-s-provider.md b/docs/examples/1.8.x/console-cli/examples/messaging/update-a-p-n-s-provider.md deleted file mode 100644 index 1af2622a8d..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/messaging/update-a-p-n-s-provider.md +++ /dev/null @@ -1,9 +0,0 @@ -appwrite messaging updateAPNSProvider \ - --providerId \ - - - - - - - diff --git a/docs/examples/1.8.x/console-cli/examples/messaging/update-apns-provider.md b/docs/examples/1.8.x/console-cli/examples/messaging/update-apns-provider.md index 9e895a066a..7bd5db2624 100644 --- a/docs/examples/1.8.x/console-cli/examples/messaging/update-apns-provider.md +++ b/docs/examples/1.8.x/console-cli/examples/messaging/update-apns-provider.md @@ -1,9 +1,2 @@ -appwrite messaging updateApnsProvider \ - --providerId \ - - - - - - - +appwrite messaging update-apns-provider \ + --provider-id diff --git a/docs/examples/1.8.x/console-cli/examples/messaging/update-email.md b/docs/examples/1.8.x/console-cli/examples/messaging/update-email.md index 934fd29213..7e318ad492 100644 --- a/docs/examples/1.8.x/console-cli/examples/messaging/update-email.md +++ b/docs/examples/1.8.x/console-cli/examples/messaging/update-email.md @@ -1,13 +1,2 @@ -appwrite messaging updateEmail \ - --messageId \ - - - - - - - - - - - +appwrite messaging update-email \ + --message-id diff --git a/docs/examples/1.8.x/console-cli/examples/messaging/update-f-c-m-provider.md b/docs/examples/1.8.x/console-cli/examples/messaging/update-f-c-m-provider.md deleted file mode 100644 index 529ad4cd11..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/messaging/update-f-c-m-provider.md +++ /dev/null @@ -1,5 +0,0 @@ -appwrite messaging updateFCMProvider \ - --providerId \ - - - diff --git a/docs/examples/1.8.x/console-cli/examples/messaging/update-fcm-provider.md b/docs/examples/1.8.x/console-cli/examples/messaging/update-fcm-provider.md index 000022361f..4d41680639 100644 --- a/docs/examples/1.8.x/console-cli/examples/messaging/update-fcm-provider.md +++ b/docs/examples/1.8.x/console-cli/examples/messaging/update-fcm-provider.md @@ -1,5 +1,2 @@ -appwrite messaging updateFcmProvider \ - --providerId \ - - - +appwrite messaging update-fcm-provider \ + --provider-id diff --git a/docs/examples/1.8.x/console-cli/examples/messaging/update-mailgun-provider.md b/docs/examples/1.8.x/console-cli/examples/messaging/update-mailgun-provider.md index f35c5e9157..9d07afead8 100644 --- a/docs/examples/1.8.x/console-cli/examples/messaging/update-mailgun-provider.md +++ b/docs/examples/1.8.x/console-cli/examples/messaging/update-mailgun-provider.md @@ -1,11 +1,2 @@ -appwrite messaging updateMailgunProvider \ - --providerId \ - - - - - - - - - +appwrite messaging update-mailgun-provider \ + --provider-id diff --git a/docs/examples/1.8.x/console-cli/examples/messaging/update-msg-91-provider.md b/docs/examples/1.8.x/console-cli/examples/messaging/update-msg-91-provider.md new file mode 100644 index 0000000000..e4bc24b4ef --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/messaging/update-msg-91-provider.md @@ -0,0 +1,2 @@ +appwrite messaging update-msg-91-provider \ + --provider-id diff --git a/docs/examples/1.8.x/console-cli/examples/messaging/update-msg91provider.md b/docs/examples/1.8.x/console-cli/examples/messaging/update-msg91provider.md deleted file mode 100644 index 8e2d604a19..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/messaging/update-msg91provider.md +++ /dev/null @@ -1,7 +0,0 @@ -appwrite messaging updateMsg91Provider \ - --providerId \ - - - - - diff --git a/docs/examples/1.8.x/console-cli/examples/messaging/update-push.md b/docs/examples/1.8.x/console-cli/examples/messaging/update-push.md index 1f4427cee7..c11d462943 100644 --- a/docs/examples/1.8.x/console-cli/examples/messaging/update-push.md +++ b/docs/examples/1.8.x/console-cli/examples/messaging/update-push.md @@ -1,20 +1,2 @@ -appwrite messaging updatePush \ - --messageId \ - - - - - - - - - - - - - - - - - - +appwrite messaging update-push \ + --message-id diff --git a/docs/examples/1.8.x/console-cli/examples/messaging/update-s-m-s.md b/docs/examples/1.8.x/console-cli/examples/messaging/update-s-m-s.md deleted file mode 100644 index 1db1abaff7..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/messaging/update-s-m-s.md +++ /dev/null @@ -1,8 +0,0 @@ -appwrite messaging updateSMS \ - --messageId \ - - - - - - diff --git a/docs/examples/1.8.x/console-cli/examples/messaging/update-s-m-t-p-provider.md b/docs/examples/1.8.x/console-cli/examples/messaging/update-s-m-t-p-provider.md deleted file mode 100644 index 4cc7990394..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/messaging/update-s-m-t-p-provider.md +++ /dev/null @@ -1,15 +0,0 @@ -appwrite messaging updateSMTPProvider \ - --providerId \ - - - - - - - - - - - - - diff --git a/docs/examples/1.8.x/console-cli/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.8.x/console-cli/examples/messaging/update-sendgrid-provider.md index 7f2e97dbf7..77e9fcd2df 100644 --- a/docs/examples/1.8.x/console-cli/examples/messaging/update-sendgrid-provider.md +++ b/docs/examples/1.8.x/console-cli/examples/messaging/update-sendgrid-provider.md @@ -1,9 +1,2 @@ -appwrite messaging updateSendgridProvider \ - --providerId \ - - - - - - - +appwrite messaging update-sendgrid-provider \ + --provider-id diff --git a/docs/examples/1.8.x/console-cli/examples/messaging/update-sms.md b/docs/examples/1.8.x/console-cli/examples/messaging/update-sms.md index a30ff43d0c..888df629d6 100644 --- a/docs/examples/1.8.x/console-cli/examples/messaging/update-sms.md +++ b/docs/examples/1.8.x/console-cli/examples/messaging/update-sms.md @@ -1,8 +1,2 @@ -appwrite messaging updateSms \ - --messageId \ - - - - - - +appwrite messaging update-sms \ + --message-id diff --git a/docs/examples/1.8.x/console-cli/examples/messaging/update-smtp-provider.md b/docs/examples/1.8.x/console-cli/examples/messaging/update-smtp-provider.md index 4e0f7b6b8d..23bb89998f 100644 --- a/docs/examples/1.8.x/console-cli/examples/messaging/update-smtp-provider.md +++ b/docs/examples/1.8.x/console-cli/examples/messaging/update-smtp-provider.md @@ -1,15 +1,2 @@ -appwrite messaging updateSmtpProvider \ - --providerId \ - - - - - - - - - - - - - +appwrite messaging update-smtp-provider \ + --provider-id diff --git a/docs/examples/1.8.x/console-cli/examples/messaging/update-telesign-provider.md b/docs/examples/1.8.x/console-cli/examples/messaging/update-telesign-provider.md index 0a92f2cacd..69eee1f57b 100644 --- a/docs/examples/1.8.x/console-cli/examples/messaging/update-telesign-provider.md +++ b/docs/examples/1.8.x/console-cli/examples/messaging/update-telesign-provider.md @@ -1,7 +1,2 @@ -appwrite messaging updateTelesignProvider \ - --providerId \ - - - - - +appwrite messaging update-telesign-provider \ + --provider-id diff --git a/docs/examples/1.8.x/console-cli/examples/messaging/update-textmagic-provider.md b/docs/examples/1.8.x/console-cli/examples/messaging/update-textmagic-provider.md index 79160b2461..ff23b82155 100644 --- a/docs/examples/1.8.x/console-cli/examples/messaging/update-textmagic-provider.md +++ b/docs/examples/1.8.x/console-cli/examples/messaging/update-textmagic-provider.md @@ -1,7 +1,2 @@ -appwrite messaging updateTextmagicProvider \ - --providerId \ - - - - - +appwrite messaging update-textmagic-provider \ + --provider-id diff --git a/docs/examples/1.8.x/console-cli/examples/messaging/update-topic.md b/docs/examples/1.8.x/console-cli/examples/messaging/update-topic.md index d10b0edde3..ea7bc458e3 100644 --- a/docs/examples/1.8.x/console-cli/examples/messaging/update-topic.md +++ b/docs/examples/1.8.x/console-cli/examples/messaging/update-topic.md @@ -1,4 +1,2 @@ -appwrite messaging updateTopic \ - --topicId \ - - +appwrite messaging update-topic \ + --topic-id diff --git a/docs/examples/1.8.x/console-cli/examples/messaging/update-twilio-provider.md b/docs/examples/1.8.x/console-cli/examples/messaging/update-twilio-provider.md index c967d724af..25f2910d26 100644 --- a/docs/examples/1.8.x/console-cli/examples/messaging/update-twilio-provider.md +++ b/docs/examples/1.8.x/console-cli/examples/messaging/update-twilio-provider.md @@ -1,7 +1,2 @@ -appwrite messaging updateTwilioProvider \ - --providerId \ - - - - - +appwrite messaging update-twilio-provider \ + --provider-id diff --git a/docs/examples/1.8.x/console-cli/examples/messaging/update-vonage-provider.md b/docs/examples/1.8.x/console-cli/examples/messaging/update-vonage-provider.md index 11f7963be2..7b87a9422b 100644 --- a/docs/examples/1.8.x/console-cli/examples/messaging/update-vonage-provider.md +++ b/docs/examples/1.8.x/console-cli/examples/messaging/update-vonage-provider.md @@ -1,7 +1,2 @@ -appwrite messaging updateVonageProvider \ - --providerId \ - - - - - +appwrite messaging update-vonage-provider \ + --provider-id diff --git a/docs/examples/1.8.x/console-cli/examples/migrations/create-appwrite-migration.md b/docs/examples/1.8.x/console-cli/examples/migrations/create-appwrite-migration.md index 73e9ee62d8..34fee2f307 100644 --- a/docs/examples/1.8.x/console-cli/examples/migrations/create-appwrite-migration.md +++ b/docs/examples/1.8.x/console-cli/examples/migrations/create-appwrite-migration.md @@ -1,5 +1,5 @@ -appwrite migrations createAppwriteMigration \ - --resources one two three \ - --endpoint https://example.com \ - --projectId \ - --apiKey +appwrite migrations create-appwrite-migration \ + --resources one two three \ + --endpoint https://example.com \ + --project-id \ + --api-key diff --git a/docs/examples/1.8.x/console-cli/examples/migrations/create-csv-migration.md b/docs/examples/1.8.x/console-cli/examples/migrations/create-csv-migration.md index f80c9e940a..4b72b6f689 100644 --- a/docs/examples/1.8.x/console-cli/examples/migrations/create-csv-migration.md +++ b/docs/examples/1.8.x/console-cli/examples/migrations/create-csv-migration.md @@ -1,5 +1,4 @@ -appwrite migrations createCsvMigration \ - --bucketId \ - --fileId \ - --resourceId [ID1:ID2] \ - +appwrite migrations create-csv-migration \ + --bucket-id \ + --file-id \ + --resource-id [ID1:ID2] diff --git a/docs/examples/1.8.x/console-cli/examples/migrations/create-firebase-migration.md b/docs/examples/1.8.x/console-cli/examples/migrations/create-firebase-migration.md index 3dfb3aeac6..81337b4cf4 100644 --- a/docs/examples/1.8.x/console-cli/examples/migrations/create-firebase-migration.md +++ b/docs/examples/1.8.x/console-cli/examples/migrations/create-firebase-migration.md @@ -1,3 +1,3 @@ -appwrite migrations createFirebaseMigration \ - --resources one two three \ - --serviceAccount +appwrite migrations create-firebase-migration \ + --resources one two three \ + --service-account diff --git a/docs/examples/1.8.x/console-cli/examples/migrations/create-n-host-migration.md b/docs/examples/1.8.x/console-cli/examples/migrations/create-n-host-migration.md index d959897109..2bcba6ad8c 100644 --- a/docs/examples/1.8.x/console-cli/examples/migrations/create-n-host-migration.md +++ b/docs/examples/1.8.x/console-cli/examples/migrations/create-n-host-migration.md @@ -1,9 +1,8 @@ -appwrite migrations createNHostMigration \ - --resources one two three \ - --subdomain \ - --region \ - --adminSecret \ - --database \ - --username \ - --password \ - +appwrite migrations create-n-host-migration \ + --resources one two three \ + --subdomain \ + --region \ + --admin-secret \ + --database \ + --username \ + --password diff --git a/docs/examples/1.8.x/console-cli/examples/migrations/create-supabase-migration.md b/docs/examples/1.8.x/console-cli/examples/migrations/create-supabase-migration.md index 0620f3ba2e..a186b17212 100644 --- a/docs/examples/1.8.x/console-cli/examples/migrations/create-supabase-migration.md +++ b/docs/examples/1.8.x/console-cli/examples/migrations/create-supabase-migration.md @@ -1,8 +1,7 @@ -appwrite migrations createSupabaseMigration \ - --resources one two three \ - --endpoint https://example.com \ - --apiKey \ - --databaseHost \ - --username \ - --password \ - +appwrite migrations create-supabase-migration \ + --resources one two three \ + --endpoint https://example.com \ + --api-key \ + --database-host \ + --username \ + --password diff --git a/docs/examples/1.8.x/console-cli/examples/migrations/delete.md b/docs/examples/1.8.x/console-cli/examples/migrations/delete.md index 9dac1aa3db..b7ad0f07ba 100644 --- a/docs/examples/1.8.x/console-cli/examples/migrations/delete.md +++ b/docs/examples/1.8.x/console-cli/examples/migrations/delete.md @@ -1,2 +1,2 @@ appwrite migrations delete \ - --migrationId + --migration-id diff --git a/docs/examples/1.8.x/console-cli/examples/migrations/get-appwrite-report.md b/docs/examples/1.8.x/console-cli/examples/migrations/get-appwrite-report.md index 745e9fb98c..3f54fed2bc 100644 --- a/docs/examples/1.8.x/console-cli/examples/migrations/get-appwrite-report.md +++ b/docs/examples/1.8.x/console-cli/examples/migrations/get-appwrite-report.md @@ -1,5 +1,5 @@ -appwrite migrations getAppwriteReport \ - --resources one two three \ - --endpoint https://example.com \ - --projectID \ - --key +appwrite migrations get-appwrite-report \ + --resources one two three \ + --endpoint https://example.com \ + --project-id \ + --key diff --git a/docs/examples/1.8.x/console-cli/examples/migrations/get-firebase-report.md b/docs/examples/1.8.x/console-cli/examples/migrations/get-firebase-report.md index 73c7e1ca14..33e7e732f4 100644 --- a/docs/examples/1.8.x/console-cli/examples/migrations/get-firebase-report.md +++ b/docs/examples/1.8.x/console-cli/examples/migrations/get-firebase-report.md @@ -1,3 +1,3 @@ -appwrite migrations getFirebaseReport \ - --resources one two three \ - --serviceAccount +appwrite migrations get-firebase-report \ + --resources one two three \ + --service-account diff --git a/docs/examples/1.8.x/console-cli/examples/migrations/get-n-host-report.md b/docs/examples/1.8.x/console-cli/examples/migrations/get-n-host-report.md index 6b7e2eaff2..2d1ed043ef 100644 --- a/docs/examples/1.8.x/console-cli/examples/migrations/get-n-host-report.md +++ b/docs/examples/1.8.x/console-cli/examples/migrations/get-n-host-report.md @@ -1,9 +1,8 @@ -appwrite migrations getNHostReport \ - --resources one two three \ - --subdomain \ - --region \ - --adminSecret \ - --database \ - --username \ - --password \ - +appwrite migrations get-n-host-report \ + --resources one two three \ + --subdomain \ + --region \ + --admin-secret \ + --database \ + --username \ + --password diff --git a/docs/examples/1.8.x/console-cli/examples/migrations/get-supabase-report.md b/docs/examples/1.8.x/console-cli/examples/migrations/get-supabase-report.md index 9754f38e24..789c66a543 100644 --- a/docs/examples/1.8.x/console-cli/examples/migrations/get-supabase-report.md +++ b/docs/examples/1.8.x/console-cli/examples/migrations/get-supabase-report.md @@ -1,8 +1,7 @@ -appwrite migrations getSupabaseReport \ - --resources one two three \ - --endpoint https://example.com \ - --apiKey \ - --databaseHost \ - --username \ - --password \ - +appwrite migrations get-supabase-report \ + --resources one two three \ + --endpoint https://example.com \ + --api-key \ + --database-host \ + --username \ + --password diff --git a/docs/examples/1.8.x/console-cli/examples/migrations/get.md b/docs/examples/1.8.x/console-cli/examples/migrations/get.md index 8810646c7e..46959a3ef0 100644 --- a/docs/examples/1.8.x/console-cli/examples/migrations/get.md +++ b/docs/examples/1.8.x/console-cli/examples/migrations/get.md @@ -1,2 +1,2 @@ appwrite migrations get \ - --migrationId + --migration-id diff --git a/docs/examples/1.8.x/console-cli/examples/migrations/list.md b/docs/examples/1.8.x/console-cli/examples/migrations/list.md index c120a61e80..659c9fd46f 100644 --- a/docs/examples/1.8.x/console-cli/examples/migrations/list.md +++ b/docs/examples/1.8.x/console-cli/examples/migrations/list.md @@ -1,3 +1 @@ -appwrite migrations list \ - - +appwrite migrations list diff --git a/docs/examples/1.8.x/console-cli/examples/migrations/retry.md b/docs/examples/1.8.x/console-cli/examples/migrations/retry.md index 518f86cee7..d656dd9956 100644 --- a/docs/examples/1.8.x/console-cli/examples/migrations/retry.md +++ b/docs/examples/1.8.x/console-cli/examples/migrations/retry.md @@ -1,2 +1,2 @@ appwrite migrations retry \ - --migrationId + --migration-id diff --git a/docs/examples/1.8.x/console-cli/examples/project/create-variable.md b/docs/examples/1.8.x/console-cli/examples/project/create-variable.md index 253d6ddf75..113c0bafc9 100644 --- a/docs/examples/1.8.x/console-cli/examples/project/create-variable.md +++ b/docs/examples/1.8.x/console-cli/examples/project/create-variable.md @@ -1,4 +1,3 @@ -appwrite project createVariable \ - --key \ - --value \ - +appwrite project create-variable \ + --key \ + --value diff --git a/docs/examples/1.8.x/console-cli/examples/project/delete-variable.md b/docs/examples/1.8.x/console-cli/examples/project/delete-variable.md index 7fdda874fd..a4213dca5d 100644 --- a/docs/examples/1.8.x/console-cli/examples/project/delete-variable.md +++ b/docs/examples/1.8.x/console-cli/examples/project/delete-variable.md @@ -1,2 +1,2 @@ -appwrite project deleteVariable \ - --variableId +appwrite project delete-variable \ + --variable-id diff --git a/docs/examples/1.8.x/console-cli/examples/project/get-usage.md b/docs/examples/1.8.x/console-cli/examples/project/get-usage.md index 9b4c296a8c..75cc4b99a3 100644 --- a/docs/examples/1.8.x/console-cli/examples/project/get-usage.md +++ b/docs/examples/1.8.x/console-cli/examples/project/get-usage.md @@ -1,4 +1,3 @@ -appwrite project getUsage \ - --startDate '' \ - --endDate '' \ - +appwrite project get-usage \ + --start-date '' \ + --end-date '' diff --git a/docs/examples/1.8.x/console-cli/examples/project/get-variable.md b/docs/examples/1.8.x/console-cli/examples/project/get-variable.md index b2d482586b..2833758541 100644 --- a/docs/examples/1.8.x/console-cli/examples/project/get-variable.md +++ b/docs/examples/1.8.x/console-cli/examples/project/get-variable.md @@ -1,2 +1,2 @@ -appwrite project getVariable \ - --variableId +appwrite project get-variable \ + --variable-id diff --git a/docs/examples/1.8.x/console-cli/examples/project/list-variables.md b/docs/examples/1.8.x/console-cli/examples/project/list-variables.md index bd26c7db6b..dc6251c497 100644 --- a/docs/examples/1.8.x/console-cli/examples/project/list-variables.md +++ b/docs/examples/1.8.x/console-cli/examples/project/list-variables.md @@ -1 +1 @@ -appwrite project listVariables +appwrite project list-variables diff --git a/docs/examples/1.8.x/console-cli/examples/project/update-variable.md b/docs/examples/1.8.x/console-cli/examples/project/update-variable.md index 4365b64888..5f12a12be1 100644 --- a/docs/examples/1.8.x/console-cli/examples/project/update-variable.md +++ b/docs/examples/1.8.x/console-cli/examples/project/update-variable.md @@ -1,5 +1,3 @@ -appwrite project updateVariable \ - --variableId \ - --key \ - - +appwrite project update-variable \ + --variable-id \ + --key diff --git a/docs/examples/1.8.x/console-cli/examples/projects/create-dev-key.md b/docs/examples/1.8.x/console-cli/examples/projects/create-dev-key.md index 8b9ec8969a..b90e0ca85c 100644 --- a/docs/examples/1.8.x/console-cli/examples/projects/create-dev-key.md +++ b/docs/examples/1.8.x/console-cli/examples/projects/create-dev-key.md @@ -1,4 +1,4 @@ -appwrite projects createDevKey \ - --projectId \ - --name \ - --expire '' +appwrite projects create-dev-key \ + --project-id \ + --name \ + --expire '' diff --git a/docs/examples/1.8.x/console-cli/examples/projects/create-j-w-t.md b/docs/examples/1.8.x/console-cli/examples/projects/create-j-w-t.md deleted file mode 100644 index d703d36b65..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/projects/create-j-w-t.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite projects createJWT \ - --projectId \ - --scopes one two three \ - diff --git a/docs/examples/1.8.x/console-cli/examples/projects/create-jwt.md b/docs/examples/1.8.x/console-cli/examples/projects/create-jwt.md new file mode 100644 index 0000000000..df708a53ed --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/projects/create-jwt.md @@ -0,0 +1,3 @@ +appwrite projects create-jwt \ + --project-id \ + --scopes one two three diff --git a/docs/examples/1.8.x/console-cli/examples/projects/create-key.md b/docs/examples/1.8.x/console-cli/examples/projects/create-key.md index fb986dcebc..0650ccd1d2 100644 --- a/docs/examples/1.8.x/console-cli/examples/projects/create-key.md +++ b/docs/examples/1.8.x/console-cli/examples/projects/create-key.md @@ -1,5 +1,4 @@ -appwrite projects createKey \ - --projectId \ - --name \ - --scopes one two three \ - +appwrite projects create-key \ + --project-id \ + --name \ + --scopes one two three diff --git a/docs/examples/1.8.x/console-cli/examples/projects/create-platform.md b/docs/examples/1.8.x/console-cli/examples/projects/create-platform.md index 8727d21d64..94f5234156 100644 --- a/docs/examples/1.8.x/console-cli/examples/projects/create-platform.md +++ b/docs/examples/1.8.x/console-cli/examples/projects/create-platform.md @@ -1,7 +1,4 @@ -appwrite projects createPlatform \ - --projectId \ - --type web \ - --name \ - - - +appwrite projects create-platform \ + --project-id \ + --type web \ + --name diff --git a/docs/examples/1.8.x/console-cli/examples/projects/create-s-m-t-p-test.md b/docs/examples/1.8.x/console-cli/examples/projects/create-s-m-t-p-test.md deleted file mode 100644 index 9a4dd99592..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/projects/create-s-m-t-p-test.md +++ /dev/null @@ -1,11 +0,0 @@ -appwrite projects createSMTPTest \ - --projectId \ - --emails one two three \ - --senderName \ - --senderEmail email@example.com \ - --host '' \ - - - - - diff --git a/docs/examples/1.8.x/console-cli/examples/projects/create-smtp-test.md b/docs/examples/1.8.x/console-cli/examples/projects/create-smtp-test.md index 66ce5880aa..c83aebfb30 100644 --- a/docs/examples/1.8.x/console-cli/examples/projects/create-smtp-test.md +++ b/docs/examples/1.8.x/console-cli/examples/projects/create-smtp-test.md @@ -1,11 +1,6 @@ -appwrite projects createSmtpTest \ - --projectId \ - --emails one two three \ - --senderName \ - --senderEmail email@example.com \ - --host '' \ - - - - - +appwrite projects create-smtp-test \ + --project-id \ + --emails one two three \ + --sender-name \ + --sender-email email@example.com \ + --host '' diff --git a/docs/examples/1.8.x/console-cli/examples/projects/create-webhook.md b/docs/examples/1.8.x/console-cli/examples/projects/create-webhook.md index 03ecf4110d..0983d31497 100644 --- a/docs/examples/1.8.x/console-cli/examples/projects/create-webhook.md +++ b/docs/examples/1.8.x/console-cli/examples/projects/create-webhook.md @@ -1,9 +1,6 @@ -appwrite projects createWebhook \ - --projectId \ - --name \ - --events one two three \ - --url '' \ - --security false \ - - - +appwrite projects create-webhook \ + --project-id \ + --name \ + --events one two three \ + --url '' \ + --security false diff --git a/docs/examples/1.8.x/console-cli/examples/projects/create.md b/docs/examples/1.8.x/console-cli/examples/projects/create.md index 0504785503..5bdd1ffda1 100644 --- a/docs/examples/1.8.x/console-cli/examples/projects/create.md +++ b/docs/examples/1.8.x/console-cli/examples/projects/create.md @@ -1,14 +1,4 @@ appwrite projects create \ - --projectId '' \ - --name \ - --teamId \ - - - - - - - - - - + --project-id '' \ + --name \ + --team-id diff --git a/docs/examples/1.8.x/console-cli/examples/projects/delete-dev-key.md b/docs/examples/1.8.x/console-cli/examples/projects/delete-dev-key.md index 2859a3309f..3e911eab69 100644 --- a/docs/examples/1.8.x/console-cli/examples/projects/delete-dev-key.md +++ b/docs/examples/1.8.x/console-cli/examples/projects/delete-dev-key.md @@ -1,3 +1,3 @@ -appwrite projects deleteDevKey \ - --projectId \ - --keyId +appwrite projects delete-dev-key \ + --project-id \ + --key-id diff --git a/docs/examples/1.8.x/console-cli/examples/projects/delete-email-template.md b/docs/examples/1.8.x/console-cli/examples/projects/delete-email-template.md index 01ce0fac68..81cf403c6d 100644 --- a/docs/examples/1.8.x/console-cli/examples/projects/delete-email-template.md +++ b/docs/examples/1.8.x/console-cli/examples/projects/delete-email-template.md @@ -1,4 +1,4 @@ -appwrite projects deleteEmailTemplate \ - --projectId \ - --type verification \ - --locale af +appwrite projects delete-email-template \ + --project-id \ + --type verification \ + --locale af diff --git a/docs/examples/1.8.x/console-cli/examples/projects/delete-key.md b/docs/examples/1.8.x/console-cli/examples/projects/delete-key.md index 6baf05706e..eccb09b911 100644 --- a/docs/examples/1.8.x/console-cli/examples/projects/delete-key.md +++ b/docs/examples/1.8.x/console-cli/examples/projects/delete-key.md @@ -1,3 +1,3 @@ -appwrite projects deleteKey \ - --projectId \ - --keyId +appwrite projects delete-key \ + --project-id \ + --key-id diff --git a/docs/examples/1.8.x/console-cli/examples/projects/delete-platform.md b/docs/examples/1.8.x/console-cli/examples/projects/delete-platform.md index a85bd865ba..7f68e7d6f9 100644 --- a/docs/examples/1.8.x/console-cli/examples/projects/delete-platform.md +++ b/docs/examples/1.8.x/console-cli/examples/projects/delete-platform.md @@ -1,3 +1,3 @@ -appwrite projects deletePlatform \ - --projectId \ - --platformId +appwrite projects delete-platform \ + --project-id \ + --platform-id diff --git a/docs/examples/1.8.x/console-cli/examples/projects/delete-s-m-s-template.md b/docs/examples/1.8.x/console-cli/examples/projects/delete-s-m-s-template.md deleted file mode 100644 index 69fa595d8b..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/projects/delete-s-m-s-template.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite projects deleteSMSTemplate \ - --projectId \ - --type verification \ - --locale af diff --git a/docs/examples/1.8.x/console-cli/examples/projects/delete-sms-template.md b/docs/examples/1.8.x/console-cli/examples/projects/delete-sms-template.md index 3afcf649c7..666de541d9 100644 --- a/docs/examples/1.8.x/console-cli/examples/projects/delete-sms-template.md +++ b/docs/examples/1.8.x/console-cli/examples/projects/delete-sms-template.md @@ -1,4 +1,4 @@ -appwrite projects deleteSmsTemplate \ - --projectId \ - --type verification \ - --locale af +appwrite projects delete-sms-template \ + --project-id \ + --type verification \ + --locale af diff --git a/docs/examples/1.8.x/console-cli/examples/projects/delete-webhook.md b/docs/examples/1.8.x/console-cli/examples/projects/delete-webhook.md index a67301ef07..70e686556e 100644 --- a/docs/examples/1.8.x/console-cli/examples/projects/delete-webhook.md +++ b/docs/examples/1.8.x/console-cli/examples/projects/delete-webhook.md @@ -1,3 +1,3 @@ -appwrite projects deleteWebhook \ - --projectId \ - --webhookId +appwrite projects delete-webhook \ + --project-id \ + --webhook-id diff --git a/docs/examples/1.8.x/console-cli/examples/projects/delete.md b/docs/examples/1.8.x/console-cli/examples/projects/delete.md index a4ffc70c91..3127385598 100644 --- a/docs/examples/1.8.x/console-cli/examples/projects/delete.md +++ b/docs/examples/1.8.x/console-cli/examples/projects/delete.md @@ -1,2 +1,2 @@ appwrite projects delete \ - --projectId + --project-id diff --git a/docs/examples/1.8.x/console-cli/examples/projects/get-dev-key.md b/docs/examples/1.8.x/console-cli/examples/projects/get-dev-key.md index cfc37ed437..57b2c2275c 100644 --- a/docs/examples/1.8.x/console-cli/examples/projects/get-dev-key.md +++ b/docs/examples/1.8.x/console-cli/examples/projects/get-dev-key.md @@ -1,3 +1,3 @@ -appwrite projects getDevKey \ - --projectId \ - --keyId +appwrite projects get-dev-key \ + --project-id \ + --key-id diff --git a/docs/examples/1.8.x/console-cli/examples/projects/get-email-template.md b/docs/examples/1.8.x/console-cli/examples/projects/get-email-template.md index 6e4c21e52b..ea6d5422a8 100644 --- a/docs/examples/1.8.x/console-cli/examples/projects/get-email-template.md +++ b/docs/examples/1.8.x/console-cli/examples/projects/get-email-template.md @@ -1,4 +1,4 @@ -appwrite projects getEmailTemplate \ - --projectId \ - --type verification \ - --locale af +appwrite projects get-email-template \ + --project-id \ + --type verification \ + --locale af diff --git a/docs/examples/1.8.x/console-cli/examples/projects/get-key.md b/docs/examples/1.8.x/console-cli/examples/projects/get-key.md index f69b51bbe2..cfd5013536 100644 --- a/docs/examples/1.8.x/console-cli/examples/projects/get-key.md +++ b/docs/examples/1.8.x/console-cli/examples/projects/get-key.md @@ -1,3 +1,3 @@ -appwrite projects getKey \ - --projectId \ - --keyId +appwrite projects get-key \ + --project-id \ + --key-id diff --git a/docs/examples/1.8.x/console-cli/examples/projects/get-platform.md b/docs/examples/1.8.x/console-cli/examples/projects/get-platform.md index 67648be035..62077309b6 100644 --- a/docs/examples/1.8.x/console-cli/examples/projects/get-platform.md +++ b/docs/examples/1.8.x/console-cli/examples/projects/get-platform.md @@ -1,3 +1,3 @@ -appwrite projects getPlatform \ - --projectId \ - --platformId +appwrite projects get-platform \ + --project-id \ + --platform-id diff --git a/docs/examples/1.8.x/console-cli/examples/projects/get-s-m-s-template.md b/docs/examples/1.8.x/console-cli/examples/projects/get-s-m-s-template.md deleted file mode 100644 index c61ca6956f..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/projects/get-s-m-s-template.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite projects getSMSTemplate \ - --projectId \ - --type verification \ - --locale af diff --git a/docs/examples/1.8.x/console-cli/examples/projects/get-sms-template.md b/docs/examples/1.8.x/console-cli/examples/projects/get-sms-template.md index c655953c8e..bbb755b085 100644 --- a/docs/examples/1.8.x/console-cli/examples/projects/get-sms-template.md +++ b/docs/examples/1.8.x/console-cli/examples/projects/get-sms-template.md @@ -1,4 +1,4 @@ -appwrite projects getSmsTemplate \ - --projectId \ - --type verification \ - --locale af +appwrite projects get-sms-template \ + --project-id \ + --type verification \ + --locale af diff --git a/docs/examples/1.8.x/console-cli/examples/projects/get-webhook.md b/docs/examples/1.8.x/console-cli/examples/projects/get-webhook.md index 890bf37069..d725bee7bf 100644 --- a/docs/examples/1.8.x/console-cli/examples/projects/get-webhook.md +++ b/docs/examples/1.8.x/console-cli/examples/projects/get-webhook.md @@ -1,3 +1,3 @@ -appwrite projects getWebhook \ - --projectId \ - --webhookId +appwrite projects get-webhook \ + --project-id \ + --webhook-id diff --git a/docs/examples/1.8.x/console-cli/examples/projects/get.md b/docs/examples/1.8.x/console-cli/examples/projects/get.md index 919321b81d..0665b37e0a 100644 --- a/docs/examples/1.8.x/console-cli/examples/projects/get.md +++ b/docs/examples/1.8.x/console-cli/examples/projects/get.md @@ -1,2 +1,2 @@ appwrite projects get \ - --projectId + --project-id diff --git a/docs/examples/1.8.x/console-cli/examples/projects/list-dev-keys.md b/docs/examples/1.8.x/console-cli/examples/projects/list-dev-keys.md index d552cb3bca..f6f9a844c5 100644 --- a/docs/examples/1.8.x/console-cli/examples/projects/list-dev-keys.md +++ b/docs/examples/1.8.x/console-cli/examples/projects/list-dev-keys.md @@ -1,3 +1,2 @@ -appwrite projects listDevKeys \ - --projectId \ - +appwrite projects list-dev-keys \ + --project-id diff --git a/docs/examples/1.8.x/console-cli/examples/projects/list-keys.md b/docs/examples/1.8.x/console-cli/examples/projects/list-keys.md index cc37680b5b..aa70a5c5eb 100644 --- a/docs/examples/1.8.x/console-cli/examples/projects/list-keys.md +++ b/docs/examples/1.8.x/console-cli/examples/projects/list-keys.md @@ -1,2 +1,2 @@ -appwrite projects listKeys \ - --projectId +appwrite projects list-keys \ + --project-id diff --git a/docs/examples/1.8.x/console-cli/examples/projects/list-platforms.md b/docs/examples/1.8.x/console-cli/examples/projects/list-platforms.md index 5fc2ea4106..e7fbfb2831 100644 --- a/docs/examples/1.8.x/console-cli/examples/projects/list-platforms.md +++ b/docs/examples/1.8.x/console-cli/examples/projects/list-platforms.md @@ -1,2 +1,2 @@ -appwrite projects listPlatforms \ - --projectId +appwrite projects list-platforms \ + --project-id diff --git a/docs/examples/1.8.x/console-cli/examples/projects/list-webhooks.md b/docs/examples/1.8.x/console-cli/examples/projects/list-webhooks.md index dcf9953f80..ab4012a11a 100644 --- a/docs/examples/1.8.x/console-cli/examples/projects/list-webhooks.md +++ b/docs/examples/1.8.x/console-cli/examples/projects/list-webhooks.md @@ -1,2 +1,2 @@ -appwrite projects listWebhooks \ - --projectId +appwrite projects list-webhooks \ + --project-id diff --git a/docs/examples/1.8.x/console-cli/examples/projects/list.md b/docs/examples/1.8.x/console-cli/examples/projects/list.md index 0d3dd7a539..f84f712fb5 100644 --- a/docs/examples/1.8.x/console-cli/examples/projects/list.md +++ b/docs/examples/1.8.x/console-cli/examples/projects/list.md @@ -1,3 +1 @@ -appwrite projects list \ - - +appwrite projects list diff --git a/docs/examples/1.8.x/console-cli/examples/projects/update-a-p-i-status-all.md b/docs/examples/1.8.x/console-cli/examples/projects/update-a-p-i-status-all.md deleted file mode 100644 index 02adf9c13d..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/projects/update-a-p-i-status-all.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite projects updateAPIStatusAll \ - --projectId \ - --status false diff --git a/docs/examples/1.8.x/console-cli/examples/projects/update-a-p-i-status.md b/docs/examples/1.8.x/console-cli/examples/projects/update-a-p-i-status.md deleted file mode 100644 index de4261ead0..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/projects/update-a-p-i-status.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite projects updateAPIStatus \ - --projectId \ - --api rest \ - --status false diff --git a/docs/examples/1.8.x/console-cli/examples/projects/update-api-status-all.md b/docs/examples/1.8.x/console-cli/examples/projects/update-api-status-all.md index e5f63c59a3..bbbec4500d 100644 --- a/docs/examples/1.8.x/console-cli/examples/projects/update-api-status-all.md +++ b/docs/examples/1.8.x/console-cli/examples/projects/update-api-status-all.md @@ -1,3 +1,3 @@ -appwrite projects updateApiStatusAll \ - --projectId \ - --status false +appwrite projects update-api-status-all \ + --project-id \ + --status false diff --git a/docs/examples/1.8.x/console-cli/examples/projects/update-api-status.md b/docs/examples/1.8.x/console-cli/examples/projects/update-api-status.md index 01120957af..7e269ba2ec 100644 --- a/docs/examples/1.8.x/console-cli/examples/projects/update-api-status.md +++ b/docs/examples/1.8.x/console-cli/examples/projects/update-api-status.md @@ -1,4 +1,4 @@ -appwrite projects updateApiStatus \ - --projectId \ - --api rest \ - --status false +appwrite projects update-api-status \ + --project-id \ + --api rest \ + --status false diff --git a/docs/examples/1.8.x/console-cli/examples/projects/update-auth-duration.md b/docs/examples/1.8.x/console-cli/examples/projects/update-auth-duration.md index ad6f8ac97c..07e458e731 100644 --- a/docs/examples/1.8.x/console-cli/examples/projects/update-auth-duration.md +++ b/docs/examples/1.8.x/console-cli/examples/projects/update-auth-duration.md @@ -1,3 +1,3 @@ -appwrite projects updateAuthDuration \ - --projectId \ - --duration 0 +appwrite projects update-auth-duration \ + --project-id \ + --duration 0 diff --git a/docs/examples/1.8.x/console-cli/examples/projects/update-auth-limit.md b/docs/examples/1.8.x/console-cli/examples/projects/update-auth-limit.md index 9d01fa5a1a..5e5d2addda 100644 --- a/docs/examples/1.8.x/console-cli/examples/projects/update-auth-limit.md +++ b/docs/examples/1.8.x/console-cli/examples/projects/update-auth-limit.md @@ -1,3 +1,3 @@ -appwrite projects updateAuthLimit \ - --projectId \ - --limit 0 +appwrite projects update-auth-limit \ + --project-id \ + --limit 0 diff --git a/docs/examples/1.8.x/console-cli/examples/projects/update-auth-password-dictionary.md b/docs/examples/1.8.x/console-cli/examples/projects/update-auth-password-dictionary.md index f477bba56d..b4160e3412 100644 --- a/docs/examples/1.8.x/console-cli/examples/projects/update-auth-password-dictionary.md +++ b/docs/examples/1.8.x/console-cli/examples/projects/update-auth-password-dictionary.md @@ -1,3 +1,3 @@ -appwrite projects updateAuthPasswordDictionary \ - --projectId \ - --enabled false +appwrite projects update-auth-password-dictionary \ + --project-id \ + --enabled false diff --git a/docs/examples/1.8.x/console-cli/examples/projects/update-auth-password-history.md b/docs/examples/1.8.x/console-cli/examples/projects/update-auth-password-history.md index 8b9b90a32a..cffc917911 100644 --- a/docs/examples/1.8.x/console-cli/examples/projects/update-auth-password-history.md +++ b/docs/examples/1.8.x/console-cli/examples/projects/update-auth-password-history.md @@ -1,3 +1,3 @@ -appwrite projects updateAuthPasswordHistory \ - --projectId \ - --limit 0 +appwrite projects update-auth-password-history \ + --project-id \ + --limit 0 diff --git a/docs/examples/1.8.x/console-cli/examples/projects/update-auth-sessions-limit.md b/docs/examples/1.8.x/console-cli/examples/projects/update-auth-sessions-limit.md index 2a1294d17b..fc205c03ac 100644 --- a/docs/examples/1.8.x/console-cli/examples/projects/update-auth-sessions-limit.md +++ b/docs/examples/1.8.x/console-cli/examples/projects/update-auth-sessions-limit.md @@ -1,3 +1,3 @@ -appwrite projects updateAuthSessionsLimit \ - --projectId \ - --limit 1 +appwrite projects update-auth-sessions-limit \ + --project-id \ + --limit 1 diff --git a/docs/examples/1.8.x/console-cli/examples/projects/update-auth-status.md b/docs/examples/1.8.x/console-cli/examples/projects/update-auth-status.md index 848987b2f8..5f38dc9225 100644 --- a/docs/examples/1.8.x/console-cli/examples/projects/update-auth-status.md +++ b/docs/examples/1.8.x/console-cli/examples/projects/update-auth-status.md @@ -1,4 +1,4 @@ -appwrite projects updateAuthStatus \ - --projectId \ - --method email-password \ - --status false +appwrite projects update-auth-status \ + --project-id \ + --method email-password \ + --status false diff --git a/docs/examples/1.8.x/console-cli/examples/projects/update-dev-key.md b/docs/examples/1.8.x/console-cli/examples/projects/update-dev-key.md index cc95030389..1e54db37cb 100644 --- a/docs/examples/1.8.x/console-cli/examples/projects/update-dev-key.md +++ b/docs/examples/1.8.x/console-cli/examples/projects/update-dev-key.md @@ -1,5 +1,5 @@ -appwrite projects updateDevKey \ - --projectId \ - --keyId \ - --name \ - --expire '' +appwrite projects update-dev-key \ + --project-id \ + --key-id \ + --name \ + --expire '' diff --git a/docs/examples/1.8.x/console-cli/examples/projects/update-email-template.md b/docs/examples/1.8.x/console-cli/examples/projects/update-email-template.md index a3acd066ec..f8e4919a4a 100644 --- a/docs/examples/1.8.x/console-cli/examples/projects/update-email-template.md +++ b/docs/examples/1.8.x/console-cli/examples/projects/update-email-template.md @@ -1,9 +1,6 @@ -appwrite projects updateEmailTemplate \ - --projectId \ - --type verification \ - --locale af \ - --subject \ - --message \ - - - +appwrite projects update-email-template \ + --project-id \ + --type verification \ + --locale af \ + --subject \ + --message diff --git a/docs/examples/1.8.x/console-cli/examples/projects/update-key.md b/docs/examples/1.8.x/console-cli/examples/projects/update-key.md index 6d3dc198da..8ac173b75e 100644 --- a/docs/examples/1.8.x/console-cli/examples/projects/update-key.md +++ b/docs/examples/1.8.x/console-cli/examples/projects/update-key.md @@ -1,6 +1,5 @@ -appwrite projects updateKey \ - --projectId \ - --keyId \ - --name \ - --scopes one two three \ - +appwrite projects update-key \ + --project-id \ + --key-id \ + --name \ + --scopes one two three diff --git a/docs/examples/1.8.x/console-cli/examples/projects/update-memberships-privacy.md b/docs/examples/1.8.x/console-cli/examples/projects/update-memberships-privacy.md index 6c811ccfce..94582f48b7 100644 --- a/docs/examples/1.8.x/console-cli/examples/projects/update-memberships-privacy.md +++ b/docs/examples/1.8.x/console-cli/examples/projects/update-memberships-privacy.md @@ -1,5 +1,5 @@ -appwrite projects updateMembershipsPrivacy \ - --projectId \ - --userName false \ - --userEmail false \ - --mfa false +appwrite projects update-memberships-privacy \ + --project-id \ + --user-name false \ + --user-email false \ + --mfa false diff --git a/docs/examples/1.8.x/console-cli/examples/projects/update-mock-numbers.md b/docs/examples/1.8.x/console-cli/examples/projects/update-mock-numbers.md index 733cc16887..774887d6af 100644 --- a/docs/examples/1.8.x/console-cli/examples/projects/update-mock-numbers.md +++ b/docs/examples/1.8.x/console-cli/examples/projects/update-mock-numbers.md @@ -1,3 +1,3 @@ -appwrite projects updateMockNumbers \ - --projectId \ - --numbers one two three +appwrite projects update-mock-numbers \ + --project-id \ + --numbers one two three diff --git a/docs/examples/1.8.x/console-cli/examples/projects/update-o-auth-2.md b/docs/examples/1.8.x/console-cli/examples/projects/update-o-auth-2.md new file mode 100644 index 0000000000..7f8364df6a --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/projects/update-o-auth-2.md @@ -0,0 +1,3 @@ +appwrite projects update-o-auth-2 \ + --project-id \ + --provider amazon diff --git a/docs/examples/1.8.x/console-cli/examples/projects/update-o-auth2.md b/docs/examples/1.8.x/console-cli/examples/projects/update-o-auth2.md deleted file mode 100644 index 92f6718962..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/projects/update-o-auth2.md +++ /dev/null @@ -1,6 +0,0 @@ -appwrite projects updateOAuth2 \ - --projectId \ - --provider amazon \ - - - diff --git a/docs/examples/1.8.x/console-cli/examples/projects/update-personal-data-check.md b/docs/examples/1.8.x/console-cli/examples/projects/update-personal-data-check.md index 21dca78369..7130decb07 100644 --- a/docs/examples/1.8.x/console-cli/examples/projects/update-personal-data-check.md +++ b/docs/examples/1.8.x/console-cli/examples/projects/update-personal-data-check.md @@ -1,3 +1,3 @@ -appwrite projects updatePersonalDataCheck \ - --projectId \ - --enabled false +appwrite projects update-personal-data-check \ + --project-id \ + --enabled false diff --git a/docs/examples/1.8.x/console-cli/examples/projects/update-platform.md b/docs/examples/1.8.x/console-cli/examples/projects/update-platform.md index 05b1602ae9..170e8a6e68 100644 --- a/docs/examples/1.8.x/console-cli/examples/projects/update-platform.md +++ b/docs/examples/1.8.x/console-cli/examples/projects/update-platform.md @@ -1,7 +1,4 @@ -appwrite projects updatePlatform \ - --projectId \ - --platformId \ - --name \ - - - +appwrite projects update-platform \ + --project-id \ + --platform-id \ + --name diff --git a/docs/examples/1.8.x/console-cli/examples/projects/update-s-m-s-template.md b/docs/examples/1.8.x/console-cli/examples/projects/update-s-m-s-template.md deleted file mode 100644 index c69ac853f4..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/projects/update-s-m-s-template.md +++ /dev/null @@ -1,5 +0,0 @@ -appwrite projects updateSMSTemplate \ - --projectId \ - --type verification \ - --locale af \ - --message diff --git a/docs/examples/1.8.x/console-cli/examples/projects/update-s-m-t-p.md b/docs/examples/1.8.x/console-cli/examples/projects/update-s-m-t-p.md deleted file mode 100644 index e39a811c34..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/projects/update-s-m-t-p.md +++ /dev/null @@ -1,11 +0,0 @@ -appwrite projects updateSMTP \ - --projectId \ - --enabled false \ - - - - - - - - diff --git a/docs/examples/1.8.x/console-cli/examples/projects/update-service-status-all.md b/docs/examples/1.8.x/console-cli/examples/projects/update-service-status-all.md index 1ffb77e085..1d8fab29a7 100644 --- a/docs/examples/1.8.x/console-cli/examples/projects/update-service-status-all.md +++ b/docs/examples/1.8.x/console-cli/examples/projects/update-service-status-all.md @@ -1,3 +1,3 @@ -appwrite projects updateServiceStatusAll \ - --projectId \ - --status false +appwrite projects update-service-status-all \ + --project-id \ + --status false diff --git a/docs/examples/1.8.x/console-cli/examples/projects/update-service-status.md b/docs/examples/1.8.x/console-cli/examples/projects/update-service-status.md index 03963a1214..ce589bcb41 100644 --- a/docs/examples/1.8.x/console-cli/examples/projects/update-service-status.md +++ b/docs/examples/1.8.x/console-cli/examples/projects/update-service-status.md @@ -1,4 +1,4 @@ -appwrite projects updateServiceStatus \ - --projectId \ - --service account \ - --status false +appwrite projects update-service-status \ + --project-id \ + --service account \ + --status false diff --git a/docs/examples/1.8.x/console-cli/examples/projects/update-session-alerts.md b/docs/examples/1.8.x/console-cli/examples/projects/update-session-alerts.md index bd23b7417a..d25fa96000 100644 --- a/docs/examples/1.8.x/console-cli/examples/projects/update-session-alerts.md +++ b/docs/examples/1.8.x/console-cli/examples/projects/update-session-alerts.md @@ -1,3 +1,3 @@ -appwrite projects updateSessionAlerts \ - --projectId \ - --alerts false +appwrite projects update-session-alerts \ + --project-id \ + --alerts false diff --git a/docs/examples/1.8.x/console-cli/examples/projects/update-session-invalidation.md b/docs/examples/1.8.x/console-cli/examples/projects/update-session-invalidation.md index 21e8511f64..17d635e5ac 100644 --- a/docs/examples/1.8.x/console-cli/examples/projects/update-session-invalidation.md +++ b/docs/examples/1.8.x/console-cli/examples/projects/update-session-invalidation.md @@ -1,3 +1,3 @@ -appwrite projects updateSessionInvalidation \ - --projectId \ - --enabled false +appwrite projects update-session-invalidation \ + --project-id \ + --enabled false diff --git a/docs/examples/1.8.x/console-cli/examples/projects/update-sms-template.md b/docs/examples/1.8.x/console-cli/examples/projects/update-sms-template.md index fc8310eb25..5e10477f73 100644 --- a/docs/examples/1.8.x/console-cli/examples/projects/update-sms-template.md +++ b/docs/examples/1.8.x/console-cli/examples/projects/update-sms-template.md @@ -1,5 +1,5 @@ -appwrite projects updateSmsTemplate \ - --projectId \ - --type verification \ - --locale af \ - --message +appwrite projects update-sms-template \ + --project-id \ + --type verification \ + --locale af \ + --message diff --git a/docs/examples/1.8.x/console-cli/examples/projects/update-smtp.md b/docs/examples/1.8.x/console-cli/examples/projects/update-smtp.md index 0afbe9cec9..f62059aa5c 100644 --- a/docs/examples/1.8.x/console-cli/examples/projects/update-smtp.md +++ b/docs/examples/1.8.x/console-cli/examples/projects/update-smtp.md @@ -1,11 +1,3 @@ -appwrite projects updateSmtp \ - --projectId \ - --enabled false \ - - - - - - - - +appwrite projects update-smtp \ + --project-id \ + --enabled false diff --git a/docs/examples/1.8.x/console-cli/examples/projects/update-team.md b/docs/examples/1.8.x/console-cli/examples/projects/update-team.md index 49214ad9f3..4cb0a981c0 100644 --- a/docs/examples/1.8.x/console-cli/examples/projects/update-team.md +++ b/docs/examples/1.8.x/console-cli/examples/projects/update-team.md @@ -1,3 +1,3 @@ -appwrite projects updateTeam \ - --projectId \ - --teamId +appwrite projects update-team \ + --project-id \ + --team-id diff --git a/docs/examples/1.8.x/console-cli/examples/projects/update-webhook-signature.md b/docs/examples/1.8.x/console-cli/examples/projects/update-webhook-signature.md index 6034ef01f6..708ff65663 100644 --- a/docs/examples/1.8.x/console-cli/examples/projects/update-webhook-signature.md +++ b/docs/examples/1.8.x/console-cli/examples/projects/update-webhook-signature.md @@ -1,3 +1,3 @@ -appwrite projects updateWebhookSignature \ - --projectId \ - --webhookId +appwrite projects update-webhook-signature \ + --project-id \ + --webhook-id diff --git a/docs/examples/1.8.x/console-cli/examples/projects/update-webhook.md b/docs/examples/1.8.x/console-cli/examples/projects/update-webhook.md index 51c536d74c..f505e6e520 100644 --- a/docs/examples/1.8.x/console-cli/examples/projects/update-webhook.md +++ b/docs/examples/1.8.x/console-cli/examples/projects/update-webhook.md @@ -1,10 +1,7 @@ -appwrite projects updateWebhook \ - --projectId \ - --webhookId \ - --name \ - --events one two three \ - --url '' \ - --security false \ - - - +appwrite projects update-webhook \ + --project-id \ + --webhook-id \ + --name \ + --events one two three \ + --url '' \ + --security false diff --git a/docs/examples/1.8.x/console-cli/examples/projects/update.md b/docs/examples/1.8.x/console-cli/examples/projects/update.md index d4df289636..e3c7ecaa88 100644 --- a/docs/examples/1.8.x/console-cli/examples/projects/update.md +++ b/docs/examples/1.8.x/console-cli/examples/projects/update.md @@ -1,12 +1,3 @@ appwrite projects update \ - --projectId \ - --name \ - - - - - - - - - + --project-id \ + --name diff --git a/docs/examples/1.8.x/console-cli/examples/proxy/create-a-p-i-rule.md b/docs/examples/1.8.x/console-cli/examples/proxy/create-a-p-i-rule.md deleted file mode 100644 index 5746b94b1e..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/proxy/create-a-p-i-rule.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite proxy createAPIRule \ - --domain '' diff --git a/docs/examples/1.8.x/console-cli/examples/proxy/create-api-rule.md b/docs/examples/1.8.x/console-cli/examples/proxy/create-api-rule.md new file mode 100644 index 0000000000..3bd7bb16fe --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/proxy/create-api-rule.md @@ -0,0 +1,2 @@ +appwrite proxy create-api-rule \ + --domain '' diff --git a/docs/examples/1.8.x/console-cli/examples/proxy/create-function-rule.md b/docs/examples/1.8.x/console-cli/examples/proxy/create-function-rule.md index 380650c208..2312f3afbb 100644 --- a/docs/examples/1.8.x/console-cli/examples/proxy/create-function-rule.md +++ b/docs/examples/1.8.x/console-cli/examples/proxy/create-function-rule.md @@ -1,4 +1,3 @@ -appwrite proxy createFunctionRule \ - --domain '' \ - --functionId \ - +appwrite proxy create-function-rule \ + --domain '' \ + --function-id diff --git a/docs/examples/1.8.x/console-cli/examples/proxy/create-redirect-rule.md b/docs/examples/1.8.x/console-cli/examples/proxy/create-redirect-rule.md index ec9098a748..763f9bc8b4 100644 --- a/docs/examples/1.8.x/console-cli/examples/proxy/create-redirect-rule.md +++ b/docs/examples/1.8.x/console-cli/examples/proxy/create-redirect-rule.md @@ -1,6 +1,6 @@ -appwrite proxy createRedirectRule \ - --domain '' \ - --url https://example.com \ - --statusCode 301 \ - --resourceId \ - --resourceType site +appwrite proxy create-redirect-rule \ + --domain '' \ + --url https://example.com \ + --status-code 301 \ + --resource-id \ + --resource-type site diff --git a/docs/examples/1.8.x/console-cli/examples/proxy/create-site-rule.md b/docs/examples/1.8.x/console-cli/examples/proxy/create-site-rule.md index eb41bd7158..fa7859b352 100644 --- a/docs/examples/1.8.x/console-cli/examples/proxy/create-site-rule.md +++ b/docs/examples/1.8.x/console-cli/examples/proxy/create-site-rule.md @@ -1,4 +1,3 @@ -appwrite proxy createSiteRule \ - --domain '' \ - --siteId \ - +appwrite proxy create-site-rule \ + --domain '' \ + --site-id diff --git a/docs/examples/1.8.x/console-cli/examples/proxy/delete-rule.md b/docs/examples/1.8.x/console-cli/examples/proxy/delete-rule.md index b11b6ca23e..c676893a1b 100644 --- a/docs/examples/1.8.x/console-cli/examples/proxy/delete-rule.md +++ b/docs/examples/1.8.x/console-cli/examples/proxy/delete-rule.md @@ -1,2 +1,2 @@ -appwrite proxy deleteRule \ - --ruleId +appwrite proxy delete-rule \ + --rule-id diff --git a/docs/examples/1.8.x/console-cli/examples/proxy/get-rule.md b/docs/examples/1.8.x/console-cli/examples/proxy/get-rule.md index 85d11a50b1..22ac1de7bf 100644 --- a/docs/examples/1.8.x/console-cli/examples/proxy/get-rule.md +++ b/docs/examples/1.8.x/console-cli/examples/proxy/get-rule.md @@ -1,2 +1,2 @@ -appwrite proxy getRule \ - --ruleId +appwrite proxy get-rule \ + --rule-id diff --git a/docs/examples/1.8.x/console-cli/examples/proxy/list-rules.md b/docs/examples/1.8.x/console-cli/examples/proxy/list-rules.md index bc654bac5c..ab530846d0 100644 --- a/docs/examples/1.8.x/console-cli/examples/proxy/list-rules.md +++ b/docs/examples/1.8.x/console-cli/examples/proxy/list-rules.md @@ -1,3 +1 @@ -appwrite proxy listRules \ - - +appwrite proxy list-rules diff --git a/docs/examples/1.8.x/console-cli/examples/proxy/update-rule-verification.md b/docs/examples/1.8.x/console-cli/examples/proxy/update-rule-verification.md index 8200d15702..b381aa3353 100644 --- a/docs/examples/1.8.x/console-cli/examples/proxy/update-rule-verification.md +++ b/docs/examples/1.8.x/console-cli/examples/proxy/update-rule-verification.md @@ -1,2 +1,2 @@ -appwrite proxy updateRuleVerification \ - --ruleId +appwrite proxy update-rule-verification \ + --rule-id diff --git a/docs/examples/1.8.x/console-cli/examples/sites/create-deployment.md b/docs/examples/1.8.x/console-cli/examples/sites/create-deployment.md index a83d7f3cfe..dda0468278 100644 --- a/docs/examples/1.8.x/console-cli/examples/sites/create-deployment.md +++ b/docs/examples/1.8.x/console-cli/examples/sites/create-deployment.md @@ -1,7 +1,4 @@ -appwrite sites createDeployment \ - --siteId \ - --code 'path/to/file.png' \ - --activate false \ - - - +appwrite sites create-deployment \ + --site-id \ + --code 'path/to/file.png' \ + --activate false diff --git a/docs/examples/1.8.x/console-cli/examples/sites/create-duplicate-deployment.md b/docs/examples/1.8.x/console-cli/examples/sites/create-duplicate-deployment.md index bab63ca8a3..30cf7d5ac8 100644 --- a/docs/examples/1.8.x/console-cli/examples/sites/create-duplicate-deployment.md +++ b/docs/examples/1.8.x/console-cli/examples/sites/create-duplicate-deployment.md @@ -1,3 +1,3 @@ -appwrite sites createDuplicateDeployment \ - --siteId \ - --deploymentId +appwrite sites create-duplicate-deployment \ + --site-id \ + --deployment-id diff --git a/docs/examples/1.8.x/console-cli/examples/sites/create-template-deployment.md b/docs/examples/1.8.x/console-cli/examples/sites/create-template-deployment.md index 2aaaf445db..2eece41976 100644 --- a/docs/examples/1.8.x/console-cli/examples/sites/create-template-deployment.md +++ b/docs/examples/1.8.x/console-cli/examples/sites/create-template-deployment.md @@ -1,7 +1,6 @@ -appwrite sites createTemplateDeployment \ - --siteId \ - --repository \ - --owner \ - --rootDirectory \ - --version \ - +appwrite sites create-template-deployment \ + --site-id \ + --repository \ + --owner \ + --root-directory \ + --version diff --git a/docs/examples/1.8.x/console-cli/examples/sites/create-variable.md b/docs/examples/1.8.x/console-cli/examples/sites/create-variable.md index b640321317..af1f470113 100644 --- a/docs/examples/1.8.x/console-cli/examples/sites/create-variable.md +++ b/docs/examples/1.8.x/console-cli/examples/sites/create-variable.md @@ -1,5 +1,4 @@ -appwrite sites createVariable \ - --siteId \ - --key \ - --value \ - +appwrite sites create-variable \ + --site-id \ + --key \ + --value diff --git a/docs/examples/1.8.x/console-cli/examples/sites/create-vcs-deployment.md b/docs/examples/1.8.x/console-cli/examples/sites/create-vcs-deployment.md index 85c96f93ec..ab9c444e06 100644 --- a/docs/examples/1.8.x/console-cli/examples/sites/create-vcs-deployment.md +++ b/docs/examples/1.8.x/console-cli/examples/sites/create-vcs-deployment.md @@ -1,5 +1,4 @@ -appwrite sites createVcsDeployment \ - --siteId \ - --type branch \ - --reference \ - +appwrite sites create-vcs-deployment \ + --site-id \ + --type branch \ + --reference diff --git a/docs/examples/1.8.x/console-cli/examples/sites/create.md b/docs/examples/1.8.x/console-cli/examples/sites/create.md index bd7e86e70f..6806a106db 100644 --- a/docs/examples/1.8.x/console-cli/examples/sites/create.md +++ b/docs/examples/1.8.x/console-cli/examples/sites/create.md @@ -1,19 +1,5 @@ appwrite sites create \ - --siteId \ - --name \ - --framework analog \ - --buildRuntime node-14.5 \ - - - - - - - - - - - - - - + --site-id \ + --name \ + --framework analog \ + --build-runtime node-14.5 diff --git a/docs/examples/1.8.x/console-cli/examples/sites/delete-deployment.md b/docs/examples/1.8.x/console-cli/examples/sites/delete-deployment.md index c1cbf49637..7f7fe2f89b 100644 --- a/docs/examples/1.8.x/console-cli/examples/sites/delete-deployment.md +++ b/docs/examples/1.8.x/console-cli/examples/sites/delete-deployment.md @@ -1,3 +1,3 @@ -appwrite sites deleteDeployment \ - --siteId \ - --deploymentId +appwrite sites delete-deployment \ + --site-id \ + --deployment-id diff --git a/docs/examples/1.8.x/console-cli/examples/sites/delete-log.md b/docs/examples/1.8.x/console-cli/examples/sites/delete-log.md index 6769be255c..3ea350396c 100644 --- a/docs/examples/1.8.x/console-cli/examples/sites/delete-log.md +++ b/docs/examples/1.8.x/console-cli/examples/sites/delete-log.md @@ -1,3 +1,3 @@ -appwrite sites deleteLog \ - --siteId \ - --logId +appwrite sites delete-log \ + --site-id \ + --log-id diff --git a/docs/examples/1.8.x/console-cli/examples/sites/delete-variable.md b/docs/examples/1.8.x/console-cli/examples/sites/delete-variable.md index 60d9ecf4eb..a7a32b93ba 100644 --- a/docs/examples/1.8.x/console-cli/examples/sites/delete-variable.md +++ b/docs/examples/1.8.x/console-cli/examples/sites/delete-variable.md @@ -1,3 +1,3 @@ -appwrite sites deleteVariable \ - --siteId \ - --variableId +appwrite sites delete-variable \ + --site-id \ + --variable-id diff --git a/docs/examples/1.8.x/console-cli/examples/sites/delete.md b/docs/examples/1.8.x/console-cli/examples/sites/delete.md index 9071454850..e03eca67f1 100644 --- a/docs/examples/1.8.x/console-cli/examples/sites/delete.md +++ b/docs/examples/1.8.x/console-cli/examples/sites/delete.md @@ -1,2 +1,2 @@ appwrite sites delete \ - --siteId + --site-id diff --git a/docs/examples/1.8.x/console-cli/examples/sites/get-deployment-download.md b/docs/examples/1.8.x/console-cli/examples/sites/get-deployment-download.md index 1fae298796..e7af5c31b1 100644 --- a/docs/examples/1.8.x/console-cli/examples/sites/get-deployment-download.md +++ b/docs/examples/1.8.x/console-cli/examples/sites/get-deployment-download.md @@ -1,4 +1,3 @@ -appwrite sites getDeploymentDownload \ - --siteId \ - --deploymentId \ - +appwrite sites get-deployment-download \ + --site-id \ + --deployment-id diff --git a/docs/examples/1.8.x/console-cli/examples/sites/get-deployment.md b/docs/examples/1.8.x/console-cli/examples/sites/get-deployment.md index 93680ff70d..28fee04df8 100644 --- a/docs/examples/1.8.x/console-cli/examples/sites/get-deployment.md +++ b/docs/examples/1.8.x/console-cli/examples/sites/get-deployment.md @@ -1,3 +1,3 @@ -appwrite sites getDeployment \ - --siteId \ - --deploymentId +appwrite sites get-deployment \ + --site-id \ + --deployment-id diff --git a/docs/examples/1.8.x/console-cli/examples/sites/get-log.md b/docs/examples/1.8.x/console-cli/examples/sites/get-log.md index 7867aba05e..adba026759 100644 --- a/docs/examples/1.8.x/console-cli/examples/sites/get-log.md +++ b/docs/examples/1.8.x/console-cli/examples/sites/get-log.md @@ -1,3 +1,3 @@ -appwrite sites getLog \ - --siteId \ - --logId +appwrite sites get-log \ + --site-id \ + --log-id diff --git a/docs/examples/1.8.x/console-cli/examples/sites/get-template.md b/docs/examples/1.8.x/console-cli/examples/sites/get-template.md index e04dd2e120..64bfd67d19 100644 --- a/docs/examples/1.8.x/console-cli/examples/sites/get-template.md +++ b/docs/examples/1.8.x/console-cli/examples/sites/get-template.md @@ -1,2 +1,2 @@ -appwrite sites getTemplate \ - --templateId +appwrite sites get-template \ + --template-id diff --git a/docs/examples/1.8.x/console-cli/examples/sites/get-usage.md b/docs/examples/1.8.x/console-cli/examples/sites/get-usage.md index 6de7d6bde8..e1f88627e9 100644 --- a/docs/examples/1.8.x/console-cli/examples/sites/get-usage.md +++ b/docs/examples/1.8.x/console-cli/examples/sites/get-usage.md @@ -1,3 +1,2 @@ -appwrite sites getUsage \ - --siteId \ - +appwrite sites get-usage \ + --site-id diff --git a/docs/examples/1.8.x/console-cli/examples/sites/get-variable.md b/docs/examples/1.8.x/console-cli/examples/sites/get-variable.md index b60b577c38..2e96d63277 100644 --- a/docs/examples/1.8.x/console-cli/examples/sites/get-variable.md +++ b/docs/examples/1.8.x/console-cli/examples/sites/get-variable.md @@ -1,3 +1,3 @@ -appwrite sites getVariable \ - --siteId \ - --variableId +appwrite sites get-variable \ + --site-id \ + --variable-id diff --git a/docs/examples/1.8.x/console-cli/examples/sites/get.md b/docs/examples/1.8.x/console-cli/examples/sites/get.md index 7922efa5f0..db34c8212b 100644 --- a/docs/examples/1.8.x/console-cli/examples/sites/get.md +++ b/docs/examples/1.8.x/console-cli/examples/sites/get.md @@ -1,2 +1,2 @@ appwrite sites get \ - --siteId + --site-id diff --git a/docs/examples/1.8.x/console-cli/examples/sites/list-deployments.md b/docs/examples/1.8.x/console-cli/examples/sites/list-deployments.md index 5ab2cdc104..0c5de0578e 100644 --- a/docs/examples/1.8.x/console-cli/examples/sites/list-deployments.md +++ b/docs/examples/1.8.x/console-cli/examples/sites/list-deployments.md @@ -1,4 +1,2 @@ -appwrite sites listDeployments \ - --siteId \ - - +appwrite sites list-deployments \ + --site-id diff --git a/docs/examples/1.8.x/console-cli/examples/sites/list-frameworks.md b/docs/examples/1.8.x/console-cli/examples/sites/list-frameworks.md index 1d9b6b4b87..7a213b9ac5 100644 --- a/docs/examples/1.8.x/console-cli/examples/sites/list-frameworks.md +++ b/docs/examples/1.8.x/console-cli/examples/sites/list-frameworks.md @@ -1 +1 @@ -appwrite sites listFrameworks +appwrite sites list-frameworks diff --git a/docs/examples/1.8.x/console-cli/examples/sites/list-logs.md b/docs/examples/1.8.x/console-cli/examples/sites/list-logs.md index f13864fe6b..565bcab9d4 100644 --- a/docs/examples/1.8.x/console-cli/examples/sites/list-logs.md +++ b/docs/examples/1.8.x/console-cli/examples/sites/list-logs.md @@ -1,3 +1,2 @@ -appwrite sites listLogs \ - --siteId \ - +appwrite sites list-logs \ + --site-id diff --git a/docs/examples/1.8.x/console-cli/examples/sites/list-specifications.md b/docs/examples/1.8.x/console-cli/examples/sites/list-specifications.md index dc1a16c9dc..e8f1a87eb5 100644 --- a/docs/examples/1.8.x/console-cli/examples/sites/list-specifications.md +++ b/docs/examples/1.8.x/console-cli/examples/sites/list-specifications.md @@ -1 +1 @@ -appwrite sites listSpecifications +appwrite sites list-specifications diff --git a/docs/examples/1.8.x/console-cli/examples/sites/list-templates.md b/docs/examples/1.8.x/console-cli/examples/sites/list-templates.md index 9d93913d94..bde094fce8 100644 --- a/docs/examples/1.8.x/console-cli/examples/sites/list-templates.md +++ b/docs/examples/1.8.x/console-cli/examples/sites/list-templates.md @@ -1,5 +1 @@ -appwrite sites listTemplates \ - - - - +appwrite sites list-templates diff --git a/docs/examples/1.8.x/console-cli/examples/sites/list-usage.md b/docs/examples/1.8.x/console-cli/examples/sites/list-usage.md index a6f43f61e7..b5b4171d34 100644 --- a/docs/examples/1.8.x/console-cli/examples/sites/list-usage.md +++ b/docs/examples/1.8.x/console-cli/examples/sites/list-usage.md @@ -1,2 +1 @@ -appwrite sites listUsage \ - +appwrite sites list-usage diff --git a/docs/examples/1.8.x/console-cli/examples/sites/list-variables.md b/docs/examples/1.8.x/console-cli/examples/sites/list-variables.md index 13a258b054..419fe76f8f 100644 --- a/docs/examples/1.8.x/console-cli/examples/sites/list-variables.md +++ b/docs/examples/1.8.x/console-cli/examples/sites/list-variables.md @@ -1,2 +1,2 @@ -appwrite sites listVariables \ - --siteId +appwrite sites list-variables \ + --site-id diff --git a/docs/examples/1.8.x/console-cli/examples/sites/list.md b/docs/examples/1.8.x/console-cli/examples/sites/list.md index 0cad70e894..9d3b883c34 100644 --- a/docs/examples/1.8.x/console-cli/examples/sites/list.md +++ b/docs/examples/1.8.x/console-cli/examples/sites/list.md @@ -1,3 +1 @@ -appwrite sites list \ - - +appwrite sites list diff --git a/docs/examples/1.8.x/console-cli/examples/sites/update-deployment-status.md b/docs/examples/1.8.x/console-cli/examples/sites/update-deployment-status.md index 7923b384f6..9220265d12 100644 --- a/docs/examples/1.8.x/console-cli/examples/sites/update-deployment-status.md +++ b/docs/examples/1.8.x/console-cli/examples/sites/update-deployment-status.md @@ -1,3 +1,3 @@ -appwrite sites updateDeploymentStatus \ - --siteId \ - --deploymentId +appwrite sites update-deployment-status \ + --site-id \ + --deployment-id diff --git a/docs/examples/1.8.x/console-cli/examples/sites/update-site-deployment.md b/docs/examples/1.8.x/console-cli/examples/sites/update-site-deployment.md index de877d8ae7..9db9e11ae0 100644 --- a/docs/examples/1.8.x/console-cli/examples/sites/update-site-deployment.md +++ b/docs/examples/1.8.x/console-cli/examples/sites/update-site-deployment.md @@ -1,3 +1,3 @@ -appwrite sites updateSiteDeployment \ - --siteId \ - --deploymentId +appwrite sites update-site-deployment \ + --site-id \ + --deployment-id diff --git a/docs/examples/1.8.x/console-cli/examples/sites/update-variable.md b/docs/examples/1.8.x/console-cli/examples/sites/update-variable.md index e968771056..e7df76a549 100644 --- a/docs/examples/1.8.x/console-cli/examples/sites/update-variable.md +++ b/docs/examples/1.8.x/console-cli/examples/sites/update-variable.md @@ -1,6 +1,4 @@ -appwrite sites updateVariable \ - --siteId \ - --variableId \ - --key \ - - +appwrite sites update-variable \ + --site-id \ + --variable-id \ + --key diff --git a/docs/examples/1.8.x/console-cli/examples/sites/update.md b/docs/examples/1.8.x/console-cli/examples/sites/update.md index 192ee26e3e..6fab0af5fb 100644 --- a/docs/examples/1.8.x/console-cli/examples/sites/update.md +++ b/docs/examples/1.8.x/console-cli/examples/sites/update.md @@ -1,19 +1,4 @@ appwrite sites update \ - --siteId \ - --name \ - --framework analog \ - - - - - - - - - - - - - - - + --site-id \ + --name \ + --framework analog diff --git a/docs/examples/1.8.x/console-cli/examples/storage/create-bucket.md b/docs/examples/1.8.x/console-cli/examples/storage/create-bucket.md index 878c10d253..2e26dc770f 100644 --- a/docs/examples/1.8.x/console-cli/examples/storage/create-bucket.md +++ b/docs/examples/1.8.x/console-cli/examples/storage/create-bucket.md @@ -1,11 +1,3 @@ -appwrite storage createBucket \ - --bucketId \ - --name \ - - - - - - - - +appwrite storage create-bucket \ + --bucket-id \ + --name diff --git a/docs/examples/1.8.x/console-cli/examples/storage/create-file.md b/docs/examples/1.8.x/console-cli/examples/storage/create-file.md index 67bd4da2c0..82b4d0a1aa 100644 --- a/docs/examples/1.8.x/console-cli/examples/storage/create-file.md +++ b/docs/examples/1.8.x/console-cli/examples/storage/create-file.md @@ -1,5 +1,4 @@ -appwrite storage createFile \ - --bucketId \ - --fileId \ - --file 'path/to/file.png' \ - +appwrite storage create-file \ + --bucket-id \ + --file-id \ + --file 'path/to/file.png' diff --git a/docs/examples/1.8.x/console-cli/examples/storage/delete-bucket.md b/docs/examples/1.8.x/console-cli/examples/storage/delete-bucket.md index e51797e12c..33e520cc15 100644 --- a/docs/examples/1.8.x/console-cli/examples/storage/delete-bucket.md +++ b/docs/examples/1.8.x/console-cli/examples/storage/delete-bucket.md @@ -1,2 +1,2 @@ -appwrite storage deleteBucket \ - --bucketId +appwrite storage delete-bucket \ + --bucket-id diff --git a/docs/examples/1.8.x/console-cli/examples/storage/delete-file.md b/docs/examples/1.8.x/console-cli/examples/storage/delete-file.md index 79c03e8288..a3006c2fea 100644 --- a/docs/examples/1.8.x/console-cli/examples/storage/delete-file.md +++ b/docs/examples/1.8.x/console-cli/examples/storage/delete-file.md @@ -1,3 +1,3 @@ -appwrite storage deleteFile \ - --bucketId \ - --fileId +appwrite storage delete-file \ + --bucket-id \ + --file-id diff --git a/docs/examples/1.8.x/console-cli/examples/storage/get-bucket-usage.md b/docs/examples/1.8.x/console-cli/examples/storage/get-bucket-usage.md index df3659c60a..794b0ec8cf 100644 --- a/docs/examples/1.8.x/console-cli/examples/storage/get-bucket-usage.md +++ b/docs/examples/1.8.x/console-cli/examples/storage/get-bucket-usage.md @@ -1,3 +1,2 @@ -appwrite storage getBucketUsage \ - --bucketId \ - +appwrite storage get-bucket-usage \ + --bucket-id diff --git a/docs/examples/1.8.x/console-cli/examples/storage/get-bucket.md b/docs/examples/1.8.x/console-cli/examples/storage/get-bucket.md index cf8725b35d..64042812f6 100644 --- a/docs/examples/1.8.x/console-cli/examples/storage/get-bucket.md +++ b/docs/examples/1.8.x/console-cli/examples/storage/get-bucket.md @@ -1,2 +1,2 @@ -appwrite storage getBucket \ - --bucketId +appwrite storage get-bucket \ + --bucket-id diff --git a/docs/examples/1.8.x/console-cli/examples/storage/get-file-download.md b/docs/examples/1.8.x/console-cli/examples/storage/get-file-download.md index 79f3368d87..12a74ea0a2 100644 --- a/docs/examples/1.8.x/console-cli/examples/storage/get-file-download.md +++ b/docs/examples/1.8.x/console-cli/examples/storage/get-file-download.md @@ -1,4 +1,3 @@ -appwrite storage getFileDownload \ - --bucketId \ - --fileId \ - +appwrite storage get-file-download \ + --bucket-id \ + --file-id diff --git a/docs/examples/1.8.x/console-cli/examples/storage/get-file-preview.md b/docs/examples/1.8.x/console-cli/examples/storage/get-file-preview.md index de437af65b..82f180efc8 100644 --- a/docs/examples/1.8.x/console-cli/examples/storage/get-file-preview.md +++ b/docs/examples/1.8.x/console-cli/examples/storage/get-file-preview.md @@ -1,15 +1,3 @@ -appwrite storage getFilePreview \ - --bucketId \ - --fileId \ - - - - - - - - - - - - +appwrite storage get-file-preview \ + --bucket-id \ + --file-id diff --git a/docs/examples/1.8.x/console-cli/examples/storage/get-file-view.md b/docs/examples/1.8.x/console-cli/examples/storage/get-file-view.md index 689cf1233b..5ce6526fad 100644 --- a/docs/examples/1.8.x/console-cli/examples/storage/get-file-view.md +++ b/docs/examples/1.8.x/console-cli/examples/storage/get-file-view.md @@ -1,4 +1,3 @@ -appwrite storage getFileView \ - --bucketId \ - --fileId \ - +appwrite storage get-file-view \ + --bucket-id \ + --file-id diff --git a/docs/examples/1.8.x/console-cli/examples/storage/get-file.md b/docs/examples/1.8.x/console-cli/examples/storage/get-file.md index 641c20d2b0..8c139e602a 100644 --- a/docs/examples/1.8.x/console-cli/examples/storage/get-file.md +++ b/docs/examples/1.8.x/console-cli/examples/storage/get-file.md @@ -1,3 +1,3 @@ -appwrite storage getFile \ - --bucketId \ - --fileId +appwrite storage get-file \ + --bucket-id \ + --file-id diff --git a/docs/examples/1.8.x/console-cli/examples/storage/get-usage.md b/docs/examples/1.8.x/console-cli/examples/storage/get-usage.md index 29466e02f0..1d69ffd820 100644 --- a/docs/examples/1.8.x/console-cli/examples/storage/get-usage.md +++ b/docs/examples/1.8.x/console-cli/examples/storage/get-usage.md @@ -1,2 +1 @@ -appwrite storage getUsage \ - +appwrite storage get-usage diff --git a/docs/examples/1.8.x/console-cli/examples/storage/list-buckets.md b/docs/examples/1.8.x/console-cli/examples/storage/list-buckets.md index a5cad1988f..1bffd0ebf8 100644 --- a/docs/examples/1.8.x/console-cli/examples/storage/list-buckets.md +++ b/docs/examples/1.8.x/console-cli/examples/storage/list-buckets.md @@ -1,3 +1 @@ -appwrite storage listBuckets \ - - +appwrite storage list-buckets diff --git a/docs/examples/1.8.x/console-cli/examples/storage/list-files.md b/docs/examples/1.8.x/console-cli/examples/storage/list-files.md index 0e1c2f09c0..29dc20d3a1 100644 --- a/docs/examples/1.8.x/console-cli/examples/storage/list-files.md +++ b/docs/examples/1.8.x/console-cli/examples/storage/list-files.md @@ -1,4 +1,2 @@ -appwrite storage listFiles \ - --bucketId \ - - +appwrite storage list-files \ + --bucket-id diff --git a/docs/examples/1.8.x/console-cli/examples/storage/update-bucket.md b/docs/examples/1.8.x/console-cli/examples/storage/update-bucket.md index b006a7bf74..12282f3b11 100644 --- a/docs/examples/1.8.x/console-cli/examples/storage/update-bucket.md +++ b/docs/examples/1.8.x/console-cli/examples/storage/update-bucket.md @@ -1,11 +1,3 @@ -appwrite storage updateBucket \ - --bucketId \ - --name \ - - - - - - - - +appwrite storage update-bucket \ + --bucket-id \ + --name diff --git a/docs/examples/1.8.x/console-cli/examples/storage/update-file.md b/docs/examples/1.8.x/console-cli/examples/storage/update-file.md index 593ea658a0..86a3f3d10b 100644 --- a/docs/examples/1.8.x/console-cli/examples/storage/update-file.md +++ b/docs/examples/1.8.x/console-cli/examples/storage/update-file.md @@ -1,5 +1,3 @@ -appwrite storage updateFile \ - --bucketId \ - --fileId \ - - +appwrite storage update-file \ + --bucket-id \ + --file-id diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/create-boolean-column.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/create-boolean-column.md index 2503836de2..b191215d67 100644 --- a/docs/examples/1.8.x/console-cli/examples/tablesdb/create-boolean-column.md +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/create-boolean-column.md @@ -1,7 +1,5 @@ -appwrite tablesDB createBooleanColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - - +appwrite tables-db create-boolean-column \ + --database-id \ + --table-id \ + --key '' \ + --required false diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/create-datetime-column.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/create-datetime-column.md index a01b64fce4..7ccaf9e41f 100644 --- a/docs/examples/1.8.x/console-cli/examples/tablesdb/create-datetime-column.md +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/create-datetime-column.md @@ -1,7 +1,5 @@ -appwrite tablesDB createDatetimeColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - - +appwrite tables-db create-datetime-column \ + --database-id \ + --table-id \ + --key '' \ + --required false diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/create-email-column.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/create-email-column.md index 003f4374b4..54f32b99db 100644 --- a/docs/examples/1.8.x/console-cli/examples/tablesdb/create-email-column.md +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/create-email-column.md @@ -1,7 +1,5 @@ -appwrite tablesDB createEmailColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - - +appwrite tables-db create-email-column \ + --database-id \ + --table-id \ + --key '' \ + --required false diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/create-enum-column.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/create-enum-column.md index 14edc0294d..4f3e9cea71 100644 --- a/docs/examples/1.8.x/console-cli/examples/tablesdb/create-enum-column.md +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/create-enum-column.md @@ -1,8 +1,6 @@ -appwrite tablesDB createEnumColumn \ - --databaseId \ - --tableId \ - --key '' \ - --elements one two three \ - --required false \ - - +appwrite tables-db create-enum-column \ + --database-id \ + --table-id \ + --key '' \ + --elements one two three \ + --required false diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/create-float-column.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/create-float-column.md index 3e86dc733f..a365cefc8c 100644 --- a/docs/examples/1.8.x/console-cli/examples/tablesdb/create-float-column.md +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/create-float-column.md @@ -1,9 +1,5 @@ -appwrite tablesDB createFloatColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - - - - +appwrite tables-db create-float-column \ + --database-id \ + --table-id \ + --key '' \ + --required false diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/create-index.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/create-index.md index 816e80735c..7100907ff3 100644 --- a/docs/examples/1.8.x/console-cli/examples/tablesdb/create-index.md +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/create-index.md @@ -1,8 +1,6 @@ -appwrite tablesDB createIndex \ - --databaseId \ - --tableId \ - --key '' \ - --type key \ - --columns one two three \ - - +appwrite tables-db create-index \ + --database-id \ + --table-id \ + --key '' \ + --type key \ + --columns one two three diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/create-integer-column.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/create-integer-column.md index fdb7565030..2dc799b29f 100644 --- a/docs/examples/1.8.x/console-cli/examples/tablesdb/create-integer-column.md +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/create-integer-column.md @@ -1,9 +1,5 @@ -appwrite tablesDB createIntegerColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - - - - +appwrite tables-db create-integer-column \ + --database-id \ + --table-id \ + --key '' \ + --required false diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/create-ip-column.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/create-ip-column.md index b84f4ba2fb..2b4601337e 100644 --- a/docs/examples/1.8.x/console-cli/examples/tablesdb/create-ip-column.md +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/create-ip-column.md @@ -1,7 +1,5 @@ -appwrite tablesDB createIpColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - - +appwrite tables-db create-ip-column \ + --database-id \ + --table-id \ + --key '' \ + --required false diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/create-relationship-column.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/create-relationship-column.md index deca698489..d7d58b6eb0 100644 --- a/docs/examples/1.8.x/console-cli/examples/tablesdb/create-relationship-column.md +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/create-relationship-column.md @@ -1,9 +1,5 @@ -appwrite tablesDB createRelationshipColumn \ - --databaseId \ - --tableId \ - --relatedTableId \ - --type oneToOne \ - - - - +appwrite tables-db create-relationship-column \ + --database-id \ + --table-id \ + --related-table-id \ + --type oneToOne diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/create-row.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/create-row.md index a9916115a5..d15c5ec047 100644 --- a/docs/examples/1.8.x/console-cli/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/create-row.md @@ -1,6 +1,5 @@ -appwrite tablesDB createRow \ - --databaseId \ - --tableId \ - --rowId \ - --data '{ "key": "value" }' \ - +appwrite tables-db create-row \ + --database-id \ + --table-id \ + --row-id \ + --data '{ "key": "value" }' diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/create-rows.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/create-rows.md index d1c43201b9..39eb34961c 100644 --- a/docs/examples/1.8.x/console-cli/examples/tablesdb/create-rows.md +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/create-rows.md @@ -1,4 +1,4 @@ -appwrite tablesDB createRows \ - --databaseId \ - --tableId \ - --rows one two three +appwrite tables-db create-rows \ + --database-id \ + --table-id \ + --rows one two three diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/create-string-column.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/create-string-column.md index 188aa268de..a394ff59d0 100644 --- a/docs/examples/1.8.x/console-cli/examples/tablesdb/create-string-column.md +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/create-string-column.md @@ -1,9 +1,6 @@ -appwrite tablesDB createStringColumn \ - --databaseId \ - --tableId \ - --key '' \ - --size 1 \ - --required false \ - - - +appwrite tables-db create-string-column \ + --database-id \ + --table-id \ + --key '' \ + --size 1 \ + --required false diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/create-table.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/create-table.md index ce5b3c234a..1c5a22d7ef 100644 --- a/docs/examples/1.8.x/console-cli/examples/tablesdb/create-table.md +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/create-table.md @@ -1,7 +1,4 @@ -appwrite tablesDB createTable \ - --databaseId \ - --tableId \ - --name \ - - - +appwrite tables-db create-table \ + --database-id \ + --table-id \ + --name diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/create-url-column.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/create-url-column.md index 649e203618..d9b9f2b36f 100644 --- a/docs/examples/1.8.x/console-cli/examples/tablesdb/create-url-column.md +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/create-url-column.md @@ -1,7 +1,5 @@ -appwrite tablesDB createUrlColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - - +appwrite tables-db create-url-column \ + --database-id \ + --table-id \ + --key '' \ + --required false diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/create.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/create.md index b1b6946be9..d10c5d663d 100644 --- a/docs/examples/1.8.x/console-cli/examples/tablesdb/create.md +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/create.md @@ -1,4 +1,3 @@ -appwrite tablesDB create \ - --databaseId \ - --name \ - +appwrite tables-db create \ + --database-id \ + --name diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/decrement-row-column.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/decrement-row-column.md index 3d8dc8c497..79e0a51de1 100644 --- a/docs/examples/1.8.x/console-cli/examples/tablesdb/decrement-row-column.md +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/decrement-row-column.md @@ -1,7 +1,5 @@ -appwrite tablesDB decrementRowColumn \ - --databaseId \ - --tableId \ - --rowId \ - --column '' \ - - +appwrite tables-db decrement-row-column \ + --database-id \ + --table-id \ + --row-id \ + --column '' diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/delete-column.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/delete-column.md index edcff274fb..4689290543 100644 --- a/docs/examples/1.8.x/console-cli/examples/tablesdb/delete-column.md +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/delete-column.md @@ -1,4 +1,4 @@ -appwrite tablesDB deleteColumn \ - --databaseId \ - --tableId \ - --key '' +appwrite tables-db delete-column \ + --database-id \ + --table-id \ + --key '' diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/delete-index.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/delete-index.md index 70e50aacdd..0729f87952 100644 --- a/docs/examples/1.8.x/console-cli/examples/tablesdb/delete-index.md +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/delete-index.md @@ -1,4 +1,4 @@ -appwrite tablesDB deleteIndex \ - --databaseId \ - --tableId \ - --key '' +appwrite tables-db delete-index \ + --database-id \ + --table-id \ + --key '' diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/delete-row.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/delete-row.md index e26f8e2d97..03b3562f5f 100644 --- a/docs/examples/1.8.x/console-cli/examples/tablesdb/delete-row.md +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/delete-row.md @@ -1,4 +1,4 @@ -appwrite tablesDB deleteRow \ - --databaseId \ - --tableId \ - --rowId +appwrite tables-db delete-row \ + --database-id \ + --table-id \ + --row-id diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/delete-rows.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/delete-rows.md index 456c706a8d..92cd143ad2 100644 --- a/docs/examples/1.8.x/console-cli/examples/tablesdb/delete-rows.md +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/delete-rows.md @@ -1,4 +1,3 @@ -appwrite tablesDB deleteRows \ - --databaseId \ - --tableId \ - +appwrite tables-db delete-rows \ + --database-id \ + --table-id diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/delete-table.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/delete-table.md index cd218706ef..6ec9df4539 100644 --- a/docs/examples/1.8.x/console-cli/examples/tablesdb/delete-table.md +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/delete-table.md @@ -1,3 +1,3 @@ -appwrite tablesDB deleteTable \ - --databaseId \ - --tableId +appwrite tables-db delete-table \ + --database-id \ + --table-id diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/delete.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/delete.md index 2ba8a45970..52bf4cdde3 100644 --- a/docs/examples/1.8.x/console-cli/examples/tablesdb/delete.md +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/delete.md @@ -1,2 +1,2 @@ -appwrite tablesDB delete \ - --databaseId +appwrite tables-db delete \ + --database-id diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/get-column.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/get-column.md index 63d618bb92..d209c45b22 100644 --- a/docs/examples/1.8.x/console-cli/examples/tablesdb/get-column.md +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/get-column.md @@ -1,4 +1,4 @@ -appwrite tablesDB getColumn \ - --databaseId \ - --tableId \ - --key '' +appwrite tables-db get-column \ + --database-id \ + --table-id \ + --key '' diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/get-index.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/get-index.md index 208fccd170..2035e78b65 100644 --- a/docs/examples/1.8.x/console-cli/examples/tablesdb/get-index.md +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/get-index.md @@ -1,4 +1,4 @@ -appwrite tablesDB getIndex \ - --databaseId \ - --tableId \ - --key '' +appwrite tables-db get-index \ + --database-id \ + --table-id \ + --key '' diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/get-row.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/get-row.md index cb2610764c..c8d06ea02f 100644 --- a/docs/examples/1.8.x/console-cli/examples/tablesdb/get-row.md +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/get-row.md @@ -1,5 +1,4 @@ -appwrite tablesDB getRow \ - --databaseId \ - --tableId \ - --rowId \ - +appwrite tables-db get-row \ + --database-id \ + --table-id \ + --row-id diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/get-table-usage.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/get-table-usage.md index ccaac73f92..0e7782f5eb 100644 --- a/docs/examples/1.8.x/console-cli/examples/tablesdb/get-table-usage.md +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/get-table-usage.md @@ -1,4 +1,3 @@ -appwrite tablesDB getTableUsage \ - --databaseId \ - --tableId \ - +appwrite tables-db get-table-usage \ + --database-id \ + --table-id diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/get-table.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/get-table.md index 2aa2de375d..9e5e038163 100644 --- a/docs/examples/1.8.x/console-cli/examples/tablesdb/get-table.md +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/get-table.md @@ -1,3 +1,3 @@ -appwrite tablesDB getTable \ - --databaseId \ - --tableId +appwrite tables-db get-table \ + --database-id \ + --table-id diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/get-usage.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/get-usage.md index e98fd43199..ff421ce3f0 100644 --- a/docs/examples/1.8.x/console-cli/examples/tablesdb/get-usage.md +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/get-usage.md @@ -1,3 +1,2 @@ -appwrite tablesDB getUsage \ - --databaseId \ - +appwrite tables-db get-usage \ + --database-id diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/get.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/get.md index 9323fadd3a..1b125eccf0 100644 --- a/docs/examples/1.8.x/console-cli/examples/tablesdb/get.md +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/get.md @@ -1,2 +1,2 @@ -appwrite tablesDB get \ - --databaseId +appwrite tables-db get \ + --database-id diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/increment-row-column.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/increment-row-column.md index 9c9742240b..a15ab6917c 100644 --- a/docs/examples/1.8.x/console-cli/examples/tablesdb/increment-row-column.md +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/increment-row-column.md @@ -1,7 +1,5 @@ -appwrite tablesDB incrementRowColumn \ - --databaseId \ - --tableId \ - --rowId \ - --column '' \ - - +appwrite tables-db increment-row-column \ + --database-id \ + --table-id \ + --row-id \ + --column '' diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/list-columns.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/list-columns.md index b6b7ce4b8b..4c233d519a 100644 --- a/docs/examples/1.8.x/console-cli/examples/tablesdb/list-columns.md +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/list-columns.md @@ -1,4 +1,3 @@ -appwrite tablesDB listColumns \ - --databaseId \ - --tableId \ - +appwrite tables-db list-columns \ + --database-id \ + --table-id diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/list-indexes.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/list-indexes.md index 6e506cfd99..4139175a17 100644 --- a/docs/examples/1.8.x/console-cli/examples/tablesdb/list-indexes.md +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/list-indexes.md @@ -1,4 +1,3 @@ -appwrite tablesDB listIndexes \ - --databaseId \ - --tableId \ - +appwrite tables-db list-indexes \ + --database-id \ + --table-id diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/list-row-logs.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/list-row-logs.md index 2dc6fbe61c..dfa2f98455 100644 --- a/docs/examples/1.8.x/console-cli/examples/tablesdb/list-row-logs.md +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/list-row-logs.md @@ -1,5 +1,4 @@ -appwrite tablesDB listRowLogs \ - --databaseId \ - --tableId \ - --rowId \ - +appwrite tables-db list-row-logs \ + --database-id \ + --table-id \ + --row-id diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/list-rows.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/list-rows.md index 5b06216b27..904350ef20 100644 --- a/docs/examples/1.8.x/console-cli/examples/tablesdb/list-rows.md +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/list-rows.md @@ -1,4 +1,3 @@ -appwrite tablesDB listRows \ - --databaseId \ - --tableId \ - +appwrite tables-db list-rows \ + --database-id \ + --table-id diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/list-table-logs.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/list-table-logs.md index 9135168abe..a803bf4053 100644 --- a/docs/examples/1.8.x/console-cli/examples/tablesdb/list-table-logs.md +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/list-table-logs.md @@ -1,4 +1,3 @@ -appwrite tablesDB listTableLogs \ - --databaseId \ - --tableId \ - +appwrite tables-db list-table-logs \ + --database-id \ + --table-id diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/list-tables.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/list-tables.md index 5a7b3badfb..f7e7930841 100644 --- a/docs/examples/1.8.x/console-cli/examples/tablesdb/list-tables.md +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/list-tables.md @@ -1,4 +1,2 @@ -appwrite tablesDB listTables \ - --databaseId \ - - +appwrite tables-db list-tables \ + --database-id diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/list-usage.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/list-usage.md index 3b5c6fa1ce..9e6b9802a4 100644 --- a/docs/examples/1.8.x/console-cli/examples/tablesdb/list-usage.md +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/list-usage.md @@ -1,2 +1 @@ -appwrite tablesDB listUsage \ - +appwrite tables-db list-usage diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/list.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/list.md index 591d65d7d9..22d7e017a7 100644 --- a/docs/examples/1.8.x/console-cli/examples/tablesdb/list.md +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/list.md @@ -1,3 +1 @@ -appwrite tablesDB list \ - - +appwrite tables-db list diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/update-boolean-column.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/update-boolean-column.md index 911bb9fbac..318ddac301 100644 --- a/docs/examples/1.8.x/console-cli/examples/tablesdb/update-boolean-column.md +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/update-boolean-column.md @@ -1,7 +1,6 @@ -appwrite tablesDB updateBooleanColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - --default false \ - +appwrite tables-db update-boolean-column \ + --database-id \ + --table-id \ + --key '' \ + --required false \ + --default false diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/update-datetime-column.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/update-datetime-column.md index 874c24091f..b40a825368 100644 --- a/docs/examples/1.8.x/console-cli/examples/tablesdb/update-datetime-column.md +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/update-datetime-column.md @@ -1,7 +1,6 @@ -appwrite tablesDB updateDatetimeColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - --default '' \ - +appwrite tables-db update-datetime-column \ + --database-id \ + --table-id \ + --key '' \ + --required false \ + --default '' diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/update-email-column.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/update-email-column.md index 72757f365f..cd8104b775 100644 --- a/docs/examples/1.8.x/console-cli/examples/tablesdb/update-email-column.md +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/update-email-column.md @@ -1,7 +1,6 @@ -appwrite tablesDB updateEmailColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - --default email@example.com \ - +appwrite tables-db update-email-column \ + --database-id \ + --table-id \ + --key '' \ + --required false \ + --default email@example.com diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/update-enum-column.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/update-enum-column.md index 216610e7fe..66bc3e2899 100644 --- a/docs/examples/1.8.x/console-cli/examples/tablesdb/update-enum-column.md +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/update-enum-column.md @@ -1,8 +1,7 @@ -appwrite tablesDB updateEnumColumn \ - --databaseId \ - --tableId \ - --key '' \ - --elements one two three \ - --required false \ - --default \ - +appwrite tables-db update-enum-column \ + --database-id \ + --table-id \ + --key '' \ + --elements one two three \ + --required false \ + --default diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/update-float-column.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/update-float-column.md index 984903fdcd..a3c6e6b265 100644 --- a/docs/examples/1.8.x/console-cli/examples/tablesdb/update-float-column.md +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/update-float-column.md @@ -1,9 +1,6 @@ -appwrite tablesDB updateFloatColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - --default null \ - - - +appwrite tables-db update-float-column \ + --database-id \ + --table-id \ + --key '' \ + --required false \ + --default null diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/update-integer-column.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/update-integer-column.md index a2252ab3b5..f651c5c142 100644 --- a/docs/examples/1.8.x/console-cli/examples/tablesdb/update-integer-column.md +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/update-integer-column.md @@ -1,9 +1,6 @@ -appwrite tablesDB updateIntegerColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - --default null \ - - - +appwrite tables-db update-integer-column \ + --database-id \ + --table-id \ + --key '' \ + --required false \ + --default null diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/update-ip-column.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/update-ip-column.md index b96c4cfbf5..9a1425c522 100644 --- a/docs/examples/1.8.x/console-cli/examples/tablesdb/update-ip-column.md +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/update-ip-column.md @@ -1,7 +1,6 @@ -appwrite tablesDB updateIpColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - --default '' \ - +appwrite tables-db update-ip-column \ + --database-id \ + --table-id \ + --key '' \ + --required false \ + --default '' diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/update-relationship-column.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/update-relationship-column.md index d5b7197835..fb358a311b 100644 --- a/docs/examples/1.8.x/console-cli/examples/tablesdb/update-relationship-column.md +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/update-relationship-column.md @@ -1,6 +1,4 @@ -appwrite tablesDB updateRelationshipColumn \ - --databaseId \ - --tableId \ - --key '' \ - - +appwrite tables-db update-relationship-column \ + --database-id \ + --table-id \ + --key '' diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/update-row.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/update-row.md index c9f1da454e..31d88664ab 100644 --- a/docs/examples/1.8.x/console-cli/examples/tablesdb/update-row.md +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/update-row.md @@ -1,6 +1,4 @@ -appwrite tablesDB updateRow \ - --databaseId \ - --tableId \ - --rowId \ - - +appwrite tables-db update-row \ + --database-id \ + --table-id \ + --row-id diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/update-rows.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/update-rows.md index da7871741f..eca741f185 100644 --- a/docs/examples/1.8.x/console-cli/examples/tablesdb/update-rows.md +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/update-rows.md @@ -1,5 +1,3 @@ -appwrite tablesDB updateRows \ - --databaseId \ - --tableId \ - - +appwrite tables-db update-rows \ + --database-id \ + --table-id diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/update-string-column.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/update-string-column.md index 11329614c3..fadb277b02 100644 --- a/docs/examples/1.8.x/console-cli/examples/tablesdb/update-string-column.md +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/update-string-column.md @@ -1,8 +1,6 @@ -appwrite tablesDB updateStringColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - --default \ - - +appwrite tables-db update-string-column \ + --database-id \ + --table-id \ + --key '' \ + --required false \ + --default diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/update-table.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/update-table.md index 3c939b08aa..92884dfb3e 100644 --- a/docs/examples/1.8.x/console-cli/examples/tablesdb/update-table.md +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/update-table.md @@ -1,7 +1,4 @@ -appwrite tablesDB updateTable \ - --databaseId \ - --tableId \ - --name \ - - - +appwrite tables-db update-table \ + --database-id \ + --table-id \ + --name diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/update-url-column.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/update-url-column.md index c49abfe056..e1bbdbb3b4 100644 --- a/docs/examples/1.8.x/console-cli/examples/tablesdb/update-url-column.md +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/update-url-column.md @@ -1,7 +1,6 @@ -appwrite tablesDB updateUrlColumn \ - --databaseId \ - --tableId \ - --key '' \ - --required false \ - --default https://example.com \ - +appwrite tables-db update-url-column \ + --database-id \ + --table-id \ + --key '' \ + --required false \ + --default https://example.com diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/update.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/update.md index 4e651e4792..b8dbec193c 100644 --- a/docs/examples/1.8.x/console-cli/examples/tablesdb/update.md +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/update.md @@ -1,4 +1,3 @@ -appwrite tablesDB update \ - --databaseId \ - --name \ - +appwrite tables-db update \ + --database-id \ + --name diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/upsert-row.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/upsert-row.md index 1143f40a9d..32c9fd62b2 100644 --- a/docs/examples/1.8.x/console-cli/examples/tablesdb/upsert-row.md +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/upsert-row.md @@ -1,6 +1,4 @@ -appwrite tablesDB upsertRow \ - --databaseId \ - --tableId \ - --rowId \ - - +appwrite tables-db upsert-row \ + --database-id \ + --table-id \ + --row-id diff --git a/docs/examples/1.8.x/console-cli/examples/tablesdb/upsert-rows.md b/docs/examples/1.8.x/console-cli/examples/tablesdb/upsert-rows.md index 53ec4e42b5..85e0bc0ec9 100644 --- a/docs/examples/1.8.x/console-cli/examples/tablesdb/upsert-rows.md +++ b/docs/examples/1.8.x/console-cli/examples/tablesdb/upsert-rows.md @@ -1,4 +1,4 @@ -appwrite tablesDB upsertRows \ - --databaseId \ - --tableId \ - --rows one two three +appwrite tables-db upsert-rows \ + --database-id \ + --table-id \ + --rows one two three diff --git a/docs/examples/1.8.x/console-cli/examples/teams/create-membership.md b/docs/examples/1.8.x/console-cli/examples/teams/create-membership.md index 0d0fc8df09..6e9d50a147 100644 --- a/docs/examples/1.8.x/console-cli/examples/teams/create-membership.md +++ b/docs/examples/1.8.x/console-cli/examples/teams/create-membership.md @@ -1,8 +1,3 @@ -appwrite teams createMembership \ - --teamId \ - --roles one two three \ - - - - - +appwrite teams create-membership \ + --team-id \ + --roles one two three diff --git a/docs/examples/1.8.x/console-cli/examples/teams/create.md b/docs/examples/1.8.x/console-cli/examples/teams/create.md index e0f9a126f2..fb8bc3ade6 100644 --- a/docs/examples/1.8.x/console-cli/examples/teams/create.md +++ b/docs/examples/1.8.x/console-cli/examples/teams/create.md @@ -1,4 +1,3 @@ appwrite teams create \ - --teamId \ - --name \ - + --team-id \ + --name diff --git a/docs/examples/1.8.x/console-cli/examples/teams/delete-membership.md b/docs/examples/1.8.x/console-cli/examples/teams/delete-membership.md index 58d0adbac7..c9f1596aa8 100644 --- a/docs/examples/1.8.x/console-cli/examples/teams/delete-membership.md +++ b/docs/examples/1.8.x/console-cli/examples/teams/delete-membership.md @@ -1,3 +1,3 @@ -appwrite teams deleteMembership \ - --teamId \ - --membershipId +appwrite teams delete-membership \ + --team-id \ + --membership-id diff --git a/docs/examples/1.8.x/console-cli/examples/teams/delete.md b/docs/examples/1.8.x/console-cli/examples/teams/delete.md index 5b018158cd..04d5e4eadd 100644 --- a/docs/examples/1.8.x/console-cli/examples/teams/delete.md +++ b/docs/examples/1.8.x/console-cli/examples/teams/delete.md @@ -1,2 +1,2 @@ appwrite teams delete \ - --teamId + --team-id diff --git a/docs/examples/1.8.x/console-cli/examples/teams/get-membership.md b/docs/examples/1.8.x/console-cli/examples/teams/get-membership.md index 5e6af4c1a1..a832b2384d 100644 --- a/docs/examples/1.8.x/console-cli/examples/teams/get-membership.md +++ b/docs/examples/1.8.x/console-cli/examples/teams/get-membership.md @@ -1,3 +1,3 @@ -appwrite teams getMembership \ - --teamId \ - --membershipId +appwrite teams get-membership \ + --team-id \ + --membership-id diff --git a/docs/examples/1.8.x/console-cli/examples/teams/get-prefs.md b/docs/examples/1.8.x/console-cli/examples/teams/get-prefs.md index 2ab1f1dc01..a2d456a77c 100644 --- a/docs/examples/1.8.x/console-cli/examples/teams/get-prefs.md +++ b/docs/examples/1.8.x/console-cli/examples/teams/get-prefs.md @@ -1,2 +1,2 @@ -appwrite teams getPrefs \ - --teamId +appwrite teams get-prefs \ + --team-id diff --git a/docs/examples/1.8.x/console-cli/examples/teams/get.md b/docs/examples/1.8.x/console-cli/examples/teams/get.md index c8e75b7543..94f80a9ab7 100644 --- a/docs/examples/1.8.x/console-cli/examples/teams/get.md +++ b/docs/examples/1.8.x/console-cli/examples/teams/get.md @@ -1,2 +1,2 @@ appwrite teams get \ - --teamId + --team-id diff --git a/docs/examples/1.8.x/console-cli/examples/teams/list-logs.md b/docs/examples/1.8.x/console-cli/examples/teams/list-logs.md index 66149350d8..cbdf32ad9e 100644 --- a/docs/examples/1.8.x/console-cli/examples/teams/list-logs.md +++ b/docs/examples/1.8.x/console-cli/examples/teams/list-logs.md @@ -1,3 +1,2 @@ -appwrite teams listLogs \ - --teamId \ - +appwrite teams list-logs \ + --team-id diff --git a/docs/examples/1.8.x/console-cli/examples/teams/list-memberships.md b/docs/examples/1.8.x/console-cli/examples/teams/list-memberships.md index 050ea961d2..6a1cbcae7e 100644 --- a/docs/examples/1.8.x/console-cli/examples/teams/list-memberships.md +++ b/docs/examples/1.8.x/console-cli/examples/teams/list-memberships.md @@ -1,4 +1,2 @@ -appwrite teams listMemberships \ - --teamId \ - - +appwrite teams list-memberships \ + --team-id diff --git a/docs/examples/1.8.x/console-cli/examples/teams/list.md b/docs/examples/1.8.x/console-cli/examples/teams/list.md index dfffc4d4dd..90ab82f8a1 100644 --- a/docs/examples/1.8.x/console-cli/examples/teams/list.md +++ b/docs/examples/1.8.x/console-cli/examples/teams/list.md @@ -1,3 +1 @@ -appwrite teams list \ - - +appwrite teams list diff --git a/docs/examples/1.8.x/console-cli/examples/teams/update-membership-status.md b/docs/examples/1.8.x/console-cli/examples/teams/update-membership-status.md index aa4acf9457..9c234f528e 100644 --- a/docs/examples/1.8.x/console-cli/examples/teams/update-membership-status.md +++ b/docs/examples/1.8.x/console-cli/examples/teams/update-membership-status.md @@ -1,5 +1,5 @@ -appwrite teams updateMembershipStatus \ - --teamId \ - --membershipId \ - --userId \ - --secret +appwrite teams update-membership-status \ + --team-id \ + --membership-id \ + --user-id \ + --secret diff --git a/docs/examples/1.8.x/console-cli/examples/teams/update-membership.md b/docs/examples/1.8.x/console-cli/examples/teams/update-membership.md index 6cfda92920..f16c776ac3 100644 --- a/docs/examples/1.8.x/console-cli/examples/teams/update-membership.md +++ b/docs/examples/1.8.x/console-cli/examples/teams/update-membership.md @@ -1,4 +1,4 @@ -appwrite teams updateMembership \ - --teamId \ - --membershipId \ - --roles one two three +appwrite teams update-membership \ + --team-id \ + --membership-id \ + --roles one two three diff --git a/docs/examples/1.8.x/console-cli/examples/teams/update-name.md b/docs/examples/1.8.x/console-cli/examples/teams/update-name.md index 8c73e00d7b..cc803fbc47 100644 --- a/docs/examples/1.8.x/console-cli/examples/teams/update-name.md +++ b/docs/examples/1.8.x/console-cli/examples/teams/update-name.md @@ -1,3 +1,3 @@ -appwrite teams updateName \ - --teamId \ - --name +appwrite teams update-name \ + --team-id \ + --name diff --git a/docs/examples/1.8.x/console-cli/examples/teams/update-prefs.md b/docs/examples/1.8.x/console-cli/examples/teams/update-prefs.md index b6fc5a8f6e..a8ce42646e 100644 --- a/docs/examples/1.8.x/console-cli/examples/teams/update-prefs.md +++ b/docs/examples/1.8.x/console-cli/examples/teams/update-prefs.md @@ -1,3 +1,3 @@ -appwrite teams updatePrefs \ - --teamId \ - --prefs '{ "key": "value" }' +appwrite teams update-prefs \ + --team-id \ + --prefs '{ "key": "value" }' diff --git a/docs/examples/1.8.x/console-cli/examples/tokens/create-file-token.md b/docs/examples/1.8.x/console-cli/examples/tokens/create-file-token.md index 8de8d7ac6c..3890041d59 100644 --- a/docs/examples/1.8.x/console-cli/examples/tokens/create-file-token.md +++ b/docs/examples/1.8.x/console-cli/examples/tokens/create-file-token.md @@ -1,4 +1,3 @@ -appwrite tokens createFileToken \ - --bucketId \ - --fileId \ - +appwrite tokens create-file-token \ + --bucket-id \ + --file-id diff --git a/docs/examples/1.8.x/console-cli/examples/tokens/delete.md b/docs/examples/1.8.x/console-cli/examples/tokens/delete.md index c25ea4a4b4..93c99a924b 100644 --- a/docs/examples/1.8.x/console-cli/examples/tokens/delete.md +++ b/docs/examples/1.8.x/console-cli/examples/tokens/delete.md @@ -1,2 +1,2 @@ appwrite tokens delete \ - --tokenId + --token-id diff --git a/docs/examples/1.8.x/console-cli/examples/tokens/get.md b/docs/examples/1.8.x/console-cli/examples/tokens/get.md index 2c48280b0d..617c112eac 100644 --- a/docs/examples/1.8.x/console-cli/examples/tokens/get.md +++ b/docs/examples/1.8.x/console-cli/examples/tokens/get.md @@ -1,2 +1,2 @@ appwrite tokens get \ - --tokenId + --token-id diff --git a/docs/examples/1.8.x/console-cli/examples/tokens/list.md b/docs/examples/1.8.x/console-cli/examples/tokens/list.md index a808e545ca..95e0df3b02 100644 --- a/docs/examples/1.8.x/console-cli/examples/tokens/list.md +++ b/docs/examples/1.8.x/console-cli/examples/tokens/list.md @@ -1,4 +1,3 @@ appwrite tokens list \ - --bucketId \ - --fileId \ - + --bucket-id \ + --file-id diff --git a/docs/examples/1.8.x/console-cli/examples/tokens/update.md b/docs/examples/1.8.x/console-cli/examples/tokens/update.md index 73f21609b6..ab86424adf 100644 --- a/docs/examples/1.8.x/console-cli/examples/tokens/update.md +++ b/docs/examples/1.8.x/console-cli/examples/tokens/update.md @@ -1,3 +1,2 @@ appwrite tokens update \ - --tokenId \ - + --token-id diff --git a/docs/examples/1.8.x/console-cli/examples/users/create-argon-2-user.md b/docs/examples/1.8.x/console-cli/examples/users/create-argon-2-user.md new file mode 100644 index 0000000000..fd2a7e4135 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/users/create-argon-2-user.md @@ -0,0 +1,4 @@ +appwrite users create-argon-2-user \ + --user-id \ + --email email@example.com \ + --password password diff --git a/docs/examples/1.8.x/console-cli/examples/users/create-argon2user.md b/docs/examples/1.8.x/console-cli/examples/users/create-argon2user.md deleted file mode 100644 index b0c7494e20..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/users/create-argon2user.md +++ /dev/null @@ -1,5 +0,0 @@ -appwrite users createArgon2User \ - --userId \ - --email email@example.com \ - --password password \ - diff --git a/docs/examples/1.8.x/console-cli/examples/users/create-bcrypt-user.md b/docs/examples/1.8.x/console-cli/examples/users/create-bcrypt-user.md index b5686721b5..e05d9e83d8 100644 --- a/docs/examples/1.8.x/console-cli/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.8.x/console-cli/examples/users/create-bcrypt-user.md @@ -1,5 +1,4 @@ -appwrite users createBcryptUser \ - --userId \ - --email email@example.com \ - --password password \ - +appwrite users create-bcrypt-user \ + --user-id \ + --email email@example.com \ + --password password diff --git a/docs/examples/1.8.x/console-cli/examples/users/create-j-w-t.md b/docs/examples/1.8.x/console-cli/examples/users/create-j-w-t.md deleted file mode 100644 index 220086bb1a..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/users/create-j-w-t.md +++ /dev/null @@ -1,4 +0,0 @@ -appwrite users createJWT \ - --userId \ - - diff --git a/docs/examples/1.8.x/console-cli/examples/users/create-jwt.md b/docs/examples/1.8.x/console-cli/examples/users/create-jwt.md new file mode 100644 index 0000000000..508c0f64c5 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/users/create-jwt.md @@ -0,0 +1,2 @@ +appwrite users create-jwt \ + --user-id diff --git a/docs/examples/1.8.x/console-cli/examples/users/create-m-d5user.md b/docs/examples/1.8.x/console-cli/examples/users/create-m-d5user.md deleted file mode 100644 index ba37a78be2..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/users/create-m-d5user.md +++ /dev/null @@ -1,5 +0,0 @@ -appwrite users createMD5User \ - --userId \ - --email email@example.com \ - --password password \ - diff --git a/docs/examples/1.8.x/console-cli/examples/users/create-m-f-a-recovery-codes.md b/docs/examples/1.8.x/console-cli/examples/users/create-m-f-a-recovery-codes.md deleted file mode 100644 index b85c627c32..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/users/create-m-f-a-recovery-codes.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite users createMFARecoveryCodes \ - --userId diff --git a/docs/examples/1.8.x/console-cli/examples/users/create-md-5-user.md b/docs/examples/1.8.x/console-cli/examples/users/create-md-5-user.md new file mode 100644 index 0000000000..f47b9499b1 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/users/create-md-5-user.md @@ -0,0 +1,4 @@ +appwrite users create-md-5-user \ + --user-id \ + --email email@example.com \ + --password password diff --git a/docs/examples/1.8.x/console-cli/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.8.x/console-cli/examples/users/create-mfa-recovery-codes.md index 4dbd98ff8a..c212872385 100644 --- a/docs/examples/1.8.x/console-cli/examples/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/console-cli/examples/users/create-mfa-recovery-codes.md @@ -1,2 +1,2 @@ -appwrite users createMfaRecoveryCodes \ - --userId +appwrite users create-mfa-recovery-codes \ + --user-id diff --git a/docs/examples/1.8.x/console-cli/examples/users/create-p-h-pass-user.md b/docs/examples/1.8.x/console-cli/examples/users/create-p-h-pass-user.md deleted file mode 100644 index 9dc378dc99..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/users/create-p-h-pass-user.md +++ /dev/null @@ -1,5 +0,0 @@ -appwrite users createPHPassUser \ - --userId \ - --email email@example.com \ - --password password \ - diff --git a/docs/examples/1.8.x/console-cli/examples/users/create-ph-pass-user.md b/docs/examples/1.8.x/console-cli/examples/users/create-ph-pass-user.md new file mode 100644 index 0000000000..a40470516d --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/users/create-ph-pass-user.md @@ -0,0 +1,4 @@ +appwrite users create-ph-pass-user \ + --user-id \ + --email email@example.com \ + --password password diff --git a/docs/examples/1.8.x/console-cli/examples/users/create-s-h-a-user.md b/docs/examples/1.8.x/console-cli/examples/users/create-s-h-a-user.md deleted file mode 100644 index 57483625e9..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/users/create-s-h-a-user.md +++ /dev/null @@ -1,6 +0,0 @@ -appwrite users createSHAUser \ - --userId \ - --email email@example.com \ - --password password \ - - diff --git a/docs/examples/1.8.x/console-cli/examples/users/create-scrypt-modified-user.md b/docs/examples/1.8.x/console-cli/examples/users/create-scrypt-modified-user.md index 25fc60b6e1..df4d651abf 100644 --- a/docs/examples/1.8.x/console-cli/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.8.x/console-cli/examples/users/create-scrypt-modified-user.md @@ -1,8 +1,7 @@ -appwrite users createScryptModifiedUser \ - --userId \ - --email email@example.com \ - --password password \ - --passwordSalt \ - --passwordSaltSeparator \ - --passwordSignerKey \ - +appwrite users create-scrypt-modified-user \ + --user-id \ + --email email@example.com \ + --password password \ + --password-salt \ + --password-salt-separator \ + --password-signer-key diff --git a/docs/examples/1.8.x/console-cli/examples/users/create-scrypt-user.md b/docs/examples/1.8.x/console-cli/examples/users/create-scrypt-user.md index 3fc56b1ee3..2f911b5891 100644 --- a/docs/examples/1.8.x/console-cli/examples/users/create-scrypt-user.md +++ b/docs/examples/1.8.x/console-cli/examples/users/create-scrypt-user.md @@ -1,10 +1,9 @@ -appwrite users createScryptUser \ - --userId \ - --email email@example.com \ - --password password \ - --passwordSalt \ - --passwordCpu null \ - --passwordMemory null \ - --passwordParallel null \ - --passwordLength null \ - +appwrite users create-scrypt-user \ + --user-id \ + --email email@example.com \ + --password password \ + --password-salt \ + --password-cpu null \ + --password-memory null \ + --password-parallel null \ + --password-length null diff --git a/docs/examples/1.8.x/console-cli/examples/users/create-session.md b/docs/examples/1.8.x/console-cli/examples/users/create-session.md index c8938fa706..2644dce0ce 100644 --- a/docs/examples/1.8.x/console-cli/examples/users/create-session.md +++ b/docs/examples/1.8.x/console-cli/examples/users/create-session.md @@ -1,2 +1,2 @@ -appwrite users createSession \ - --userId +appwrite users create-session \ + --user-id diff --git a/docs/examples/1.8.x/console-cli/examples/users/create-sha-user.md b/docs/examples/1.8.x/console-cli/examples/users/create-sha-user.md new file mode 100644 index 0000000000..6965698f55 --- /dev/null +++ b/docs/examples/1.8.x/console-cli/examples/users/create-sha-user.md @@ -0,0 +1,4 @@ +appwrite users create-sha-user \ + --user-id \ + --email email@example.com \ + --password password diff --git a/docs/examples/1.8.x/console-cli/examples/users/create-target.md b/docs/examples/1.8.x/console-cli/examples/users/create-target.md index 8d9306b00e..d0775c9e4d 100644 --- a/docs/examples/1.8.x/console-cli/examples/users/create-target.md +++ b/docs/examples/1.8.x/console-cli/examples/users/create-target.md @@ -1,7 +1,5 @@ -appwrite users createTarget \ - --userId \ - --targetId \ - --providerType email \ - --identifier \ - - +appwrite users create-target \ + --user-id \ + --target-id \ + --provider-type email \ + --identifier diff --git a/docs/examples/1.8.x/console-cli/examples/users/create-token.md b/docs/examples/1.8.x/console-cli/examples/users/create-token.md index 9962e72c73..30b7812af9 100644 --- a/docs/examples/1.8.x/console-cli/examples/users/create-token.md +++ b/docs/examples/1.8.x/console-cli/examples/users/create-token.md @@ -1,4 +1,2 @@ -appwrite users createToken \ - --userId \ - - +appwrite users create-token \ + --user-id diff --git a/docs/examples/1.8.x/console-cli/examples/users/create.md b/docs/examples/1.8.x/console-cli/examples/users/create.md index e828f56ecb..1103eaf476 100644 --- a/docs/examples/1.8.x/console-cli/examples/users/create.md +++ b/docs/examples/1.8.x/console-cli/examples/users/create.md @@ -1,6 +1,2 @@ appwrite users create \ - --userId \ - - - - + --user-id diff --git a/docs/examples/1.8.x/console-cli/examples/users/delete-identity.md b/docs/examples/1.8.x/console-cli/examples/users/delete-identity.md index f3d2d6d980..602a7d0cd8 100644 --- a/docs/examples/1.8.x/console-cli/examples/users/delete-identity.md +++ b/docs/examples/1.8.x/console-cli/examples/users/delete-identity.md @@ -1,2 +1,2 @@ -appwrite users deleteIdentity \ - --identityId +appwrite users delete-identity \ + --identity-id diff --git a/docs/examples/1.8.x/console-cli/examples/users/delete-m-f-a-authenticator.md b/docs/examples/1.8.x/console-cli/examples/users/delete-m-f-a-authenticator.md deleted file mode 100644 index 8ef5597a4c..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/users/delete-m-f-a-authenticator.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite users deleteMFAAuthenticator \ - --userId \ - --type totp diff --git a/docs/examples/1.8.x/console-cli/examples/users/delete-mfa-authenticator.md b/docs/examples/1.8.x/console-cli/examples/users/delete-mfa-authenticator.md index edc67d0b9a..a0fcc704c3 100644 --- a/docs/examples/1.8.x/console-cli/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/1.8.x/console-cli/examples/users/delete-mfa-authenticator.md @@ -1,3 +1,3 @@ -appwrite users deleteMfaAuthenticator \ - --userId \ - --type totp +appwrite users delete-mfa-authenticator \ + --user-id \ + --type totp diff --git a/docs/examples/1.8.x/console-cli/examples/users/delete-session.md b/docs/examples/1.8.x/console-cli/examples/users/delete-session.md index 9f1fbdbfb3..f638b83303 100644 --- a/docs/examples/1.8.x/console-cli/examples/users/delete-session.md +++ b/docs/examples/1.8.x/console-cli/examples/users/delete-session.md @@ -1,3 +1,3 @@ -appwrite users deleteSession \ - --userId \ - --sessionId +appwrite users delete-session \ + --user-id \ + --session-id diff --git a/docs/examples/1.8.x/console-cli/examples/users/delete-sessions.md b/docs/examples/1.8.x/console-cli/examples/users/delete-sessions.md index 4c683d270a..eb038cc504 100644 --- a/docs/examples/1.8.x/console-cli/examples/users/delete-sessions.md +++ b/docs/examples/1.8.x/console-cli/examples/users/delete-sessions.md @@ -1,2 +1,2 @@ -appwrite users deleteSessions \ - --userId +appwrite users delete-sessions \ + --user-id diff --git a/docs/examples/1.8.x/console-cli/examples/users/delete-target.md b/docs/examples/1.8.x/console-cli/examples/users/delete-target.md index e9780911fd..e6410dd1f0 100644 --- a/docs/examples/1.8.x/console-cli/examples/users/delete-target.md +++ b/docs/examples/1.8.x/console-cli/examples/users/delete-target.md @@ -1,3 +1,3 @@ -appwrite users deleteTarget \ - --userId \ - --targetId +appwrite users delete-target \ + --user-id \ + --target-id diff --git a/docs/examples/1.8.x/console-cli/examples/users/delete.md b/docs/examples/1.8.x/console-cli/examples/users/delete.md index 293a5b040d..00f8f9c982 100644 --- a/docs/examples/1.8.x/console-cli/examples/users/delete.md +++ b/docs/examples/1.8.x/console-cli/examples/users/delete.md @@ -1,2 +1,2 @@ appwrite users delete \ - --userId + --user-id diff --git a/docs/examples/1.8.x/console-cli/examples/users/get-m-f-a-recovery-codes.md b/docs/examples/1.8.x/console-cli/examples/users/get-m-f-a-recovery-codes.md deleted file mode 100644 index 6d5ccf3907..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/users/get-m-f-a-recovery-codes.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite users getMFARecoveryCodes \ - --userId diff --git a/docs/examples/1.8.x/console-cli/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.8.x/console-cli/examples/users/get-mfa-recovery-codes.md index cefcce607a..cbb75820c5 100644 --- a/docs/examples/1.8.x/console-cli/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/console-cli/examples/users/get-mfa-recovery-codes.md @@ -1,2 +1,2 @@ -appwrite users getMfaRecoveryCodes \ - --userId +appwrite users get-mfa-recovery-codes \ + --user-id diff --git a/docs/examples/1.8.x/console-cli/examples/users/get-prefs.md b/docs/examples/1.8.x/console-cli/examples/users/get-prefs.md index 324aa4f508..45d01a6fc3 100644 --- a/docs/examples/1.8.x/console-cli/examples/users/get-prefs.md +++ b/docs/examples/1.8.x/console-cli/examples/users/get-prefs.md @@ -1,2 +1,2 @@ -appwrite users getPrefs \ - --userId +appwrite users get-prefs \ + --user-id diff --git a/docs/examples/1.8.x/console-cli/examples/users/get-target.md b/docs/examples/1.8.x/console-cli/examples/users/get-target.md index b80dbd9728..1be3c0efda 100644 --- a/docs/examples/1.8.x/console-cli/examples/users/get-target.md +++ b/docs/examples/1.8.x/console-cli/examples/users/get-target.md @@ -1,3 +1,3 @@ -appwrite users getTarget \ - --userId \ - --targetId +appwrite users get-target \ + --user-id \ + --target-id diff --git a/docs/examples/1.8.x/console-cli/examples/users/get-usage.md b/docs/examples/1.8.x/console-cli/examples/users/get-usage.md index ad7895d3aa..a4d13e70b9 100644 --- a/docs/examples/1.8.x/console-cli/examples/users/get-usage.md +++ b/docs/examples/1.8.x/console-cli/examples/users/get-usage.md @@ -1,2 +1 @@ -appwrite users getUsage \ - +appwrite users get-usage diff --git a/docs/examples/1.8.x/console-cli/examples/users/get.md b/docs/examples/1.8.x/console-cli/examples/users/get.md index 47002c5063..341844cfc9 100644 --- a/docs/examples/1.8.x/console-cli/examples/users/get.md +++ b/docs/examples/1.8.x/console-cli/examples/users/get.md @@ -1,2 +1,2 @@ appwrite users get \ - --userId + --user-id diff --git a/docs/examples/1.8.x/console-cli/examples/users/list-identities.md b/docs/examples/1.8.x/console-cli/examples/users/list-identities.md index c6cd6d5e28..d4fa82f2a6 100644 --- a/docs/examples/1.8.x/console-cli/examples/users/list-identities.md +++ b/docs/examples/1.8.x/console-cli/examples/users/list-identities.md @@ -1,3 +1 @@ -appwrite users listIdentities \ - - +appwrite users list-identities diff --git a/docs/examples/1.8.x/console-cli/examples/users/list-logs.md b/docs/examples/1.8.x/console-cli/examples/users/list-logs.md index 0b0bc1f50f..d2b95beef6 100644 --- a/docs/examples/1.8.x/console-cli/examples/users/list-logs.md +++ b/docs/examples/1.8.x/console-cli/examples/users/list-logs.md @@ -1,3 +1,2 @@ -appwrite users listLogs \ - --userId \ - +appwrite users list-logs \ + --user-id diff --git a/docs/examples/1.8.x/console-cli/examples/users/list-m-f-a-factors.md b/docs/examples/1.8.x/console-cli/examples/users/list-m-f-a-factors.md deleted file mode 100644 index 67a9c09b8c..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/users/list-m-f-a-factors.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite users listMFAFactors \ - --userId diff --git a/docs/examples/1.8.x/console-cli/examples/users/list-memberships.md b/docs/examples/1.8.x/console-cli/examples/users/list-memberships.md index 119f446ec9..f027e4a2e3 100644 --- a/docs/examples/1.8.x/console-cli/examples/users/list-memberships.md +++ b/docs/examples/1.8.x/console-cli/examples/users/list-memberships.md @@ -1,4 +1,2 @@ -appwrite users listMemberships \ - --userId \ - - +appwrite users list-memberships \ + --user-id diff --git a/docs/examples/1.8.x/console-cli/examples/users/list-mfa-factors.md b/docs/examples/1.8.x/console-cli/examples/users/list-mfa-factors.md index e5d111b8ee..d2cadf5b6f 100644 --- a/docs/examples/1.8.x/console-cli/examples/users/list-mfa-factors.md +++ b/docs/examples/1.8.x/console-cli/examples/users/list-mfa-factors.md @@ -1,2 +1,2 @@ -appwrite users listMfaFactors \ - --userId +appwrite users list-mfa-factors \ + --user-id diff --git a/docs/examples/1.8.x/console-cli/examples/users/list-sessions.md b/docs/examples/1.8.x/console-cli/examples/users/list-sessions.md index cb85d15ff6..761447a6d1 100644 --- a/docs/examples/1.8.x/console-cli/examples/users/list-sessions.md +++ b/docs/examples/1.8.x/console-cli/examples/users/list-sessions.md @@ -1,2 +1,2 @@ -appwrite users listSessions \ - --userId +appwrite users list-sessions \ + --user-id diff --git a/docs/examples/1.8.x/console-cli/examples/users/list-targets.md b/docs/examples/1.8.x/console-cli/examples/users/list-targets.md index 9b5614bd32..26330e801f 100644 --- a/docs/examples/1.8.x/console-cli/examples/users/list-targets.md +++ b/docs/examples/1.8.x/console-cli/examples/users/list-targets.md @@ -1,3 +1,2 @@ -appwrite users listTargets \ - --userId \ - +appwrite users list-targets \ + --user-id diff --git a/docs/examples/1.8.x/console-cli/examples/users/list.md b/docs/examples/1.8.x/console-cli/examples/users/list.md index e5fdb9e5c5..94057adff1 100644 --- a/docs/examples/1.8.x/console-cli/examples/users/list.md +++ b/docs/examples/1.8.x/console-cli/examples/users/list.md @@ -1,3 +1 @@ -appwrite users list \ - - +appwrite users list diff --git a/docs/examples/1.8.x/console-cli/examples/users/update-email-verification.md b/docs/examples/1.8.x/console-cli/examples/users/update-email-verification.md index 990436f38b..9f4788aae0 100644 --- a/docs/examples/1.8.x/console-cli/examples/users/update-email-verification.md +++ b/docs/examples/1.8.x/console-cli/examples/users/update-email-verification.md @@ -1,3 +1,3 @@ -appwrite users updateEmailVerification \ - --userId \ - --emailVerification false +appwrite users update-email-verification \ + --user-id \ + --email-verification false diff --git a/docs/examples/1.8.x/console-cli/examples/users/update-email.md b/docs/examples/1.8.x/console-cli/examples/users/update-email.md index cce20e9ebf..f02b79de5a 100644 --- a/docs/examples/1.8.x/console-cli/examples/users/update-email.md +++ b/docs/examples/1.8.x/console-cli/examples/users/update-email.md @@ -1,3 +1,3 @@ -appwrite users updateEmail \ - --userId \ - --email email@example.com +appwrite users update-email \ + --user-id \ + --email email@example.com diff --git a/docs/examples/1.8.x/console-cli/examples/users/update-labels.md b/docs/examples/1.8.x/console-cli/examples/users/update-labels.md index ca60c59683..5963768ffc 100644 --- a/docs/examples/1.8.x/console-cli/examples/users/update-labels.md +++ b/docs/examples/1.8.x/console-cli/examples/users/update-labels.md @@ -1,3 +1,3 @@ -appwrite users updateLabels \ - --userId \ - --labels one two three +appwrite users update-labels \ + --user-id \ + --labels one two three diff --git a/docs/examples/1.8.x/console-cli/examples/users/update-m-f-a-recovery-codes.md b/docs/examples/1.8.x/console-cli/examples/users/update-m-f-a-recovery-codes.md deleted file mode 100644 index ac70d856bc..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/users/update-m-f-a-recovery-codes.md +++ /dev/null @@ -1,2 +0,0 @@ -appwrite users updateMFARecoveryCodes \ - --userId diff --git a/docs/examples/1.8.x/console-cli/examples/users/update-m-f-a.md b/docs/examples/1.8.x/console-cli/examples/users/update-m-f-a.md deleted file mode 100644 index 2cf7b78539..0000000000 --- a/docs/examples/1.8.x/console-cli/examples/users/update-m-f-a.md +++ /dev/null @@ -1,3 +0,0 @@ -appwrite users updateMFA \ - --userId \ - --mfa false diff --git a/docs/examples/1.8.x/console-cli/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.8.x/console-cli/examples/users/update-mfa-recovery-codes.md index 63fb7f25eb..4f63119f5a 100644 --- a/docs/examples/1.8.x/console-cli/examples/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/console-cli/examples/users/update-mfa-recovery-codes.md @@ -1,2 +1,2 @@ -appwrite users updateMfaRecoveryCodes \ - --userId +appwrite users update-mfa-recovery-codes \ + --user-id diff --git a/docs/examples/1.8.x/console-cli/examples/users/update-mfa.md b/docs/examples/1.8.x/console-cli/examples/users/update-mfa.md index 3ccdbd8fdf..1d36d9e1de 100644 --- a/docs/examples/1.8.x/console-cli/examples/users/update-mfa.md +++ b/docs/examples/1.8.x/console-cli/examples/users/update-mfa.md @@ -1,3 +1,3 @@ -appwrite users updateMfa \ - --userId \ - --mfa false +appwrite users update-mfa \ + --user-id \ + --mfa false diff --git a/docs/examples/1.8.x/console-cli/examples/users/update-name.md b/docs/examples/1.8.x/console-cli/examples/users/update-name.md index 9bf20eb117..2f0d0788a5 100644 --- a/docs/examples/1.8.x/console-cli/examples/users/update-name.md +++ b/docs/examples/1.8.x/console-cli/examples/users/update-name.md @@ -1,3 +1,3 @@ -appwrite users updateName \ - --userId \ - --name +appwrite users update-name \ + --user-id \ + --name diff --git a/docs/examples/1.8.x/console-cli/examples/users/update-password.md b/docs/examples/1.8.x/console-cli/examples/users/update-password.md index c05197b3c2..ec320c23cd 100644 --- a/docs/examples/1.8.x/console-cli/examples/users/update-password.md +++ b/docs/examples/1.8.x/console-cli/examples/users/update-password.md @@ -1,3 +1,3 @@ -appwrite users updatePassword \ - --userId \ - --password '' +appwrite users update-password \ + --user-id \ + --password '' diff --git a/docs/examples/1.8.x/console-cli/examples/users/update-phone-verification.md b/docs/examples/1.8.x/console-cli/examples/users/update-phone-verification.md index b88a282d48..2cf56b2a79 100644 --- a/docs/examples/1.8.x/console-cli/examples/users/update-phone-verification.md +++ b/docs/examples/1.8.x/console-cli/examples/users/update-phone-verification.md @@ -1,3 +1,3 @@ -appwrite users updatePhoneVerification \ - --userId \ - --phoneVerification false +appwrite users update-phone-verification \ + --user-id \ + --phone-verification false diff --git a/docs/examples/1.8.x/console-cli/examples/users/update-phone.md b/docs/examples/1.8.x/console-cli/examples/users/update-phone.md index 118c8e3557..d1b7db3531 100644 --- a/docs/examples/1.8.x/console-cli/examples/users/update-phone.md +++ b/docs/examples/1.8.x/console-cli/examples/users/update-phone.md @@ -1,3 +1,3 @@ -appwrite users updatePhone \ - --userId \ - --number +12065550100 +appwrite users update-phone \ + --user-id \ + --number +12065550100 diff --git a/docs/examples/1.8.x/console-cli/examples/users/update-prefs.md b/docs/examples/1.8.x/console-cli/examples/users/update-prefs.md index f3fa995e4d..b4e27cdadf 100644 --- a/docs/examples/1.8.x/console-cli/examples/users/update-prefs.md +++ b/docs/examples/1.8.x/console-cli/examples/users/update-prefs.md @@ -1,3 +1,3 @@ -appwrite users updatePrefs \ - --userId \ - --prefs '{ "key": "value" }' +appwrite users update-prefs \ + --user-id \ + --prefs '{ "key": "value" }' diff --git a/docs/examples/1.8.x/console-cli/examples/users/update-status.md b/docs/examples/1.8.x/console-cli/examples/users/update-status.md index b587b70e9e..f7c1bb44e2 100644 --- a/docs/examples/1.8.x/console-cli/examples/users/update-status.md +++ b/docs/examples/1.8.x/console-cli/examples/users/update-status.md @@ -1,3 +1,3 @@ -appwrite users updateStatus \ - --userId \ - --status false +appwrite users update-status \ + --user-id \ + --status false diff --git a/docs/examples/1.8.x/console-cli/examples/users/update-target.md b/docs/examples/1.8.x/console-cli/examples/users/update-target.md index d6541a0600..1fa4b7ab7b 100644 --- a/docs/examples/1.8.x/console-cli/examples/users/update-target.md +++ b/docs/examples/1.8.x/console-cli/examples/users/update-target.md @@ -1,6 +1,3 @@ -appwrite users updateTarget \ - --userId \ - --targetId \ - - - +appwrite users update-target \ + --user-id \ + --target-id diff --git a/docs/examples/1.8.x/console-cli/examples/vcs/create-repository-detection.md b/docs/examples/1.8.x/console-cli/examples/vcs/create-repository-detection.md index d12a093d2d..d10eac8091 100644 --- a/docs/examples/1.8.x/console-cli/examples/vcs/create-repository-detection.md +++ b/docs/examples/1.8.x/console-cli/examples/vcs/create-repository-detection.md @@ -1,5 +1,4 @@ -appwrite vcs createRepositoryDetection \ - --installationId \ - --providerRepositoryId \ - --type runtime \ - +appwrite vcs create-repository-detection \ + --installation-id \ + --provider-repository-id \ + --type runtime diff --git a/docs/examples/1.8.x/console-cli/examples/vcs/create-repository.md b/docs/examples/1.8.x/console-cli/examples/vcs/create-repository.md index a4934d5ef5..fa9206cfa2 100644 --- a/docs/examples/1.8.x/console-cli/examples/vcs/create-repository.md +++ b/docs/examples/1.8.x/console-cli/examples/vcs/create-repository.md @@ -1,4 +1,4 @@ -appwrite vcs createRepository \ - --installationId \ - --name \ - --private false +appwrite vcs create-repository \ + --installation-id \ + --name \ + --private false diff --git a/docs/examples/1.8.x/console-cli/examples/vcs/delete-installation.md b/docs/examples/1.8.x/console-cli/examples/vcs/delete-installation.md index f7d3a92001..ae9fd335a8 100644 --- a/docs/examples/1.8.x/console-cli/examples/vcs/delete-installation.md +++ b/docs/examples/1.8.x/console-cli/examples/vcs/delete-installation.md @@ -1,2 +1,2 @@ -appwrite vcs deleteInstallation \ - --installationId +appwrite vcs delete-installation \ + --installation-id diff --git a/docs/examples/1.8.x/console-cli/examples/vcs/get-installation.md b/docs/examples/1.8.x/console-cli/examples/vcs/get-installation.md index df51853ea4..e589d60460 100644 --- a/docs/examples/1.8.x/console-cli/examples/vcs/get-installation.md +++ b/docs/examples/1.8.x/console-cli/examples/vcs/get-installation.md @@ -1,2 +1,2 @@ -appwrite vcs getInstallation \ - --installationId +appwrite vcs get-installation \ + --installation-id diff --git a/docs/examples/1.8.x/console-cli/examples/vcs/get-repository-contents.md b/docs/examples/1.8.x/console-cli/examples/vcs/get-repository-contents.md index 3ba8d75c91..786d2201f1 100644 --- a/docs/examples/1.8.x/console-cli/examples/vcs/get-repository-contents.md +++ b/docs/examples/1.8.x/console-cli/examples/vcs/get-repository-contents.md @@ -1,5 +1,3 @@ -appwrite vcs getRepositoryContents \ - --installationId \ - --providerRepositoryId \ - - +appwrite vcs get-repository-contents \ + --installation-id \ + --provider-repository-id diff --git a/docs/examples/1.8.x/console-cli/examples/vcs/get-repository.md b/docs/examples/1.8.x/console-cli/examples/vcs/get-repository.md index 9f88e18eef..10ab55500c 100644 --- a/docs/examples/1.8.x/console-cli/examples/vcs/get-repository.md +++ b/docs/examples/1.8.x/console-cli/examples/vcs/get-repository.md @@ -1,3 +1,3 @@ -appwrite vcs getRepository \ - --installationId \ - --providerRepositoryId +appwrite vcs get-repository \ + --installation-id \ + --provider-repository-id diff --git a/docs/examples/1.8.x/console-cli/examples/vcs/list-installations.md b/docs/examples/1.8.x/console-cli/examples/vcs/list-installations.md index a0af28dfbb..92e13bf0b8 100644 --- a/docs/examples/1.8.x/console-cli/examples/vcs/list-installations.md +++ b/docs/examples/1.8.x/console-cli/examples/vcs/list-installations.md @@ -1,3 +1 @@ -appwrite vcs listInstallations \ - - +appwrite vcs list-installations diff --git a/docs/examples/1.8.x/console-cli/examples/vcs/list-repositories.md b/docs/examples/1.8.x/console-cli/examples/vcs/list-repositories.md index 15c3a643bb..7a3214074a 100644 --- a/docs/examples/1.8.x/console-cli/examples/vcs/list-repositories.md +++ b/docs/examples/1.8.x/console-cli/examples/vcs/list-repositories.md @@ -1,4 +1,3 @@ -appwrite vcs listRepositories \ - --installationId \ - --type runtime \ - +appwrite vcs list-repositories \ + --installation-id \ + --type runtime diff --git a/docs/examples/1.8.x/console-cli/examples/vcs/list-repository-branches.md b/docs/examples/1.8.x/console-cli/examples/vcs/list-repository-branches.md index ea2fbd29fb..c6036731b1 100644 --- a/docs/examples/1.8.x/console-cli/examples/vcs/list-repository-branches.md +++ b/docs/examples/1.8.x/console-cli/examples/vcs/list-repository-branches.md @@ -1,3 +1,3 @@ -appwrite vcs listRepositoryBranches \ - --installationId \ - --providerRepositoryId +appwrite vcs list-repository-branches \ + --installation-id \ + --provider-repository-id diff --git a/docs/examples/1.8.x/console-cli/examples/vcs/update-external-deployments.md b/docs/examples/1.8.x/console-cli/examples/vcs/update-external-deployments.md index 417b59431d..f83891cb3e 100644 --- a/docs/examples/1.8.x/console-cli/examples/vcs/update-external-deployments.md +++ b/docs/examples/1.8.x/console-cli/examples/vcs/update-external-deployments.md @@ -1,4 +1,4 @@ -appwrite vcs updateExternalDeployments \ - --installationId \ - --repositoryId \ - --providerPullRequestId +appwrite vcs update-external-deployments \ + --installation-id \ + --repository-id \ + --provider-pull-request-id diff --git a/docs/examples/1.8.x/console-web/examples/account/create-email-token.md b/docs/examples/1.8.x/console-web/examples/account/create-email-token.md index 0865401940..12e7fb9365 100644 --- a/docs/examples/1.8.x/console-web/examples/account/create-email-token.md +++ b/docs/examples/1.8.x/console-web/examples/account/create-email-token.md @@ -9,7 +9,7 @@ const account = new Account(client); const result = await account.createEmailToken({ userId: '', email: 'email@example.com', - phrase: false + phrase: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/account/create-j-w-t.md b/docs/examples/1.8.x/console-web/examples/account/create-jwt.md similarity index 100% rename from docs/examples/1.8.x/console-web/examples/account/create-j-w-t.md rename to docs/examples/1.8.x/console-web/examples/account/create-jwt.md diff --git a/docs/examples/1.8.x/console-web/examples/account/create-m-f-a-authenticator.md b/docs/examples/1.8.x/console-web/examples/account/create-m-f-a-authenticator.md deleted file mode 100644 index 7d3a01011f..0000000000 --- a/docs/examples/1.8.x/console-web/examples/account/create-m-f-a-authenticator.md +++ /dev/null @@ -1,13 +0,0 @@ -import { Client, Account, AuthenticatorType } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const account = new Account(client); - -const result = await account.createMFAAuthenticator({ - type: AuthenticatorType.Totp -}); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/account/create-m-f-a-challenge.md b/docs/examples/1.8.x/console-web/examples/account/create-m-f-a-challenge.md deleted file mode 100644 index 3bea832ffd..0000000000 --- a/docs/examples/1.8.x/console-web/examples/account/create-m-f-a-challenge.md +++ /dev/null @@ -1,13 +0,0 @@ -import { Client, Account, AuthenticationFactor } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const account = new Account(client); - -const result = await account.createMFAChallenge({ - factor: AuthenticationFactor.Email -}); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/account/create-m-f-a-recovery-codes.md b/docs/examples/1.8.x/console-web/examples/account/create-m-f-a-recovery-codes.md deleted file mode 100644 index d5ec4aaffb..0000000000 --- a/docs/examples/1.8.x/console-web/examples/account/create-m-f-a-recovery-codes.md +++ /dev/null @@ -1,11 +0,0 @@ -import { Client, Account } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const account = new Account(client); - -const result = await account.createMFARecoveryCodes(); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.8.x/console-web/examples/account/create-magic-url-token.md similarity index 84% rename from docs/examples/1.8.x/console-web/examples/account/create-magic-u-r-l-token.md rename to docs/examples/1.8.x/console-web/examples/account/create-magic-url-token.md index 62f53179d9..7f3cd722ea 100644 --- a/docs/examples/1.8.x/console-web/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.8.x/console-web/examples/account/create-magic-url-token.md @@ -9,8 +9,8 @@ const account = new Account(client); const result = await account.createMagicURLToken({ userId: '', email: 'email@example.com', - url: 'https://example.com', - phrase: false + url: 'https://example.com', // optional + phrase: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/account/create-mfa-authenticator.md b/docs/examples/1.8.x/console-web/examples/account/create-mfa-authenticator.md index e486c81c64..7d3a01011f 100644 --- a/docs/examples/1.8.x/console-web/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.8.x/console-web/examples/account/create-mfa-authenticator.md @@ -6,7 +6,7 @@ const client = new Client() const account = new Account(client); -const result = await account.createMfaAuthenticator({ +const result = await account.createMFAAuthenticator({ type: AuthenticatorType.Totp }); diff --git a/docs/examples/1.8.x/console-web/examples/account/create-mfa-challenge.md b/docs/examples/1.8.x/console-web/examples/account/create-mfa-challenge.md index ac03507ad3..3bea832ffd 100644 --- a/docs/examples/1.8.x/console-web/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.8.x/console-web/examples/account/create-mfa-challenge.md @@ -6,7 +6,7 @@ const client = new Client() const account = new Account(client); -const result = await account.createMfaChallenge({ +const result = await account.createMFAChallenge({ factor: AuthenticationFactor.Email }); diff --git a/docs/examples/1.8.x/console-web/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.8.x/console-web/examples/account/create-mfa-recovery-codes.md index d7c122b79c..d5ec4aaffb 100644 --- a/docs/examples/1.8.x/console-web/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/console-web/examples/account/create-mfa-recovery-codes.md @@ -6,6 +6,6 @@ const client = new Client() const account = new Account(client); -const result = await account.createMfaRecoveryCodes(); +const result = await account.createMFARecoveryCodes(); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/account/create-o-auth2session.md b/docs/examples/1.8.x/console-web/examples/account/create-o-auth-2-session.md similarity index 73% rename from docs/examples/1.8.x/console-web/examples/account/create-o-auth2session.md rename to docs/examples/1.8.x/console-web/examples/account/create-o-auth-2-session.md index 572a10c1a8..10270fc64f 100644 --- a/docs/examples/1.8.x/console-web/examples/account/create-o-auth2session.md +++ b/docs/examples/1.8.x/console-web/examples/account/create-o-auth-2-session.md @@ -8,8 +8,8 @@ const account = new Account(client); account.createOAuth2Session({ provider: OAuthProvider.Amazon, - success: 'https://example.com', - failure: 'https://example.com', - scopes: [] + success: 'https://example.com', // optional + failure: 'https://example.com', // optional + scopes: [] // optional }); diff --git a/docs/examples/1.8.x/console-web/examples/account/create-o-auth2token.md b/docs/examples/1.8.x/console-web/examples/account/create-o-auth-2-token.md similarity index 73% rename from docs/examples/1.8.x/console-web/examples/account/create-o-auth2token.md rename to docs/examples/1.8.x/console-web/examples/account/create-o-auth-2-token.md index 520d62c78f..15c0d5b440 100644 --- a/docs/examples/1.8.x/console-web/examples/account/create-o-auth2token.md +++ b/docs/examples/1.8.x/console-web/examples/account/create-o-auth-2-token.md @@ -8,8 +8,8 @@ const account = new Account(client); account.createOAuth2Token({ provider: OAuthProvider.Amazon, - success: 'https://example.com', - failure: 'https://example.com', - scopes: [] + success: 'https://example.com', // optional + failure: 'https://example.com', // optional + scopes: [] // optional }); diff --git a/docs/examples/1.8.x/console-web/examples/account/create-push-target.md b/docs/examples/1.8.x/console-web/examples/account/create-push-target.md index 99a9e728f9..d4add51faa 100644 --- a/docs/examples/1.8.x/console-web/examples/account/create-push-target.md +++ b/docs/examples/1.8.x/console-web/examples/account/create-push-target.md @@ -9,7 +9,7 @@ const account = new Account(client); const result = await account.createPushTarget({ targetId: '', identifier: '', - providerId: '' + providerId: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/account/create.md b/docs/examples/1.8.x/console-web/examples/account/create.md index c59d11e941..d379255361 100644 --- a/docs/examples/1.8.x/console-web/examples/account/create.md +++ b/docs/examples/1.8.x/console-web/examples/account/create.md @@ -10,7 +10,7 @@ const result = await account.create({ userId: '', email: 'email@example.com', password: '', - name: '' + name: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/account/delete-m-f-a-authenticator.md b/docs/examples/1.8.x/console-web/examples/account/delete-m-f-a-authenticator.md deleted file mode 100644 index 5d6cfd9a3a..0000000000 --- a/docs/examples/1.8.x/console-web/examples/account/delete-m-f-a-authenticator.md +++ /dev/null @@ -1,13 +0,0 @@ -import { Client, Account, AuthenticatorType } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const account = new Account(client); - -const result = await account.deleteMFAAuthenticator({ - type: AuthenticatorType.Totp -}); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/account/delete-mfa-authenticator.md b/docs/examples/1.8.x/console-web/examples/account/delete-mfa-authenticator.md index 83d9bd8ee4..5d6cfd9a3a 100644 --- a/docs/examples/1.8.x/console-web/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.8.x/console-web/examples/account/delete-mfa-authenticator.md @@ -6,7 +6,7 @@ const client = new Client() const account = new Account(client); -const result = await account.deleteMfaAuthenticator({ +const result = await account.deleteMFAAuthenticator({ type: AuthenticatorType.Totp }); diff --git a/docs/examples/1.8.x/console-web/examples/account/get-m-f-a-recovery-codes.md b/docs/examples/1.8.x/console-web/examples/account/get-m-f-a-recovery-codes.md deleted file mode 100644 index a8c7810d78..0000000000 --- a/docs/examples/1.8.x/console-web/examples/account/get-m-f-a-recovery-codes.md +++ /dev/null @@ -1,11 +0,0 @@ -import { Client, Account } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const account = new Account(client); - -const result = await account.getMFARecoveryCodes(); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.8.x/console-web/examples/account/get-mfa-recovery-codes.md index bee039c48d..a8c7810d78 100644 --- a/docs/examples/1.8.x/console-web/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/console-web/examples/account/get-mfa-recovery-codes.md @@ -6,6 +6,6 @@ const client = new Client() const account = new Account(client); -const result = await account.getMfaRecoveryCodes(); +const result = await account.getMFARecoveryCodes(); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/account/list-identities.md b/docs/examples/1.8.x/console-web/examples/account/list-identities.md index 1e4973e74c..a41b9012e7 100644 --- a/docs/examples/1.8.x/console-web/examples/account/list-identities.md +++ b/docs/examples/1.8.x/console-web/examples/account/list-identities.md @@ -7,7 +7,7 @@ const client = new Client() const account = new Account(client); const result = await account.listIdentities({ - queries: [] + queries: [] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/account/list-logs.md b/docs/examples/1.8.x/console-web/examples/account/list-logs.md index 4a77f80917..9dd9339b7c 100644 --- a/docs/examples/1.8.x/console-web/examples/account/list-logs.md +++ b/docs/examples/1.8.x/console-web/examples/account/list-logs.md @@ -7,7 +7,7 @@ const client = new Client() const account = new Account(client); const result = await account.listLogs({ - queries: [] + queries: [] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/account/list-m-f-a-factors.md b/docs/examples/1.8.x/console-web/examples/account/list-m-f-a-factors.md deleted file mode 100644 index 078503a678..0000000000 --- a/docs/examples/1.8.x/console-web/examples/account/list-m-f-a-factors.md +++ /dev/null @@ -1,11 +0,0 @@ -import { Client, Account } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const account = new Account(client); - -const result = await account.listMFAFactors(); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/account/list-mfa-factors.md b/docs/examples/1.8.x/console-web/examples/account/list-mfa-factors.md index 7cbc52ec71..078503a678 100644 --- a/docs/examples/1.8.x/console-web/examples/account/list-mfa-factors.md +++ b/docs/examples/1.8.x/console-web/examples/account/list-mfa-factors.md @@ -6,6 +6,6 @@ const client = new Client() const account = new Account(client); -const result = await account.listMfaFactors(); +const result = await account.listMFAFactors(); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/account/update-m-f-a-authenticator.md b/docs/examples/1.8.x/console-web/examples/account/update-m-f-a-authenticator.md deleted file mode 100644 index b6aa383de3..0000000000 --- a/docs/examples/1.8.x/console-web/examples/account/update-m-f-a-authenticator.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Account, AuthenticatorType } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const account = new Account(client); - -const result = await account.updateMFAAuthenticator({ - type: AuthenticatorType.Totp, - otp: '' -}); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/account/update-m-f-a-challenge.md b/docs/examples/1.8.x/console-web/examples/account/update-m-f-a-challenge.md deleted file mode 100644 index d82e58326f..0000000000 --- a/docs/examples/1.8.x/console-web/examples/account/update-m-f-a-challenge.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Account } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const account = new Account(client); - -const result = await account.updateMFAChallenge({ - challengeId: '', - otp: '' -}); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/account/update-m-f-a-recovery-codes.md b/docs/examples/1.8.x/console-web/examples/account/update-m-f-a-recovery-codes.md deleted file mode 100644 index d359a4ee3d..0000000000 --- a/docs/examples/1.8.x/console-web/examples/account/update-m-f-a-recovery-codes.md +++ /dev/null @@ -1,11 +0,0 @@ -import { Client, Account } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const account = new Account(client); - -const result = await account.updateMFARecoveryCodes(); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.8.x/console-web/examples/account/update-magic-url-session.md similarity index 100% rename from docs/examples/1.8.x/console-web/examples/account/update-magic-u-r-l-session.md rename to docs/examples/1.8.x/console-web/examples/account/update-magic-url-session.md diff --git a/docs/examples/1.8.x/console-web/examples/account/update-mfa-authenticator.md b/docs/examples/1.8.x/console-web/examples/account/update-mfa-authenticator.md index 6f14f1b0aa..b6aa383de3 100644 --- a/docs/examples/1.8.x/console-web/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.8.x/console-web/examples/account/update-mfa-authenticator.md @@ -6,7 +6,7 @@ const client = new Client() const account = new Account(client); -const result = await account.updateMfaAuthenticator({ +const result = await account.updateMFAAuthenticator({ type: AuthenticatorType.Totp, otp: '' }); diff --git a/docs/examples/1.8.x/console-web/examples/account/update-mfa-challenge.md b/docs/examples/1.8.x/console-web/examples/account/update-mfa-challenge.md index cd7afb62b7..d82e58326f 100644 --- a/docs/examples/1.8.x/console-web/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.8.x/console-web/examples/account/update-mfa-challenge.md @@ -6,7 +6,7 @@ const client = new Client() const account = new Account(client); -const result = await account.updateMfaChallenge({ +const result = await account.updateMFAChallenge({ challengeId: '', otp: '' }); diff --git a/docs/examples/1.8.x/console-web/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.8.x/console-web/examples/account/update-mfa-recovery-codes.md index 654d9fb0fa..d359a4ee3d 100644 --- a/docs/examples/1.8.x/console-web/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/console-web/examples/account/update-mfa-recovery-codes.md @@ -6,6 +6,6 @@ const client = new Client() const account = new Account(client); -const result = await account.updateMfaRecoveryCodes(); +const result = await account.updateMFARecoveryCodes(); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/account/update-m-f-a.md b/docs/examples/1.8.x/console-web/examples/account/update-mfa.md similarity index 100% rename from docs/examples/1.8.x/console-web/examples/account/update-m-f-a.md rename to docs/examples/1.8.x/console-web/examples/account/update-mfa.md diff --git a/docs/examples/1.8.x/console-web/examples/account/update-password.md b/docs/examples/1.8.x/console-web/examples/account/update-password.md index 0883a56c39..9e2d367dd2 100644 --- a/docs/examples/1.8.x/console-web/examples/account/update-password.md +++ b/docs/examples/1.8.x/console-web/examples/account/update-password.md @@ -8,7 +8,7 @@ const account = new Account(client); const result = await account.updatePassword({ password: '', - oldPassword: 'password' + oldPassword: 'password' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/avatars/get-browser.md b/docs/examples/1.8.x/console-web/examples/avatars/get-browser.md index 19b5d3bae2..954dd5dfef 100644 --- a/docs/examples/1.8.x/console-web/examples/avatars/get-browser.md +++ b/docs/examples/1.8.x/console-web/examples/avatars/get-browser.md @@ -8,9 +8,9 @@ const avatars = new Avatars(client); const result = avatars.getBrowser({ code: Browser.AvantBrowser, - width: 0, - height: 0, - quality: -1 + width: 0, // optional + height: 0, // optional + quality: -1 // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/avatars/get-credit-card.md b/docs/examples/1.8.x/console-web/examples/avatars/get-credit-card.md index 00112b48dd..d81b6177c4 100644 --- a/docs/examples/1.8.x/console-web/examples/avatars/get-credit-card.md +++ b/docs/examples/1.8.x/console-web/examples/avatars/get-credit-card.md @@ -8,9 +8,9 @@ const avatars = new Avatars(client); const result = avatars.getCreditCard({ code: CreditCard.AmericanExpress, - width: 0, - height: 0, - quality: -1 + width: 0, // optional + height: 0, // optional + quality: -1 // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/avatars/get-flag.md b/docs/examples/1.8.x/console-web/examples/avatars/get-flag.md index 49a41283b7..36c746894c 100644 --- a/docs/examples/1.8.x/console-web/examples/avatars/get-flag.md +++ b/docs/examples/1.8.x/console-web/examples/avatars/get-flag.md @@ -8,9 +8,9 @@ const avatars = new Avatars(client); const result = avatars.getFlag({ code: Flag.Afghanistan, - width: 0, - height: 0, - quality: -1 + width: 0, // optional + height: 0, // optional + quality: -1 // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/avatars/get-image.md b/docs/examples/1.8.x/console-web/examples/avatars/get-image.md index 5f69d73894..fc7fb40222 100644 --- a/docs/examples/1.8.x/console-web/examples/avatars/get-image.md +++ b/docs/examples/1.8.x/console-web/examples/avatars/get-image.md @@ -8,8 +8,8 @@ const avatars = new Avatars(client); const result = avatars.getImage({ url: 'https://example.com', - width: 0, - height: 0 + width: 0, // optional + height: 0 // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/avatars/get-initials.md b/docs/examples/1.8.x/console-web/examples/avatars/get-initials.md index fc60ef13fc..117bc5046c 100644 --- a/docs/examples/1.8.x/console-web/examples/avatars/get-initials.md +++ b/docs/examples/1.8.x/console-web/examples/avatars/get-initials.md @@ -7,10 +7,10 @@ const client = new Client() const avatars = new Avatars(client); const result = avatars.getInitials({ - name: '', - width: 0, - height: 0, - background: '' + name: '', // optional + width: 0, // optional + height: 0, // optional + background: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/avatars/get-q-r.md b/docs/examples/1.8.x/console-web/examples/avatars/get-qr.md similarity index 80% rename from docs/examples/1.8.x/console-web/examples/avatars/get-q-r.md rename to docs/examples/1.8.x/console-web/examples/avatars/get-qr.md index a4a2a5d3a0..dc1bad5727 100644 --- a/docs/examples/1.8.x/console-web/examples/avatars/get-q-r.md +++ b/docs/examples/1.8.x/console-web/examples/avatars/get-qr.md @@ -8,9 +8,9 @@ const avatars = new Avatars(client); const result = avatars.getQR({ text: '', - size: 1, - margin: 0, - download: false + size: 1, // optional + margin: 0, // optional + download: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/create-boolean-attribute.md b/docs/examples/1.8.x/console-web/examples/databases/create-boolean-attribute.md index 629d2b4a0f..4a5a080f29 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.8.x/console-web/examples/databases/create-boolean-attribute.md @@ -11,8 +11,8 @@ const result = await databases.createBooleanAttribute({ collectionId: '', key: '', required: false, - default: false, - array: false + default: false, // optional + array: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/create-collection.md b/docs/examples/1.8.x/console-web/examples/databases/create-collection.md index b1d461e835..f3c2efaaee 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/create-collection.md +++ b/docs/examples/1.8.x/console-web/examples/databases/create-collection.md @@ -10,9 +10,9 @@ const result = await databases.createCollection({ databaseId: '', collectionId: '', name: '', - permissions: ["read("any")"], - documentSecurity: false, - enabled: false + permissions: ["read("any")"], // optional + documentSecurity: false, // optional + enabled: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/create-datetime-attribute.md b/docs/examples/1.8.x/console-web/examples/databases/create-datetime-attribute.md index dc828b8489..a881eeb14f 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.8.x/console-web/examples/databases/create-datetime-attribute.md @@ -11,8 +11,8 @@ const result = await databases.createDatetimeAttribute({ collectionId: '', key: '', required: false, - default: '', - array: false + default: '', // optional + array: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/create-document.md b/docs/examples/1.8.x/console-web/examples/databases/create-document.md index 0d8cacce3a..b4c5200d74 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/create-document.md +++ b/docs/examples/1.8.x/console-web/examples/databases/create-document.md @@ -11,7 +11,7 @@ const result = await databases.createDocument({ collectionId: '', documentId: '', data: {}, - permissions: ["read("any")"] + permissions: ["read("any")"] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/create-email-attribute.md b/docs/examples/1.8.x/console-web/examples/databases/create-email-attribute.md index b986671d66..cf998a388e 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/create-email-attribute.md +++ b/docs/examples/1.8.x/console-web/examples/databases/create-email-attribute.md @@ -11,8 +11,8 @@ const result = await databases.createEmailAttribute({ collectionId: '', key: '', required: false, - default: 'email@example.com', - array: false + default: 'email@example.com', // optional + array: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/create-enum-attribute.md b/docs/examples/1.8.x/console-web/examples/databases/create-enum-attribute.md index 53b5485ec9..f9cacb3721 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.8.x/console-web/examples/databases/create-enum-attribute.md @@ -12,8 +12,8 @@ const result = await databases.createEnumAttribute({ key: '', elements: [], required: false, - default: '', - array: false + default: '', // optional + array: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/create-float-attribute.md b/docs/examples/1.8.x/console-web/examples/databases/create-float-attribute.md index c2b629ed7e..00fb992d55 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/create-float-attribute.md +++ b/docs/examples/1.8.x/console-web/examples/databases/create-float-attribute.md @@ -11,10 +11,10 @@ const result = await databases.createFloatAttribute({ collectionId: '', key: '', required: false, - min: null, - max: null, - default: null, - array: false + min: null, // optional + max: null, // optional + default: null, // optional + array: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/create-index.md b/docs/examples/1.8.x/console-web/examples/databases/create-index.md index f1d462d3d0..82af4171f6 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/create-index.md +++ b/docs/examples/1.8.x/console-web/examples/databases/create-index.md @@ -12,8 +12,8 @@ const result = await databases.createIndex({ key: '', type: IndexType.Key, attributes: [], - orders: [], - lengths: [] + orders: [], // optional + lengths: [] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/create-integer-attribute.md b/docs/examples/1.8.x/console-web/examples/databases/create-integer-attribute.md index cbe49fc401..a5a186b0bc 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.8.x/console-web/examples/databases/create-integer-attribute.md @@ -11,10 +11,10 @@ const result = await databases.createIntegerAttribute({ collectionId: '', key: '', required: false, - min: null, - max: null, - default: null, - array: false + min: null, // optional + max: null, // optional + default: null, // optional + array: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/create-ip-attribute.md b/docs/examples/1.8.x/console-web/examples/databases/create-ip-attribute.md index ac32fda135..940f51f33e 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.8.x/console-web/examples/databases/create-ip-attribute.md @@ -11,8 +11,8 @@ const result = await databases.createIpAttribute({ collectionId: '', key: '', required: false, - default: '', - array: false + default: '', // optional + array: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/create-relationship-attribute.md b/docs/examples/1.8.x/console-web/examples/databases/create-relationship-attribute.md index 4dc2b11e56..6a0e39b402 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.8.x/console-web/examples/databases/create-relationship-attribute.md @@ -11,10 +11,10 @@ const result = await databases.createRelationshipAttribute({ collectionId: '', relatedCollectionId: '', type: RelationshipType.OneToOne, - twoWay: false, - key: '', - twoWayKey: '', - onDelete: RelationMutate.Cascade + twoWay: false, // optional + key: '', // optional + twoWayKey: '', // optional + onDelete: RelationMutate.Cascade // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/create-string-attribute.md b/docs/examples/1.8.x/console-web/examples/databases/create-string-attribute.md index 9bf1c9ea27..5457b159ca 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/create-string-attribute.md +++ b/docs/examples/1.8.x/console-web/examples/databases/create-string-attribute.md @@ -12,9 +12,9 @@ const result = await databases.createStringAttribute({ key: '', size: 1, required: false, - default: '', - array: false, - encrypt: false + default: '', // optional + array: false, // optional + encrypt: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/create-url-attribute.md b/docs/examples/1.8.x/console-web/examples/databases/create-url-attribute.md index 524a14fa72..085af6c61c 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/create-url-attribute.md +++ b/docs/examples/1.8.x/console-web/examples/databases/create-url-attribute.md @@ -11,8 +11,8 @@ const result = await databases.createUrlAttribute({ collectionId: '', key: '', required: false, - default: 'https://example.com', - array: false + default: 'https://example.com', // optional + array: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/create.md b/docs/examples/1.8.x/console-web/examples/databases/create.md index d63cc80b0c..ff1f739c57 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/create.md +++ b/docs/examples/1.8.x/console-web/examples/databases/create.md @@ -9,7 +9,7 @@ const databases = new Databases(client); const result = await databases.create({ databaseId: '', name: '', - enabled: false + enabled: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/decrement-document-attribute.md b/docs/examples/1.8.x/console-web/examples/databases/decrement-document-attribute.md index e19f56c3b0..ec014643bb 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/decrement-document-attribute.md +++ b/docs/examples/1.8.x/console-web/examples/databases/decrement-document-attribute.md @@ -11,8 +11,8 @@ const result = await databases.decrementDocumentAttribute({ collectionId: '', documentId: '', attribute: '', - value: null, - min: null + value: null, // optional + min: null // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/delete-documents.md b/docs/examples/1.8.x/console-web/examples/databases/delete-documents.md index 0946e2fe63..45601a5985 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/delete-documents.md +++ b/docs/examples/1.8.x/console-web/examples/databases/delete-documents.md @@ -9,7 +9,7 @@ const databases = new Databases(client); const result = await databases.deleteDocuments({ databaseId: '', collectionId: '', - queries: [] + queries: [] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/get-collection-usage.md b/docs/examples/1.8.x/console-web/examples/databases/get-collection-usage.md index 2408d606e2..c4fc5c264d 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/get-collection-usage.md +++ b/docs/examples/1.8.x/console-web/examples/databases/get-collection-usage.md @@ -9,7 +9,7 @@ const databases = new Databases(client); const result = await databases.getCollectionUsage({ databaseId: '', collectionId: '', - range: UsageRange.TwentyFourHours + range: UsageRange.TwentyFourHours // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/get-database-usage.md b/docs/examples/1.8.x/console-web/examples/databases/get-database-usage.md deleted file mode 100644 index 13038ab755..0000000000 --- a/docs/examples/1.8.x/console-web/examples/databases/get-database-usage.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Databases, DatabaseUsageRange } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const databases = new Databases(client); - -const result = await databases.getDatabaseUsage( - '', // databaseId - DatabaseUsageRange.TwentyFourHours // range (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/get-document.md b/docs/examples/1.8.x/console-web/examples/databases/get-document.md index 4dcdbef3cd..00595b1033 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/get-document.md +++ b/docs/examples/1.8.x/console-web/examples/databases/get-document.md @@ -10,7 +10,7 @@ const result = await databases.getDocument({ databaseId: '', collectionId: '', documentId: '', - queries: [] + queries: [] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/get-usage.md b/docs/examples/1.8.x/console-web/examples/databases/get-usage.md index b520099a31..b4cdcbd849 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/get-usage.md +++ b/docs/examples/1.8.x/console-web/examples/databases/get-usage.md @@ -8,7 +8,7 @@ const databases = new Databases(client); const result = await databases.getUsage({ databaseId: '', - range: UsageRange.TwentyFourHours + range: UsageRange.TwentyFourHours // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/increment-document-attribute.md b/docs/examples/1.8.x/console-web/examples/databases/increment-document-attribute.md index f3504f4afa..2207e94563 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/increment-document-attribute.md +++ b/docs/examples/1.8.x/console-web/examples/databases/increment-document-attribute.md @@ -11,8 +11,8 @@ const result = await databases.incrementDocumentAttribute({ collectionId: '', documentId: '', attribute: '', - value: null, - max: null + value: null, // optional + max: null // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/list-attributes.md b/docs/examples/1.8.x/console-web/examples/databases/list-attributes.md index 0cf05c27f3..cebeaf2121 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/list-attributes.md +++ b/docs/examples/1.8.x/console-web/examples/databases/list-attributes.md @@ -9,7 +9,7 @@ const databases = new Databases(client); const result = await databases.listAttributes({ databaseId: '', collectionId: '', - queries: [] + queries: [] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/list-collection-logs.md b/docs/examples/1.8.x/console-web/examples/databases/list-collection-logs.md index 1374a31d1a..291b77f668 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/list-collection-logs.md +++ b/docs/examples/1.8.x/console-web/examples/databases/list-collection-logs.md @@ -9,7 +9,7 @@ const databases = new Databases(client); const result = await databases.listCollectionLogs({ databaseId: '', collectionId: '', - queries: [] + queries: [] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/list-collections.md b/docs/examples/1.8.x/console-web/examples/databases/list-collections.md index b08d713e69..bb53f9875c 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/list-collections.md +++ b/docs/examples/1.8.x/console-web/examples/databases/list-collections.md @@ -8,8 +8,8 @@ const databases = new Databases(client); const result = await databases.listCollections({ databaseId: '', - queries: [], - search: '' + queries: [], // optional + search: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/list-document-logs.md b/docs/examples/1.8.x/console-web/examples/databases/list-document-logs.md index fea932d43f..8de4b4eab5 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/list-document-logs.md +++ b/docs/examples/1.8.x/console-web/examples/databases/list-document-logs.md @@ -10,7 +10,7 @@ const result = await databases.listDocumentLogs({ databaseId: '', collectionId: '', documentId: '', - queries: [] + queries: [] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/list-documents.md b/docs/examples/1.8.x/console-web/examples/databases/list-documents.md index 8546487b1a..dda036951c 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/list-documents.md +++ b/docs/examples/1.8.x/console-web/examples/databases/list-documents.md @@ -9,7 +9,7 @@ const databases = new Databases(client); const result = await databases.listDocuments({ databaseId: '', collectionId: '', - queries: [] + queries: [] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/list-indexes.md b/docs/examples/1.8.x/console-web/examples/databases/list-indexes.md index f2c4173a86..6aa4d33299 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/list-indexes.md +++ b/docs/examples/1.8.x/console-web/examples/databases/list-indexes.md @@ -9,7 +9,7 @@ const databases = new Databases(client); const result = await databases.listIndexes({ databaseId: '', collectionId: '', - queries: [] + queries: [] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/list-logs.md b/docs/examples/1.8.x/console-web/examples/databases/list-logs.md index a6e6bcab68..a7726312f6 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/list-logs.md +++ b/docs/examples/1.8.x/console-web/examples/databases/list-logs.md @@ -8,7 +8,7 @@ const databases = new Databases(client); const result = await databases.listLogs({ databaseId: '', - queries: [] + queries: [] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/list-usage.md b/docs/examples/1.8.x/console-web/examples/databases/list-usage.md index 1bf48e4a67..ce6203cbb1 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/list-usage.md +++ b/docs/examples/1.8.x/console-web/examples/databases/list-usage.md @@ -7,7 +7,7 @@ const client = new Client() const databases = new Databases(client); const result = await databases.listUsage({ - range: UsageRange.TwentyFourHours + range: UsageRange.TwentyFourHours // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/list-usages.md b/docs/examples/1.8.x/console-web/examples/databases/list-usages.md deleted file mode 100644 index 5832c387bd..0000000000 --- a/docs/examples/1.8.x/console-web/examples/databases/list-usages.md +++ /dev/null @@ -1,13 +0,0 @@ -import { Client, Databases, } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const databases = new Databases(client); - -const result = await databases.listUsages( - .24h // range (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/list.md b/docs/examples/1.8.x/console-web/examples/databases/list.md index 57fa2a0cf6..79292dbacf 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/list.md +++ b/docs/examples/1.8.x/console-web/examples/databases/list.md @@ -7,8 +7,8 @@ const client = new Client() const databases = new Databases(client); const result = await databases.list({ - queries: [], - search: '' + queries: [], // optional + search: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/update-boolean-attribute.md b/docs/examples/1.8.x/console-web/examples/databases/update-boolean-attribute.md index e06898c491..85b6138287 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.8.x/console-web/examples/databases/update-boolean-attribute.md @@ -12,7 +12,7 @@ const result = await databases.updateBooleanAttribute({ key: '', required: false, default: false, - newKey: '' + newKey: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/update-collection.md b/docs/examples/1.8.x/console-web/examples/databases/update-collection.md index 36064a8b68..83763e4509 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/update-collection.md +++ b/docs/examples/1.8.x/console-web/examples/databases/update-collection.md @@ -10,9 +10,9 @@ const result = await databases.updateCollection({ databaseId: '', collectionId: '', name: '', - permissions: ["read("any")"], - documentSecurity: false, - enabled: false + permissions: ["read("any")"], // optional + documentSecurity: false, // optional + enabled: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/update-datetime-attribute.md b/docs/examples/1.8.x/console-web/examples/databases/update-datetime-attribute.md index ba772e538e..2f9a8e065a 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.8.x/console-web/examples/databases/update-datetime-attribute.md @@ -12,7 +12,7 @@ const result = await databases.updateDatetimeAttribute({ key: '', required: false, default: '', - newKey: '' + newKey: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/update-document.md b/docs/examples/1.8.x/console-web/examples/databases/update-document.md index eadafaba78..168ad11bda 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/update-document.md +++ b/docs/examples/1.8.x/console-web/examples/databases/update-document.md @@ -10,8 +10,8 @@ const result = await databases.updateDocument({ databaseId: '', collectionId: '', documentId: '', - data: {}, - permissions: ["read("any")"] + data: {}, // optional + permissions: ["read("any")"] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/update-documents.md b/docs/examples/1.8.x/console-web/examples/databases/update-documents.md index 182aff236f..7462502c81 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/update-documents.md +++ b/docs/examples/1.8.x/console-web/examples/databases/update-documents.md @@ -9,8 +9,8 @@ const databases = new Databases(client); const result = await databases.updateDocuments({ databaseId: '', collectionId: '', - data: {}, - queries: [] + data: {}, // optional + queries: [] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/update-email-attribute.md b/docs/examples/1.8.x/console-web/examples/databases/update-email-attribute.md index 02ea7a0235..c5fa3de6e9 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/update-email-attribute.md +++ b/docs/examples/1.8.x/console-web/examples/databases/update-email-attribute.md @@ -12,7 +12,7 @@ const result = await databases.updateEmailAttribute({ key: '', required: false, default: 'email@example.com', - newKey: '' + newKey: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/update-enum-attribute.md b/docs/examples/1.8.x/console-web/examples/databases/update-enum-attribute.md index 324fd620d6..65e0931eeb 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.8.x/console-web/examples/databases/update-enum-attribute.md @@ -13,7 +13,7 @@ const result = await databases.updateEnumAttribute({ elements: [], required: false, default: '', - newKey: '' + newKey: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/update-float-attribute.md b/docs/examples/1.8.x/console-web/examples/databases/update-float-attribute.md index 9c2fc80025..1526c98f03 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/update-float-attribute.md +++ b/docs/examples/1.8.x/console-web/examples/databases/update-float-attribute.md @@ -12,9 +12,9 @@ const result = await databases.updateFloatAttribute({ key: '', required: false, default: null, - min: null, - max: null, - newKey: '' + min: null, // optional + max: null, // optional + newKey: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/update-integer-attribute.md b/docs/examples/1.8.x/console-web/examples/databases/update-integer-attribute.md index 0c4bc6d1cc..01b063006f 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.8.x/console-web/examples/databases/update-integer-attribute.md @@ -12,9 +12,9 @@ const result = await databases.updateIntegerAttribute({ key: '', required: false, default: null, - min: null, - max: null, - newKey: '' + min: null, // optional + max: null, // optional + newKey: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/update-ip-attribute.md b/docs/examples/1.8.x/console-web/examples/databases/update-ip-attribute.md index a9cda70bfa..85506d6f1a 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.8.x/console-web/examples/databases/update-ip-attribute.md @@ -12,7 +12,7 @@ const result = await databases.updateIpAttribute({ key: '', required: false, default: '', - newKey: '' + newKey: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/update-relationship-attribute.md b/docs/examples/1.8.x/console-web/examples/databases/update-relationship-attribute.md index 8cca3001f2..8a7340af4e 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.8.x/console-web/examples/databases/update-relationship-attribute.md @@ -10,8 +10,8 @@ const result = await databases.updateRelationshipAttribute({ databaseId: '', collectionId: '', key: '', - onDelete: RelationMutate.Cascade, - newKey: '' + onDelete: RelationMutate.Cascade, // optional + newKey: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/update-string-attribute.md b/docs/examples/1.8.x/console-web/examples/databases/update-string-attribute.md index 2837cb152a..aeb3753428 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/update-string-attribute.md +++ b/docs/examples/1.8.x/console-web/examples/databases/update-string-attribute.md @@ -12,8 +12,8 @@ const result = await databases.updateStringAttribute({ key: '', required: false, default: '', - size: 1, - newKey: '' + size: 1, // optional + newKey: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/update-url-attribute.md b/docs/examples/1.8.x/console-web/examples/databases/update-url-attribute.md index e5d16c430f..75171f0206 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/update-url-attribute.md +++ b/docs/examples/1.8.x/console-web/examples/databases/update-url-attribute.md @@ -12,7 +12,7 @@ const result = await databases.updateUrlAttribute({ key: '', required: false, default: 'https://example.com', - newKey: '' + newKey: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/update.md b/docs/examples/1.8.x/console-web/examples/databases/update.md index a3b67818de..40cea93299 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/update.md +++ b/docs/examples/1.8.x/console-web/examples/databases/update.md @@ -9,7 +9,7 @@ const databases = new Databases(client); const result = await databases.update({ databaseId: '', name: '', - enabled: false + enabled: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/databases/upsert-document.md b/docs/examples/1.8.x/console-web/examples/databases/upsert-document.md index aeea91d501..3f8705f7c8 100644 --- a/docs/examples/1.8.x/console-web/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/console-web/examples/databases/upsert-document.md @@ -11,7 +11,7 @@ const result = await databases.upsertDocument({ collectionId: '', documentId: '', data: {}, - permissions: ["read("any")"] + permissions: ["read("any")"] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/functions/create-deployment.md b/docs/examples/1.8.x/console-web/examples/functions/create-deployment.md index 8483cacbf5..ff9be3c80f 100644 --- a/docs/examples/1.8.x/console-web/examples/functions/create-deployment.md +++ b/docs/examples/1.8.x/console-web/examples/functions/create-deployment.md @@ -10,8 +10,8 @@ const result = await functions.createDeployment({ functionId: '', code: document.getElementById('uploader').files[0], activate: false, - entrypoint: '', - commands: '' + entrypoint: '', // optional + commands: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/functions/create-duplicate-deployment.md b/docs/examples/1.8.x/console-web/examples/functions/create-duplicate-deployment.md index 09f12fe815..05da2af37b 100644 --- a/docs/examples/1.8.x/console-web/examples/functions/create-duplicate-deployment.md +++ b/docs/examples/1.8.x/console-web/examples/functions/create-duplicate-deployment.md @@ -9,7 +9,7 @@ const functions = new Functions(client); const result = await functions.createDuplicateDeployment({ functionId: '', deploymentId: '', - buildId: '' + buildId: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/functions/create-execution.md b/docs/examples/1.8.x/console-web/examples/functions/create-execution.md index bc704e2f60..d4015d46e1 100644 --- a/docs/examples/1.8.x/console-web/examples/functions/create-execution.md +++ b/docs/examples/1.8.x/console-web/examples/functions/create-execution.md @@ -8,12 +8,12 @@ const functions = new Functions(client); const result = await functions.createExecution({ functionId: '', - body: '', - async: false, - path: '', - method: ExecutionMethod.GET, - headers: {}, - scheduledAt: '' + body: '', // optional + async: false, // optional + path: '', // optional + method: ExecutionMethod.GET, // optional + headers: {}, // optional + scheduledAt: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/functions/create-template-deployment.md b/docs/examples/1.8.x/console-web/examples/functions/create-template-deployment.md index f667d84cda..8820ba3565 100644 --- a/docs/examples/1.8.x/console-web/examples/functions/create-template-deployment.md +++ b/docs/examples/1.8.x/console-web/examples/functions/create-template-deployment.md @@ -12,7 +12,7 @@ const result = await functions.createTemplateDeployment({ owner: '', rootDirectory: '', version: '', - activate: false + activate: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/functions/create-variable.md b/docs/examples/1.8.x/console-web/examples/functions/create-variable.md index 812657338a..28cfb8877f 100644 --- a/docs/examples/1.8.x/console-web/examples/functions/create-variable.md +++ b/docs/examples/1.8.x/console-web/examples/functions/create-variable.md @@ -10,7 +10,7 @@ const result = await functions.createVariable({ functionId: '', key: '', value: '', - secret: false + secret: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/functions/create-vcs-deployment.md b/docs/examples/1.8.x/console-web/examples/functions/create-vcs-deployment.md index e2506adc01..33da9bfd70 100644 --- a/docs/examples/1.8.x/console-web/examples/functions/create-vcs-deployment.md +++ b/docs/examples/1.8.x/console-web/examples/functions/create-vcs-deployment.md @@ -10,7 +10,7 @@ const result = await functions.createVcsDeployment({ functionId: '', type: VCSDeploymentType.Branch, reference: '', - activate: false + activate: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/functions/create.md b/docs/examples/1.8.x/console-web/examples/functions/create.md index 87edc7a158..b3ebbaf5a4 100644 --- a/docs/examples/1.8.x/console-web/examples/functions/create.md +++ b/docs/examples/1.8.x/console-web/examples/functions/create.md @@ -10,21 +10,21 @@ const result = await functions.create({ functionId: '', name: '', runtime: .Node145, - execute: ["any"], - events: [], - schedule: '', - timeout: 1, - enabled: false, - logging: false, - entrypoint: '', - commands: '', - scopes: [], - installationId: '', - providerRepositoryId: '', - providerBranch: '', - providerSilentMode: false, - providerRootDirectory: '', - specification: '' + execute: ["any"], // optional + events: [], // optional + schedule: '', // optional + timeout: 1, // optional + enabled: false, // optional + logging: false, // optional + entrypoint: '', // optional + commands: '', // optional + scopes: [], // optional + installationId: '', // optional + providerRepositoryId: '', // optional + providerBranch: '', // optional + providerSilentMode: false, // optional + providerRootDirectory: '', // optional + specification: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/functions/get-deployment-download.md b/docs/examples/1.8.x/console-web/examples/functions/get-deployment-download.md index d17777fb35..82f8881929 100644 --- a/docs/examples/1.8.x/console-web/examples/functions/get-deployment-download.md +++ b/docs/examples/1.8.x/console-web/examples/functions/get-deployment-download.md @@ -9,7 +9,7 @@ const functions = new Functions(client); const result = functions.getDeploymentDownload({ functionId: '', deploymentId: '', - type: DeploymentDownloadType.Source + type: DeploymentDownloadType.Source // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/functions/get-usage.md b/docs/examples/1.8.x/console-web/examples/functions/get-usage.md index 7f1e4ad21a..ffba26f4d9 100644 --- a/docs/examples/1.8.x/console-web/examples/functions/get-usage.md +++ b/docs/examples/1.8.x/console-web/examples/functions/get-usage.md @@ -8,7 +8,7 @@ const functions = new Functions(client); const result = await functions.getUsage({ functionId: '', - range: UsageRange.TwentyFourHours + range: UsageRange.TwentyFourHours // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/functions/list-deployments.md b/docs/examples/1.8.x/console-web/examples/functions/list-deployments.md index 71d11afafd..becb2cf9cd 100644 --- a/docs/examples/1.8.x/console-web/examples/functions/list-deployments.md +++ b/docs/examples/1.8.x/console-web/examples/functions/list-deployments.md @@ -8,8 +8,8 @@ const functions = new Functions(client); const result = await functions.listDeployments({ functionId: '', - queries: [], - search: '' + queries: [], // optional + search: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/functions/list-executions.md b/docs/examples/1.8.x/console-web/examples/functions/list-executions.md index 9d8cb08417..f11089c16e 100644 --- a/docs/examples/1.8.x/console-web/examples/functions/list-executions.md +++ b/docs/examples/1.8.x/console-web/examples/functions/list-executions.md @@ -8,7 +8,7 @@ const functions = new Functions(client); const result = await functions.listExecutions({ functionId: '', - queries: [] + queries: [] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/functions/list-templates.md b/docs/examples/1.8.x/console-web/examples/functions/list-templates.md index 8a6069eed1..e98df543b3 100644 --- a/docs/examples/1.8.x/console-web/examples/functions/list-templates.md +++ b/docs/examples/1.8.x/console-web/examples/functions/list-templates.md @@ -7,10 +7,10 @@ const client = new Client() const functions = new Functions(client); const result = await functions.listTemplates({ - runtimes: [], - useCases: [], - limit: 1, - offset: 0 + runtimes: [], // optional + useCases: [], // optional + limit: 1, // optional + offset: 0 // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/functions/list-usage.md b/docs/examples/1.8.x/console-web/examples/functions/list-usage.md index ca250e956d..42035ec8f1 100644 --- a/docs/examples/1.8.x/console-web/examples/functions/list-usage.md +++ b/docs/examples/1.8.x/console-web/examples/functions/list-usage.md @@ -7,7 +7,7 @@ const client = new Client() const functions = new Functions(client); const result = await functions.listUsage({ - range: UsageRange.TwentyFourHours + range: UsageRange.TwentyFourHours // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/functions/list.md b/docs/examples/1.8.x/console-web/examples/functions/list.md index 381ec7ca0a..67e9db30dc 100644 --- a/docs/examples/1.8.x/console-web/examples/functions/list.md +++ b/docs/examples/1.8.x/console-web/examples/functions/list.md @@ -7,8 +7,8 @@ const client = new Client() const functions = new Functions(client); const result = await functions.list({ - queries: [], - search: '' + queries: [], // optional + search: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/functions/update-variable.md b/docs/examples/1.8.x/console-web/examples/functions/update-variable.md index b131a0edaa..6e1366ca0a 100644 --- a/docs/examples/1.8.x/console-web/examples/functions/update-variable.md +++ b/docs/examples/1.8.x/console-web/examples/functions/update-variable.md @@ -10,8 +10,8 @@ const result = await functions.updateVariable({ functionId: '', variableId: '', key: '', - value: '', - secret: false + value: '', // optional + secret: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/functions/update.md b/docs/examples/1.8.x/console-web/examples/functions/update.md index cf7d3edbba..377712bfb7 100644 --- a/docs/examples/1.8.x/console-web/examples/functions/update.md +++ b/docs/examples/1.8.x/console-web/examples/functions/update.md @@ -9,22 +9,22 @@ const functions = new Functions(client); const result = await functions.update({ functionId: '', name: '', - runtime: .Node145, - execute: ["any"], - events: [], - schedule: '', - timeout: 1, - enabled: false, - logging: false, - entrypoint: '', - commands: '', - scopes: [], - installationId: '', - providerRepositoryId: '', - providerBranch: '', - providerSilentMode: false, - providerRootDirectory: '', - specification: '' + runtime: .Node145, // optional + execute: ["any"], // optional + events: [], // optional + schedule: '', // optional + timeout: 1, // optional + enabled: false, // optional + logging: false, // optional + entrypoint: '', // optional + commands: '', // optional + scopes: [], // optional + installationId: '', // optional + providerRepositoryId: '', // optional + providerBranch: '', // optional + providerSilentMode: false, // optional + providerRootDirectory: '', // optional + specification: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-boolean-column.md b/docs/examples/1.8.x/console-web/examples/grids/create-boolean-column.md deleted file mode 100644 index 5a61510aa7..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/create-boolean-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.createBooleanColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - false, // default (optional) - false // array (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-database.md b/docs/examples/1.8.x/console-web/examples/grids/create-database.md deleted file mode 100644 index b7eeb33253..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/create-database.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.createDatabase( - '', // databaseId - '', // name - false // enabled (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-datetime-column.md b/docs/examples/1.8.x/console-web/examples/grids/create-datetime-column.md deleted file mode 100644 index 7580178d62..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/create-datetime-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.createDatetimeColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - '', // default (optional) - false // array (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-email-column.md b/docs/examples/1.8.x/console-web/examples/grids/create-email-column.md deleted file mode 100644 index 9e44cbbd66..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/create-email-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.createEmailColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - 'email@example.com', // default (optional) - false // array (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-enum-column.md b/docs/examples/1.8.x/console-web/examples/grids/create-enum-column.md deleted file mode 100644 index c596b1408a..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/create-enum-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.createEnumColumn( - '', // databaseId - '', // tableId - '', // key - [], // elements - false, // required - '', // default (optional) - false // array (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-float-column.md b/docs/examples/1.8.x/console-web/examples/grids/create-float-column.md deleted file mode 100644 index d1b4c21898..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/create-float-column.md +++ /dev/null @@ -1,20 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.createFloatColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - null, // min (optional) - null, // max (optional) - null, // default (optional) - false // array (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-index.md b/docs/examples/1.8.x/console-web/examples/grids/create-index.md deleted file mode 100644 index 2c22cafde8..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/create-index.md +++ /dev/null @@ -1,19 +0,0 @@ -import { Client, Grids, IndexType } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.createIndex( - '', // databaseId - '', // tableId - '', // key - IndexType.Key, // type - [], // columns - [], // orders (optional) - [] // lengths (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-integer-column.md b/docs/examples/1.8.x/console-web/examples/grids/create-integer-column.md deleted file mode 100644 index 709694e358..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/create-integer-column.md +++ /dev/null @@ -1,20 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.createIntegerColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - null, // min (optional) - null, // max (optional) - null, // default (optional) - false // array (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-ip-column.md b/docs/examples/1.8.x/console-web/examples/grids/create-ip-column.md deleted file mode 100644 index 1691d3fc81..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/create-ip-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.createIpColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - '', // default (optional) - false // array (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-relationship-column.md b/docs/examples/1.8.x/console-web/examples/grids/create-relationship-column.md deleted file mode 100644 index 5536e26488..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/create-relationship-column.md +++ /dev/null @@ -1,20 +0,0 @@ -import { Client, Grids, RelationshipType, RelationMutate } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.createRelationshipColumn( - '', // databaseId - '', // tableId - '', // relatedTableId - RelationshipType.OneToOne, // type - false, // twoWay (optional) - '', // key (optional) - '', // twoWayKey (optional) - RelationMutate.Cascade // onDelete (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-row.md b/docs/examples/1.8.x/console-web/examples/grids/create-row.md deleted file mode 100644 index f5259cff2d..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/create-row.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.createRow( - '', // databaseId - '', // tableId - '', // rowId - {}, // data - ["read("any")"] // permissions (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-rows.md b/docs/examples/1.8.x/console-web/examples/grids/create-rows.md deleted file mode 100644 index ff84c045cb..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/create-rows.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.createRows( - '', // databaseId - '', // tableId - [] // rows -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-string-column.md b/docs/examples/1.8.x/console-web/examples/grids/create-string-column.md deleted file mode 100644 index 4032caede0..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/create-string-column.md +++ /dev/null @@ -1,20 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.createStringColumn( - '', // databaseId - '', // tableId - '', // key - 1, // size - false, // required - '', // default (optional) - false, // array (optional) - false // encrypt (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-table.md b/docs/examples/1.8.x/console-web/examples/grids/create-table.md deleted file mode 100644 index 74227efe98..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/create-table.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.createTable( - '', // databaseId - '', // tableId - '', // name - ["read("any")"], // permissions (optional) - false, // rowSecurity (optional) - false // enabled (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/create-url-column.md b/docs/examples/1.8.x/console-web/examples/grids/create-url-column.md deleted file mode 100644 index 4991da6cd6..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/create-url-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.createUrlColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - 'https://example.com', // default (optional) - false // array (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/decrement-row-column.md b/docs/examples/1.8.x/console-web/examples/grids/decrement-row-column.md deleted file mode 100644 index 6e0abb0ac8..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/decrement-row-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.decrementRowColumn( - '', // databaseId - '', // tableId - '', // rowId - '', // column - null, // value (optional) - null // min (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/delete-column.md b/docs/examples/1.8.x/console-web/examples/grids/delete-column.md deleted file mode 100644 index 8e46121f01..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/delete-column.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.deleteColumn( - '', // databaseId - '', // tableId - '' // key -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/delete-database.md b/docs/examples/1.8.x/console-web/examples/grids/delete-database.md deleted file mode 100644 index b34b4adfdb..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/delete-database.md +++ /dev/null @@ -1,13 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.deleteDatabase( - '' // databaseId -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/delete-index.md b/docs/examples/1.8.x/console-web/examples/grids/delete-index.md deleted file mode 100644 index 9e405de80f..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/delete-index.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.deleteIndex( - '', // databaseId - '', // tableId - '' // key -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/delete-row.md b/docs/examples/1.8.x/console-web/examples/grids/delete-row.md deleted file mode 100644 index cc49130d4f..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/delete-row.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.deleteRow( - '', // databaseId - '', // tableId - '' // rowId -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/delete-rows.md b/docs/examples/1.8.x/console-web/examples/grids/delete-rows.md deleted file mode 100644 index fdaa4278fa..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/delete-rows.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.deleteRows( - '', // databaseId - '', // tableId - [] // queries (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/delete-table.md b/docs/examples/1.8.x/console-web/examples/grids/delete-table.md deleted file mode 100644 index 1817122ec3..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/delete-table.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.deleteTable( - '', // databaseId - '' // tableId -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/get-column.md b/docs/examples/1.8.x/console-web/examples/grids/get-column.md deleted file mode 100644 index 116cee2f24..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/get-column.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.getColumn( - '', // databaseId - '', // tableId - '' // key -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/get-database-usage.md b/docs/examples/1.8.x/console-web/examples/grids/get-database-usage.md deleted file mode 100644 index f961dc4fdf..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/get-database-usage.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Grids, DatabaseUsageRange } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.getDatabaseUsage( - '', // databaseId - DatabaseUsageRange.TwentyFourHours // range (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/get-database.md b/docs/examples/1.8.x/console-web/examples/grids/get-database.md deleted file mode 100644 index d41e9c2d45..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/get-database.md +++ /dev/null @@ -1,13 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.getDatabase( - '' // databaseId -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/get-index.md b/docs/examples/1.8.x/console-web/examples/grids/get-index.md deleted file mode 100644 index 34880a8c0e..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/get-index.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.getIndex( - '', // databaseId - '', // tableId - '' // key -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/get-row.md b/docs/examples/1.8.x/console-web/examples/grids/get-row.md deleted file mode 100644 index 29b51f2225..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/get-row.md +++ /dev/null @@ -1,16 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.getRow( - '', // databaseId - '', // tableId - '', // rowId - [] // queries (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/get-table-usage.md b/docs/examples/1.8.x/console-web/examples/grids/get-table-usage.md deleted file mode 100644 index 5684786fb7..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/get-table-usage.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Grids, GridUsageRange } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.getTableUsage( - '', // databaseId - '', // tableId - GridUsageRange.TwentyFourHours // range (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/get-table.md b/docs/examples/1.8.x/console-web/examples/grids/get-table.md deleted file mode 100644 index b98d321f28..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/get-table.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.getTable( - '', // databaseId - '' // tableId -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/increment-row-column.md b/docs/examples/1.8.x/console-web/examples/grids/increment-row-column.md deleted file mode 100644 index 5177cd6c08..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/increment-row-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.incrementRowColumn( - '', // databaseId - '', // tableId - '', // rowId - '', // column - null, // value (optional) - null // max (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/list-columns.md b/docs/examples/1.8.x/console-web/examples/grids/list-columns.md deleted file mode 100644 index cd72e91daf..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/list-columns.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.listColumns( - '', // databaseId - '', // tableId - [] // queries (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/list-database-logs.md b/docs/examples/1.8.x/console-web/examples/grids/list-database-logs.md deleted file mode 100644 index cf20dc6b49..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/list-database-logs.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.listDatabaseLogs( - '', // databaseId - [] // queries (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/list-database-usage.md b/docs/examples/1.8.x/console-web/examples/grids/list-database-usage.md deleted file mode 100644 index 09faf5f2f5..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/list-database-usage.md +++ /dev/null @@ -1,13 +0,0 @@ -import { Client, Grids, DatabaseUsageRange } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.listDatabaseUsage( - DatabaseUsageRange.TwentyFourHours // range (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/list-databases.md b/docs/examples/1.8.x/console-web/examples/grids/list-databases.md deleted file mode 100644 index 871d29ebe8..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/list-databases.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.listDatabases( - [], // queries (optional) - '' // search (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/list-indexes.md b/docs/examples/1.8.x/console-web/examples/grids/list-indexes.md deleted file mode 100644 index b8755d0b82..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/list-indexes.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.listIndexes( - '', // databaseId - '', // tableId - [] // queries (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/list-row-logs.md b/docs/examples/1.8.x/console-web/examples/grids/list-row-logs.md deleted file mode 100644 index 0fcde33520..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/list-row-logs.md +++ /dev/null @@ -1,16 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.listRowLogs( - '', // databaseId - '', // tableId - '', // rowId - [] // queries (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/list-rows.md b/docs/examples/1.8.x/console-web/examples/grids/list-rows.md deleted file mode 100644 index 4eb3b71407..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/list-rows.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.listRows( - '', // databaseId - '', // tableId - [] // queries (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/list-table-logs.md b/docs/examples/1.8.x/console-web/examples/grids/list-table-logs.md deleted file mode 100644 index e7f756886d..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/list-table-logs.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.listTableLogs( - '', // databaseId - '', // tableId - [] // queries (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/list-tables.md b/docs/examples/1.8.x/console-web/examples/grids/list-tables.md deleted file mode 100644 index 9288788dfe..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/list-tables.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.listTables( - '', // databaseId - [], // queries (optional) - '' // search (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/update-boolean-column.md b/docs/examples/1.8.x/console-web/examples/grids/update-boolean-column.md deleted file mode 100644 index 84dd95cd41..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/update-boolean-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.updateBooleanColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - false, // default - '' // newKey (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/update-database.md b/docs/examples/1.8.x/console-web/examples/grids/update-database.md deleted file mode 100644 index abd6b285fd..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/update-database.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.updateDatabase( - '', // databaseId - '', // name - false // enabled (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/update-datetime-column.md b/docs/examples/1.8.x/console-web/examples/grids/update-datetime-column.md deleted file mode 100644 index 81fa471471..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/update-datetime-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.updateDatetimeColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - '', // default - '' // newKey (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/update-email-column.md b/docs/examples/1.8.x/console-web/examples/grids/update-email-column.md deleted file mode 100644 index 3a63b0d4d3..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/update-email-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.updateEmailColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - 'email@example.com', // default - '' // newKey (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/update-enum-column.md b/docs/examples/1.8.x/console-web/examples/grids/update-enum-column.md deleted file mode 100644 index 7c6d2e1b03..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/update-enum-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.updateEnumColumn( - '', // databaseId - '', // tableId - '', // key - [], // elements - false, // required - '', // default - '' // newKey (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/update-float-column.md b/docs/examples/1.8.x/console-web/examples/grids/update-float-column.md deleted file mode 100644 index 6662f4b00f..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/update-float-column.md +++ /dev/null @@ -1,20 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.updateFloatColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - null, // default - null, // min (optional) - null, // max (optional) - '' // newKey (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/update-integer-column.md b/docs/examples/1.8.x/console-web/examples/grids/update-integer-column.md deleted file mode 100644 index 95c0510a1a..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/update-integer-column.md +++ /dev/null @@ -1,20 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.updateIntegerColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - null, // default - null, // min (optional) - null, // max (optional) - '' // newKey (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/update-ip-column.md b/docs/examples/1.8.x/console-web/examples/grids/update-ip-column.md deleted file mode 100644 index e92db67751..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/update-ip-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.updateIpColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - '', // default - '' // newKey (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/update-relationship-column.md b/docs/examples/1.8.x/console-web/examples/grids/update-relationship-column.md deleted file mode 100644 index bdfd71f71c..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/update-relationship-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Grids, RelationMutate } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.updateRelationshipColumn( - '', // databaseId - '', // tableId - '', // key - RelationMutate.Cascade, // onDelete (optional) - '' // newKey (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/update-row.md b/docs/examples/1.8.x/console-web/examples/grids/update-row.md deleted file mode 100644 index a86f5fd58b..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/update-row.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.updateRow( - '', // databaseId - '', // tableId - '', // rowId - {}, // data (optional) - ["read("any")"] // permissions (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/update-rows.md b/docs/examples/1.8.x/console-web/examples/grids/update-rows.md deleted file mode 100644 index 939615a5bd..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/update-rows.md +++ /dev/null @@ -1,16 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.updateRows( - '', // databaseId - '', // tableId - {}, // data (optional) - [] // queries (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/update-string-column.md b/docs/examples/1.8.x/console-web/examples/grids/update-string-column.md deleted file mode 100644 index b0b92f041e..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/update-string-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.updateStringColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - '', // default - 1, // size (optional) - '' // newKey (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/update-table.md b/docs/examples/1.8.x/console-web/examples/grids/update-table.md deleted file mode 100644 index 8988133beb..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/update-table.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.updateTable( - '', // databaseId - '', // tableId - '', // name - ["read("any")"], // permissions (optional) - false, // rowSecurity (optional) - false // enabled (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/update-url-column.md b/docs/examples/1.8.x/console-web/examples/grids/update-url-column.md deleted file mode 100644 index ecad0043a3..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/update-url-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.updateUrlColumn( - '', // databaseId - '', // tableId - '', // key - false, // required - 'https://example.com', // default - '' // newKey (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/upsert-row.md b/docs/examples/1.8.x/console-web/examples/grids/upsert-row.md deleted file mode 100644 index 66764b001a..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/upsert-row.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.upsertRow( - '', // databaseId - '', // tableId - '', // rowId - {}, // data (optional) - ["read("any")"] // permissions (optional) -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/grids/upsert-rows.md b/docs/examples/1.8.x/console-web/examples/grids/upsert-rows.md deleted file mode 100644 index b79a74d7e1..0000000000 --- a/docs/examples/1.8.x/console-web/examples/grids/upsert-rows.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Grids } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const grids = new Grids(client); - -const result = await grids.upsertRows( - '', // databaseId - '', // tableId - [] // rows -); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/health/get-certificate.md b/docs/examples/1.8.x/console-web/examples/health/get-certificate.md index 8d1809e86f..ebff42e2fa 100644 --- a/docs/examples/1.8.x/console-web/examples/health/get-certificate.md +++ b/docs/examples/1.8.x/console-web/examples/health/get-certificate.md @@ -7,7 +7,7 @@ const client = new Client() const health = new Health(client); const result = await health.getCertificate({ - domain: '' + domain: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/health/get-d-b.md b/docs/examples/1.8.x/console-web/examples/health/get-db.md similarity index 100% rename from docs/examples/1.8.x/console-web/examples/health/get-d-b.md rename to docs/examples/1.8.x/console-web/examples/health/get-db.md diff --git a/docs/examples/1.8.x/console-web/examples/health/get-failed-jobs.md b/docs/examples/1.8.x/console-web/examples/health/get-failed-jobs.md index c0878890c6..d0bac0cd6f 100644 --- a/docs/examples/1.8.x/console-web/examples/health/get-failed-jobs.md +++ b/docs/examples/1.8.x/console-web/examples/health/get-failed-jobs.md @@ -8,7 +8,7 @@ const health = new Health(client); const result = await health.getFailedJobs({ name: .V1Database, - threshold: null + threshold: null // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/health/get-queue-builds.md b/docs/examples/1.8.x/console-web/examples/health/get-queue-builds.md index ea98ea4db4..a9edbe1c7f 100644 --- a/docs/examples/1.8.x/console-web/examples/health/get-queue-builds.md +++ b/docs/examples/1.8.x/console-web/examples/health/get-queue-builds.md @@ -7,7 +7,7 @@ const client = new Client() const health = new Health(client); const result = await health.getQueueBuilds({ - threshold: null + threshold: null // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/health/get-queue-certificates.md b/docs/examples/1.8.x/console-web/examples/health/get-queue-certificates.md index ce5bfde60f..fb4656723f 100644 --- a/docs/examples/1.8.x/console-web/examples/health/get-queue-certificates.md +++ b/docs/examples/1.8.x/console-web/examples/health/get-queue-certificates.md @@ -7,7 +7,7 @@ const client = new Client() const health = new Health(client); const result = await health.getQueueCertificates({ - threshold: null + threshold: null // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/health/get-queue-databases.md b/docs/examples/1.8.x/console-web/examples/health/get-queue-databases.md index 733db857d8..6209742ce7 100644 --- a/docs/examples/1.8.x/console-web/examples/health/get-queue-databases.md +++ b/docs/examples/1.8.x/console-web/examples/health/get-queue-databases.md @@ -7,8 +7,8 @@ const client = new Client() const health = new Health(client); const result = await health.getQueueDatabases({ - name: '', - threshold: null + name: '', // optional + threshold: null // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/health/get-queue-deletes.md b/docs/examples/1.8.x/console-web/examples/health/get-queue-deletes.md index f35e376fe7..fcbb5b5e85 100644 --- a/docs/examples/1.8.x/console-web/examples/health/get-queue-deletes.md +++ b/docs/examples/1.8.x/console-web/examples/health/get-queue-deletes.md @@ -7,7 +7,7 @@ const client = new Client() const health = new Health(client); const result = await health.getQueueDeletes({ - threshold: null + threshold: null // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/health/get-queue-functions.md b/docs/examples/1.8.x/console-web/examples/health/get-queue-functions.md index 2188218329..c169fd946b 100644 --- a/docs/examples/1.8.x/console-web/examples/health/get-queue-functions.md +++ b/docs/examples/1.8.x/console-web/examples/health/get-queue-functions.md @@ -7,7 +7,7 @@ const client = new Client() const health = new Health(client); const result = await health.getQueueFunctions({ - threshold: null + threshold: null // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/health/get-queue-logs.md b/docs/examples/1.8.x/console-web/examples/health/get-queue-logs.md index 1defcad462..e71d80895e 100644 --- a/docs/examples/1.8.x/console-web/examples/health/get-queue-logs.md +++ b/docs/examples/1.8.x/console-web/examples/health/get-queue-logs.md @@ -7,7 +7,7 @@ const client = new Client() const health = new Health(client); const result = await health.getQueueLogs({ - threshold: null + threshold: null // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/health/get-queue-mails.md b/docs/examples/1.8.x/console-web/examples/health/get-queue-mails.md index 31a25b899a..fcb82acfa3 100644 --- a/docs/examples/1.8.x/console-web/examples/health/get-queue-mails.md +++ b/docs/examples/1.8.x/console-web/examples/health/get-queue-mails.md @@ -7,7 +7,7 @@ const client = new Client() const health = new Health(client); const result = await health.getQueueMails({ - threshold: null + threshold: null // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/health/get-queue-messaging.md b/docs/examples/1.8.x/console-web/examples/health/get-queue-messaging.md index 6ef8dd93e9..63d58e2363 100644 --- a/docs/examples/1.8.x/console-web/examples/health/get-queue-messaging.md +++ b/docs/examples/1.8.x/console-web/examples/health/get-queue-messaging.md @@ -7,7 +7,7 @@ const client = new Client() const health = new Health(client); const result = await health.getQueueMessaging({ - threshold: null + threshold: null // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/health/get-queue-migrations.md b/docs/examples/1.8.x/console-web/examples/health/get-queue-migrations.md index 783fe6ff15..3fa3110d7f 100644 --- a/docs/examples/1.8.x/console-web/examples/health/get-queue-migrations.md +++ b/docs/examples/1.8.x/console-web/examples/health/get-queue-migrations.md @@ -7,7 +7,7 @@ const client = new Client() const health = new Health(client); const result = await health.getQueueMigrations({ - threshold: null + threshold: null // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/health/get-queue-stats-resources.md b/docs/examples/1.8.x/console-web/examples/health/get-queue-stats-resources.md index 9e3b35b543..198b1558e8 100644 --- a/docs/examples/1.8.x/console-web/examples/health/get-queue-stats-resources.md +++ b/docs/examples/1.8.x/console-web/examples/health/get-queue-stats-resources.md @@ -7,7 +7,7 @@ const client = new Client() const health = new Health(client); const result = await health.getQueueStatsResources({ - threshold: null + threshold: null // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/health/get-queue-usage.md b/docs/examples/1.8.x/console-web/examples/health/get-queue-usage.md index b30238e6c9..e80c0d8bc1 100644 --- a/docs/examples/1.8.x/console-web/examples/health/get-queue-usage.md +++ b/docs/examples/1.8.x/console-web/examples/health/get-queue-usage.md @@ -7,7 +7,7 @@ const client = new Client() const health = new Health(client); const result = await health.getQueueUsage({ - threshold: null + threshold: null // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/health/get-queue-webhooks.md b/docs/examples/1.8.x/console-web/examples/health/get-queue-webhooks.md index 28a4bdf813..23a0169320 100644 --- a/docs/examples/1.8.x/console-web/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.8.x/console-web/examples/health/get-queue-webhooks.md @@ -7,7 +7,7 @@ const client = new Client() const health = new Health(client); const result = await health.getQueueWebhooks({ - threshold: null + threshold: null // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/locale/list-countries-e-u.md b/docs/examples/1.8.x/console-web/examples/locale/list-countries-eu.md similarity index 100% rename from docs/examples/1.8.x/console-web/examples/locale/list-countries-e-u.md rename to docs/examples/1.8.x/console-web/examples/locale/list-countries-eu.md diff --git a/docs/examples/1.8.x/console-web/examples/messaging/create-a-p-n-s-provider.md b/docs/examples/1.8.x/console-web/examples/messaging/create-a-p-n-s-provider.md deleted file mode 100644 index 8fc5b14c1c..0000000000 --- a/docs/examples/1.8.x/console-web/examples/messaging/create-a-p-n-s-provider.md +++ /dev/null @@ -1,20 +0,0 @@ -import { Client, Messaging } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const messaging = new Messaging(client); - -const result = await messaging.createAPNSProvider({ - providerId: '', - name: '', - authKey: '', - authKeyId: '', - teamId: '', - bundleId: '', - sandbox: false, - enabled: false -}); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/messaging/create-apns-provider.md b/docs/examples/1.8.x/console-web/examples/messaging/create-apns-provider.md index 77a53bc41f..4b65337d49 100644 --- a/docs/examples/1.8.x/console-web/examples/messaging/create-apns-provider.md +++ b/docs/examples/1.8.x/console-web/examples/messaging/create-apns-provider.md @@ -6,15 +6,15 @@ const client = new Client() const messaging = new Messaging(client); -const result = await messaging.createApnsProvider({ +const result = await messaging.createAPNSProvider({ providerId: '', name: '', - authKey: '', - authKeyId: '', - teamId: '', - bundleId: '', - sandbox: false, - enabled: false + authKey: '', // optional + authKeyId: '', // optional + teamId: '', // optional + bundleId: '', // optional + sandbox: false, // optional + enabled: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/messaging/create-email.md b/docs/examples/1.8.x/console-web/examples/messaging/create-email.md index 0627d831a0..fa84304cc6 100644 --- a/docs/examples/1.8.x/console-web/examples/messaging/create-email.md +++ b/docs/examples/1.8.x/console-web/examples/messaging/create-email.md @@ -10,15 +10,15 @@ const result = await messaging.createEmail({ messageId: '', subject: '', content: '', - topics: [], - users: [], - targets: [], - cc: [], - bcc: [], - attachments: [], - draft: false, - html: false, - scheduledAt: '' + topics: [], // optional + users: [], // optional + targets: [], // optional + cc: [], // optional + bcc: [], // optional + attachments: [], // optional + draft: false, // optional + html: false, // optional + scheduledAt: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/messaging/create-f-c-m-provider.md b/docs/examples/1.8.x/console-web/examples/messaging/create-f-c-m-provider.md deleted file mode 100644 index 72224a1a69..0000000000 --- a/docs/examples/1.8.x/console-web/examples/messaging/create-f-c-m-provider.md +++ /dev/null @@ -1,16 +0,0 @@ -import { Client, Messaging } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint - .setProject(''); // Your project ID - -const messaging = new Messaging(client); - -const result = await messaging.createFCMProvider({ - providerId: '', - name: '', - serviceAccountJSON: {}, - enabled: false -}); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/messaging/create-fcm-provider.md b/docs/examples/1.8.x/console-web/examples/messaging/create-fcm-provider.md index edb95040d5..6586ffbc5e 100644 --- a/docs/examples/1.8.x/console-web/examples/messaging/create-fcm-provider.md +++ b/docs/examples/1.8.x/console-web/examples/messaging/create-fcm-provider.md @@ -6,11 +6,11 @@ const client = new Client() const messaging = new Messaging(client); -const result = await messaging.createFcmProvider({ +const result = await messaging.createFCMProvider({ providerId: '', name: '', - serviceAccountJSON: {}, - enabled: false + serviceAccountJSON: {}, // optional + enabled: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/messaging/create-mailgun-provider.md b/docs/examples/1.8.x/console-web/examples/messaging/create-mailgun-provider.md index 1cc121edab..10c58cc7b6 100644 --- a/docs/examples/1.8.x/console-web/examples/messaging/create-mailgun-provider.md +++ b/docs/examples/1.8.x/console-web/examples/messaging/create-mailgun-provider.md @@ -9,14 +9,14 @@ const messaging = new Messaging(client); const result = await messaging.createMailgunProvider({ providerId: '', name: '', - apiKey: '', - domain: '', - isEuRegion: false, - fromName: '', - fromEmail: 'email@example.com', - replyToName: '', - replyToEmail: 'email@example.com', - enabled: false + apiKey: '', // optional + domain: '', // optional + isEuRegion: false, // optional + fromName: '', // optional + fromEmail: 'email@example.com', // optional + replyToName: '', // optional + replyToEmail: 'email@example.com', // optional + enabled: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/messaging/create-msg91provider.md b/docs/examples/1.8.x/console-web/examples/messaging/create-msg-91-provider.md similarity index 71% rename from docs/examples/1.8.x/console-web/examples/messaging/create-msg91provider.md rename to docs/examples/1.8.x/console-web/examples/messaging/create-msg-91-provider.md index 37b26bd335..7efa2df1be 100644 --- a/docs/examples/1.8.x/console-web/examples/messaging/create-msg91provider.md +++ b/docs/examples/1.8.x/console-web/examples/messaging/create-msg-91-provider.md @@ -9,10 +9,10 @@ const messaging = new Messaging(client); const result = await messaging.createMsg91Provider({ providerId: '', name: '', - templateId: '', - senderId: '', - authKey: '', - enabled: false + templateId: '', // optional + senderId: '', // optional + authKey: '', // optional + enabled: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/messaging/create-push.md b/docs/examples/1.8.x/console-web/examples/messaging/create-push.md index 2c386f7762..f0f54aa72f 100644 --- a/docs/examples/1.8.x/console-web/examples/messaging/create-push.md +++ b/docs/examples/1.8.x/console-web/examples/messaging/create-push.md @@ -8,24 +8,24 @@ const messaging = new Messaging(client); const result = await messaging.createPush({ messageId: '', - title: '', - body: '<BODY>', - topics: [], - users: [], - targets: [], - data: {}, - action: '<ACTION>', - image: '[ID1:ID2]', - icon: '<ICON>', - sound: '<SOUND>', - color: '<COLOR>', - tag: '<TAG>', - badge: null, - draft: false, - scheduledAt: '', - contentAvailable: false, - critical: false, - priority: MessagePriority.Normal + title: '<TITLE>', // optional + body: '<BODY>', // optional + topics: [], // optional + users: [], // optional + targets: [], // optional + data: {}, // optional + action: '<ACTION>', // optional + image: '[ID1:ID2]', // optional + icon: '<ICON>', // optional + sound: '<SOUND>', // optional + color: '<COLOR>', // optional + tag: '<TAG>', // optional + badge: null, // optional + draft: false, // optional + scheduledAt: '', // optional + contentAvailable: false, // optional + critical: false, // optional + priority: MessagePriority.Normal // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/messaging/create-s-m-s.md b/docs/examples/1.8.x/console-web/examples/messaging/create-s-m-s.md deleted file mode 100644 index a539155c73..0000000000 --- a/docs/examples/1.8.x/console-web/examples/messaging/create-s-m-s.md +++ /dev/null @@ -1,19 +0,0 @@ -import { Client, Messaging } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>'); // Your project ID - -const messaging = new Messaging(client); - -const result = await messaging.createSMS({ - messageId: '<MESSAGE_ID>', - content: '<CONTENT>', - topics: [], - users: [], - targets: [], - draft: false, - scheduledAt: '' -}); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/messaging/create-s-m-t-p-provider.md b/docs/examples/1.8.x/console-web/examples/messaging/create-s-m-t-p-provider.md deleted file mode 100644 index e4af5103bc..0000000000 --- a/docs/examples/1.8.x/console-web/examples/messaging/create-s-m-t-p-provider.md +++ /dev/null @@ -1,26 +0,0 @@ -import { Client, Messaging, SmtpEncryption } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>'); // Your project ID - -const messaging = new Messaging(client); - -const result = await messaging.createSMTPProvider({ - providerId: '<PROVIDER_ID>', - name: '<NAME>', - host: '<HOST>', - port: 1, - username: '<USERNAME>', - password: '<PASSWORD>', - encryption: SmtpEncryption.None, - autoTLS: false, - mailer: '<MAILER>', - fromName: '<FROM_NAME>', - fromEmail: 'email@example.com', - replyToName: '<REPLY_TO_NAME>', - replyToEmail: 'email@example.com', - enabled: false -}); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.8.x/console-web/examples/messaging/create-sendgrid-provider.md index eb52bc3a43..51b6096e64 100644 --- a/docs/examples/1.8.x/console-web/examples/messaging/create-sendgrid-provider.md +++ b/docs/examples/1.8.x/console-web/examples/messaging/create-sendgrid-provider.md @@ -9,12 +9,12 @@ const messaging = new Messaging(client); const result = await messaging.createSendgridProvider({ providerId: '<PROVIDER_ID>', name: '<NAME>', - apiKey: '<API_KEY>', - fromName: '<FROM_NAME>', - fromEmail: 'email@example.com', - replyToName: '<REPLY_TO_NAME>', - replyToEmail: 'email@example.com', - enabled: false + apiKey: '<API_KEY>', // optional + fromName: '<FROM_NAME>', // optional + fromEmail: 'email@example.com', // optional + replyToName: '<REPLY_TO_NAME>', // optional + replyToEmail: 'email@example.com', // optional + enabled: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/messaging/create-sms.md b/docs/examples/1.8.x/console-web/examples/messaging/create-sms.md index 5f2f65e1a8..3130ee8835 100644 --- a/docs/examples/1.8.x/console-web/examples/messaging/create-sms.md +++ b/docs/examples/1.8.x/console-web/examples/messaging/create-sms.md @@ -6,14 +6,14 @@ const client = new Client() const messaging = new Messaging(client); -const result = await messaging.createSms({ +const result = await messaging.createSMS({ messageId: '<MESSAGE_ID>', content: '<CONTENT>', - topics: [], - users: [], - targets: [], - draft: false, - scheduledAt: '' + topics: [], // optional + users: [], // optional + targets: [], // optional + draft: false, // optional + scheduledAt: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/messaging/create-smtp-provider.md b/docs/examples/1.8.x/console-web/examples/messaging/create-smtp-provider.md index 29bd0c8da3..77033deae2 100644 --- a/docs/examples/1.8.x/console-web/examples/messaging/create-smtp-provider.md +++ b/docs/examples/1.8.x/console-web/examples/messaging/create-smtp-provider.md @@ -6,21 +6,21 @@ const client = new Client() const messaging = new Messaging(client); -const result = await messaging.createSmtpProvider({ +const result = await messaging.createSMTPProvider({ providerId: '<PROVIDER_ID>', name: '<NAME>', host: '<HOST>', - port: 1, - username: '<USERNAME>', - password: '<PASSWORD>', - encryption: SmtpEncryption.None, - autoTLS: false, - mailer: '<MAILER>', - fromName: '<FROM_NAME>', - fromEmail: 'email@example.com', - replyToName: '<REPLY_TO_NAME>', - replyToEmail: 'email@example.com', - enabled: false + port: 1, // optional + username: '<USERNAME>', // optional + password: '<PASSWORD>', // optional + encryption: SmtpEncryption.None, // optional + autoTLS: false, // optional + mailer: '<MAILER>', // optional + fromName: '<FROM_NAME>', // optional + fromEmail: 'email@example.com', // optional + replyToName: '<REPLY_TO_NAME>', // optional + replyToEmail: 'email@example.com', // optional + enabled: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/messaging/create-telesign-provider.md b/docs/examples/1.8.x/console-web/examples/messaging/create-telesign-provider.md index 8f5094d6cd..9e5d344964 100644 --- a/docs/examples/1.8.x/console-web/examples/messaging/create-telesign-provider.md +++ b/docs/examples/1.8.x/console-web/examples/messaging/create-telesign-provider.md @@ -9,10 +9,10 @@ const messaging = new Messaging(client); const result = await messaging.createTelesignProvider({ providerId: '<PROVIDER_ID>', name: '<NAME>', - from: '+12065550100', - customerId: '<CUSTOMER_ID>', - apiKey: '<API_KEY>', - enabled: false + from: '+12065550100', // optional + customerId: '<CUSTOMER_ID>', // optional + apiKey: '<API_KEY>', // optional + enabled: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/messaging/create-textmagic-provider.md b/docs/examples/1.8.x/console-web/examples/messaging/create-textmagic-provider.md index c55b055855..fc48d32d01 100644 --- a/docs/examples/1.8.x/console-web/examples/messaging/create-textmagic-provider.md +++ b/docs/examples/1.8.x/console-web/examples/messaging/create-textmagic-provider.md @@ -9,10 +9,10 @@ const messaging = new Messaging(client); const result = await messaging.createTextmagicProvider({ providerId: '<PROVIDER_ID>', name: '<NAME>', - from: '+12065550100', - username: '<USERNAME>', - apiKey: '<API_KEY>', - enabled: false + from: '+12065550100', // optional + username: '<USERNAME>', // optional + apiKey: '<API_KEY>', // optional + enabled: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/messaging/create-topic.md b/docs/examples/1.8.x/console-web/examples/messaging/create-topic.md index c3cb6cac40..4fb72cbeb3 100644 --- a/docs/examples/1.8.x/console-web/examples/messaging/create-topic.md +++ b/docs/examples/1.8.x/console-web/examples/messaging/create-topic.md @@ -9,7 +9,7 @@ const messaging = new Messaging(client); const result = await messaging.createTopic({ topicId: '<TOPIC_ID>', name: '<NAME>', - subscribe: ["any"] + subscribe: ["any"] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/messaging/create-twilio-provider.md b/docs/examples/1.8.x/console-web/examples/messaging/create-twilio-provider.md index 4d5d1bd671..9997303d69 100644 --- a/docs/examples/1.8.x/console-web/examples/messaging/create-twilio-provider.md +++ b/docs/examples/1.8.x/console-web/examples/messaging/create-twilio-provider.md @@ -9,10 +9,10 @@ const messaging = new Messaging(client); const result = await messaging.createTwilioProvider({ providerId: '<PROVIDER_ID>', name: '<NAME>', - from: '+12065550100', - accountSid: '<ACCOUNT_SID>', - authToken: '<AUTH_TOKEN>', - enabled: false + from: '+12065550100', // optional + accountSid: '<ACCOUNT_SID>', // optional + authToken: '<AUTH_TOKEN>', // optional + enabled: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/messaging/create-vonage-provider.md b/docs/examples/1.8.x/console-web/examples/messaging/create-vonage-provider.md index 6de1d6014a..342922cb03 100644 --- a/docs/examples/1.8.x/console-web/examples/messaging/create-vonage-provider.md +++ b/docs/examples/1.8.x/console-web/examples/messaging/create-vonage-provider.md @@ -9,10 +9,10 @@ const messaging = new Messaging(client); const result = await messaging.createVonageProvider({ providerId: '<PROVIDER_ID>', name: '<NAME>', - from: '+12065550100', - apiKey: '<API_KEY>', - apiSecret: '<API_SECRET>', - enabled: false + from: '+12065550100', // optional + apiKey: '<API_KEY>', // optional + apiSecret: '<API_SECRET>', // optional + enabled: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/messaging/list-message-logs.md b/docs/examples/1.8.x/console-web/examples/messaging/list-message-logs.md index 05351f0cd5..1ad57feadf 100644 --- a/docs/examples/1.8.x/console-web/examples/messaging/list-message-logs.md +++ b/docs/examples/1.8.x/console-web/examples/messaging/list-message-logs.md @@ -8,7 +8,7 @@ const messaging = new Messaging(client); const result = await messaging.listMessageLogs({ messageId: '<MESSAGE_ID>', - queries: [] + queries: [] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/messaging/list-messages.md b/docs/examples/1.8.x/console-web/examples/messaging/list-messages.md index e4d079aae4..b003dc219e 100644 --- a/docs/examples/1.8.x/console-web/examples/messaging/list-messages.md +++ b/docs/examples/1.8.x/console-web/examples/messaging/list-messages.md @@ -7,8 +7,8 @@ const client = new Client() const messaging = new Messaging(client); const result = await messaging.listMessages({ - queries: [], - search: '<SEARCH>' + queries: [], // optional + search: '<SEARCH>' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/messaging/list-provider-logs.md b/docs/examples/1.8.x/console-web/examples/messaging/list-provider-logs.md index 4a3aec87ee..c40c50899e 100644 --- a/docs/examples/1.8.x/console-web/examples/messaging/list-provider-logs.md +++ b/docs/examples/1.8.x/console-web/examples/messaging/list-provider-logs.md @@ -8,7 +8,7 @@ const messaging = new Messaging(client); const result = await messaging.listProviderLogs({ providerId: '<PROVIDER_ID>', - queries: [] + queries: [] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/messaging/list-providers.md b/docs/examples/1.8.x/console-web/examples/messaging/list-providers.md index 0b509a3928..f45da6437e 100644 --- a/docs/examples/1.8.x/console-web/examples/messaging/list-providers.md +++ b/docs/examples/1.8.x/console-web/examples/messaging/list-providers.md @@ -7,8 +7,8 @@ const client = new Client() const messaging = new Messaging(client); const result = await messaging.listProviders({ - queries: [], - search: '<SEARCH>' + queries: [], // optional + search: '<SEARCH>' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/messaging/list-subscriber-logs.md b/docs/examples/1.8.x/console-web/examples/messaging/list-subscriber-logs.md index be4b026d95..34fea03b79 100644 --- a/docs/examples/1.8.x/console-web/examples/messaging/list-subscriber-logs.md +++ b/docs/examples/1.8.x/console-web/examples/messaging/list-subscriber-logs.md @@ -8,7 +8,7 @@ const messaging = new Messaging(client); const result = await messaging.listSubscriberLogs({ subscriberId: '<SUBSCRIBER_ID>', - queries: [] + queries: [] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/messaging/list-subscribers.md b/docs/examples/1.8.x/console-web/examples/messaging/list-subscribers.md index 47680fed37..afe8374f9f 100644 --- a/docs/examples/1.8.x/console-web/examples/messaging/list-subscribers.md +++ b/docs/examples/1.8.x/console-web/examples/messaging/list-subscribers.md @@ -8,8 +8,8 @@ const messaging = new Messaging(client); const result = await messaging.listSubscribers({ topicId: '<TOPIC_ID>', - queries: [], - search: '<SEARCH>' + queries: [], // optional + search: '<SEARCH>' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/messaging/list-targets.md b/docs/examples/1.8.x/console-web/examples/messaging/list-targets.md index 6a99e3e17c..eb9ae44a0c 100644 --- a/docs/examples/1.8.x/console-web/examples/messaging/list-targets.md +++ b/docs/examples/1.8.x/console-web/examples/messaging/list-targets.md @@ -8,7 +8,7 @@ const messaging = new Messaging(client); const result = await messaging.listTargets({ messageId: '<MESSAGE_ID>', - queries: [] + queries: [] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/messaging/list-topic-logs.md b/docs/examples/1.8.x/console-web/examples/messaging/list-topic-logs.md index 01388438f4..e44e2643e7 100644 --- a/docs/examples/1.8.x/console-web/examples/messaging/list-topic-logs.md +++ b/docs/examples/1.8.x/console-web/examples/messaging/list-topic-logs.md @@ -8,7 +8,7 @@ const messaging = new Messaging(client); const result = await messaging.listTopicLogs({ topicId: '<TOPIC_ID>', - queries: [] + queries: [] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/messaging/list-topics.md b/docs/examples/1.8.x/console-web/examples/messaging/list-topics.md index d270253fbe..f775eb8fe3 100644 --- a/docs/examples/1.8.x/console-web/examples/messaging/list-topics.md +++ b/docs/examples/1.8.x/console-web/examples/messaging/list-topics.md @@ -7,8 +7,8 @@ const client = new Client() const messaging = new Messaging(client); const result = await messaging.listTopics({ - queries: [], - search: '<SEARCH>' + queries: [], // optional + search: '<SEARCH>' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/messaging/update-a-p-n-s-provider.md b/docs/examples/1.8.x/console-web/examples/messaging/update-a-p-n-s-provider.md deleted file mode 100644 index 4f80e9c9b4..0000000000 --- a/docs/examples/1.8.x/console-web/examples/messaging/update-a-p-n-s-provider.md +++ /dev/null @@ -1,20 +0,0 @@ -import { Client, Messaging } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>'); // Your project ID - -const messaging = new Messaging(client); - -const result = await messaging.updateAPNSProvider({ - providerId: '<PROVIDER_ID>', - name: '<NAME>', - enabled: false, - authKey: '<AUTH_KEY>', - authKeyId: '<AUTH_KEY_ID>', - teamId: '<TEAM_ID>', - bundleId: '<BUNDLE_ID>', - sandbox: false -}); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/messaging/update-apns-provider.md b/docs/examples/1.8.x/console-web/examples/messaging/update-apns-provider.md index 202ff83bcc..b48c5fe4ae 100644 --- a/docs/examples/1.8.x/console-web/examples/messaging/update-apns-provider.md +++ b/docs/examples/1.8.x/console-web/examples/messaging/update-apns-provider.md @@ -6,15 +6,15 @@ const client = new Client() const messaging = new Messaging(client); -const result = await messaging.updateApnsProvider({ +const result = await messaging.updateAPNSProvider({ providerId: '<PROVIDER_ID>', - name: '<NAME>', - enabled: false, - authKey: '<AUTH_KEY>', - authKeyId: '<AUTH_KEY_ID>', - teamId: '<TEAM_ID>', - bundleId: '<BUNDLE_ID>', - sandbox: false + name: '<NAME>', // optional + enabled: false, // optional + authKey: '<AUTH_KEY>', // optional + authKeyId: '<AUTH_KEY_ID>', // optional + teamId: '<TEAM_ID>', // optional + bundleId: '<BUNDLE_ID>', // optional + sandbox: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/messaging/update-email.md b/docs/examples/1.8.x/console-web/examples/messaging/update-email.md index d4349ed3b6..deda783ff3 100644 --- a/docs/examples/1.8.x/console-web/examples/messaging/update-email.md +++ b/docs/examples/1.8.x/console-web/examples/messaging/update-email.md @@ -8,17 +8,17 @@ const messaging = new Messaging(client); const result = await messaging.updateEmail({ messageId: '<MESSAGE_ID>', - topics: [], - users: [], - targets: [], - subject: '<SUBJECT>', - content: '<CONTENT>', - draft: false, - html: false, - cc: [], - bcc: [], - scheduledAt: '', - attachments: [] + topics: [], // optional + users: [], // optional + targets: [], // optional + subject: '<SUBJECT>', // optional + content: '<CONTENT>', // optional + draft: false, // optional + html: false, // optional + cc: [], // optional + bcc: [], // optional + scheduledAt: '', // optional + attachments: [] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/messaging/update-f-c-m-provider.md b/docs/examples/1.8.x/console-web/examples/messaging/update-f-c-m-provider.md deleted file mode 100644 index 8baa95d444..0000000000 --- a/docs/examples/1.8.x/console-web/examples/messaging/update-f-c-m-provider.md +++ /dev/null @@ -1,16 +0,0 @@ -import { Client, Messaging } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>'); // Your project ID - -const messaging = new Messaging(client); - -const result = await messaging.updateFCMProvider({ - providerId: '<PROVIDER_ID>', - name: '<NAME>', - enabled: false, - serviceAccountJSON: {} -}); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/messaging/update-fcm-provider.md b/docs/examples/1.8.x/console-web/examples/messaging/update-fcm-provider.md index 4f59496941..55e4ccbec2 100644 --- a/docs/examples/1.8.x/console-web/examples/messaging/update-fcm-provider.md +++ b/docs/examples/1.8.x/console-web/examples/messaging/update-fcm-provider.md @@ -6,11 +6,11 @@ const client = new Client() const messaging = new Messaging(client); -const result = await messaging.updateFcmProvider({ +const result = await messaging.updateFCMProvider({ providerId: '<PROVIDER_ID>', - name: '<NAME>', - enabled: false, - serviceAccountJSON: {} + name: '<NAME>', // optional + enabled: false, // optional + serviceAccountJSON: {} // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/messaging/update-mailgun-provider.md b/docs/examples/1.8.x/console-web/examples/messaging/update-mailgun-provider.md index 753749e30f..4e5a9199f9 100644 --- a/docs/examples/1.8.x/console-web/examples/messaging/update-mailgun-provider.md +++ b/docs/examples/1.8.x/console-web/examples/messaging/update-mailgun-provider.md @@ -8,15 +8,15 @@ const messaging = new Messaging(client); const result = await messaging.updateMailgunProvider({ providerId: '<PROVIDER_ID>', - name: '<NAME>', - apiKey: '<API_KEY>', - domain: '<DOMAIN>', - isEuRegion: false, - enabled: false, - fromName: '<FROM_NAME>', - fromEmail: 'email@example.com', - replyToName: '<REPLY_TO_NAME>', - replyToEmail: '<REPLY_TO_EMAIL>' + name: '<NAME>', // optional + apiKey: '<API_KEY>', // optional + domain: '<DOMAIN>', // optional + isEuRegion: false, // optional + enabled: false, // optional + fromName: '<FROM_NAME>', // optional + fromEmail: 'email@example.com', // optional + replyToName: '<REPLY_TO_NAME>', // optional + replyToEmail: '<REPLY_TO_EMAIL>' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/messaging/update-msg91provider.md b/docs/examples/1.8.x/console-web/examples/messaging/update-msg-91-provider.md similarity index 66% rename from docs/examples/1.8.x/console-web/examples/messaging/update-msg91provider.md rename to docs/examples/1.8.x/console-web/examples/messaging/update-msg-91-provider.md index 3c6c66d0a7..369443fc61 100644 --- a/docs/examples/1.8.x/console-web/examples/messaging/update-msg91provider.md +++ b/docs/examples/1.8.x/console-web/examples/messaging/update-msg-91-provider.md @@ -8,11 +8,11 @@ const messaging = new Messaging(client); const result = await messaging.updateMsg91Provider({ providerId: '<PROVIDER_ID>', - name: '<NAME>', - enabled: false, - templateId: '<TEMPLATE_ID>', - senderId: '<SENDER_ID>', - authKey: '<AUTH_KEY>' + name: '<NAME>', // optional + enabled: false, // optional + templateId: '<TEMPLATE_ID>', // optional + senderId: '<SENDER_ID>', // optional + authKey: '<AUTH_KEY>' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/messaging/update-push.md b/docs/examples/1.8.x/console-web/examples/messaging/update-push.md index 843233a71b..5f5d6e5da2 100644 --- a/docs/examples/1.8.x/console-web/examples/messaging/update-push.md +++ b/docs/examples/1.8.x/console-web/examples/messaging/update-push.md @@ -8,24 +8,24 @@ const messaging = new Messaging(client); const result = await messaging.updatePush({ messageId: '<MESSAGE_ID>', - topics: [], - users: [], - targets: [], - title: '<TITLE>', - body: '<BODY>', - data: {}, - action: '<ACTION>', - image: '[ID1:ID2]', - icon: '<ICON>', - sound: '<SOUND>', - color: '<COLOR>', - tag: '<TAG>', - badge: null, - draft: false, - scheduledAt: '', - contentAvailable: false, - critical: false, - priority: MessagePriority.Normal + topics: [], // optional + users: [], // optional + targets: [], // optional + title: '<TITLE>', // optional + body: '<BODY>', // optional + data: {}, // optional + action: '<ACTION>', // optional + image: '[ID1:ID2]', // optional + icon: '<ICON>', // optional + sound: '<SOUND>', // optional + color: '<COLOR>', // optional + tag: '<TAG>', // optional + badge: null, // optional + draft: false, // optional + scheduledAt: '', // optional + contentAvailable: false, // optional + critical: false, // optional + priority: MessagePriority.Normal // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/messaging/update-s-m-s.md b/docs/examples/1.8.x/console-web/examples/messaging/update-s-m-s.md deleted file mode 100644 index 5737aa5394..0000000000 --- a/docs/examples/1.8.x/console-web/examples/messaging/update-s-m-s.md +++ /dev/null @@ -1,19 +0,0 @@ -import { Client, Messaging } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>'); // Your project ID - -const messaging = new Messaging(client); - -const result = await messaging.updateSMS({ - messageId: '<MESSAGE_ID>', - topics: [], - users: [], - targets: [], - content: '<CONTENT>', - draft: false, - scheduledAt: '' -}); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/messaging/update-s-m-t-p-provider.md b/docs/examples/1.8.x/console-web/examples/messaging/update-s-m-t-p-provider.md deleted file mode 100644 index 28e25c7e5d..0000000000 --- a/docs/examples/1.8.x/console-web/examples/messaging/update-s-m-t-p-provider.md +++ /dev/null @@ -1,26 +0,0 @@ -import { Client, Messaging, SmtpEncryption } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>'); // Your project ID - -const messaging = new Messaging(client); - -const result = await messaging.updateSMTPProvider({ - providerId: '<PROVIDER_ID>', - name: '<NAME>', - host: '<HOST>', - port: 1, - username: '<USERNAME>', - password: '<PASSWORD>', - encryption: SmtpEncryption.None, - autoTLS: false, - mailer: '<MAILER>', - fromName: '<FROM_NAME>', - fromEmail: 'email@example.com', - replyToName: '<REPLY_TO_NAME>', - replyToEmail: '<REPLY_TO_EMAIL>', - enabled: false -}); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.8.x/console-web/examples/messaging/update-sendgrid-provider.md index d508974455..46608a3bb3 100644 --- a/docs/examples/1.8.x/console-web/examples/messaging/update-sendgrid-provider.md +++ b/docs/examples/1.8.x/console-web/examples/messaging/update-sendgrid-provider.md @@ -8,13 +8,13 @@ const messaging = new Messaging(client); const result = await messaging.updateSendgridProvider({ providerId: '<PROVIDER_ID>', - name: '<NAME>', - enabled: false, - apiKey: '<API_KEY>', - fromName: '<FROM_NAME>', - fromEmail: 'email@example.com', - replyToName: '<REPLY_TO_NAME>', - replyToEmail: '<REPLY_TO_EMAIL>' + name: '<NAME>', // optional + enabled: false, // optional + apiKey: '<API_KEY>', // optional + fromName: '<FROM_NAME>', // optional + fromEmail: 'email@example.com', // optional + replyToName: '<REPLY_TO_NAME>', // optional + replyToEmail: '<REPLY_TO_EMAIL>' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/messaging/update-sms.md b/docs/examples/1.8.x/console-web/examples/messaging/update-sms.md index df3dad21a3..f121f7e865 100644 --- a/docs/examples/1.8.x/console-web/examples/messaging/update-sms.md +++ b/docs/examples/1.8.x/console-web/examples/messaging/update-sms.md @@ -6,14 +6,14 @@ const client = new Client() const messaging = new Messaging(client); -const result = await messaging.updateSms({ +const result = await messaging.updateSMS({ messageId: '<MESSAGE_ID>', - topics: [], - users: [], - targets: [], - content: '<CONTENT>', - draft: false, - scheduledAt: '' + topics: [], // optional + users: [], // optional + targets: [], // optional + content: '<CONTENT>', // optional + draft: false, // optional + scheduledAt: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/messaging/update-smtp-provider.md b/docs/examples/1.8.x/console-web/examples/messaging/update-smtp-provider.md index 639301058e..254c23e12b 100644 --- a/docs/examples/1.8.x/console-web/examples/messaging/update-smtp-provider.md +++ b/docs/examples/1.8.x/console-web/examples/messaging/update-smtp-provider.md @@ -6,21 +6,21 @@ const client = new Client() const messaging = new Messaging(client); -const result = await messaging.updateSmtpProvider({ +const result = await messaging.updateSMTPProvider({ providerId: '<PROVIDER_ID>', - name: '<NAME>', - host: '<HOST>', - port: 1, - username: '<USERNAME>', - password: '<PASSWORD>', - encryption: SmtpEncryption.None, - autoTLS: false, - mailer: '<MAILER>', - fromName: '<FROM_NAME>', - fromEmail: 'email@example.com', - replyToName: '<REPLY_TO_NAME>', - replyToEmail: '<REPLY_TO_EMAIL>', - enabled: false + name: '<NAME>', // optional + host: '<HOST>', // optional + port: 1, // optional + username: '<USERNAME>', // optional + password: '<PASSWORD>', // optional + encryption: SmtpEncryption.None, // optional + autoTLS: false, // optional + mailer: '<MAILER>', // optional + fromName: '<FROM_NAME>', // optional + fromEmail: 'email@example.com', // optional + replyToName: '<REPLY_TO_NAME>', // optional + replyToEmail: '<REPLY_TO_EMAIL>', // optional + enabled: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/messaging/update-telesign-provider.md b/docs/examples/1.8.x/console-web/examples/messaging/update-telesign-provider.md index 2a5d3082e8..1df2779ce1 100644 --- a/docs/examples/1.8.x/console-web/examples/messaging/update-telesign-provider.md +++ b/docs/examples/1.8.x/console-web/examples/messaging/update-telesign-provider.md @@ -8,11 +8,11 @@ const messaging = new Messaging(client); const result = await messaging.updateTelesignProvider({ providerId: '<PROVIDER_ID>', - name: '<NAME>', - enabled: false, - customerId: '<CUSTOMER_ID>', - apiKey: '<API_KEY>', - from: '<FROM>' + name: '<NAME>', // optional + enabled: false, // optional + customerId: '<CUSTOMER_ID>', // optional + apiKey: '<API_KEY>', // optional + from: '<FROM>' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/messaging/update-textmagic-provider.md b/docs/examples/1.8.x/console-web/examples/messaging/update-textmagic-provider.md index c807607875..c739e0cd02 100644 --- a/docs/examples/1.8.x/console-web/examples/messaging/update-textmagic-provider.md +++ b/docs/examples/1.8.x/console-web/examples/messaging/update-textmagic-provider.md @@ -8,11 +8,11 @@ const messaging = new Messaging(client); const result = await messaging.updateTextmagicProvider({ providerId: '<PROVIDER_ID>', - name: '<NAME>', - enabled: false, - username: '<USERNAME>', - apiKey: '<API_KEY>', - from: '<FROM>' + name: '<NAME>', // optional + enabled: false, // optional + username: '<USERNAME>', // optional + apiKey: '<API_KEY>', // optional + from: '<FROM>' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/messaging/update-topic.md b/docs/examples/1.8.x/console-web/examples/messaging/update-topic.md index 0670d57cd9..100f5ca73a 100644 --- a/docs/examples/1.8.x/console-web/examples/messaging/update-topic.md +++ b/docs/examples/1.8.x/console-web/examples/messaging/update-topic.md @@ -8,8 +8,8 @@ const messaging = new Messaging(client); const result = await messaging.updateTopic({ topicId: '<TOPIC_ID>', - name: '<NAME>', - subscribe: ["any"] + name: '<NAME>', // optional + subscribe: ["any"] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/messaging/update-twilio-provider.md b/docs/examples/1.8.x/console-web/examples/messaging/update-twilio-provider.md index 30dd30a561..b09b23fb97 100644 --- a/docs/examples/1.8.x/console-web/examples/messaging/update-twilio-provider.md +++ b/docs/examples/1.8.x/console-web/examples/messaging/update-twilio-provider.md @@ -8,11 +8,11 @@ const messaging = new Messaging(client); const result = await messaging.updateTwilioProvider({ providerId: '<PROVIDER_ID>', - name: '<NAME>', - enabled: false, - accountSid: '<ACCOUNT_SID>', - authToken: '<AUTH_TOKEN>', - from: '<FROM>' + name: '<NAME>', // optional + enabled: false, // optional + accountSid: '<ACCOUNT_SID>', // optional + authToken: '<AUTH_TOKEN>', // optional + from: '<FROM>' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/messaging/update-vonage-provider.md b/docs/examples/1.8.x/console-web/examples/messaging/update-vonage-provider.md index 751f194203..e998dbfbf5 100644 --- a/docs/examples/1.8.x/console-web/examples/messaging/update-vonage-provider.md +++ b/docs/examples/1.8.x/console-web/examples/messaging/update-vonage-provider.md @@ -8,11 +8,11 @@ const messaging = new Messaging(client); const result = await messaging.updateVonageProvider({ providerId: '<PROVIDER_ID>', - name: '<NAME>', - enabled: false, - apiKey: '<API_KEY>', - apiSecret: '<API_SECRET>', - from: '<FROM>' + name: '<NAME>', // optional + enabled: false, // optional + apiKey: '<API_KEY>', // optional + apiSecret: '<API_SECRET>', // optional + from: '<FROM>' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/migrations/create-csv-migration.md b/docs/examples/1.8.x/console-web/examples/migrations/create-csv-migration.md index 8673e4d867..b25193ed21 100644 --- a/docs/examples/1.8.x/console-web/examples/migrations/create-csv-migration.md +++ b/docs/examples/1.8.x/console-web/examples/migrations/create-csv-migration.md @@ -10,7 +10,7 @@ const result = await migrations.createCsvMigration({ bucketId: '<BUCKET_ID>', fileId: '<FILE_ID>', resourceId: '[ID1:ID2]', - internalFile: false + internalFile: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/migrations/create-n-host-migration.md b/docs/examples/1.8.x/console-web/examples/migrations/create-n-host-migration.md index 091c657f67..cada06e2ed 100644 --- a/docs/examples/1.8.x/console-web/examples/migrations/create-n-host-migration.md +++ b/docs/examples/1.8.x/console-web/examples/migrations/create-n-host-migration.md @@ -14,7 +14,7 @@ const result = await migrations.createNHostMigration({ database: '<DATABASE>', username: '<USERNAME>', password: '<PASSWORD>', - port: null + port: null // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/migrations/create-supabase-migration.md b/docs/examples/1.8.x/console-web/examples/migrations/create-supabase-migration.md index ba0fd9cf50..13e3da08ca 100644 --- a/docs/examples/1.8.x/console-web/examples/migrations/create-supabase-migration.md +++ b/docs/examples/1.8.x/console-web/examples/migrations/create-supabase-migration.md @@ -13,7 +13,7 @@ const result = await migrations.createSupabaseMigration({ databaseHost: '<DATABASE_HOST>', username: '<USERNAME>', password: '<PASSWORD>', - port: null + port: null // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/migrations/get-n-host-report.md b/docs/examples/1.8.x/console-web/examples/migrations/get-n-host-report.md index 987c03d633..bc88499b85 100644 --- a/docs/examples/1.8.x/console-web/examples/migrations/get-n-host-report.md +++ b/docs/examples/1.8.x/console-web/examples/migrations/get-n-host-report.md @@ -14,7 +14,7 @@ const result = await migrations.getNHostReport({ database: '<DATABASE>', username: '<USERNAME>', password: '<PASSWORD>', - port: null + port: null // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/migrations/get-supabase-report.md b/docs/examples/1.8.x/console-web/examples/migrations/get-supabase-report.md index ffabd95e86..d054124e8e 100644 --- a/docs/examples/1.8.x/console-web/examples/migrations/get-supabase-report.md +++ b/docs/examples/1.8.x/console-web/examples/migrations/get-supabase-report.md @@ -13,7 +13,7 @@ const result = await migrations.getSupabaseReport({ databaseHost: '<DATABASE_HOST>', username: '<USERNAME>', password: '<PASSWORD>', - port: null + port: null // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/migrations/list.md b/docs/examples/1.8.x/console-web/examples/migrations/list.md index f0648765a9..ea053a8e80 100644 --- a/docs/examples/1.8.x/console-web/examples/migrations/list.md +++ b/docs/examples/1.8.x/console-web/examples/migrations/list.md @@ -7,8 +7,8 @@ const client = new Client() const migrations = new Migrations(client); const result = await migrations.list({ - queries: [], - search: '<SEARCH>' + queries: [], // optional + search: '<SEARCH>' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/project/create-variable.md b/docs/examples/1.8.x/console-web/examples/project/create-variable.md index 008a81e06f..2c7fea32d1 100644 --- a/docs/examples/1.8.x/console-web/examples/project/create-variable.md +++ b/docs/examples/1.8.x/console-web/examples/project/create-variable.md @@ -9,7 +9,7 @@ const project = new Project(client); const result = await project.createVariable({ key: '<KEY>', value: '<VALUE>', - secret: false + secret: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/project/get-usage.md b/docs/examples/1.8.x/console-web/examples/project/get-usage.md index 88b399575d..dd548885a6 100644 --- a/docs/examples/1.8.x/console-web/examples/project/get-usage.md +++ b/docs/examples/1.8.x/console-web/examples/project/get-usage.md @@ -9,7 +9,7 @@ const project = new Project(client); const result = await project.getUsage({ startDate: '', endDate: '', - period: ProjectUsageRange.OneHour + period: ProjectUsageRange.OneHour // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/project/update-variable.md b/docs/examples/1.8.x/console-web/examples/project/update-variable.md index f60ccf06fd..646333278e 100644 --- a/docs/examples/1.8.x/console-web/examples/project/update-variable.md +++ b/docs/examples/1.8.x/console-web/examples/project/update-variable.md @@ -9,8 +9,8 @@ const project = new Project(client); const result = await project.updateVariable({ variableId: '<VARIABLE_ID>', key: '<KEY>', - value: '<VALUE>', - secret: false + value: '<VALUE>', // optional + secret: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/projects/create-j-w-t.md b/docs/examples/1.8.x/console-web/examples/projects/create-jwt.md similarity index 93% rename from docs/examples/1.8.x/console-web/examples/projects/create-j-w-t.md rename to docs/examples/1.8.x/console-web/examples/projects/create-jwt.md index ad9d9cf7d7..c880996399 100644 --- a/docs/examples/1.8.x/console-web/examples/projects/create-j-w-t.md +++ b/docs/examples/1.8.x/console-web/examples/projects/create-jwt.md @@ -9,7 +9,7 @@ const projects = new Projects(client); const result = await projects.createJWT({ projectId: '<PROJECT_ID>', scopes: [], - duration: 0 + duration: 0 // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/projects/create-key.md b/docs/examples/1.8.x/console-web/examples/projects/create-key.md index aab2af98e6..a1e53e5f78 100644 --- a/docs/examples/1.8.x/console-web/examples/projects/create-key.md +++ b/docs/examples/1.8.x/console-web/examples/projects/create-key.md @@ -10,7 +10,7 @@ const result = await projects.createKey({ projectId: '<PROJECT_ID>', name: '<NAME>', scopes: [], - expire: '' + expire: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/projects/create-platform.md b/docs/examples/1.8.x/console-web/examples/projects/create-platform.md index af48f85a57..28a520626a 100644 --- a/docs/examples/1.8.x/console-web/examples/projects/create-platform.md +++ b/docs/examples/1.8.x/console-web/examples/projects/create-platform.md @@ -10,9 +10,9 @@ const result = await projects.createPlatform({ projectId: '<PROJECT_ID>', type: PlatformType.Web, name: '<NAME>', - key: '<KEY>', - store: '<STORE>', - hostname: '' + key: '<KEY>', // optional + store: '<STORE>', // optional + hostname: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/projects/create-s-m-t-p-test.md b/docs/examples/1.8.x/console-web/examples/projects/create-s-m-t-p-test.md deleted file mode 100644 index 0ab5cab580..0000000000 --- a/docs/examples/1.8.x/console-web/examples/projects/create-s-m-t-p-test.md +++ /dev/null @@ -1,22 +0,0 @@ -import { Client, Projects, SMTPSecure } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>'); // Your project ID - -const projects = new Projects(client); - -const result = await projects.createSMTPTest({ - projectId: '<PROJECT_ID>', - emails: [], - senderName: '<SENDER_NAME>', - senderEmail: 'email@example.com', - host: '', - replyTo: 'email@example.com', - port: null, - username: '<USERNAME>', - password: '<PASSWORD>', - secure: SMTPSecure.Tls -}); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/projects/create-smtp-test.md b/docs/examples/1.8.x/console-web/examples/projects/create-smtp-test.md index 1e1589a8b8..aa4fc1e1fe 100644 --- a/docs/examples/1.8.x/console-web/examples/projects/create-smtp-test.md +++ b/docs/examples/1.8.x/console-web/examples/projects/create-smtp-test.md @@ -6,17 +6,17 @@ const client = new Client() const projects = new Projects(client); -const result = await projects.createSmtpTest({ +const result = await projects.createSMTPTest({ projectId: '<PROJECT_ID>', emails: [], senderName: '<SENDER_NAME>', senderEmail: 'email@example.com', host: '', - replyTo: 'email@example.com', - port: null, - username: '<USERNAME>', - password: '<PASSWORD>', - secure: SMTPSecure.Tls + replyTo: 'email@example.com', // optional + port: null, // optional + username: '<USERNAME>', // optional + password: '<PASSWORD>', // optional + secure: SMTPSecure.Tls // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/projects/create-webhook.md b/docs/examples/1.8.x/console-web/examples/projects/create-webhook.md index 1f6369ee63..3f32d7247b 100644 --- a/docs/examples/1.8.x/console-web/examples/projects/create-webhook.md +++ b/docs/examples/1.8.x/console-web/examples/projects/create-webhook.md @@ -12,9 +12,9 @@ const result = await projects.createWebhook({ events: [], url: '', security: false, - enabled: false, - httpUser: '<HTTP_USER>', - httpPass: '<HTTP_PASS>' + enabled: false, // optional + httpUser: '<HTTP_USER>', // optional + httpPass: '<HTTP_PASS>' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/projects/create.md b/docs/examples/1.8.x/console-web/examples/projects/create.md index 89379dd5b9..44abc021ef 100644 --- a/docs/examples/1.8.x/console-web/examples/projects/create.md +++ b/docs/examples/1.8.x/console-web/examples/projects/create.md @@ -10,16 +10,16 @@ const result = await projects.create({ projectId: '', name: '<NAME>', teamId: '<TEAM_ID>', - region: .Default, - description: '<DESCRIPTION>', - logo: '<LOGO>', - url: 'https://example.com', - legalName: '<LEGAL_NAME>', - legalCountry: '<LEGAL_COUNTRY>', - legalState: '<LEGAL_STATE>', - legalCity: '<LEGAL_CITY>', - legalAddress: '<LEGAL_ADDRESS>', - legalTaxId: '<LEGAL_TAX_ID>' + region: .Default, // optional + description: '<DESCRIPTION>', // optional + logo: '<LOGO>', // optional + url: 'https://example.com', // optional + legalName: '<LEGAL_NAME>', // optional + legalCountry: '<LEGAL_COUNTRY>', // optional + legalState: '<LEGAL_STATE>', // optional + legalCity: '<LEGAL_CITY>', // optional + legalAddress: '<LEGAL_ADDRESS>', // optional + legalTaxId: '<LEGAL_TAX_ID>' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/projects/delete-s-m-s-template.md b/docs/examples/1.8.x/console-web/examples/projects/delete-s-m-s-template.md deleted file mode 100644 index f89ae275e3..0000000000 --- a/docs/examples/1.8.x/console-web/examples/projects/delete-s-m-s-template.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Projects, SmsTemplateType, SmsTemplateLocale } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>'); // Your project ID - -const projects = new Projects(client); - -const result = await projects.deleteSMSTemplate({ - projectId: '<PROJECT_ID>', - type: SmsTemplateType.Verification, - locale: SmsTemplateLocale.Af -}); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/projects/delete-sms-template.md b/docs/examples/1.8.x/console-web/examples/projects/delete-sms-template.md index 824cb14d37..f89ae275e3 100644 --- a/docs/examples/1.8.x/console-web/examples/projects/delete-sms-template.md +++ b/docs/examples/1.8.x/console-web/examples/projects/delete-sms-template.md @@ -6,7 +6,7 @@ const client = new Client() const projects = new Projects(client); -const result = await projects.deleteSmsTemplate({ +const result = await projects.deleteSMSTemplate({ projectId: '<PROJECT_ID>', type: SmsTemplateType.Verification, locale: SmsTemplateLocale.Af diff --git a/docs/examples/1.8.x/console-web/examples/projects/get-s-m-s-template.md b/docs/examples/1.8.x/console-web/examples/projects/get-s-m-s-template.md deleted file mode 100644 index f48722c2a5..0000000000 --- a/docs/examples/1.8.x/console-web/examples/projects/get-s-m-s-template.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Projects, SmsTemplateType, SmsTemplateLocale } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>'); // Your project ID - -const projects = new Projects(client); - -const result = await projects.getSMSTemplate({ - projectId: '<PROJECT_ID>', - type: SmsTemplateType.Verification, - locale: SmsTemplateLocale.Af -}); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/projects/get-sms-template.md b/docs/examples/1.8.x/console-web/examples/projects/get-sms-template.md index 207edea039..f48722c2a5 100644 --- a/docs/examples/1.8.x/console-web/examples/projects/get-sms-template.md +++ b/docs/examples/1.8.x/console-web/examples/projects/get-sms-template.md @@ -6,7 +6,7 @@ const client = new Client() const projects = new Projects(client); -const result = await projects.getSmsTemplate({ +const result = await projects.getSMSTemplate({ projectId: '<PROJECT_ID>', type: SmsTemplateType.Verification, locale: SmsTemplateLocale.Af diff --git a/docs/examples/1.8.x/console-web/examples/projects/list-dev-keys.md b/docs/examples/1.8.x/console-web/examples/projects/list-dev-keys.md index 61e2e31c08..ecdf02598f 100644 --- a/docs/examples/1.8.x/console-web/examples/projects/list-dev-keys.md +++ b/docs/examples/1.8.x/console-web/examples/projects/list-dev-keys.md @@ -8,7 +8,7 @@ const projects = new Projects(client); const result = await projects.listDevKeys({ projectId: '<PROJECT_ID>', - queries: [] + queries: [] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/projects/list.md b/docs/examples/1.8.x/console-web/examples/projects/list.md index 40109c80bb..81dc422130 100644 --- a/docs/examples/1.8.x/console-web/examples/projects/list.md +++ b/docs/examples/1.8.x/console-web/examples/projects/list.md @@ -7,8 +7,8 @@ const client = new Client() const projects = new Projects(client); const result = await projects.list({ - queries: [], - search: '<SEARCH>' + queries: [], // optional + search: '<SEARCH>' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/projects/update-a-p-i-status-all.md b/docs/examples/1.8.x/console-web/examples/projects/update-a-p-i-status-all.md deleted file mode 100644 index 02e0595130..0000000000 --- a/docs/examples/1.8.x/console-web/examples/projects/update-a-p-i-status-all.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Projects } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>'); // Your project ID - -const projects = new Projects(client); - -const result = await projects.updateAPIStatusAll({ - projectId: '<PROJECT_ID>', - status: false -}); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/projects/update-a-p-i-status.md b/docs/examples/1.8.x/console-web/examples/projects/update-a-p-i-status.md deleted file mode 100644 index 7ec06fee58..0000000000 --- a/docs/examples/1.8.x/console-web/examples/projects/update-a-p-i-status.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Projects, } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>'); // Your project ID - -const projects = new Projects(client); - -const result = await projects.updateAPIStatus({ - projectId: '<PROJECT_ID>', - api: .Rest, - status: false -}); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/projects/update-api-status-all.md b/docs/examples/1.8.x/console-web/examples/projects/update-api-status-all.md index b8897adc84..02e0595130 100644 --- a/docs/examples/1.8.x/console-web/examples/projects/update-api-status-all.md +++ b/docs/examples/1.8.x/console-web/examples/projects/update-api-status-all.md @@ -6,7 +6,7 @@ const client = new Client() const projects = new Projects(client); -const result = await projects.updateApiStatusAll({ +const result = await projects.updateAPIStatusAll({ projectId: '<PROJECT_ID>', status: false }); diff --git a/docs/examples/1.8.x/console-web/examples/projects/update-api-status.md b/docs/examples/1.8.x/console-web/examples/projects/update-api-status.md index 02eade6897..7ec06fee58 100644 --- a/docs/examples/1.8.x/console-web/examples/projects/update-api-status.md +++ b/docs/examples/1.8.x/console-web/examples/projects/update-api-status.md @@ -6,7 +6,7 @@ const client = new Client() const projects = new Projects(client); -const result = await projects.updateApiStatus({ +const result = await projects.updateAPIStatus({ projectId: '<PROJECT_ID>', api: .Rest, status: false diff --git a/docs/examples/1.8.x/console-web/examples/projects/update-email-template.md b/docs/examples/1.8.x/console-web/examples/projects/update-email-template.md index c63cfd120c..f26e8887a7 100644 --- a/docs/examples/1.8.x/console-web/examples/projects/update-email-template.md +++ b/docs/examples/1.8.x/console-web/examples/projects/update-email-template.md @@ -12,9 +12,9 @@ const result = await projects.updateEmailTemplate({ locale: EmailTemplateLocale.Af, subject: '<SUBJECT>', message: '<MESSAGE>', - senderName: '<SENDER_NAME>', - senderEmail: 'email@example.com', - replyTo: 'email@example.com' + senderName: '<SENDER_NAME>', // optional + senderEmail: 'email@example.com', // optional + replyTo: 'email@example.com' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/projects/update-key.md b/docs/examples/1.8.x/console-web/examples/projects/update-key.md index 42468d1b9c..8e32cbd990 100644 --- a/docs/examples/1.8.x/console-web/examples/projects/update-key.md +++ b/docs/examples/1.8.x/console-web/examples/projects/update-key.md @@ -11,7 +11,7 @@ const result = await projects.updateKey({ keyId: '<KEY_ID>', name: '<NAME>', scopes: [], - expire: '' + expire: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/projects/update-o-auth2.md b/docs/examples/1.8.x/console-web/examples/projects/update-o-auth-2.md similarity index 80% rename from docs/examples/1.8.x/console-web/examples/projects/update-o-auth2.md rename to docs/examples/1.8.x/console-web/examples/projects/update-o-auth-2.md index c6d5cc3ac5..01ecf3a1b4 100644 --- a/docs/examples/1.8.x/console-web/examples/projects/update-o-auth2.md +++ b/docs/examples/1.8.x/console-web/examples/projects/update-o-auth-2.md @@ -9,9 +9,9 @@ const projects = new Projects(client); const result = await projects.updateOAuth2({ projectId: '<PROJECT_ID>', provider: OAuthProvider.Amazon, - appId: '<APP_ID>', - secret: '<SECRET>', - enabled: false + appId: '<APP_ID>', // optional + secret: '<SECRET>', // optional + enabled: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/projects/update-platform.md b/docs/examples/1.8.x/console-web/examples/projects/update-platform.md index 34e982df42..996cace8b5 100644 --- a/docs/examples/1.8.x/console-web/examples/projects/update-platform.md +++ b/docs/examples/1.8.x/console-web/examples/projects/update-platform.md @@ -10,9 +10,9 @@ const result = await projects.updatePlatform({ projectId: '<PROJECT_ID>', platformId: '<PLATFORM_ID>', name: '<NAME>', - key: '<KEY>', - store: '<STORE>', - hostname: '' + key: '<KEY>', // optional + store: '<STORE>', // optional + hostname: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/projects/update-s-m-s-template.md b/docs/examples/1.8.x/console-web/examples/projects/update-s-m-s-template.md deleted file mode 100644 index ab332c52e2..0000000000 --- a/docs/examples/1.8.x/console-web/examples/projects/update-s-m-s-template.md +++ /dev/null @@ -1,16 +0,0 @@ -import { Client, Projects, SmsTemplateType, SmsTemplateLocale } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>'); // Your project ID - -const projects = new Projects(client); - -const result = await projects.updateSMSTemplate({ - projectId: '<PROJECT_ID>', - type: SmsTemplateType.Verification, - locale: SmsTemplateLocale.Af, - message: '<MESSAGE>' -}); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/projects/update-s-m-t-p.md b/docs/examples/1.8.x/console-web/examples/projects/update-s-m-t-p.md deleted file mode 100644 index 6537148e1c..0000000000 --- a/docs/examples/1.8.x/console-web/examples/projects/update-s-m-t-p.md +++ /dev/null @@ -1,22 +0,0 @@ -import { Client, Projects, SMTPSecure } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>'); // Your project ID - -const projects = new Projects(client); - -const result = await projects.updateSMTP({ - projectId: '<PROJECT_ID>', - enabled: false, - senderName: '<SENDER_NAME>', - senderEmail: 'email@example.com', - replyTo: 'email@example.com', - host: '', - port: null, - username: '<USERNAME>', - password: '<PASSWORD>', - secure: SMTPSecure.Tls -}); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/projects/update-sms-template.md b/docs/examples/1.8.x/console-web/examples/projects/update-sms-template.md index f1234812ed..ab332c52e2 100644 --- a/docs/examples/1.8.x/console-web/examples/projects/update-sms-template.md +++ b/docs/examples/1.8.x/console-web/examples/projects/update-sms-template.md @@ -6,7 +6,7 @@ const client = new Client() const projects = new Projects(client); -const result = await projects.updateSmsTemplate({ +const result = await projects.updateSMSTemplate({ projectId: '<PROJECT_ID>', type: SmsTemplateType.Verification, locale: SmsTemplateLocale.Af, diff --git a/docs/examples/1.8.x/console-web/examples/projects/update-smtp.md b/docs/examples/1.8.x/console-web/examples/projects/update-smtp.md index 13b52d1f0e..cb5d73b0e9 100644 --- a/docs/examples/1.8.x/console-web/examples/projects/update-smtp.md +++ b/docs/examples/1.8.x/console-web/examples/projects/update-smtp.md @@ -6,17 +6,17 @@ const client = new Client() const projects = new Projects(client); -const result = await projects.updateSmtp({ +const result = await projects.updateSMTP({ projectId: '<PROJECT_ID>', enabled: false, - senderName: '<SENDER_NAME>', - senderEmail: 'email@example.com', - replyTo: 'email@example.com', - host: '', - port: null, - username: '<USERNAME>', - password: '<PASSWORD>', - secure: SMTPSecure.Tls + senderName: '<SENDER_NAME>', // optional + senderEmail: 'email@example.com', // optional + replyTo: 'email@example.com', // optional + host: '', // optional + port: null, // optional + username: '<USERNAME>', // optional + password: '<PASSWORD>', // optional + secure: SMTPSecure.Tls // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/projects/update-webhook.md b/docs/examples/1.8.x/console-web/examples/projects/update-webhook.md index d30a3d531f..d3a1e4e60e 100644 --- a/docs/examples/1.8.x/console-web/examples/projects/update-webhook.md +++ b/docs/examples/1.8.x/console-web/examples/projects/update-webhook.md @@ -13,9 +13,9 @@ const result = await projects.updateWebhook({ events: [], url: '', security: false, - enabled: false, - httpUser: '<HTTP_USER>', - httpPass: '<HTTP_PASS>' + enabled: false, // optional + httpUser: '<HTTP_USER>', // optional + httpPass: '<HTTP_PASS>' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/projects/update.md b/docs/examples/1.8.x/console-web/examples/projects/update.md index a714105aff..3df8d6dc15 100644 --- a/docs/examples/1.8.x/console-web/examples/projects/update.md +++ b/docs/examples/1.8.x/console-web/examples/projects/update.md @@ -9,15 +9,15 @@ const projects = new Projects(client); const result = await projects.update({ projectId: '<PROJECT_ID>', name: '<NAME>', - description: '<DESCRIPTION>', - logo: '<LOGO>', - url: 'https://example.com', - legalName: '<LEGAL_NAME>', - legalCountry: '<LEGAL_COUNTRY>', - legalState: '<LEGAL_STATE>', - legalCity: '<LEGAL_CITY>', - legalAddress: '<LEGAL_ADDRESS>', - legalTaxId: '<LEGAL_TAX_ID>' + description: '<DESCRIPTION>', // optional + logo: '<LOGO>', // optional + url: 'https://example.com', // optional + legalName: '<LEGAL_NAME>', // optional + legalCountry: '<LEGAL_COUNTRY>', // optional + legalState: '<LEGAL_STATE>', // optional + legalCity: '<LEGAL_CITY>', // optional + legalAddress: '<LEGAL_ADDRESS>', // optional + legalTaxId: '<LEGAL_TAX_ID>' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/proxy/create-a-p-i-rule.md b/docs/examples/1.8.x/console-web/examples/proxy/create-api-rule.md similarity index 100% rename from docs/examples/1.8.x/console-web/examples/proxy/create-a-p-i-rule.md rename to docs/examples/1.8.x/console-web/examples/proxy/create-api-rule.md diff --git a/docs/examples/1.8.x/console-web/examples/proxy/create-function-rule.md b/docs/examples/1.8.x/console-web/examples/proxy/create-function-rule.md index 4354cdcd5a..168351723e 100644 --- a/docs/examples/1.8.x/console-web/examples/proxy/create-function-rule.md +++ b/docs/examples/1.8.x/console-web/examples/proxy/create-function-rule.md @@ -9,7 +9,7 @@ const proxy = new Proxy(client); const result = await proxy.createFunctionRule({ domain: '', functionId: '<FUNCTION_ID>', - branch: '<BRANCH>' + branch: '<BRANCH>' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/proxy/create-site-rule.md b/docs/examples/1.8.x/console-web/examples/proxy/create-site-rule.md index b6cc126c52..60b371a359 100644 --- a/docs/examples/1.8.x/console-web/examples/proxy/create-site-rule.md +++ b/docs/examples/1.8.x/console-web/examples/proxy/create-site-rule.md @@ -9,7 +9,7 @@ const proxy = new Proxy(client); const result = await proxy.createSiteRule({ domain: '', siteId: '<SITE_ID>', - branch: '<BRANCH>' + branch: '<BRANCH>' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/proxy/list-rules.md b/docs/examples/1.8.x/console-web/examples/proxy/list-rules.md index 1af7deb9ed..43c7ed2128 100644 --- a/docs/examples/1.8.x/console-web/examples/proxy/list-rules.md +++ b/docs/examples/1.8.x/console-web/examples/proxy/list-rules.md @@ -7,8 +7,8 @@ const client = new Client() const proxy = new Proxy(client); const result = await proxy.listRules({ - queries: [], - search: '<SEARCH>' + queries: [], // optional + search: '<SEARCH>' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/sites/create-deployment.md b/docs/examples/1.8.x/console-web/examples/sites/create-deployment.md index de0066b6c1..44dc68adb8 100644 --- a/docs/examples/1.8.x/console-web/examples/sites/create-deployment.md +++ b/docs/examples/1.8.x/console-web/examples/sites/create-deployment.md @@ -10,9 +10,9 @@ const result = await sites.createDeployment({ siteId: '<SITE_ID>', code: document.getElementById('uploader').files[0], activate: false, - installCommand: '<INSTALL_COMMAND>', - buildCommand: '<BUILD_COMMAND>', - outputDirectory: '<OUTPUT_DIRECTORY>' + installCommand: '<INSTALL_COMMAND>', // optional + buildCommand: '<BUILD_COMMAND>', // optional + outputDirectory: '<OUTPUT_DIRECTORY>' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/sites/create-template-deployment.md b/docs/examples/1.8.x/console-web/examples/sites/create-template-deployment.md index 69db83020c..969a0b855c 100644 --- a/docs/examples/1.8.x/console-web/examples/sites/create-template-deployment.md +++ b/docs/examples/1.8.x/console-web/examples/sites/create-template-deployment.md @@ -12,7 +12,7 @@ const result = await sites.createTemplateDeployment({ owner: '<OWNER>', rootDirectory: '<ROOT_DIRECTORY>', version: '<VERSION>', - activate: false + activate: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/sites/create-variable.md b/docs/examples/1.8.x/console-web/examples/sites/create-variable.md index 18504c1513..2379e52496 100644 --- a/docs/examples/1.8.x/console-web/examples/sites/create-variable.md +++ b/docs/examples/1.8.x/console-web/examples/sites/create-variable.md @@ -10,7 +10,7 @@ const result = await sites.createVariable({ siteId: '<SITE_ID>', key: '<KEY>', value: '<VALUE>', - secret: false + secret: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/sites/create-vcs-deployment.md b/docs/examples/1.8.x/console-web/examples/sites/create-vcs-deployment.md index ecb0a9d3f0..cc1fd1d301 100644 --- a/docs/examples/1.8.x/console-web/examples/sites/create-vcs-deployment.md +++ b/docs/examples/1.8.x/console-web/examples/sites/create-vcs-deployment.md @@ -10,7 +10,7 @@ const result = await sites.createVcsDeployment({ siteId: '<SITE_ID>', type: VCSDeploymentType.Branch, reference: '<REFERENCE>', - activate: false + activate: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/sites/create.md b/docs/examples/1.8.x/console-web/examples/sites/create.md index 967b26f947..bd4e2d1f08 100644 --- a/docs/examples/1.8.x/console-web/examples/sites/create.md +++ b/docs/examples/1.8.x/console-web/examples/sites/create.md @@ -11,20 +11,20 @@ const result = await sites.create({ name: '<NAME>', framework: .Analog, buildRuntime: .Node145, - enabled: false, - logging: false, - timeout: 1, - installCommand: '<INSTALL_COMMAND>', - buildCommand: '<BUILD_COMMAND>', - outputDirectory: '<OUTPUT_DIRECTORY>', - adapter: .Static, - installationId: '<INSTALLATION_ID>', - fallbackFile: '<FALLBACK_FILE>', - providerRepositoryId: '<PROVIDER_REPOSITORY_ID>', - providerBranch: '<PROVIDER_BRANCH>', - providerSilentMode: false, - providerRootDirectory: '<PROVIDER_ROOT_DIRECTORY>', - specification: '' + enabled: false, // optional + logging: false, // optional + timeout: 1, // optional + installCommand: '<INSTALL_COMMAND>', // optional + buildCommand: '<BUILD_COMMAND>', // optional + outputDirectory: '<OUTPUT_DIRECTORY>', // optional + adapter: .Static, // optional + installationId: '<INSTALLATION_ID>', // optional + fallbackFile: '<FALLBACK_FILE>', // optional + providerRepositoryId: '<PROVIDER_REPOSITORY_ID>', // optional + providerBranch: '<PROVIDER_BRANCH>', // optional + providerSilentMode: false, // optional + providerRootDirectory: '<PROVIDER_ROOT_DIRECTORY>', // optional + specification: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/sites/get-deployment-download.md b/docs/examples/1.8.x/console-web/examples/sites/get-deployment-download.md index 734c371834..d66c9a682f 100644 --- a/docs/examples/1.8.x/console-web/examples/sites/get-deployment-download.md +++ b/docs/examples/1.8.x/console-web/examples/sites/get-deployment-download.md @@ -9,7 +9,7 @@ const sites = new Sites(client); const result = sites.getDeploymentDownload({ siteId: '<SITE_ID>', deploymentId: '<DEPLOYMENT_ID>', - type: DeploymentDownloadType.Source + type: DeploymentDownloadType.Source // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/sites/get-usage.md b/docs/examples/1.8.x/console-web/examples/sites/get-usage.md index aa0582d9ed..39158c8c28 100644 --- a/docs/examples/1.8.x/console-web/examples/sites/get-usage.md +++ b/docs/examples/1.8.x/console-web/examples/sites/get-usage.md @@ -8,7 +8,7 @@ const sites = new Sites(client); const result = await sites.getUsage({ siteId: '<SITE_ID>', - range: UsageRange.TwentyFourHours + range: UsageRange.TwentyFourHours // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/sites/list-deployments.md b/docs/examples/1.8.x/console-web/examples/sites/list-deployments.md index 0e111db868..3de3554e99 100644 --- a/docs/examples/1.8.x/console-web/examples/sites/list-deployments.md +++ b/docs/examples/1.8.x/console-web/examples/sites/list-deployments.md @@ -8,8 +8,8 @@ const sites = new Sites(client); const result = await sites.listDeployments({ siteId: '<SITE_ID>', - queries: [], - search: '<SEARCH>' + queries: [], // optional + search: '<SEARCH>' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/sites/list-logs.md b/docs/examples/1.8.x/console-web/examples/sites/list-logs.md index a2c0ed91bc..e60203644a 100644 --- a/docs/examples/1.8.x/console-web/examples/sites/list-logs.md +++ b/docs/examples/1.8.x/console-web/examples/sites/list-logs.md @@ -8,7 +8,7 @@ const sites = new Sites(client); const result = await sites.listLogs({ siteId: '<SITE_ID>', - queries: [] + queries: [] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/sites/list-templates.md b/docs/examples/1.8.x/console-web/examples/sites/list-templates.md index b982a18a95..82266bfde7 100644 --- a/docs/examples/1.8.x/console-web/examples/sites/list-templates.md +++ b/docs/examples/1.8.x/console-web/examples/sites/list-templates.md @@ -7,10 +7,10 @@ const client = new Client() const sites = new Sites(client); const result = await sites.listTemplates({ - frameworks: [], - useCases: [], - limit: 1, - offset: 0 + frameworks: [], // optional + useCases: [], // optional + limit: 1, // optional + offset: 0 // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/sites/list-usage.md b/docs/examples/1.8.x/console-web/examples/sites/list-usage.md index 1d1f81bf18..1cd2cf7af1 100644 --- a/docs/examples/1.8.x/console-web/examples/sites/list-usage.md +++ b/docs/examples/1.8.x/console-web/examples/sites/list-usage.md @@ -7,7 +7,7 @@ const client = new Client() const sites = new Sites(client); const result = await sites.listUsage({ - range: UsageRange.TwentyFourHours + range: UsageRange.TwentyFourHours // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/sites/list.md b/docs/examples/1.8.x/console-web/examples/sites/list.md index 27ca2c25c1..b3d4f6865c 100644 --- a/docs/examples/1.8.x/console-web/examples/sites/list.md +++ b/docs/examples/1.8.x/console-web/examples/sites/list.md @@ -7,8 +7,8 @@ const client = new Client() const sites = new Sites(client); const result = await sites.list({ - queries: [], - search: '<SEARCH>' + queries: [], // optional + search: '<SEARCH>' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/sites/update-variable.md b/docs/examples/1.8.x/console-web/examples/sites/update-variable.md index 55b5420a39..9fe767db81 100644 --- a/docs/examples/1.8.x/console-web/examples/sites/update-variable.md +++ b/docs/examples/1.8.x/console-web/examples/sites/update-variable.md @@ -10,8 +10,8 @@ const result = await sites.updateVariable({ siteId: '<SITE_ID>', variableId: '<VARIABLE_ID>', key: '<KEY>', - value: '<VALUE>', - secret: false + value: '<VALUE>', // optional + secret: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/sites/update.md b/docs/examples/1.8.x/console-web/examples/sites/update.md index 98ebb2c58c..68bd073c50 100644 --- a/docs/examples/1.8.x/console-web/examples/sites/update.md +++ b/docs/examples/1.8.x/console-web/examples/sites/update.md @@ -10,21 +10,21 @@ const result = await sites.update({ siteId: '<SITE_ID>', name: '<NAME>', framework: .Analog, - enabled: false, - logging: false, - timeout: 1, - installCommand: '<INSTALL_COMMAND>', - buildCommand: '<BUILD_COMMAND>', - outputDirectory: '<OUTPUT_DIRECTORY>', - buildRuntime: .Node145, - adapter: .Static, - fallbackFile: '<FALLBACK_FILE>', - installationId: '<INSTALLATION_ID>', - providerRepositoryId: '<PROVIDER_REPOSITORY_ID>', - providerBranch: '<PROVIDER_BRANCH>', - providerSilentMode: false, - providerRootDirectory: '<PROVIDER_ROOT_DIRECTORY>', - specification: '' + enabled: false, // optional + logging: false, // optional + timeout: 1, // optional + installCommand: '<INSTALL_COMMAND>', // optional + buildCommand: '<BUILD_COMMAND>', // optional + outputDirectory: '<OUTPUT_DIRECTORY>', // optional + buildRuntime: .Node145, // optional + adapter: .Static, // optional + fallbackFile: '<FALLBACK_FILE>', // optional + installationId: '<INSTALLATION_ID>', // optional + providerRepositoryId: '<PROVIDER_REPOSITORY_ID>', // optional + providerBranch: '<PROVIDER_BRANCH>', // optional + providerSilentMode: false, // optional + providerRootDirectory: '<PROVIDER_ROOT_DIRECTORY>', // optional + specification: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/storage/create-bucket.md b/docs/examples/1.8.x/console-web/examples/storage/create-bucket.md index 2f14cd69d9..7727d1c7bb 100644 --- a/docs/examples/1.8.x/console-web/examples/storage/create-bucket.md +++ b/docs/examples/1.8.x/console-web/examples/storage/create-bucket.md @@ -9,14 +9,14 @@ const storage = new Storage(client); const result = await storage.createBucket({ bucketId: '<BUCKET_ID>', name: '<NAME>', - permissions: ["read("any")"], - fileSecurity: false, - enabled: false, - maximumFileSize: 1, - allowedFileExtensions: [], - compression: .None, - encryption: false, - antivirus: false + permissions: ["read("any")"], // optional + fileSecurity: false, // optional + enabled: false, // optional + maximumFileSize: 1, // optional + allowedFileExtensions: [], // optional + compression: .None, // optional + encryption: false, // optional + antivirus: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/storage/create-file.md b/docs/examples/1.8.x/console-web/examples/storage/create-file.md index 3182a30927..1dcab62ba4 100644 --- a/docs/examples/1.8.x/console-web/examples/storage/create-file.md +++ b/docs/examples/1.8.x/console-web/examples/storage/create-file.md @@ -10,7 +10,7 @@ const result = await storage.createFile({ bucketId: '<BUCKET_ID>', fileId: '<FILE_ID>', file: document.getElementById('uploader').files[0], - permissions: ["read("any")"] + permissions: ["read("any")"] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/storage/get-bucket-usage.md b/docs/examples/1.8.x/console-web/examples/storage/get-bucket-usage.md index 0868a2ec91..5749effa41 100644 --- a/docs/examples/1.8.x/console-web/examples/storage/get-bucket-usage.md +++ b/docs/examples/1.8.x/console-web/examples/storage/get-bucket-usage.md @@ -8,7 +8,7 @@ const storage = new Storage(client); const result = await storage.getBucketUsage({ bucketId: '<BUCKET_ID>', - range: UsageRange.TwentyFourHours + range: UsageRange.TwentyFourHours // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/storage/get-file-download.md b/docs/examples/1.8.x/console-web/examples/storage/get-file-download.md index c9d25cc8b9..876776f0f8 100644 --- a/docs/examples/1.8.x/console-web/examples/storage/get-file-download.md +++ b/docs/examples/1.8.x/console-web/examples/storage/get-file-download.md @@ -9,7 +9,7 @@ const storage = new Storage(client); const result = storage.getFileDownload({ bucketId: '<BUCKET_ID>', fileId: '<FILE_ID>', - token: '<TOKEN>' + token: '<TOKEN>' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/storage/get-file-preview.md b/docs/examples/1.8.x/console-web/examples/storage/get-file-preview.md index d224151351..16bfe5feb8 100644 --- a/docs/examples/1.8.x/console-web/examples/storage/get-file-preview.md +++ b/docs/examples/1.8.x/console-web/examples/storage/get-file-preview.md @@ -9,18 +9,18 @@ const storage = new Storage(client); const result = storage.getFilePreview({ bucketId: '<BUCKET_ID>', fileId: '<FILE_ID>', - width: 0, - height: 0, - gravity: ImageGravity.Center, - quality: -1, - borderWidth: 0, - borderColor: '', - borderRadius: 0, - opacity: 0, - rotation: -360, - background: '', - output: ImageFormat.Jpg, - token: '<TOKEN>' + width: 0, // optional + height: 0, // optional + gravity: ImageGravity.Center, // optional + quality: -1, // optional + borderWidth: 0, // optional + borderColor: '', // optional + borderRadius: 0, // optional + opacity: 0, // optional + rotation: -360, // optional + background: '', // optional + output: ImageFormat.Jpg, // optional + token: '<TOKEN>' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/storage/get-file-view.md b/docs/examples/1.8.x/console-web/examples/storage/get-file-view.md index 200414e77b..dca7ffae2f 100644 --- a/docs/examples/1.8.x/console-web/examples/storage/get-file-view.md +++ b/docs/examples/1.8.x/console-web/examples/storage/get-file-view.md @@ -9,7 +9,7 @@ const storage = new Storage(client); const result = storage.getFileView({ bucketId: '<BUCKET_ID>', fileId: '<FILE_ID>', - token: '<TOKEN>' + token: '<TOKEN>' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/storage/get-usage.md b/docs/examples/1.8.x/console-web/examples/storage/get-usage.md index 373890d6db..1584361d18 100644 --- a/docs/examples/1.8.x/console-web/examples/storage/get-usage.md +++ b/docs/examples/1.8.x/console-web/examples/storage/get-usage.md @@ -7,7 +7,7 @@ const client = new Client() const storage = new Storage(client); const result = await storage.getUsage({ - range: UsageRange.TwentyFourHours + range: UsageRange.TwentyFourHours // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/storage/list-buckets.md b/docs/examples/1.8.x/console-web/examples/storage/list-buckets.md index d498949683..548daed87b 100644 --- a/docs/examples/1.8.x/console-web/examples/storage/list-buckets.md +++ b/docs/examples/1.8.x/console-web/examples/storage/list-buckets.md @@ -7,8 +7,8 @@ const client = new Client() const storage = new Storage(client); const result = await storage.listBuckets({ - queries: [], - search: '<SEARCH>' + queries: [], // optional + search: '<SEARCH>' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/storage/list-files.md b/docs/examples/1.8.x/console-web/examples/storage/list-files.md index 010d5012b9..245c614b17 100644 --- a/docs/examples/1.8.x/console-web/examples/storage/list-files.md +++ b/docs/examples/1.8.x/console-web/examples/storage/list-files.md @@ -8,8 +8,8 @@ const storage = new Storage(client); const result = await storage.listFiles({ bucketId: '<BUCKET_ID>', - queries: [], - search: '<SEARCH>' + queries: [], // optional + search: '<SEARCH>' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/storage/update-bucket.md b/docs/examples/1.8.x/console-web/examples/storage/update-bucket.md index 92acaa1e42..58ad29fe15 100644 --- a/docs/examples/1.8.x/console-web/examples/storage/update-bucket.md +++ b/docs/examples/1.8.x/console-web/examples/storage/update-bucket.md @@ -9,14 +9,14 @@ const storage = new Storage(client); const result = await storage.updateBucket({ bucketId: '<BUCKET_ID>', name: '<NAME>', - permissions: ["read("any")"], - fileSecurity: false, - enabled: false, - maximumFileSize: 1, - allowedFileExtensions: [], - compression: .None, - encryption: false, - antivirus: false + permissions: ["read("any")"], // optional + fileSecurity: false, // optional + enabled: false, // optional + maximumFileSize: 1, // optional + allowedFileExtensions: [], // optional + compression: .None, // optional + encryption: false, // optional + antivirus: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/storage/update-file.md b/docs/examples/1.8.x/console-web/examples/storage/update-file.md index 5398256905..b73149db13 100644 --- a/docs/examples/1.8.x/console-web/examples/storage/update-file.md +++ b/docs/examples/1.8.x/console-web/examples/storage/update-file.md @@ -9,8 +9,8 @@ const storage = new Storage(client); const result = await storage.updateFile({ bucketId: '<BUCKET_ID>', fileId: '<FILE_ID>', - name: '<NAME>', - permissions: ["read("any")"] + name: '<NAME>', // optional + permissions: ["read("any")"] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/create-boolean-column.md b/docs/examples/1.8.x/console-web/examples/tablesdb/create-boolean-column.md index c5bcd930b3..4622b821a5 100644 --- a/docs/examples/1.8.x/console-web/examples/tablesdb/create-boolean-column.md +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/create-boolean-column.md @@ -11,8 +11,8 @@ const result = await tablesDB.createBooleanColumn({ tableId: '<TABLE_ID>', key: '', required: false, - default: false, - array: false + default: false, // optional + array: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/create-datetime-column.md b/docs/examples/1.8.x/console-web/examples/tablesdb/create-datetime-column.md index 2a0491dc47..30dd10e3a2 100644 --- a/docs/examples/1.8.x/console-web/examples/tablesdb/create-datetime-column.md +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/create-datetime-column.md @@ -11,8 +11,8 @@ const result = await tablesDB.createDatetimeColumn({ tableId: '<TABLE_ID>', key: '', required: false, - default: '', - array: false + default: '', // optional + array: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/create-email-column.md b/docs/examples/1.8.x/console-web/examples/tablesdb/create-email-column.md index a58db243a8..61ae3e1e85 100644 --- a/docs/examples/1.8.x/console-web/examples/tablesdb/create-email-column.md +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/create-email-column.md @@ -11,8 +11,8 @@ const result = await tablesDB.createEmailColumn({ tableId: '<TABLE_ID>', key: '', required: false, - default: 'email@example.com', - array: false + default: 'email@example.com', // optional + array: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/create-enum-column.md b/docs/examples/1.8.x/console-web/examples/tablesdb/create-enum-column.md index 5e1965f0fd..0a5657148d 100644 --- a/docs/examples/1.8.x/console-web/examples/tablesdb/create-enum-column.md +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/create-enum-column.md @@ -12,8 +12,8 @@ const result = await tablesDB.createEnumColumn({ key: '', elements: [], required: false, - default: '<DEFAULT>', - array: false + default: '<DEFAULT>', // optional + array: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/create-float-column.md b/docs/examples/1.8.x/console-web/examples/tablesdb/create-float-column.md index 40a6b20541..b8794dd697 100644 --- a/docs/examples/1.8.x/console-web/examples/tablesdb/create-float-column.md +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/create-float-column.md @@ -11,10 +11,10 @@ const result = await tablesDB.createFloatColumn({ tableId: '<TABLE_ID>', key: '', required: false, - min: null, - max: null, - default: null, - array: false + min: null, // optional + max: null, // optional + default: null, // optional + array: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/create-index.md b/docs/examples/1.8.x/console-web/examples/tablesdb/create-index.md index af69661727..7c11aa67b7 100644 --- a/docs/examples/1.8.x/console-web/examples/tablesdb/create-index.md +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/create-index.md @@ -12,8 +12,8 @@ const result = await tablesDB.createIndex({ key: '', type: IndexType.Key, columns: [], - orders: [], - lengths: [] + orders: [], // optional + lengths: [] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/create-integer-column.md b/docs/examples/1.8.x/console-web/examples/tablesdb/create-integer-column.md index 220c6a4687..0eaf240078 100644 --- a/docs/examples/1.8.x/console-web/examples/tablesdb/create-integer-column.md +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/create-integer-column.md @@ -11,10 +11,10 @@ const result = await tablesDB.createIntegerColumn({ tableId: '<TABLE_ID>', key: '', required: false, - min: null, - max: null, - default: null, - array: false + min: null, // optional + max: null, // optional + default: null, // optional + array: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/create-ip-column.md b/docs/examples/1.8.x/console-web/examples/tablesdb/create-ip-column.md index 4d66c17abc..4df6dcd7a8 100644 --- a/docs/examples/1.8.x/console-web/examples/tablesdb/create-ip-column.md +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/create-ip-column.md @@ -11,8 +11,8 @@ const result = await tablesDB.createIpColumn({ tableId: '<TABLE_ID>', key: '', required: false, - default: '', - array: false + default: '', // optional + array: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/create-relationship-column.md b/docs/examples/1.8.x/console-web/examples/tablesdb/create-relationship-column.md index 627d0f8ea1..e7c72e7e30 100644 --- a/docs/examples/1.8.x/console-web/examples/tablesdb/create-relationship-column.md +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/create-relationship-column.md @@ -11,10 +11,10 @@ const result = await tablesDB.createRelationshipColumn({ tableId: '<TABLE_ID>', relatedTableId: '<RELATED_TABLE_ID>', type: RelationshipType.OneToOne, - twoWay: false, - key: '', - twoWayKey: '', - onDelete: RelationMutate.Cascade + twoWay: false, // optional + key: '', // optional + twoWayKey: '', // optional + onDelete: RelationMutate.Cascade // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/create-row.md b/docs/examples/1.8.x/console-web/examples/tablesdb/create-row.md index 14a3d66ddc..135d3e7070 100644 --- a/docs/examples/1.8.x/console-web/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/create-row.md @@ -11,7 +11,7 @@ const result = await tablesDB.createRow({ tableId: '<TABLE_ID>', rowId: '<ROW_ID>', data: {}, - permissions: ["read("any")"] + permissions: ["read("any")"] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/create-string-column.md b/docs/examples/1.8.x/console-web/examples/tablesdb/create-string-column.md index e68ab5d0bb..e162c976ba 100644 --- a/docs/examples/1.8.x/console-web/examples/tablesdb/create-string-column.md +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/create-string-column.md @@ -12,9 +12,9 @@ const result = await tablesDB.createStringColumn({ key: '', size: 1, required: false, - default: '<DEFAULT>', - array: false, - encrypt: false + default: '<DEFAULT>', // optional + array: false, // optional + encrypt: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/create-table.md b/docs/examples/1.8.x/console-web/examples/tablesdb/create-table.md index 7bc389c62d..aad0eceb73 100644 --- a/docs/examples/1.8.x/console-web/examples/tablesdb/create-table.md +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/create-table.md @@ -10,9 +10,9 @@ const result = await tablesDB.createTable({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', name: '<NAME>', - permissions: ["read("any")"], - rowSecurity: false, - enabled: false + permissions: ["read("any")"], // optional + rowSecurity: false, // optional + enabled: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/create-url-column.md b/docs/examples/1.8.x/console-web/examples/tablesdb/create-url-column.md index 140be6028b..2cee4674f9 100644 --- a/docs/examples/1.8.x/console-web/examples/tablesdb/create-url-column.md +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/create-url-column.md @@ -11,8 +11,8 @@ const result = await tablesDB.createUrlColumn({ tableId: '<TABLE_ID>', key: '', required: false, - default: 'https://example.com', - array: false + default: 'https://example.com', // optional + array: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/create.md b/docs/examples/1.8.x/console-web/examples/tablesdb/create.md index 345531e9b1..91a89ce236 100644 --- a/docs/examples/1.8.x/console-web/examples/tablesdb/create.md +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/create.md @@ -9,7 +9,7 @@ const tablesDB = new TablesDB(client); const result = await tablesDB.create({ databaseId: '<DATABASE_ID>', name: '<NAME>', - enabled: false + enabled: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/decrement-row-column.md b/docs/examples/1.8.x/console-web/examples/tablesdb/decrement-row-column.md index 8e7855237f..067afc7820 100644 --- a/docs/examples/1.8.x/console-web/examples/tablesdb/decrement-row-column.md +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/decrement-row-column.md @@ -11,8 +11,8 @@ const result = await tablesDB.decrementRowColumn({ tableId: '<TABLE_ID>', rowId: '<ROW_ID>', column: '', - value: null, - min: null + value: null, // optional + min: null // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/delete-rows.md b/docs/examples/1.8.x/console-web/examples/tablesdb/delete-rows.md index 4a7bad8b97..16868a0c6e 100644 --- a/docs/examples/1.8.x/console-web/examples/tablesdb/delete-rows.md +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/delete-rows.md @@ -9,7 +9,7 @@ const tablesDB = new TablesDB(client); const result = await tablesDB.deleteRows({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', - queries: [] + queries: [] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/get-row.md b/docs/examples/1.8.x/console-web/examples/tablesdb/get-row.md index 425783b70d..f170078430 100644 --- a/docs/examples/1.8.x/console-web/examples/tablesdb/get-row.md +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/get-row.md @@ -10,7 +10,7 @@ const result = await tablesDB.getRow({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', rowId: '<ROW_ID>', - queries: [] + queries: [] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/get-table-usage.md b/docs/examples/1.8.x/console-web/examples/tablesdb/get-table-usage.md index 73ae1d153a..6f5cff484c 100644 --- a/docs/examples/1.8.x/console-web/examples/tablesdb/get-table-usage.md +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/get-table-usage.md @@ -9,7 +9,7 @@ const tablesDB = new TablesDB(client); const result = await tablesDB.getTableUsage({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', - range: UsageRange.TwentyFourHours + range: UsageRange.TwentyFourHours // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/get-usage.md b/docs/examples/1.8.x/console-web/examples/tablesdb/get-usage.md index 6f0031d64a..c4f34ee36e 100644 --- a/docs/examples/1.8.x/console-web/examples/tablesdb/get-usage.md +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/get-usage.md @@ -8,7 +8,7 @@ const tablesDB = new TablesDB(client); const result = await tablesDB.getUsage({ databaseId: '<DATABASE_ID>', - range: UsageRange.TwentyFourHours + range: UsageRange.TwentyFourHours // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/increment-row-column.md b/docs/examples/1.8.x/console-web/examples/tablesdb/increment-row-column.md index 878e6a92a9..95694d49a4 100644 --- a/docs/examples/1.8.x/console-web/examples/tablesdb/increment-row-column.md +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/increment-row-column.md @@ -11,8 +11,8 @@ const result = await tablesDB.incrementRowColumn({ tableId: '<TABLE_ID>', rowId: '<ROW_ID>', column: '', - value: null, - max: null + value: null, // optional + max: null // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/list-columns.md b/docs/examples/1.8.x/console-web/examples/tablesdb/list-columns.md index b23f133175..ea20458266 100644 --- a/docs/examples/1.8.x/console-web/examples/tablesdb/list-columns.md +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/list-columns.md @@ -9,7 +9,7 @@ const tablesDB = new TablesDB(client); const result = await tablesDB.listColumns({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', - queries: [] + queries: [] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/list-indexes.md b/docs/examples/1.8.x/console-web/examples/tablesdb/list-indexes.md index bb5efdd28c..dd00898f23 100644 --- a/docs/examples/1.8.x/console-web/examples/tablesdb/list-indexes.md +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/list-indexes.md @@ -9,7 +9,7 @@ const tablesDB = new TablesDB(client); const result = await tablesDB.listIndexes({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', - queries: [] + queries: [] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/list-row-logs.md b/docs/examples/1.8.x/console-web/examples/tablesdb/list-row-logs.md index 811ccfb529..870023ee0e 100644 --- a/docs/examples/1.8.x/console-web/examples/tablesdb/list-row-logs.md +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/list-row-logs.md @@ -10,7 +10,7 @@ const result = await tablesDB.listRowLogs({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', rowId: '<ROW_ID>', - queries: [] + queries: [] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/list-rows.md b/docs/examples/1.8.x/console-web/examples/tablesdb/list-rows.md index dc4086a82e..46159b3d42 100644 --- a/docs/examples/1.8.x/console-web/examples/tablesdb/list-rows.md +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/list-rows.md @@ -9,7 +9,7 @@ const tablesDB = new TablesDB(client); const result = await tablesDB.listRows({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', - queries: [] + queries: [] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/list-table-logs.md b/docs/examples/1.8.x/console-web/examples/tablesdb/list-table-logs.md index a19c80f204..102623e431 100644 --- a/docs/examples/1.8.x/console-web/examples/tablesdb/list-table-logs.md +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/list-table-logs.md @@ -9,7 +9,7 @@ const tablesDB = new TablesDB(client); const result = await tablesDB.listTableLogs({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', - queries: [] + queries: [] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/list-tables.md b/docs/examples/1.8.x/console-web/examples/tablesdb/list-tables.md index 737cdb158d..1d7c6d511f 100644 --- a/docs/examples/1.8.x/console-web/examples/tablesdb/list-tables.md +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/list-tables.md @@ -8,8 +8,8 @@ const tablesDB = new TablesDB(client); const result = await tablesDB.listTables({ databaseId: '<DATABASE_ID>', - queries: [], - search: '<SEARCH>' + queries: [], // optional + search: '<SEARCH>' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/list-usage.md b/docs/examples/1.8.x/console-web/examples/tablesdb/list-usage.md index 7d65c40bd4..875128dc53 100644 --- a/docs/examples/1.8.x/console-web/examples/tablesdb/list-usage.md +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/list-usage.md @@ -7,7 +7,7 @@ const client = new Client() const tablesDB = new TablesDB(client); const result = await tablesDB.listUsage({ - range: UsageRange.TwentyFourHours + range: UsageRange.TwentyFourHours // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/list.md b/docs/examples/1.8.x/console-web/examples/tablesdb/list.md index d23c32efd4..002a6f75e0 100644 --- a/docs/examples/1.8.x/console-web/examples/tablesdb/list.md +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/list.md @@ -7,8 +7,8 @@ const client = new Client() const tablesDB = new TablesDB(client); const result = await tablesDB.list({ - queries: [], - search: '<SEARCH>' + queries: [], // optional + search: '<SEARCH>' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/update-boolean-column.md b/docs/examples/1.8.x/console-web/examples/tablesdb/update-boolean-column.md index b16a85314d..d91927dd5f 100644 --- a/docs/examples/1.8.x/console-web/examples/tablesdb/update-boolean-column.md +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/update-boolean-column.md @@ -12,7 +12,7 @@ const result = await tablesDB.updateBooleanColumn({ key: '', required: false, default: false, - newKey: '' + newKey: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/update-datetime-column.md b/docs/examples/1.8.x/console-web/examples/tablesdb/update-datetime-column.md index 93541fd38d..977c5106f9 100644 --- a/docs/examples/1.8.x/console-web/examples/tablesdb/update-datetime-column.md +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/update-datetime-column.md @@ -12,7 +12,7 @@ const result = await tablesDB.updateDatetimeColumn({ key: '', required: false, default: '', - newKey: '' + newKey: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/update-email-column.md b/docs/examples/1.8.x/console-web/examples/tablesdb/update-email-column.md index 089d98b3d7..7f575a3d0c 100644 --- a/docs/examples/1.8.x/console-web/examples/tablesdb/update-email-column.md +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/update-email-column.md @@ -12,7 +12,7 @@ const result = await tablesDB.updateEmailColumn({ key: '', required: false, default: 'email@example.com', - newKey: '' + newKey: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/update-enum-column.md b/docs/examples/1.8.x/console-web/examples/tablesdb/update-enum-column.md index df2f1d1b69..28dfc51ba6 100644 --- a/docs/examples/1.8.x/console-web/examples/tablesdb/update-enum-column.md +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/update-enum-column.md @@ -13,7 +13,7 @@ const result = await tablesDB.updateEnumColumn({ elements: [], required: false, default: '<DEFAULT>', - newKey: '' + newKey: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/update-float-column.md b/docs/examples/1.8.x/console-web/examples/tablesdb/update-float-column.md index ab7b97ce3f..2be0755220 100644 --- a/docs/examples/1.8.x/console-web/examples/tablesdb/update-float-column.md +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/update-float-column.md @@ -12,9 +12,9 @@ const result = await tablesDB.updateFloatColumn({ key: '', required: false, default: null, - min: null, - max: null, - newKey: '' + min: null, // optional + max: null, // optional + newKey: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/update-integer-column.md b/docs/examples/1.8.x/console-web/examples/tablesdb/update-integer-column.md index d9e0c25704..3e752b7009 100644 --- a/docs/examples/1.8.x/console-web/examples/tablesdb/update-integer-column.md +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/update-integer-column.md @@ -12,9 +12,9 @@ const result = await tablesDB.updateIntegerColumn({ key: '', required: false, default: null, - min: null, - max: null, - newKey: '' + min: null, // optional + max: null, // optional + newKey: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/update-ip-column.md b/docs/examples/1.8.x/console-web/examples/tablesdb/update-ip-column.md index e0e1fbda1c..c5f43af64e 100644 --- a/docs/examples/1.8.x/console-web/examples/tablesdb/update-ip-column.md +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/update-ip-column.md @@ -12,7 +12,7 @@ const result = await tablesDB.updateIpColumn({ key: '', required: false, default: '', - newKey: '' + newKey: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/update-relationship-column.md b/docs/examples/1.8.x/console-web/examples/tablesdb/update-relationship-column.md index 1cd51a8db3..88d6725507 100644 --- a/docs/examples/1.8.x/console-web/examples/tablesdb/update-relationship-column.md +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/update-relationship-column.md @@ -10,8 +10,8 @@ const result = await tablesDB.updateRelationshipColumn({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', key: '', - onDelete: RelationMutate.Cascade, - newKey: '' + onDelete: RelationMutate.Cascade, // optional + newKey: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/update-row.md b/docs/examples/1.8.x/console-web/examples/tablesdb/update-row.md index 6913f462d8..5d6109c04c 100644 --- a/docs/examples/1.8.x/console-web/examples/tablesdb/update-row.md +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/update-row.md @@ -10,8 +10,8 @@ const result = await tablesDB.updateRow({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', rowId: '<ROW_ID>', - data: {}, - permissions: ["read("any")"] + data: {}, // optional + permissions: ["read("any")"] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/update-rows.md b/docs/examples/1.8.x/console-web/examples/tablesdb/update-rows.md index 54de8b847f..0ce117efa3 100644 --- a/docs/examples/1.8.x/console-web/examples/tablesdb/update-rows.md +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/update-rows.md @@ -9,8 +9,8 @@ const tablesDB = new TablesDB(client); const result = await tablesDB.updateRows({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', - data: {}, - queries: [] + data: {}, // optional + queries: [] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/update-string-column.md b/docs/examples/1.8.x/console-web/examples/tablesdb/update-string-column.md index 8250578059..b84185ca8f 100644 --- a/docs/examples/1.8.x/console-web/examples/tablesdb/update-string-column.md +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/update-string-column.md @@ -12,8 +12,8 @@ const result = await tablesDB.updateStringColumn({ key: '', required: false, default: '<DEFAULT>', - size: 1, - newKey: '' + size: 1, // optional + newKey: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/update-table.md b/docs/examples/1.8.x/console-web/examples/tablesdb/update-table.md index a8c7300ec7..11eec2e343 100644 --- a/docs/examples/1.8.x/console-web/examples/tablesdb/update-table.md +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/update-table.md @@ -10,9 +10,9 @@ const result = await tablesDB.updateTable({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', name: '<NAME>', - permissions: ["read("any")"], - rowSecurity: false, - enabled: false + permissions: ["read("any")"], // optional + rowSecurity: false, // optional + enabled: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/update-url-column.md b/docs/examples/1.8.x/console-web/examples/tablesdb/update-url-column.md index 1e6084a0f9..e267e404de 100644 --- a/docs/examples/1.8.x/console-web/examples/tablesdb/update-url-column.md +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/update-url-column.md @@ -12,7 +12,7 @@ const result = await tablesDB.updateUrlColumn({ key: '', required: false, default: 'https://example.com', - newKey: '' + newKey: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/update.md b/docs/examples/1.8.x/console-web/examples/tablesdb/update.md index d51e589b1a..55809cb070 100644 --- a/docs/examples/1.8.x/console-web/examples/tablesdb/update.md +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/update.md @@ -9,7 +9,7 @@ const tablesDB = new TablesDB(client); const result = await tablesDB.update({ databaseId: '<DATABASE_ID>', name: '<NAME>', - enabled: false + enabled: false // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tablesdb/upsert-row.md b/docs/examples/1.8.x/console-web/examples/tablesdb/upsert-row.md index bee81260b7..665f181d8b 100644 --- a/docs/examples/1.8.x/console-web/examples/tablesdb/upsert-row.md +++ b/docs/examples/1.8.x/console-web/examples/tablesdb/upsert-row.md @@ -10,8 +10,8 @@ const result = await tablesDB.upsertRow({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', rowId: '<ROW_ID>', - data: {}, - permissions: ["read("any")"] + data: {}, // optional + permissions: ["read("any")"] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/teams/create-membership.md b/docs/examples/1.8.x/console-web/examples/teams/create-membership.md index 8774f9aac1..50c4d06b6d 100644 --- a/docs/examples/1.8.x/console-web/examples/teams/create-membership.md +++ b/docs/examples/1.8.x/console-web/examples/teams/create-membership.md @@ -9,11 +9,11 @@ const teams = new Teams(client); const result = await teams.createMembership({ teamId: '<TEAM_ID>', roles: [], - email: 'email@example.com', - userId: '<USER_ID>', - phone: '+12065550100', - url: 'https://example.com', - name: '<NAME>' + email: 'email@example.com', // optional + userId: '<USER_ID>', // optional + phone: '+12065550100', // optional + url: 'https://example.com', // optional + name: '<NAME>' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/teams/create.md b/docs/examples/1.8.x/console-web/examples/teams/create.md index c03e5d2d48..027155b4eb 100644 --- a/docs/examples/1.8.x/console-web/examples/teams/create.md +++ b/docs/examples/1.8.x/console-web/examples/teams/create.md @@ -9,7 +9,7 @@ const teams = new Teams(client); const result = await teams.create({ teamId: '<TEAM_ID>', name: '<NAME>', - roles: [] + roles: [] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/teams/list-logs.md b/docs/examples/1.8.x/console-web/examples/teams/list-logs.md index 34fc89d4f0..a077ae59ce 100644 --- a/docs/examples/1.8.x/console-web/examples/teams/list-logs.md +++ b/docs/examples/1.8.x/console-web/examples/teams/list-logs.md @@ -8,7 +8,7 @@ const teams = new Teams(client); const result = await teams.listLogs({ teamId: '<TEAM_ID>', - queries: [] + queries: [] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/teams/list-memberships.md b/docs/examples/1.8.x/console-web/examples/teams/list-memberships.md index 53e24dc55c..a5cf9f0fbf 100644 --- a/docs/examples/1.8.x/console-web/examples/teams/list-memberships.md +++ b/docs/examples/1.8.x/console-web/examples/teams/list-memberships.md @@ -8,8 +8,8 @@ const teams = new Teams(client); const result = await teams.listMemberships({ teamId: '<TEAM_ID>', - queries: [], - search: '<SEARCH>' + queries: [], // optional + search: '<SEARCH>' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/teams/list.md b/docs/examples/1.8.x/console-web/examples/teams/list.md index b4ab80c912..5d7dbcd3d9 100644 --- a/docs/examples/1.8.x/console-web/examples/teams/list.md +++ b/docs/examples/1.8.x/console-web/examples/teams/list.md @@ -7,8 +7,8 @@ const client = new Client() const teams = new Teams(client); const result = await teams.list({ - queries: [], - search: '<SEARCH>' + queries: [], // optional + search: '<SEARCH>' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tokens/create-file-token.md b/docs/examples/1.8.x/console-web/examples/tokens/create-file-token.md index c509c9ec24..b762493708 100644 --- a/docs/examples/1.8.x/console-web/examples/tokens/create-file-token.md +++ b/docs/examples/1.8.x/console-web/examples/tokens/create-file-token.md @@ -9,7 +9,7 @@ const tokens = new Tokens(client); const result = await tokens.createFileToken({ bucketId: '<BUCKET_ID>', fileId: '<FILE_ID>', - expire: '' + expire: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tokens/list.md b/docs/examples/1.8.x/console-web/examples/tokens/list.md index 9fbd5dc75b..29b9a3d242 100644 --- a/docs/examples/1.8.x/console-web/examples/tokens/list.md +++ b/docs/examples/1.8.x/console-web/examples/tokens/list.md @@ -9,7 +9,7 @@ const tokens = new Tokens(client); const result = await tokens.list({ bucketId: '<BUCKET_ID>', fileId: '<FILE_ID>', - queries: [] + queries: [] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/tokens/update.md b/docs/examples/1.8.x/console-web/examples/tokens/update.md index 49911cd2d2..96d92348ef 100644 --- a/docs/examples/1.8.x/console-web/examples/tokens/update.md +++ b/docs/examples/1.8.x/console-web/examples/tokens/update.md @@ -8,7 +8,7 @@ const tokens = new Tokens(client); const result = await tokens.update({ tokenId: '<TOKEN_ID>', - expire: '' + expire: '' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/users/create-argon2user.md b/docs/examples/1.8.x/console-web/examples/users/create-argon-2-user.md similarity index 92% rename from docs/examples/1.8.x/console-web/examples/users/create-argon2user.md rename to docs/examples/1.8.x/console-web/examples/users/create-argon-2-user.md index e9c506f5cd..58da25bcb0 100644 --- a/docs/examples/1.8.x/console-web/examples/users/create-argon2user.md +++ b/docs/examples/1.8.x/console-web/examples/users/create-argon-2-user.md @@ -10,7 +10,7 @@ const result = await users.createArgon2User({ userId: '<USER_ID>', email: 'email@example.com', password: 'password', - name: '<NAME>' + name: '<NAME>' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/users/create-bcrypt-user.md b/docs/examples/1.8.x/console-web/examples/users/create-bcrypt-user.md index aa76fe4b09..f83290d10d 100644 --- a/docs/examples/1.8.x/console-web/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.8.x/console-web/examples/users/create-bcrypt-user.md @@ -10,7 +10,7 @@ const result = await users.createBcryptUser({ userId: '<USER_ID>', email: 'email@example.com', password: 'password', - name: '<NAME>' + name: '<NAME>' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/users/create-j-w-t.md b/docs/examples/1.8.x/console-web/examples/users/create-jwt.md similarity index 82% rename from docs/examples/1.8.x/console-web/examples/users/create-j-w-t.md rename to docs/examples/1.8.x/console-web/examples/users/create-jwt.md index a132905534..4bd160bc96 100644 --- a/docs/examples/1.8.x/console-web/examples/users/create-j-w-t.md +++ b/docs/examples/1.8.x/console-web/examples/users/create-jwt.md @@ -8,8 +8,8 @@ const users = new Users(client); const result = await users.createJWT({ userId: '<USER_ID>', - sessionId: '<SESSION_ID>', - duration: 0 + sessionId: '<SESSION_ID>', // optional + duration: 0 // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/users/create-m-f-a-recovery-codes.md b/docs/examples/1.8.x/console-web/examples/users/create-m-f-a-recovery-codes.md deleted file mode 100644 index f8669589af..0000000000 --- a/docs/examples/1.8.x/console-web/examples/users/create-m-f-a-recovery-codes.md +++ /dev/null @@ -1,13 +0,0 @@ -import { Client, Users } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>'); // Your project ID - -const users = new Users(client); - -const result = await users.createMFARecoveryCodes({ - userId: '<USER_ID>' -}); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/users/create-m-d5user.md b/docs/examples/1.8.x/console-web/examples/users/create-md-5-user.md similarity index 92% rename from docs/examples/1.8.x/console-web/examples/users/create-m-d5user.md rename to docs/examples/1.8.x/console-web/examples/users/create-md-5-user.md index d193f4a5c0..a0bfb47a2d 100644 --- a/docs/examples/1.8.x/console-web/examples/users/create-m-d5user.md +++ b/docs/examples/1.8.x/console-web/examples/users/create-md-5-user.md @@ -10,7 +10,7 @@ const result = await users.createMD5User({ userId: '<USER_ID>', email: 'email@example.com', password: 'password', - name: '<NAME>' + name: '<NAME>' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.8.x/console-web/examples/users/create-mfa-recovery-codes.md index bf5a169b9d..f8669589af 100644 --- a/docs/examples/1.8.x/console-web/examples/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/console-web/examples/users/create-mfa-recovery-codes.md @@ -6,7 +6,7 @@ const client = new Client() const users = new Users(client); -const result = await users.createMfaRecoveryCodes({ +const result = await users.createMFARecoveryCodes({ userId: '<USER_ID>' }); diff --git a/docs/examples/1.8.x/console-web/examples/users/create-p-h-pass-user.md b/docs/examples/1.8.x/console-web/examples/users/create-ph-pass-user.md similarity index 92% rename from docs/examples/1.8.x/console-web/examples/users/create-p-h-pass-user.md rename to docs/examples/1.8.x/console-web/examples/users/create-ph-pass-user.md index 85da361c35..a42b8d7594 100644 --- a/docs/examples/1.8.x/console-web/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.8.x/console-web/examples/users/create-ph-pass-user.md @@ -10,7 +10,7 @@ const result = await users.createPHPassUser({ userId: '<USER_ID>', email: 'email@example.com', password: 'password', - name: '<NAME>' + name: '<NAME>' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/users/create-scrypt-modified-user.md b/docs/examples/1.8.x/console-web/examples/users/create-scrypt-modified-user.md index 51a7afb08a..b5a7ca3231 100644 --- a/docs/examples/1.8.x/console-web/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.8.x/console-web/examples/users/create-scrypt-modified-user.md @@ -13,7 +13,7 @@ const result = await users.createScryptModifiedUser({ passwordSalt: '<PASSWORD_SALT>', passwordSaltSeparator: '<PASSWORD_SALT_SEPARATOR>', passwordSignerKey: '<PASSWORD_SIGNER_KEY>', - name: '<NAME>' + name: '<NAME>' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/users/create-scrypt-user.md b/docs/examples/1.8.x/console-web/examples/users/create-scrypt-user.md index ca252a5db1..6727e2895f 100644 --- a/docs/examples/1.8.x/console-web/examples/users/create-scrypt-user.md +++ b/docs/examples/1.8.x/console-web/examples/users/create-scrypt-user.md @@ -15,7 +15,7 @@ const result = await users.createScryptUser({ passwordMemory: null, passwordParallel: null, passwordLength: null, - name: '<NAME>' + name: '<NAME>' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/users/create-s-h-a-user.md b/docs/examples/1.8.x/console-web/examples/users/create-sha-user.md similarity index 83% rename from docs/examples/1.8.x/console-web/examples/users/create-s-h-a-user.md rename to docs/examples/1.8.x/console-web/examples/users/create-sha-user.md index 622bc698b8..8d593ce6b5 100644 --- a/docs/examples/1.8.x/console-web/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.8.x/console-web/examples/users/create-sha-user.md @@ -10,8 +10,8 @@ const result = await users.createSHAUser({ userId: '<USER_ID>', email: 'email@example.com', password: 'password', - passwordVersion: PasswordHash.Sha1, - name: '<NAME>' + passwordVersion: PasswordHash.Sha1, // optional + name: '<NAME>' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/users/create-target.md b/docs/examples/1.8.x/console-web/examples/users/create-target.md index af87313dab..814d6f780a 100644 --- a/docs/examples/1.8.x/console-web/examples/users/create-target.md +++ b/docs/examples/1.8.x/console-web/examples/users/create-target.md @@ -11,8 +11,8 @@ const result = await users.createTarget({ targetId: '<TARGET_ID>', providerType: MessagingProviderType.Email, identifier: '<IDENTIFIER>', - providerId: '<PROVIDER_ID>', - name: '<NAME>' + providerId: '<PROVIDER_ID>', // optional + name: '<NAME>' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/users/create-token.md b/docs/examples/1.8.x/console-web/examples/users/create-token.md index d86f12f4a5..d1fa556e6f 100644 --- a/docs/examples/1.8.x/console-web/examples/users/create-token.md +++ b/docs/examples/1.8.x/console-web/examples/users/create-token.md @@ -8,8 +8,8 @@ const users = new Users(client); const result = await users.createToken({ userId: '<USER_ID>', - length: 4, - expire: 60 + length: 4, // optional + expire: 60 // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/users/create.md b/docs/examples/1.8.x/console-web/examples/users/create.md index cbd2e15647..b61c814539 100644 --- a/docs/examples/1.8.x/console-web/examples/users/create.md +++ b/docs/examples/1.8.x/console-web/examples/users/create.md @@ -8,10 +8,10 @@ const users = new Users(client); const result = await users.create({ userId: '<USER_ID>', - email: 'email@example.com', - phone: '+12065550100', - password: '', - name: '<NAME>' + email: 'email@example.com', // optional + phone: '+12065550100', // optional + password: '', // optional + name: '<NAME>' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/users/delete-m-f-a-authenticator.md b/docs/examples/1.8.x/console-web/examples/users/delete-m-f-a-authenticator.md deleted file mode 100644 index eeba75ad32..0000000000 --- a/docs/examples/1.8.x/console-web/examples/users/delete-m-f-a-authenticator.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Users, AuthenticatorType } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>'); // Your project ID - -const users = new Users(client); - -const result = await users.deleteMFAAuthenticator({ - userId: '<USER_ID>', - type: AuthenticatorType.Totp -}); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/users/delete-mfa-authenticator.md b/docs/examples/1.8.x/console-web/examples/users/delete-mfa-authenticator.md index 768dd84725..eeba75ad32 100644 --- a/docs/examples/1.8.x/console-web/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/1.8.x/console-web/examples/users/delete-mfa-authenticator.md @@ -6,7 +6,7 @@ const client = new Client() const users = new Users(client); -const result = await users.deleteMfaAuthenticator({ +const result = await users.deleteMFAAuthenticator({ userId: '<USER_ID>', type: AuthenticatorType.Totp }); diff --git a/docs/examples/1.8.x/console-web/examples/users/get-m-f-a-recovery-codes.md b/docs/examples/1.8.x/console-web/examples/users/get-m-f-a-recovery-codes.md deleted file mode 100644 index 082a2f8485..0000000000 --- a/docs/examples/1.8.x/console-web/examples/users/get-m-f-a-recovery-codes.md +++ /dev/null @@ -1,13 +0,0 @@ -import { Client, Users } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>'); // Your project ID - -const users = new Users(client); - -const result = await users.getMFARecoveryCodes({ - userId: '<USER_ID>' -}); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.8.x/console-web/examples/users/get-mfa-recovery-codes.md index f2e61362e1..082a2f8485 100644 --- a/docs/examples/1.8.x/console-web/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/console-web/examples/users/get-mfa-recovery-codes.md @@ -6,7 +6,7 @@ const client = new Client() const users = new Users(client); -const result = await users.getMfaRecoveryCodes({ +const result = await users.getMFARecoveryCodes({ userId: '<USER_ID>' }); diff --git a/docs/examples/1.8.x/console-web/examples/users/get-usage.md b/docs/examples/1.8.x/console-web/examples/users/get-usage.md index 9dd7e3e515..80c3a0ced3 100644 --- a/docs/examples/1.8.x/console-web/examples/users/get-usage.md +++ b/docs/examples/1.8.x/console-web/examples/users/get-usage.md @@ -7,7 +7,7 @@ const client = new Client() const users = new Users(client); const result = await users.getUsage({ - range: UsageRange.TwentyFourHours + range: UsageRange.TwentyFourHours // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/users/list-identities.md b/docs/examples/1.8.x/console-web/examples/users/list-identities.md index acd5a5b2ed..4cf88ccb54 100644 --- a/docs/examples/1.8.x/console-web/examples/users/list-identities.md +++ b/docs/examples/1.8.x/console-web/examples/users/list-identities.md @@ -7,8 +7,8 @@ const client = new Client() const users = new Users(client); const result = await users.listIdentities({ - queries: [], - search: '<SEARCH>' + queries: [], // optional + search: '<SEARCH>' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/users/list-logs.md b/docs/examples/1.8.x/console-web/examples/users/list-logs.md index 7db4242447..dfdaf1a068 100644 --- a/docs/examples/1.8.x/console-web/examples/users/list-logs.md +++ b/docs/examples/1.8.x/console-web/examples/users/list-logs.md @@ -8,7 +8,7 @@ const users = new Users(client); const result = await users.listLogs({ userId: '<USER_ID>', - queries: [] + queries: [] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/users/list-m-f-a-factors.md b/docs/examples/1.8.x/console-web/examples/users/list-m-f-a-factors.md deleted file mode 100644 index 4301971574..0000000000 --- a/docs/examples/1.8.x/console-web/examples/users/list-m-f-a-factors.md +++ /dev/null @@ -1,13 +0,0 @@ -import { Client, Users } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>'); // Your project ID - -const users = new Users(client); - -const result = await users.listMFAFactors({ - userId: '<USER_ID>' -}); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/users/list-memberships.md b/docs/examples/1.8.x/console-web/examples/users/list-memberships.md index abfc1150a3..e2b49223f8 100644 --- a/docs/examples/1.8.x/console-web/examples/users/list-memberships.md +++ b/docs/examples/1.8.x/console-web/examples/users/list-memberships.md @@ -8,8 +8,8 @@ const users = new Users(client); const result = await users.listMemberships({ userId: '<USER_ID>', - queries: [], - search: '<SEARCH>' + queries: [], // optional + search: '<SEARCH>' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/users/list-mfa-factors.md b/docs/examples/1.8.x/console-web/examples/users/list-mfa-factors.md index 03cb9e6a70..4301971574 100644 --- a/docs/examples/1.8.x/console-web/examples/users/list-mfa-factors.md +++ b/docs/examples/1.8.x/console-web/examples/users/list-mfa-factors.md @@ -6,7 +6,7 @@ const client = new Client() const users = new Users(client); -const result = await users.listMfaFactors({ +const result = await users.listMFAFactors({ userId: '<USER_ID>' }); diff --git a/docs/examples/1.8.x/console-web/examples/users/list-targets.md b/docs/examples/1.8.x/console-web/examples/users/list-targets.md index 5cf07689b3..f3af0c4011 100644 --- a/docs/examples/1.8.x/console-web/examples/users/list-targets.md +++ b/docs/examples/1.8.x/console-web/examples/users/list-targets.md @@ -8,7 +8,7 @@ const users = new Users(client); const result = await users.listTargets({ userId: '<USER_ID>', - queries: [] + queries: [] // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/users/list.md b/docs/examples/1.8.x/console-web/examples/users/list.md index ec0171a805..de75f2dacb 100644 --- a/docs/examples/1.8.x/console-web/examples/users/list.md +++ b/docs/examples/1.8.x/console-web/examples/users/list.md @@ -7,8 +7,8 @@ const client = new Client() const users = new Users(client); const result = await users.list({ - queries: [], - search: '<SEARCH>' + queries: [], // optional + search: '<SEARCH>' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/users/update-m-f-a-recovery-codes.md b/docs/examples/1.8.x/console-web/examples/users/update-m-f-a-recovery-codes.md deleted file mode 100644 index f9eecac66d..0000000000 --- a/docs/examples/1.8.x/console-web/examples/users/update-m-f-a-recovery-codes.md +++ /dev/null @@ -1,13 +0,0 @@ -import { Client, Users } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>'); // Your project ID - -const users = new Users(client); - -const result = await users.updateMFARecoveryCodes({ - userId: '<USER_ID>' -}); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/users/update-m-f-a.md b/docs/examples/1.8.x/console-web/examples/users/update-m-f-a.md deleted file mode 100644 index bbb33e8a42..0000000000 --- a/docs/examples/1.8.x/console-web/examples/users/update-m-f-a.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Users } from "@appwrite.io/console"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>'); // Your project ID - -const users = new Users(client); - -const result = await users.updateMFA({ - userId: '<USER_ID>', - mfa: false -}); - -console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.8.x/console-web/examples/users/update-mfa-recovery-codes.md index a90f49ea28..f9eecac66d 100644 --- a/docs/examples/1.8.x/console-web/examples/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/console-web/examples/users/update-mfa-recovery-codes.md @@ -6,7 +6,7 @@ const client = new Client() const users = new Users(client); -const result = await users.updateMfaRecoveryCodes({ +const result = await users.updateMFARecoveryCodes({ userId: '<USER_ID>' }); diff --git a/docs/examples/1.8.x/console-web/examples/users/update-mfa.md b/docs/examples/1.8.x/console-web/examples/users/update-mfa.md index 56dfb5dd66..bbb33e8a42 100644 --- a/docs/examples/1.8.x/console-web/examples/users/update-mfa.md +++ b/docs/examples/1.8.x/console-web/examples/users/update-mfa.md @@ -6,7 +6,7 @@ const client = new Client() const users = new Users(client); -const result = await users.updateMfa({ +const result = await users.updateMFA({ userId: '<USER_ID>', mfa: false }); diff --git a/docs/examples/1.8.x/console-web/examples/users/update-target.md b/docs/examples/1.8.x/console-web/examples/users/update-target.md index 6163e959d3..27f5611cee 100644 --- a/docs/examples/1.8.x/console-web/examples/users/update-target.md +++ b/docs/examples/1.8.x/console-web/examples/users/update-target.md @@ -9,9 +9,9 @@ const users = new Users(client); const result = await users.updateTarget({ userId: '<USER_ID>', targetId: '<TARGET_ID>', - identifier: '<IDENTIFIER>', - providerId: '<PROVIDER_ID>', - name: '<NAME>' + identifier: '<IDENTIFIER>', // optional + providerId: '<PROVIDER_ID>', // optional + name: '<NAME>' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/vcs/create-repository-detection.md b/docs/examples/1.8.x/console-web/examples/vcs/create-repository-detection.md index f08c6592f9..69b2ea1f44 100644 --- a/docs/examples/1.8.x/console-web/examples/vcs/create-repository-detection.md +++ b/docs/examples/1.8.x/console-web/examples/vcs/create-repository-detection.md @@ -10,7 +10,7 @@ const result = await vcs.createRepositoryDetection({ installationId: '<INSTALLATION_ID>', providerRepositoryId: '<PROVIDER_REPOSITORY_ID>', type: VCSDetectionType.Runtime, - providerRootDirectory: '<PROVIDER_ROOT_DIRECTORY>' + providerRootDirectory: '<PROVIDER_ROOT_DIRECTORY>' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/vcs/get-repository-contents.md b/docs/examples/1.8.x/console-web/examples/vcs/get-repository-contents.md index 82ebfd55fe..b33cadd448 100644 --- a/docs/examples/1.8.x/console-web/examples/vcs/get-repository-contents.md +++ b/docs/examples/1.8.x/console-web/examples/vcs/get-repository-contents.md @@ -9,8 +9,8 @@ const vcs = new Vcs(client); const result = await vcs.getRepositoryContents({ installationId: '<INSTALLATION_ID>', providerRepositoryId: '<PROVIDER_REPOSITORY_ID>', - providerRootDirectory: '<PROVIDER_ROOT_DIRECTORY>', - providerReference: '<PROVIDER_REFERENCE>' + providerRootDirectory: '<PROVIDER_ROOT_DIRECTORY>', // optional + providerReference: '<PROVIDER_REFERENCE>' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/vcs/list-installations.md b/docs/examples/1.8.x/console-web/examples/vcs/list-installations.md index ca8df51ab9..5a90607262 100644 --- a/docs/examples/1.8.x/console-web/examples/vcs/list-installations.md +++ b/docs/examples/1.8.x/console-web/examples/vcs/list-installations.md @@ -7,8 +7,8 @@ const client = new Client() const vcs = new Vcs(client); const result = await vcs.listInstallations({ - queries: [], - search: '<SEARCH>' + queries: [], // optional + search: '<SEARCH>' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/console-web/examples/vcs/list-repositories.md b/docs/examples/1.8.x/console-web/examples/vcs/list-repositories.md index 1143557639..cae640097e 100644 --- a/docs/examples/1.8.x/console-web/examples/vcs/list-repositories.md +++ b/docs/examples/1.8.x/console-web/examples/vcs/list-repositories.md @@ -9,7 +9,7 @@ const vcs = new Vcs(client); const result = await vcs.listRepositories({ installationId: '<INSTALLATION_ID>', type: VCSDetectionType.Runtime, - search: '<SEARCH>' + search: '<SEARCH>' // optional }); console.log(result); diff --git a/docs/examples/1.8.x/server-dart/examples/account/create-j-w-t.md b/docs/examples/1.8.x/server-dart/examples/account/create-jwt.md similarity index 100% rename from docs/examples/1.8.x/server-dart/examples/account/create-j-w-t.md rename to docs/examples/1.8.x/server-dart/examples/account/create-jwt.md diff --git a/docs/examples/1.8.x/server-dart/examples/account/create-m-f-a-authenticator.md b/docs/examples/1.8.x/server-dart/examples/account/create-m-f-a-authenticator.md deleted file mode 100644 index 4dd2191ff2..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/account/create-m-f-a-authenticator.md +++ /dev/null @@ -1,12 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setSession(''); // The user session to authenticate with - -Account account = Account(client); - -MfaType result = await account.createMFAAuthenticator( - type: AuthenticatorType.totp, -); diff --git a/docs/examples/1.8.x/server-dart/examples/account/create-m-f-a-challenge.md b/docs/examples/1.8.x/server-dart/examples/account/create-m-f-a-challenge.md deleted file mode 100644 index 5df3abadad..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/account/create-m-f-a-challenge.md +++ /dev/null @@ -1,11 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>'); // Your project ID - -Account account = Account(client); - -MfaChallenge result = await account.createMFAChallenge( - factor: AuthenticationFactor.email, -); diff --git a/docs/examples/1.8.x/server-dart/examples/account/create-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-dart/examples/account/create-m-f-a-recovery-codes.md deleted file mode 100644 index 1e8d478887..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/account/create-m-f-a-recovery-codes.md +++ /dev/null @@ -1,10 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setSession(''); // The user session to authenticate with - -Account account = Account(client); - -MfaRecoveryCodes result = await account.createMFARecoveryCodes(); diff --git a/docs/examples/1.8.x/server-dart/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.8.x/server-dart/examples/account/create-magic-url-token.md similarity index 100% rename from docs/examples/1.8.x/server-dart/examples/account/create-magic-u-r-l-token.md rename to docs/examples/1.8.x/server-dart/examples/account/create-magic-url-token.md diff --git a/docs/examples/1.8.x/server-dart/examples/account/create-mfa-authenticator.md b/docs/examples/1.8.x/server-dart/examples/account/create-mfa-authenticator.md index 87797fa645..4dd2191ff2 100644 --- a/docs/examples/1.8.x/server-dart/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.8.x/server-dart/examples/account/create-mfa-authenticator.md @@ -7,6 +7,6 @@ Client client = Client() Account account = Account(client); -MfaType result = await account.createMfaAuthenticator( +MfaType result = await account.createMFAAuthenticator( type: AuthenticatorType.totp, ); diff --git a/docs/examples/1.8.x/server-dart/examples/account/create-mfa-challenge.md b/docs/examples/1.8.x/server-dart/examples/account/create-mfa-challenge.md index 62f3eaf2c2..5df3abadad 100644 --- a/docs/examples/1.8.x/server-dart/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.8.x/server-dart/examples/account/create-mfa-challenge.md @@ -6,6 +6,6 @@ Client client = Client() Account account = Account(client); -MfaChallenge result = await account.createMfaChallenge( +MfaChallenge result = await account.createMFAChallenge( factor: AuthenticationFactor.email, ); diff --git a/docs/examples/1.8.x/server-dart/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.8.x/server-dart/examples/account/create-mfa-recovery-codes.md index 5ebe0e9e92..1e8d478887 100644 --- a/docs/examples/1.8.x/server-dart/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-dart/examples/account/create-mfa-recovery-codes.md @@ -7,4 +7,4 @@ Client client = Client() Account account = Account(client); -MfaRecoveryCodes result = await account.createMfaRecoveryCodes(); +MfaRecoveryCodes result = await account.createMFARecoveryCodes(); diff --git a/docs/examples/1.8.x/server-dart/examples/account/create-o-auth2token.md b/docs/examples/1.8.x/server-dart/examples/account/create-o-auth-2-token.md similarity index 100% rename from docs/examples/1.8.x/server-dart/examples/account/create-o-auth2token.md rename to docs/examples/1.8.x/server-dart/examples/account/create-o-auth-2-token.md diff --git a/docs/examples/1.8.x/server-dart/examples/account/delete-m-f-a-authenticator.md b/docs/examples/1.8.x/server-dart/examples/account/delete-m-f-a-authenticator.md deleted file mode 100644 index 7f3f4ab1c8..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/account/delete-m-f-a-authenticator.md +++ /dev/null @@ -1,12 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setSession(''); // The user session to authenticate with - -Account account = Account(client); - -await account.deleteMFAAuthenticator( - type: AuthenticatorType.totp, -); diff --git a/docs/examples/1.8.x/server-dart/examples/account/delete-mfa-authenticator.md b/docs/examples/1.8.x/server-dart/examples/account/delete-mfa-authenticator.md index efd5263e22..7f3f4ab1c8 100644 --- a/docs/examples/1.8.x/server-dart/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.8.x/server-dart/examples/account/delete-mfa-authenticator.md @@ -7,6 +7,6 @@ Client client = Client() Account account = Account(client); -await account.deleteMfaAuthenticator( +await account.deleteMFAAuthenticator( type: AuthenticatorType.totp, ); diff --git a/docs/examples/1.8.x/server-dart/examples/account/get-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-dart/examples/account/get-m-f-a-recovery-codes.md deleted file mode 100644 index 5ff858fdaf..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/account/get-m-f-a-recovery-codes.md +++ /dev/null @@ -1,10 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setSession(''); // The user session to authenticate with - -Account account = Account(client); - -MfaRecoveryCodes result = await account.getMFARecoveryCodes(); diff --git a/docs/examples/1.8.x/server-dart/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.8.x/server-dart/examples/account/get-mfa-recovery-codes.md index b073d40238..5ff858fdaf 100644 --- a/docs/examples/1.8.x/server-dart/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-dart/examples/account/get-mfa-recovery-codes.md @@ -7,4 +7,4 @@ Client client = Client() Account account = Account(client); -MfaRecoveryCodes result = await account.getMfaRecoveryCodes(); +MfaRecoveryCodes result = await account.getMFARecoveryCodes(); diff --git a/docs/examples/1.8.x/server-dart/examples/account/list-m-f-a-factors.md b/docs/examples/1.8.x/server-dart/examples/account/list-m-f-a-factors.md deleted file mode 100644 index 083b51d6c3..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/account/list-m-f-a-factors.md +++ /dev/null @@ -1,10 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setSession(''); // The user session to authenticate with - -Account account = Account(client); - -MfaFactors result = await account.listMFAFactors(); diff --git a/docs/examples/1.8.x/server-dart/examples/account/list-mfa-factors.md b/docs/examples/1.8.x/server-dart/examples/account/list-mfa-factors.md index 32b269fbd7..083b51d6c3 100644 --- a/docs/examples/1.8.x/server-dart/examples/account/list-mfa-factors.md +++ b/docs/examples/1.8.x/server-dart/examples/account/list-mfa-factors.md @@ -7,4 +7,4 @@ Client client = Client() Account account = Account(client); -MfaFactors result = await account.listMfaFactors(); +MfaFactors result = await account.listMFAFactors(); diff --git a/docs/examples/1.8.x/server-dart/examples/account/update-m-f-a-authenticator.md b/docs/examples/1.8.x/server-dart/examples/account/update-m-f-a-authenticator.md deleted file mode 100644 index c475d30e19..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/account/update-m-f-a-authenticator.md +++ /dev/null @@ -1,13 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setSession(''); // The user session to authenticate with - -Account account = Account(client); - -User result = await account.updateMFAAuthenticator( - type: AuthenticatorType.totp, - otp: '<OTP>', -); diff --git a/docs/examples/1.8.x/server-dart/examples/account/update-m-f-a-challenge.md b/docs/examples/1.8.x/server-dart/examples/account/update-m-f-a-challenge.md deleted file mode 100644 index 6cf3bb473e..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/account/update-m-f-a-challenge.md +++ /dev/null @@ -1,13 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setSession(''); // The user session to authenticate with - -Account account = Account(client); - -Session result = await account.updateMFAChallenge( - challengeId: '<CHALLENGE_ID>', - otp: '<OTP>', -); diff --git a/docs/examples/1.8.x/server-dart/examples/account/update-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-dart/examples/account/update-m-f-a-recovery-codes.md deleted file mode 100644 index 10fc77d2f2..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/account/update-m-f-a-recovery-codes.md +++ /dev/null @@ -1,10 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setSession(''); // The user session to authenticate with - -Account account = Account(client); - -MfaRecoveryCodes result = await account.updateMFARecoveryCodes(); diff --git a/docs/examples/1.8.x/server-dart/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.8.x/server-dart/examples/account/update-magic-url-session.md similarity index 100% rename from docs/examples/1.8.x/server-dart/examples/account/update-magic-u-r-l-session.md rename to docs/examples/1.8.x/server-dart/examples/account/update-magic-url-session.md diff --git a/docs/examples/1.8.x/server-dart/examples/account/update-mfa-authenticator.md b/docs/examples/1.8.x/server-dart/examples/account/update-mfa-authenticator.md index 5a0f98f578..c475d30e19 100644 --- a/docs/examples/1.8.x/server-dart/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.8.x/server-dart/examples/account/update-mfa-authenticator.md @@ -7,7 +7,7 @@ Client client = Client() Account account = Account(client); -User result = await account.updateMfaAuthenticator( +User result = await account.updateMFAAuthenticator( type: AuthenticatorType.totp, otp: '<OTP>', ); diff --git a/docs/examples/1.8.x/server-dart/examples/account/update-mfa-challenge.md b/docs/examples/1.8.x/server-dart/examples/account/update-mfa-challenge.md index 749c4cd6a0..6cf3bb473e 100644 --- a/docs/examples/1.8.x/server-dart/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.8.x/server-dart/examples/account/update-mfa-challenge.md @@ -7,7 +7,7 @@ Client client = Client() Account account = Account(client); -Session result = await account.updateMfaChallenge( +Session result = await account.updateMFAChallenge( challengeId: '<CHALLENGE_ID>', otp: '<OTP>', ); diff --git a/docs/examples/1.8.x/server-dart/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.8.x/server-dart/examples/account/update-mfa-recovery-codes.md index 7e274f0ead..10fc77d2f2 100644 --- a/docs/examples/1.8.x/server-dart/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-dart/examples/account/update-mfa-recovery-codes.md @@ -7,4 +7,4 @@ Client client = Client() Account account = Account(client); -MfaRecoveryCodes result = await account.updateMfaRecoveryCodes(); +MfaRecoveryCodes result = await account.updateMFARecoveryCodes(); diff --git a/docs/examples/1.8.x/server-dart/examples/account/update-m-f-a.md b/docs/examples/1.8.x/server-dart/examples/account/update-mfa.md similarity index 100% rename from docs/examples/1.8.x/server-dart/examples/account/update-m-f-a.md rename to docs/examples/1.8.x/server-dart/examples/account/update-mfa.md diff --git a/docs/examples/1.8.x/server-dart/examples/avatars/get-q-r.md b/docs/examples/1.8.x/server-dart/examples/avatars/get-qr.md similarity index 100% rename from docs/examples/1.8.x/server-dart/examples/avatars/get-q-r.md rename to docs/examples/1.8.x/server-dart/examples/avatars/get-qr.md diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-boolean-column.md b/docs/examples/1.8.x/server-dart/examples/grids/create-boolean-column.md deleted file mode 100644 index d462336207..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/create-boolean-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -Grids grids = Grids(client); - -ColumnBoolean result = await grids.createBooleanColumn( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - key: '', - xrequired: false, - xdefault: false, // (optional) - array: false, // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-database.md b/docs/examples/1.8.x/server-dart/examples/grids/create-database.md deleted file mode 100644 index d77e3747c9..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/create-database.md +++ /dev/null @@ -1,14 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -Grids grids = Grids(client); - -Database result = await grids.createDatabase( - databaseId: '<DATABASE_ID>', - name: '<NAME>', - enabled: false, // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-datetime-column.md b/docs/examples/1.8.x/server-dart/examples/grids/create-datetime-column.md deleted file mode 100644 index 88365e0d0f..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/create-datetime-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -Grids grids = Grids(client); - -ColumnDatetime result = await grids.createDatetimeColumn( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - key: '', - xrequired: false, - xdefault: '', // (optional) - array: false, // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-email-column.md b/docs/examples/1.8.x/server-dart/examples/grids/create-email-column.md deleted file mode 100644 index 69d6c03d8f..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/create-email-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -Grids grids = Grids(client); - -ColumnEmail result = await grids.createEmailColumn( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - key: '', - xrequired: false, - xdefault: 'email@example.com', // (optional) - array: false, // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-enum-column.md b/docs/examples/1.8.x/server-dart/examples/grids/create-enum-column.md deleted file mode 100644 index a3a1e3ff60..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/create-enum-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -Grids grids = Grids(client); - -ColumnEnum result = await grids.createEnumColumn( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - key: '', - elements: [], - xrequired: false, - xdefault: '<DEFAULT>', // (optional) - array: false, // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-float-column.md b/docs/examples/1.8.x/server-dart/examples/grids/create-float-column.md deleted file mode 100644 index eba5e98ccc..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/create-float-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -Grids grids = Grids(client); - -ColumnFloat result = await grids.createFloatColumn( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - key: '', - xrequired: false, - min: 0, // (optional) - max: 0, // (optional) - xdefault: 0, // (optional) - array: false, // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-index.md b/docs/examples/1.8.x/server-dart/examples/grids/create-index.md deleted file mode 100644 index 4926b9ec83..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/create-index.md +++ /dev/null @@ -1,18 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -Grids grids = Grids(client); - -ColumnIndex result = await grids.createIndex( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - key: '', - type: IndexType.key, - columns: [], - orders: [], // (optional) - lengths: [], // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-integer-column.md b/docs/examples/1.8.x/server-dart/examples/grids/create-integer-column.md deleted file mode 100644 index d5bfdf3144..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/create-integer-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -Grids grids = Grids(client); - -ColumnInteger result = await grids.createIntegerColumn( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - key: '', - xrequired: false, - min: 0, // (optional) - max: 0, // (optional) - xdefault: 0, // (optional) - array: false, // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-ip-column.md b/docs/examples/1.8.x/server-dart/examples/grids/create-ip-column.md deleted file mode 100644 index 91b83fde8c..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/create-ip-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -Grids grids = Grids(client); - -ColumnIp result = await grids.createIpColumn( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - key: '', - xrequired: false, - xdefault: '', // (optional) - array: false, // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-relationship-column.md b/docs/examples/1.8.x/server-dart/examples/grids/create-relationship-column.md deleted file mode 100644 index 99f0427a85..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/create-relationship-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -Grids grids = Grids(client); - -ColumnRelationship result = await grids.createRelationshipColumn( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - relatedTableId: '<RELATED_TABLE_ID>', - type: RelationshipType.oneToOne, - twoWay: false, // (optional) - key: '', // (optional) - twoWayKey: '', // (optional) - onDelete: RelationMutate.cascade, // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-row.md b/docs/examples/1.8.x/server-dart/examples/grids/create-row.md deleted file mode 100644 index 4db0893686..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/create-row.md +++ /dev/null @@ -1,16 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setSession(''); // The user session to authenticate with - -Grids grids = Grids(client); - -Row result = await grids.createRow( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - rowId: '<ROW_ID>', - data: {}, - permissions: ["read("any")"], // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-rows.md b/docs/examples/1.8.x/server-dart/examples/grids/create-rows.md deleted file mode 100644 index 111d061c3e..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/create-rows.md +++ /dev/null @@ -1,14 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -Grids grids = Grids(client); - -RowList result = await grids.createRows( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - rows: [], -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-string-column.md b/docs/examples/1.8.x/server-dart/examples/grids/create-string-column.md deleted file mode 100644 index 74b9cb7fa6..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/create-string-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -Grids grids = Grids(client); - -ColumnString result = await grids.createStringColumn( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - key: '', - size: 1, - xrequired: false, - xdefault: '<DEFAULT>', // (optional) - array: false, // (optional) - encrypt: false, // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-table.md b/docs/examples/1.8.x/server-dart/examples/grids/create-table.md deleted file mode 100644 index 1bb7afadd3..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/create-table.md +++ /dev/null @@ -1,17 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -Grids grids = Grids(client); - -Table result = await grids.createTable( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - name: '<NAME>', - permissions: ["read("any")"], // (optional) - rowSecurity: false, // (optional) - enabled: false, // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/create-url-column.md b/docs/examples/1.8.x/server-dart/examples/grids/create-url-column.md deleted file mode 100644 index cc129fce97..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/create-url-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -Grids grids = Grids(client); - -ColumnUrl result = await grids.createUrlColumn( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - key: '', - xrequired: false, - xdefault: 'https://example.com', // (optional) - array: false, // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/decrement-row-column.md b/docs/examples/1.8.x/server-dart/examples/grids/decrement-row-column.md deleted file mode 100644 index ad0744dbc6..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/decrement-row-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -Grids grids = Grids(client); - -Row result = await grids.decrementRowColumn( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - rowId: '<ROW_ID>', - column: '', - value: 0, // (optional) - min: 0, // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/delete-column.md b/docs/examples/1.8.x/server-dart/examples/grids/delete-column.md deleted file mode 100644 index e326064f4f..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/delete-column.md +++ /dev/null @@ -1,14 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -Grids grids = Grids(client); - -await grids.deleteColumn( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - key: '', -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/delete-database.md b/docs/examples/1.8.x/server-dart/examples/grids/delete-database.md deleted file mode 100644 index 0738454382..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/delete-database.md +++ /dev/null @@ -1,12 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -Grids grids = Grids(client); - -await grids.deleteDatabase( - databaseId: '<DATABASE_ID>', -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/delete-index.md b/docs/examples/1.8.x/server-dart/examples/grids/delete-index.md deleted file mode 100644 index 14dbccb979..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/delete-index.md +++ /dev/null @@ -1,14 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -Grids grids = Grids(client); - -await grids.deleteIndex( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - key: '', -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/delete-row.md b/docs/examples/1.8.x/server-dart/examples/grids/delete-row.md deleted file mode 100644 index 8a37455490..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/delete-row.md +++ /dev/null @@ -1,14 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setSession(''); // The user session to authenticate with - -Grids grids = Grids(client); - -await grids.deleteRow( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - rowId: '<ROW_ID>', -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/delete-rows.md b/docs/examples/1.8.x/server-dart/examples/grids/delete-rows.md deleted file mode 100644 index dd2214fc68..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/delete-rows.md +++ /dev/null @@ -1,14 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -Grids grids = Grids(client); - -await grids.deleteRows( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - queries: [], // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/delete-table.md b/docs/examples/1.8.x/server-dart/examples/grids/delete-table.md deleted file mode 100644 index af29d31b87..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/delete-table.md +++ /dev/null @@ -1,13 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -Grids grids = Grids(client); - -await grids.deleteTable( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/get-column.md b/docs/examples/1.8.x/server-dart/examples/grids/get-column.md deleted file mode 100644 index 4040124454..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/get-column.md +++ /dev/null @@ -1,14 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -Grids grids = Grids(client); - - result = await grids.getColumn( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - key: '', -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/get-database.md b/docs/examples/1.8.x/server-dart/examples/grids/get-database.md deleted file mode 100644 index e8a674b1ab..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/get-database.md +++ /dev/null @@ -1,12 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -Grids grids = Grids(client); - -Database result = await grids.getDatabase( - databaseId: '<DATABASE_ID>', -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/get-index.md b/docs/examples/1.8.x/server-dart/examples/grids/get-index.md deleted file mode 100644 index 6e66a55b37..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/get-index.md +++ /dev/null @@ -1,14 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -Grids grids = Grids(client); - -ColumnIndex result = await grids.getIndex( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - key: '', -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/get-row.md b/docs/examples/1.8.x/server-dart/examples/grids/get-row.md deleted file mode 100644 index da2a609d32..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/get-row.md +++ /dev/null @@ -1,15 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setSession(''); // The user session to authenticate with - -Grids grids = Grids(client); - -Row result = await grids.getRow( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - rowId: '<ROW_ID>', - queries: [], // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/get-table.md b/docs/examples/1.8.x/server-dart/examples/grids/get-table.md deleted file mode 100644 index d38fca0455..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/get-table.md +++ /dev/null @@ -1,13 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -Grids grids = Grids(client); - -Table result = await grids.getTable( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/increment-row-column.md b/docs/examples/1.8.x/server-dart/examples/grids/increment-row-column.md deleted file mode 100644 index 14c041404c..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/increment-row-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -Grids grids = Grids(client); - -Row result = await grids.incrementRowColumn( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - rowId: '<ROW_ID>', - column: '', - value: 0, // (optional) - max: 0, // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/list-columns.md b/docs/examples/1.8.x/server-dart/examples/grids/list-columns.md deleted file mode 100644 index 222b5ba172..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/list-columns.md +++ /dev/null @@ -1,14 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -Grids grids = Grids(client); - -ColumnList result = await grids.listColumns( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - queries: [], // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/list-databases.md b/docs/examples/1.8.x/server-dart/examples/grids/list-databases.md deleted file mode 100644 index 14e2c78b63..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/list-databases.md +++ /dev/null @@ -1,13 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -Grids grids = Grids(client); - -DatabaseList result = await grids.listDatabases( - queries: [], // (optional) - search: '<SEARCH>', // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/list-indexes.md b/docs/examples/1.8.x/server-dart/examples/grids/list-indexes.md deleted file mode 100644 index 218c3e0ccc..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/list-indexes.md +++ /dev/null @@ -1,14 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -Grids grids = Grids(client); - -ColumnIndexList result = await grids.listIndexes( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - queries: [], // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/list-rows.md b/docs/examples/1.8.x/server-dart/examples/grids/list-rows.md deleted file mode 100644 index 49f2a7ef21..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/list-rows.md +++ /dev/null @@ -1,14 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setSession(''); // The user session to authenticate with - -Grids grids = Grids(client); - -RowList result = await grids.listRows( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - queries: [], // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/list-tables.md b/docs/examples/1.8.x/server-dart/examples/grids/list-tables.md deleted file mode 100644 index 4f1e08b713..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/list-tables.md +++ /dev/null @@ -1,14 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -Grids grids = Grids(client); - -TableList result = await grids.listTables( - databaseId: '<DATABASE_ID>', - queries: [], // (optional) - search: '<SEARCH>', // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/update-boolean-column.md b/docs/examples/1.8.x/server-dart/examples/grids/update-boolean-column.md deleted file mode 100644 index e9e5a1fe32..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/update-boolean-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -Grids grids = Grids(client); - -ColumnBoolean result = await grids.updateBooleanColumn( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - key: '', - xrequired: false, - xdefault: false, - newKey: '', // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/update-database.md b/docs/examples/1.8.x/server-dart/examples/grids/update-database.md deleted file mode 100644 index d65a80185f..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/update-database.md +++ /dev/null @@ -1,14 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -Grids grids = Grids(client); - -Database result = await grids.updateDatabase( - databaseId: '<DATABASE_ID>', - name: '<NAME>', - enabled: false, // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/update-datetime-column.md b/docs/examples/1.8.x/server-dart/examples/grids/update-datetime-column.md deleted file mode 100644 index 6eb1bb6cbf..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/update-datetime-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -Grids grids = Grids(client); - -ColumnDatetime result = await grids.updateDatetimeColumn( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - key: '', - xrequired: false, - xdefault: '', - newKey: '', // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/update-email-column.md b/docs/examples/1.8.x/server-dart/examples/grids/update-email-column.md deleted file mode 100644 index 0fabb3e6a3..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/update-email-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -Grids grids = Grids(client); - -ColumnEmail result = await grids.updateEmailColumn( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - key: '', - xrequired: false, - xdefault: 'email@example.com', - newKey: '', // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/update-enum-column.md b/docs/examples/1.8.x/server-dart/examples/grids/update-enum-column.md deleted file mode 100644 index 5aa1613b75..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/update-enum-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -Grids grids = Grids(client); - -ColumnEnum result = await grids.updateEnumColumn( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - key: '', - elements: [], - xrequired: false, - xdefault: '<DEFAULT>', - newKey: '', // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/update-float-column.md b/docs/examples/1.8.x/server-dart/examples/grids/update-float-column.md deleted file mode 100644 index 0326f3c6f8..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/update-float-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -Grids grids = Grids(client); - -ColumnFloat result = await grids.updateFloatColumn( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - key: '', - xrequired: false, - xdefault: 0, - min: 0, // (optional) - max: 0, // (optional) - newKey: '', // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/update-integer-column.md b/docs/examples/1.8.x/server-dart/examples/grids/update-integer-column.md deleted file mode 100644 index 3572a064b3..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/update-integer-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -Grids grids = Grids(client); - -ColumnInteger result = await grids.updateIntegerColumn( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - key: '', - xrequired: false, - xdefault: 0, - min: 0, // (optional) - max: 0, // (optional) - newKey: '', // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/update-ip-column.md b/docs/examples/1.8.x/server-dart/examples/grids/update-ip-column.md deleted file mode 100644 index a75ff07569..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/update-ip-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -Grids grids = Grids(client); - -ColumnIp result = await grids.updateIpColumn( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - key: '', - xrequired: false, - xdefault: '', - newKey: '', // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/update-relationship-column.md b/docs/examples/1.8.x/server-dart/examples/grids/update-relationship-column.md deleted file mode 100644 index 4ecb479124..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/update-relationship-column.md +++ /dev/null @@ -1,16 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -Grids grids = Grids(client); - -ColumnRelationship result = await grids.updateRelationshipColumn( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - key: '', - onDelete: RelationMutate.cascade, // (optional) - newKey: '', // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/update-row.md b/docs/examples/1.8.x/server-dart/examples/grids/update-row.md deleted file mode 100644 index f11cf400cb..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/update-row.md +++ /dev/null @@ -1,16 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setSession(''); // The user session to authenticate with - -Grids grids = Grids(client); - -Row result = await grids.updateRow( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - rowId: '<ROW_ID>', - data: {}, // (optional) - permissions: ["read("any")"], // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/update-rows.md b/docs/examples/1.8.x/server-dart/examples/grids/update-rows.md deleted file mode 100644 index 6dd4db1d3c..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/update-rows.md +++ /dev/null @@ -1,15 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -Grids grids = Grids(client); - -RowList result = await grids.updateRows( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - data: {}, // (optional) - queries: [], // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/update-string-column.md b/docs/examples/1.8.x/server-dart/examples/grids/update-string-column.md deleted file mode 100644 index 2bc58912cb..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/update-string-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -Grids grids = Grids(client); - -ColumnString result = await grids.updateStringColumn( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - key: '', - xrequired: false, - xdefault: '<DEFAULT>', - size: 1, // (optional) - newKey: '', // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/update-table.md b/docs/examples/1.8.x/server-dart/examples/grids/update-table.md deleted file mode 100644 index c5c497eddf..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/update-table.md +++ /dev/null @@ -1,17 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -Grids grids = Grids(client); - -Table result = await grids.updateTable( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - name: '<NAME>', - permissions: ["read("any")"], // (optional) - rowSecurity: false, // (optional) - enabled: false, // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/update-url-column.md b/docs/examples/1.8.x/server-dart/examples/grids/update-url-column.md deleted file mode 100644 index 79359f5436..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/update-url-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -Grids grids = Grids(client); - -ColumnUrl result = await grids.updateUrlColumn( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - key: '', - xrequired: false, - xdefault: 'https://example.com', - newKey: '', // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/upsert-row.md b/docs/examples/1.8.x/server-dart/examples/grids/upsert-row.md deleted file mode 100644 index e8a697664e..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/upsert-row.md +++ /dev/null @@ -1,16 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setSession(''); // The user session to authenticate with - -Grids grids = Grids(client); - -Row result = await grids.upsertRow( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - rowId: '<ROW_ID>', - data: {}, // (optional) - permissions: ["read("any")"], // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/grids/upsert-rows.md b/docs/examples/1.8.x/server-dart/examples/grids/upsert-rows.md deleted file mode 100644 index b12d6960f0..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/grids/upsert-rows.md +++ /dev/null @@ -1,14 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -Grids grids = Grids(client); - -RowList result = await grids.upsertRows( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - rows: [], -); diff --git a/docs/examples/1.8.x/server-dart/examples/health/get-d-b.md b/docs/examples/1.8.x/server-dart/examples/health/get-db.md similarity index 100% rename from docs/examples/1.8.x/server-dart/examples/health/get-d-b.md rename to docs/examples/1.8.x/server-dart/examples/health/get-db.md diff --git a/docs/examples/1.8.x/server-dart/examples/locale/list-countries-e-u.md b/docs/examples/1.8.x/server-dart/examples/locale/list-countries-eu.md similarity index 100% rename from docs/examples/1.8.x/server-dart/examples/locale/list-countries-e-u.md rename to docs/examples/1.8.x/server-dart/examples/locale/list-countries-eu.md diff --git a/docs/examples/1.8.x/server-dart/examples/messaging/create-a-p-n-s-provider.md b/docs/examples/1.8.x/server-dart/examples/messaging/create-a-p-n-s-provider.md deleted file mode 100644 index a4faf2dacf..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/messaging/create-a-p-n-s-provider.md +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -Messaging messaging = Messaging(client); - -Provider result = await messaging.createAPNSProvider( - providerId: '<PROVIDER_ID>', - name: '<NAME>', - authKey: '<AUTH_KEY>', // (optional) - authKeyId: '<AUTH_KEY_ID>', // (optional) - teamId: '<TEAM_ID>', // (optional) - bundleId: '<BUNDLE_ID>', // (optional) - sandbox: false, // (optional) - enabled: false, // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/messaging/create-apns-provider.md b/docs/examples/1.8.x/server-dart/examples/messaging/create-apns-provider.md index 82c1eb5da6..a4faf2dacf 100644 --- a/docs/examples/1.8.x/server-dart/examples/messaging/create-apns-provider.md +++ b/docs/examples/1.8.x/server-dart/examples/messaging/create-apns-provider.md @@ -7,7 +7,7 @@ Client client = Client() Messaging messaging = Messaging(client); -Provider result = await messaging.createApnsProvider( +Provider result = await messaging.createAPNSProvider( providerId: '<PROVIDER_ID>', name: '<NAME>', authKey: '<AUTH_KEY>', // (optional) diff --git a/docs/examples/1.8.x/server-dart/examples/messaging/create-f-c-m-provider.md b/docs/examples/1.8.x/server-dart/examples/messaging/create-f-c-m-provider.md deleted file mode 100644 index ce4f810d5d..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/messaging/create-f-c-m-provider.md +++ /dev/null @@ -1,15 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -Messaging messaging = Messaging(client); - -Provider result = await messaging.createFCMProvider( - providerId: '<PROVIDER_ID>', - name: '<NAME>', - serviceAccountJSON: {}, // (optional) - enabled: false, // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/messaging/create-fcm-provider.md b/docs/examples/1.8.x/server-dart/examples/messaging/create-fcm-provider.md index 25c2cb8cfa..ce4f810d5d 100644 --- a/docs/examples/1.8.x/server-dart/examples/messaging/create-fcm-provider.md +++ b/docs/examples/1.8.x/server-dart/examples/messaging/create-fcm-provider.md @@ -7,7 +7,7 @@ Client client = Client() Messaging messaging = Messaging(client); -Provider result = await messaging.createFcmProvider( +Provider result = await messaging.createFCMProvider( providerId: '<PROVIDER_ID>', name: '<NAME>', serviceAccountJSON: {}, // (optional) diff --git a/docs/examples/1.8.x/server-dart/examples/messaging/create-msg91provider.md b/docs/examples/1.8.x/server-dart/examples/messaging/create-msg-91-provider.md similarity index 100% rename from docs/examples/1.8.x/server-dart/examples/messaging/create-msg91provider.md rename to docs/examples/1.8.x/server-dart/examples/messaging/create-msg-91-provider.md diff --git a/docs/examples/1.8.x/server-dart/examples/messaging/create-s-m-s.md b/docs/examples/1.8.x/server-dart/examples/messaging/create-s-m-s.md deleted file mode 100644 index ca90bc6011..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/messaging/create-s-m-s.md +++ /dev/null @@ -1,18 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -Messaging messaging = Messaging(client); - -Message result = await messaging.createSMS( - messageId: '<MESSAGE_ID>', - content: '<CONTENT>', - topics: [], // (optional) - users: [], // (optional) - targets: [], // (optional) - draft: false, // (optional) - scheduledAt: '', // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/messaging/create-s-m-t-p-provider.md b/docs/examples/1.8.x/server-dart/examples/messaging/create-s-m-t-p-provider.md deleted file mode 100644 index 644d30faa7..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/messaging/create-s-m-t-p-provider.md +++ /dev/null @@ -1,25 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -Messaging messaging = Messaging(client); - -Provider result = await messaging.createSMTPProvider( - providerId: '<PROVIDER_ID>', - name: '<NAME>', - host: '<HOST>', - port: 1, // (optional) - username: '<USERNAME>', // (optional) - password: '<PASSWORD>', // (optional) - encryption: SmtpEncryption.none, // (optional) - autoTLS: false, // (optional) - mailer: '<MAILER>', // (optional) - fromName: '<FROM_NAME>', // (optional) - fromEmail: 'email@example.com', // (optional) - replyToName: '<REPLY_TO_NAME>', // (optional) - replyToEmail: 'email@example.com', // (optional) - enabled: false, // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/messaging/create-sms.md b/docs/examples/1.8.x/server-dart/examples/messaging/create-sms.md index 04a715870f..ca90bc6011 100644 --- a/docs/examples/1.8.x/server-dart/examples/messaging/create-sms.md +++ b/docs/examples/1.8.x/server-dart/examples/messaging/create-sms.md @@ -7,7 +7,7 @@ Client client = Client() Messaging messaging = Messaging(client); -Message result = await messaging.createSms( +Message result = await messaging.createSMS( messageId: '<MESSAGE_ID>', content: '<CONTENT>', topics: [], // (optional) diff --git a/docs/examples/1.8.x/server-dart/examples/messaging/create-smtp-provider.md b/docs/examples/1.8.x/server-dart/examples/messaging/create-smtp-provider.md index 6201987fbb..644d30faa7 100644 --- a/docs/examples/1.8.x/server-dart/examples/messaging/create-smtp-provider.md +++ b/docs/examples/1.8.x/server-dart/examples/messaging/create-smtp-provider.md @@ -7,7 +7,7 @@ Client client = Client() Messaging messaging = Messaging(client); -Provider result = await messaging.createSmtpProvider( +Provider result = await messaging.createSMTPProvider( providerId: '<PROVIDER_ID>', name: '<NAME>', host: '<HOST>', diff --git a/docs/examples/1.8.x/server-dart/examples/messaging/update-a-p-n-s-provider.md b/docs/examples/1.8.x/server-dart/examples/messaging/update-a-p-n-s-provider.md deleted file mode 100644 index 7f3bc8340e..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/messaging/update-a-p-n-s-provider.md +++ /dev/null @@ -1,19 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -Messaging messaging = Messaging(client); - -Provider result = await messaging.updateAPNSProvider( - providerId: '<PROVIDER_ID>', - name: '<NAME>', // (optional) - enabled: false, // (optional) - authKey: '<AUTH_KEY>', // (optional) - authKeyId: '<AUTH_KEY_ID>', // (optional) - teamId: '<TEAM_ID>', // (optional) - bundleId: '<BUNDLE_ID>', // (optional) - sandbox: false, // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/messaging/update-apns-provider.md b/docs/examples/1.8.x/server-dart/examples/messaging/update-apns-provider.md index edc0a1f769..7f3bc8340e 100644 --- a/docs/examples/1.8.x/server-dart/examples/messaging/update-apns-provider.md +++ b/docs/examples/1.8.x/server-dart/examples/messaging/update-apns-provider.md @@ -7,7 +7,7 @@ Client client = Client() Messaging messaging = Messaging(client); -Provider result = await messaging.updateApnsProvider( +Provider result = await messaging.updateAPNSProvider( providerId: '<PROVIDER_ID>', name: '<NAME>', // (optional) enabled: false, // (optional) diff --git a/docs/examples/1.8.x/server-dart/examples/messaging/update-f-c-m-provider.md b/docs/examples/1.8.x/server-dart/examples/messaging/update-f-c-m-provider.md deleted file mode 100644 index 65afba1fe2..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/messaging/update-f-c-m-provider.md +++ /dev/null @@ -1,15 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -Messaging messaging = Messaging(client); - -Provider result = await messaging.updateFCMProvider( - providerId: '<PROVIDER_ID>', - name: '<NAME>', // (optional) - enabled: false, // (optional) - serviceAccountJSON: {}, // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/messaging/update-fcm-provider.md b/docs/examples/1.8.x/server-dart/examples/messaging/update-fcm-provider.md index 1e2d8a8ca2..65afba1fe2 100644 --- a/docs/examples/1.8.x/server-dart/examples/messaging/update-fcm-provider.md +++ b/docs/examples/1.8.x/server-dart/examples/messaging/update-fcm-provider.md @@ -7,7 +7,7 @@ Client client = Client() Messaging messaging = Messaging(client); -Provider result = await messaging.updateFcmProvider( +Provider result = await messaging.updateFCMProvider( providerId: '<PROVIDER_ID>', name: '<NAME>', // (optional) enabled: false, // (optional) diff --git a/docs/examples/1.8.x/server-dart/examples/messaging/update-msg91provider.md b/docs/examples/1.8.x/server-dart/examples/messaging/update-msg-91-provider.md similarity index 100% rename from docs/examples/1.8.x/server-dart/examples/messaging/update-msg91provider.md rename to docs/examples/1.8.x/server-dart/examples/messaging/update-msg-91-provider.md diff --git a/docs/examples/1.8.x/server-dart/examples/messaging/update-s-m-s.md b/docs/examples/1.8.x/server-dart/examples/messaging/update-s-m-s.md deleted file mode 100644 index 26e6649b57..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/messaging/update-s-m-s.md +++ /dev/null @@ -1,18 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -Messaging messaging = Messaging(client); - -Message result = await messaging.updateSMS( - messageId: '<MESSAGE_ID>', - topics: [], // (optional) - users: [], // (optional) - targets: [], // (optional) - content: '<CONTENT>', // (optional) - draft: false, // (optional) - scheduledAt: '', // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/messaging/update-s-m-t-p-provider.md b/docs/examples/1.8.x/server-dart/examples/messaging/update-s-m-t-p-provider.md deleted file mode 100644 index 911fa14485..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/messaging/update-s-m-t-p-provider.md +++ /dev/null @@ -1,25 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -Messaging messaging = Messaging(client); - -Provider result = await messaging.updateSMTPProvider( - providerId: '<PROVIDER_ID>', - name: '<NAME>', // (optional) - host: '<HOST>', // (optional) - port: 1, // (optional) - username: '<USERNAME>', // (optional) - password: '<PASSWORD>', // (optional) - encryption: SmtpEncryption.none, // (optional) - autoTLS: false, // (optional) - mailer: '<MAILER>', // (optional) - fromName: '<FROM_NAME>', // (optional) - fromEmail: 'email@example.com', // (optional) - replyToName: '<REPLY_TO_NAME>', // (optional) - replyToEmail: '<REPLY_TO_EMAIL>', // (optional) - enabled: false, // (optional) -); diff --git a/docs/examples/1.8.x/server-dart/examples/messaging/update-sms.md b/docs/examples/1.8.x/server-dart/examples/messaging/update-sms.md index f4356deed3..26e6649b57 100644 --- a/docs/examples/1.8.x/server-dart/examples/messaging/update-sms.md +++ b/docs/examples/1.8.x/server-dart/examples/messaging/update-sms.md @@ -7,7 +7,7 @@ Client client = Client() Messaging messaging = Messaging(client); -Message result = await messaging.updateSms( +Message result = await messaging.updateSMS( messageId: '<MESSAGE_ID>', topics: [], // (optional) users: [], // (optional) diff --git a/docs/examples/1.8.x/server-dart/examples/messaging/update-smtp-provider.md b/docs/examples/1.8.x/server-dart/examples/messaging/update-smtp-provider.md index 16530c01c8..911fa14485 100644 --- a/docs/examples/1.8.x/server-dart/examples/messaging/update-smtp-provider.md +++ b/docs/examples/1.8.x/server-dart/examples/messaging/update-smtp-provider.md @@ -7,7 +7,7 @@ Client client = Client() Messaging messaging = Messaging(client); -Provider result = await messaging.updateSmtpProvider( +Provider result = await messaging.updateSMTPProvider( providerId: '<PROVIDER_ID>', name: '<NAME>', // (optional) host: '<HOST>', // (optional) diff --git a/docs/examples/1.8.x/server-dart/examples/users/create-argon2user.md b/docs/examples/1.8.x/server-dart/examples/users/create-argon-2-user.md similarity index 100% rename from docs/examples/1.8.x/server-dart/examples/users/create-argon2user.md rename to docs/examples/1.8.x/server-dart/examples/users/create-argon-2-user.md diff --git a/docs/examples/1.8.x/server-dart/examples/users/create-j-w-t.md b/docs/examples/1.8.x/server-dart/examples/users/create-jwt.md similarity index 100% rename from docs/examples/1.8.x/server-dart/examples/users/create-j-w-t.md rename to docs/examples/1.8.x/server-dart/examples/users/create-jwt.md diff --git a/docs/examples/1.8.x/server-dart/examples/users/create-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-dart/examples/users/create-m-f-a-recovery-codes.md deleted file mode 100644 index 12a7e32f5a..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/users/create-m-f-a-recovery-codes.md +++ /dev/null @@ -1,12 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -Users users = Users(client); - -MfaRecoveryCodes result = await users.createMFARecoveryCodes( - userId: '<USER_ID>', -); diff --git a/docs/examples/1.8.x/server-dart/examples/users/create-m-d5user.md b/docs/examples/1.8.x/server-dart/examples/users/create-md-5-user.md similarity index 100% rename from docs/examples/1.8.x/server-dart/examples/users/create-m-d5user.md rename to docs/examples/1.8.x/server-dart/examples/users/create-md-5-user.md diff --git a/docs/examples/1.8.x/server-dart/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.8.x/server-dart/examples/users/create-mfa-recovery-codes.md index c2b9562e4e..12a7e32f5a 100644 --- a/docs/examples/1.8.x/server-dart/examples/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-dart/examples/users/create-mfa-recovery-codes.md @@ -7,6 +7,6 @@ Client client = Client() Users users = Users(client); -MfaRecoveryCodes result = await users.createMfaRecoveryCodes( +MfaRecoveryCodes result = await users.createMFARecoveryCodes( userId: '<USER_ID>', ); diff --git a/docs/examples/1.8.x/server-dart/examples/users/create-p-h-pass-user.md b/docs/examples/1.8.x/server-dart/examples/users/create-ph-pass-user.md similarity index 100% rename from docs/examples/1.8.x/server-dart/examples/users/create-p-h-pass-user.md rename to docs/examples/1.8.x/server-dart/examples/users/create-ph-pass-user.md diff --git a/docs/examples/1.8.x/server-dart/examples/users/create-s-h-a-user.md b/docs/examples/1.8.x/server-dart/examples/users/create-sha-user.md similarity index 100% rename from docs/examples/1.8.x/server-dart/examples/users/create-s-h-a-user.md rename to docs/examples/1.8.x/server-dart/examples/users/create-sha-user.md diff --git a/docs/examples/1.8.x/server-dart/examples/users/delete-m-f-a-authenticator.md b/docs/examples/1.8.x/server-dart/examples/users/delete-m-f-a-authenticator.md deleted file mode 100644 index b5dcc6af55..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/users/delete-m-f-a-authenticator.md +++ /dev/null @@ -1,13 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -Users users = Users(client); - -await users.deleteMFAAuthenticator( - userId: '<USER_ID>', - type: AuthenticatorType.totp, -); diff --git a/docs/examples/1.8.x/server-dart/examples/users/delete-mfa-authenticator.md b/docs/examples/1.8.x/server-dart/examples/users/delete-mfa-authenticator.md index eed7dbd41b..b5dcc6af55 100644 --- a/docs/examples/1.8.x/server-dart/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/1.8.x/server-dart/examples/users/delete-mfa-authenticator.md @@ -7,7 +7,7 @@ Client client = Client() Users users = Users(client); -await users.deleteMfaAuthenticator( +await users.deleteMFAAuthenticator( userId: '<USER_ID>', type: AuthenticatorType.totp, ); diff --git a/docs/examples/1.8.x/server-dart/examples/users/get-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-dart/examples/users/get-m-f-a-recovery-codes.md deleted file mode 100644 index e16158bfda..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/users/get-m-f-a-recovery-codes.md +++ /dev/null @@ -1,12 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -Users users = Users(client); - -MfaRecoveryCodes result = await users.getMFARecoveryCodes( - userId: '<USER_ID>', -); diff --git a/docs/examples/1.8.x/server-dart/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.8.x/server-dart/examples/users/get-mfa-recovery-codes.md index cf66c67610..e16158bfda 100644 --- a/docs/examples/1.8.x/server-dart/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-dart/examples/users/get-mfa-recovery-codes.md @@ -7,6 +7,6 @@ Client client = Client() Users users = Users(client); -MfaRecoveryCodes result = await users.getMfaRecoveryCodes( +MfaRecoveryCodes result = await users.getMFARecoveryCodes( userId: '<USER_ID>', ); diff --git a/docs/examples/1.8.x/server-dart/examples/users/list-m-f-a-factors.md b/docs/examples/1.8.x/server-dart/examples/users/list-m-f-a-factors.md deleted file mode 100644 index 290109d2ae..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/users/list-m-f-a-factors.md +++ /dev/null @@ -1,12 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -Users users = Users(client); - -MfaFactors result = await users.listMFAFactors( - userId: '<USER_ID>', -); diff --git a/docs/examples/1.8.x/server-dart/examples/users/list-mfa-factors.md b/docs/examples/1.8.x/server-dart/examples/users/list-mfa-factors.md index 7134ee5dab..290109d2ae 100644 --- a/docs/examples/1.8.x/server-dart/examples/users/list-mfa-factors.md +++ b/docs/examples/1.8.x/server-dart/examples/users/list-mfa-factors.md @@ -7,6 +7,6 @@ Client client = Client() Users users = Users(client); -MfaFactors result = await users.listMfaFactors( +MfaFactors result = await users.listMFAFactors( userId: '<USER_ID>', ); diff --git a/docs/examples/1.8.x/server-dart/examples/users/update-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-dart/examples/users/update-m-f-a-recovery-codes.md deleted file mode 100644 index a2340ff8c1..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/users/update-m-f-a-recovery-codes.md +++ /dev/null @@ -1,12 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -Users users = Users(client); - -MfaRecoveryCodes result = await users.updateMFARecoveryCodes( - userId: '<USER_ID>', -); diff --git a/docs/examples/1.8.x/server-dart/examples/users/update-m-f-a.md b/docs/examples/1.8.x/server-dart/examples/users/update-m-f-a.md deleted file mode 100644 index 7d3b71d9c4..0000000000 --- a/docs/examples/1.8.x/server-dart/examples/users/update-m-f-a.md +++ /dev/null @@ -1,13 +0,0 @@ -import 'package:dart_appwrite/dart_appwrite.dart'; - -Client client = Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -Users users = Users(client); - -User result = await users.updateMFA( - userId: '<USER_ID>', - mfa: false, -); diff --git a/docs/examples/1.8.x/server-dart/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.8.x/server-dart/examples/users/update-mfa-recovery-codes.md index 3b7d81f57c..a2340ff8c1 100644 --- a/docs/examples/1.8.x/server-dart/examples/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-dart/examples/users/update-mfa-recovery-codes.md @@ -7,6 +7,6 @@ Client client = Client() Users users = Users(client); -MfaRecoveryCodes result = await users.updateMfaRecoveryCodes( +MfaRecoveryCodes result = await users.updateMFARecoveryCodes( userId: '<USER_ID>', ); diff --git a/docs/examples/1.8.x/server-dart/examples/users/update-mfa.md b/docs/examples/1.8.x/server-dart/examples/users/update-mfa.md index f26b105534..7d3b71d9c4 100644 --- a/docs/examples/1.8.x/server-dart/examples/users/update-mfa.md +++ b/docs/examples/1.8.x/server-dart/examples/users/update-mfa.md @@ -7,7 +7,7 @@ Client client = Client() Users users = Users(client); -User result = await users.updateMfa( +User result = await users.updateMFA( userId: '<USER_ID>', mfa: false, ); diff --git a/docs/examples/1.8.x/server-deno/examples/account/create-email-token.md b/docs/examples/1.8.x/server-deno/examples/account/create-email-token.md index 5365f4d291..daab356a86 100644 --- a/docs/examples/1.8.x/server-deno/examples/account/create-email-token.md +++ b/docs/examples/1.8.x/server-deno/examples/account/create-email-token.md @@ -9,5 +9,5 @@ const account = new Account(client); const response = await account.createEmailToken({ userId: '<USER_ID>', email: 'email@example.com', - phrase: false + phrase: false // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/account/create-j-w-t.md b/docs/examples/1.8.x/server-deno/examples/account/create-jwt.md similarity index 100% rename from docs/examples/1.8.x/server-deno/examples/account/create-j-w-t.md rename to docs/examples/1.8.x/server-deno/examples/account/create-jwt.md diff --git a/docs/examples/1.8.x/server-deno/examples/account/create-m-f-a-authenticator.md b/docs/examples/1.8.x/server-deno/examples/account/create-m-f-a-authenticator.md deleted file mode 100644 index 0e496e0042..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/account/create-m-f-a-authenticator.md +++ /dev/null @@ -1,12 +0,0 @@ -import { Client, Account, AuthenticatorType } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setSession(''); // The user session to authenticate with - -const account = new Account(client); - -const response = await account.createMFAAuthenticator({ - type: AuthenticatorType.Totp -}); diff --git a/docs/examples/1.8.x/server-deno/examples/account/create-m-f-a-challenge.md b/docs/examples/1.8.x/server-deno/examples/account/create-m-f-a-challenge.md deleted file mode 100644 index a36e286960..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/account/create-m-f-a-challenge.md +++ /dev/null @@ -1,11 +0,0 @@ -import { Client, Account, AuthenticationFactor } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>'); // Your project ID - -const account = new Account(client); - -const response = await account.createMFAChallenge({ - factor: AuthenticationFactor.Email -}); diff --git a/docs/examples/1.8.x/server-deno/examples/account/create-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-deno/examples/account/create-m-f-a-recovery-codes.md deleted file mode 100644 index 5a8f6a3683..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/account/create-m-f-a-recovery-codes.md +++ /dev/null @@ -1,10 +0,0 @@ -import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setSession(''); // The user session to authenticate with - -const account = new Account(client); - -const response = await account.createMFARecoveryCodes(); diff --git a/docs/examples/1.8.x/server-deno/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.8.x/server-deno/examples/account/create-magic-url-token.md similarity index 84% rename from docs/examples/1.8.x/server-deno/examples/account/create-magic-u-r-l-token.md rename to docs/examples/1.8.x/server-deno/examples/account/create-magic-url-token.md index 364dbaee78..266aa8b3d3 100644 --- a/docs/examples/1.8.x/server-deno/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.8.x/server-deno/examples/account/create-magic-url-token.md @@ -9,6 +9,6 @@ const account = new Account(client); const response = await account.createMagicURLToken({ userId: '<USER_ID>', email: 'email@example.com', - url: 'https://example.com', - phrase: false + url: 'https://example.com', // optional + phrase: false // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/account/create-mfa-authenticator.md b/docs/examples/1.8.x/server-deno/examples/account/create-mfa-authenticator.md index 471225d01e..0e496e0042 100644 --- a/docs/examples/1.8.x/server-deno/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.8.x/server-deno/examples/account/create-mfa-authenticator.md @@ -7,6 +7,6 @@ const client = new Client() const account = new Account(client); -const response = await account.createMfaAuthenticator({ +const response = await account.createMFAAuthenticator({ type: AuthenticatorType.Totp }); diff --git a/docs/examples/1.8.x/server-deno/examples/account/create-mfa-challenge.md b/docs/examples/1.8.x/server-deno/examples/account/create-mfa-challenge.md index a31896bed3..a36e286960 100644 --- a/docs/examples/1.8.x/server-deno/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.8.x/server-deno/examples/account/create-mfa-challenge.md @@ -6,6 +6,6 @@ const client = new Client() const account = new Account(client); -const response = await account.createMfaChallenge({ +const response = await account.createMFAChallenge({ factor: AuthenticationFactor.Email }); diff --git a/docs/examples/1.8.x/server-deno/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.8.x/server-deno/examples/account/create-mfa-recovery-codes.md index cfd9aa2ba8..5a8f6a3683 100644 --- a/docs/examples/1.8.x/server-deno/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-deno/examples/account/create-mfa-recovery-codes.md @@ -7,4 +7,4 @@ const client = new Client() const account = new Account(client); -const response = await account.createMfaRecoveryCodes(); +const response = await account.createMFARecoveryCodes(); diff --git a/docs/examples/1.8.x/server-deno/examples/account/create-o-auth2token.md b/docs/examples/1.8.x/server-deno/examples/account/create-o-auth-2-token.md similarity index 74% rename from docs/examples/1.8.x/server-deno/examples/account/create-o-auth2token.md rename to docs/examples/1.8.x/server-deno/examples/account/create-o-auth-2-token.md index b5463a7773..bc1f5fce9f 100644 --- a/docs/examples/1.8.x/server-deno/examples/account/create-o-auth2token.md +++ b/docs/examples/1.8.x/server-deno/examples/account/create-o-auth-2-token.md @@ -8,7 +8,7 @@ const account = new Account(client); account.createOAuth2Token({ provider: OAuthProvider.Amazon, - success: 'https://example.com', - failure: 'https://example.com', - scopes: [] + success: 'https://example.com', // optional + failure: 'https://example.com', // optional + scopes: [] // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/account/create.md b/docs/examples/1.8.x/server-deno/examples/account/create.md index 1d8bc36f5d..025dad8d8a 100644 --- a/docs/examples/1.8.x/server-deno/examples/account/create.md +++ b/docs/examples/1.8.x/server-deno/examples/account/create.md @@ -10,5 +10,5 @@ const response = await account.create({ userId: '<USER_ID>', email: 'email@example.com', password: '', - name: '<NAME>' + name: '<NAME>' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/account/delete-m-f-a-authenticator.md b/docs/examples/1.8.x/server-deno/examples/account/delete-m-f-a-authenticator.md deleted file mode 100644 index 777347de98..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/account/delete-m-f-a-authenticator.md +++ /dev/null @@ -1,12 +0,0 @@ -import { Client, Account, AuthenticatorType } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setSession(''); // The user session to authenticate with - -const account = new Account(client); - -const response = await account.deleteMFAAuthenticator({ - type: AuthenticatorType.Totp -}); diff --git a/docs/examples/1.8.x/server-deno/examples/account/delete-mfa-authenticator.md b/docs/examples/1.8.x/server-deno/examples/account/delete-mfa-authenticator.md index 8ab5e26d83..777347de98 100644 --- a/docs/examples/1.8.x/server-deno/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.8.x/server-deno/examples/account/delete-mfa-authenticator.md @@ -7,6 +7,6 @@ const client = new Client() const account = new Account(client); -const response = await account.deleteMfaAuthenticator({ +const response = await account.deleteMFAAuthenticator({ type: AuthenticatorType.Totp }); diff --git a/docs/examples/1.8.x/server-deno/examples/account/get-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-deno/examples/account/get-m-f-a-recovery-codes.md deleted file mode 100644 index 6f631ac783..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/account/get-m-f-a-recovery-codes.md +++ /dev/null @@ -1,10 +0,0 @@ -import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setSession(''); // The user session to authenticate with - -const account = new Account(client); - -const response = await account.getMFARecoveryCodes(); diff --git a/docs/examples/1.8.x/server-deno/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.8.x/server-deno/examples/account/get-mfa-recovery-codes.md index 73fc143978..6f631ac783 100644 --- a/docs/examples/1.8.x/server-deno/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-deno/examples/account/get-mfa-recovery-codes.md @@ -7,4 +7,4 @@ const client = new Client() const account = new Account(client); -const response = await account.getMfaRecoveryCodes(); +const response = await account.getMFARecoveryCodes(); diff --git a/docs/examples/1.8.x/server-deno/examples/account/list-identities.md b/docs/examples/1.8.x/server-deno/examples/account/list-identities.md index e4c9b1808f..cbcac73f91 100644 --- a/docs/examples/1.8.x/server-deno/examples/account/list-identities.md +++ b/docs/examples/1.8.x/server-deno/examples/account/list-identities.md @@ -8,5 +8,5 @@ const client = new Client() const account = new Account(client); const response = await account.listIdentities({ - queries: [] + queries: [] // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/account/list-logs.md b/docs/examples/1.8.x/server-deno/examples/account/list-logs.md index ce26c4da31..6e7ce67c42 100644 --- a/docs/examples/1.8.x/server-deno/examples/account/list-logs.md +++ b/docs/examples/1.8.x/server-deno/examples/account/list-logs.md @@ -8,5 +8,5 @@ const client = new Client() const account = new Account(client); const response = await account.listLogs({ - queries: [] + queries: [] // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/account/list-m-f-a-factors.md b/docs/examples/1.8.x/server-deno/examples/account/list-m-f-a-factors.md deleted file mode 100644 index 0eb3d5db71..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/account/list-m-f-a-factors.md +++ /dev/null @@ -1,10 +0,0 @@ -import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setSession(''); // The user session to authenticate with - -const account = new Account(client); - -const response = await account.listMFAFactors(); diff --git a/docs/examples/1.8.x/server-deno/examples/account/list-mfa-factors.md b/docs/examples/1.8.x/server-deno/examples/account/list-mfa-factors.md index 35fb7497de..0eb3d5db71 100644 --- a/docs/examples/1.8.x/server-deno/examples/account/list-mfa-factors.md +++ b/docs/examples/1.8.x/server-deno/examples/account/list-mfa-factors.md @@ -7,4 +7,4 @@ const client = new Client() const account = new Account(client); -const response = await account.listMfaFactors(); +const response = await account.listMFAFactors(); diff --git a/docs/examples/1.8.x/server-deno/examples/account/update-m-f-a-authenticator.md b/docs/examples/1.8.x/server-deno/examples/account/update-m-f-a-authenticator.md deleted file mode 100644 index 1049f6a200..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/account/update-m-f-a-authenticator.md +++ /dev/null @@ -1,13 +0,0 @@ -import { Client, Account, AuthenticatorType } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setSession(''); // The user session to authenticate with - -const account = new Account(client); - -const response = await account.updateMFAAuthenticator({ - type: AuthenticatorType.Totp, - otp: '<OTP>' -}); diff --git a/docs/examples/1.8.x/server-deno/examples/account/update-m-f-a-challenge.md b/docs/examples/1.8.x/server-deno/examples/account/update-m-f-a-challenge.md deleted file mode 100644 index 9ee0825c47..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/account/update-m-f-a-challenge.md +++ /dev/null @@ -1,13 +0,0 @@ -import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setSession(''); // The user session to authenticate with - -const account = new Account(client); - -const response = await account.updateMFAChallenge({ - challengeId: '<CHALLENGE_ID>', - otp: '<OTP>' -}); diff --git a/docs/examples/1.8.x/server-deno/examples/account/update-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-deno/examples/account/update-m-f-a-recovery-codes.md deleted file mode 100644 index eae8560014..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/account/update-m-f-a-recovery-codes.md +++ /dev/null @@ -1,10 +0,0 @@ -import { Client, Account } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setSession(''); // The user session to authenticate with - -const account = new Account(client); - -const response = await account.updateMFARecoveryCodes(); diff --git a/docs/examples/1.8.x/server-deno/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.8.x/server-deno/examples/account/update-magic-url-session.md similarity index 100% rename from docs/examples/1.8.x/server-deno/examples/account/update-magic-u-r-l-session.md rename to docs/examples/1.8.x/server-deno/examples/account/update-magic-url-session.md diff --git a/docs/examples/1.8.x/server-deno/examples/account/update-mfa-authenticator.md b/docs/examples/1.8.x/server-deno/examples/account/update-mfa-authenticator.md index 48f833057c..1049f6a200 100644 --- a/docs/examples/1.8.x/server-deno/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.8.x/server-deno/examples/account/update-mfa-authenticator.md @@ -7,7 +7,7 @@ const client = new Client() const account = new Account(client); -const response = await account.updateMfaAuthenticator({ +const response = await account.updateMFAAuthenticator({ type: AuthenticatorType.Totp, otp: '<OTP>' }); diff --git a/docs/examples/1.8.x/server-deno/examples/account/update-mfa-challenge.md b/docs/examples/1.8.x/server-deno/examples/account/update-mfa-challenge.md index c6325d384f..9ee0825c47 100644 --- a/docs/examples/1.8.x/server-deno/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.8.x/server-deno/examples/account/update-mfa-challenge.md @@ -7,7 +7,7 @@ const client = new Client() const account = new Account(client); -const response = await account.updateMfaChallenge({ +const response = await account.updateMFAChallenge({ challengeId: '<CHALLENGE_ID>', otp: '<OTP>' }); diff --git a/docs/examples/1.8.x/server-deno/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.8.x/server-deno/examples/account/update-mfa-recovery-codes.md index 2030e1c551..eae8560014 100644 --- a/docs/examples/1.8.x/server-deno/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-deno/examples/account/update-mfa-recovery-codes.md @@ -7,4 +7,4 @@ const client = new Client() const account = new Account(client); -const response = await account.updateMfaRecoveryCodes(); +const response = await account.updateMFARecoveryCodes(); diff --git a/docs/examples/1.8.x/server-deno/examples/account/update-m-f-a.md b/docs/examples/1.8.x/server-deno/examples/account/update-mfa.md similarity index 100% rename from docs/examples/1.8.x/server-deno/examples/account/update-m-f-a.md rename to docs/examples/1.8.x/server-deno/examples/account/update-mfa.md diff --git a/docs/examples/1.8.x/server-deno/examples/account/update-password.md b/docs/examples/1.8.x/server-deno/examples/account/update-password.md index a61c9fc05e..1bd388a1f8 100644 --- a/docs/examples/1.8.x/server-deno/examples/account/update-password.md +++ b/docs/examples/1.8.x/server-deno/examples/account/update-password.md @@ -9,5 +9,5 @@ const account = new Account(client); const response = await account.updatePassword({ password: '', - oldPassword: 'password' + oldPassword: 'password' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/avatars/get-browser.md b/docs/examples/1.8.x/server-deno/examples/avatars/get-browser.md index e1525a63d8..fbef7eef36 100644 --- a/docs/examples/1.8.x/server-deno/examples/avatars/get-browser.md +++ b/docs/examples/1.8.x/server-deno/examples/avatars/get-browser.md @@ -9,7 +9,7 @@ const avatars = new Avatars(client); const result = avatars.getBrowser({ code: Browser.AvantBrowser, - width: 0, - height: 0, - quality: -1 + width: 0, // optional + height: 0, // optional + quality: -1 // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/avatars/get-credit-card.md b/docs/examples/1.8.x/server-deno/examples/avatars/get-credit-card.md index 54a266fa1e..c4323c3264 100644 --- a/docs/examples/1.8.x/server-deno/examples/avatars/get-credit-card.md +++ b/docs/examples/1.8.x/server-deno/examples/avatars/get-credit-card.md @@ -9,7 +9,7 @@ const avatars = new Avatars(client); const result = avatars.getCreditCard({ code: CreditCard.AmericanExpress, - width: 0, - height: 0, - quality: -1 + width: 0, // optional + height: 0, // optional + quality: -1 // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/avatars/get-flag.md b/docs/examples/1.8.x/server-deno/examples/avatars/get-flag.md index 5b02485c8e..7032c4870c 100644 --- a/docs/examples/1.8.x/server-deno/examples/avatars/get-flag.md +++ b/docs/examples/1.8.x/server-deno/examples/avatars/get-flag.md @@ -9,7 +9,7 @@ const avatars = new Avatars(client); const result = avatars.getFlag({ code: Flag.Afghanistan, - width: 0, - height: 0, - quality: -1 + width: 0, // optional + height: 0, // optional + quality: -1 // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/avatars/get-image.md b/docs/examples/1.8.x/server-deno/examples/avatars/get-image.md index a8a5a7f365..d4012ed847 100644 --- a/docs/examples/1.8.x/server-deno/examples/avatars/get-image.md +++ b/docs/examples/1.8.x/server-deno/examples/avatars/get-image.md @@ -9,6 +9,6 @@ const avatars = new Avatars(client); const result = avatars.getImage({ url: 'https://example.com', - width: 0, - height: 0 + width: 0, // optional + height: 0 // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/avatars/get-initials.md b/docs/examples/1.8.x/server-deno/examples/avatars/get-initials.md index 5719506242..c08699715f 100644 --- a/docs/examples/1.8.x/server-deno/examples/avatars/get-initials.md +++ b/docs/examples/1.8.x/server-deno/examples/avatars/get-initials.md @@ -8,8 +8,8 @@ const client = new Client() const avatars = new Avatars(client); const result = avatars.getInitials({ - name: '<NAME>', - width: 0, - height: 0, - background: '' + name: '<NAME>', // optional + width: 0, // optional + height: 0, // optional + background: '' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/avatars/get-q-r.md b/docs/examples/1.8.x/server-deno/examples/avatars/get-qr.md similarity index 82% rename from docs/examples/1.8.x/server-deno/examples/avatars/get-q-r.md rename to docs/examples/1.8.x/server-deno/examples/avatars/get-qr.md index 6f9d404fc1..096014b587 100644 --- a/docs/examples/1.8.x/server-deno/examples/avatars/get-q-r.md +++ b/docs/examples/1.8.x/server-deno/examples/avatars/get-qr.md @@ -9,7 +9,7 @@ const avatars = new Avatars(client); const result = avatars.getQR({ text: '<TEXT>', - size: 1, - margin: 0, - download: false + size: 1, // optional + margin: 0, // optional + download: false // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/create-boolean-attribute.md b/docs/examples/1.8.x/server-deno/examples/databases/create-boolean-attribute.md index 8154a6f76b..fbcdde43d5 100644 --- a/docs/examples/1.8.x/server-deno/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.8.x/server-deno/examples/databases/create-boolean-attribute.md @@ -12,6 +12,6 @@ const response = await databases.createBooleanAttribute({ collectionId: '<COLLECTION_ID>', key: '', required: false, - default: false, - array: false + default: false, // optional + array: false // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/create-collection.md b/docs/examples/1.8.x/server-deno/examples/databases/create-collection.md index e198c0c8b3..9b2776a83e 100644 --- a/docs/examples/1.8.x/server-deno/examples/databases/create-collection.md +++ b/docs/examples/1.8.x/server-deno/examples/databases/create-collection.md @@ -11,7 +11,7 @@ const response = await databases.createCollection({ databaseId: '<DATABASE_ID>', collectionId: '<COLLECTION_ID>', name: '<NAME>', - permissions: ["read("any")"], - documentSecurity: false, - enabled: false + permissions: ["read("any")"], // optional + documentSecurity: false, // optional + enabled: false // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/create-datetime-attribute.md b/docs/examples/1.8.x/server-deno/examples/databases/create-datetime-attribute.md index a3d79846c6..80dec8c45c 100644 --- a/docs/examples/1.8.x/server-deno/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.8.x/server-deno/examples/databases/create-datetime-attribute.md @@ -12,6 +12,6 @@ const response = await databases.createDatetimeAttribute({ collectionId: '<COLLECTION_ID>', key: '', required: false, - default: '', - array: false + default: '', // optional + array: false // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/create-document.md b/docs/examples/1.8.x/server-deno/examples/databases/create-document.md index 1b0fa0ce14..784b7dd530 100644 --- a/docs/examples/1.8.x/server-deno/examples/databases/create-document.md +++ b/docs/examples/1.8.x/server-deno/examples/databases/create-document.md @@ -12,5 +12,5 @@ const response = await databases.createDocument({ collectionId: '<COLLECTION_ID>', documentId: '<DOCUMENT_ID>', data: {}, - permissions: ["read("any")"] + permissions: ["read("any")"] // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/create-email-attribute.md b/docs/examples/1.8.x/server-deno/examples/databases/create-email-attribute.md index 1b86fd57bd..6206a74f3e 100644 --- a/docs/examples/1.8.x/server-deno/examples/databases/create-email-attribute.md +++ b/docs/examples/1.8.x/server-deno/examples/databases/create-email-attribute.md @@ -12,6 +12,6 @@ const response = await databases.createEmailAttribute({ collectionId: '<COLLECTION_ID>', key: '', required: false, - default: 'email@example.com', - array: false + default: 'email@example.com', // optional + array: false // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/create-enum-attribute.md b/docs/examples/1.8.x/server-deno/examples/databases/create-enum-attribute.md index cbf8a84687..b8555bf3b6 100644 --- a/docs/examples/1.8.x/server-deno/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.8.x/server-deno/examples/databases/create-enum-attribute.md @@ -13,6 +13,6 @@ const response = await databases.createEnumAttribute({ key: '', elements: [], required: false, - default: '<DEFAULT>', - array: false + default: '<DEFAULT>', // optional + array: false // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/create-float-attribute.md b/docs/examples/1.8.x/server-deno/examples/databases/create-float-attribute.md index 16f4848f22..3cec0ee168 100644 --- a/docs/examples/1.8.x/server-deno/examples/databases/create-float-attribute.md +++ b/docs/examples/1.8.x/server-deno/examples/databases/create-float-attribute.md @@ -12,8 +12,8 @@ const response = await databases.createFloatAttribute({ collectionId: '<COLLECTION_ID>', key: '', required: false, - min: null, - max: null, - default: null, - array: false + min: null, // optional + max: null, // optional + default: null, // optional + array: false // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/create-index.md b/docs/examples/1.8.x/server-deno/examples/databases/create-index.md index 68f29eb7e6..b2be093e11 100644 --- a/docs/examples/1.8.x/server-deno/examples/databases/create-index.md +++ b/docs/examples/1.8.x/server-deno/examples/databases/create-index.md @@ -13,6 +13,6 @@ const response = await databases.createIndex({ key: '', type: IndexType.Key, attributes: [], - orders: [], - lengths: [] + orders: [], // optional + lengths: [] // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/create-integer-attribute.md b/docs/examples/1.8.x/server-deno/examples/databases/create-integer-attribute.md index 6f8590d622..37ba43aa73 100644 --- a/docs/examples/1.8.x/server-deno/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.8.x/server-deno/examples/databases/create-integer-attribute.md @@ -12,8 +12,8 @@ const response = await databases.createIntegerAttribute({ collectionId: '<COLLECTION_ID>', key: '', required: false, - min: null, - max: null, - default: null, - array: false + min: null, // optional + max: null, // optional + default: null, // optional + array: false // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/create-ip-attribute.md b/docs/examples/1.8.x/server-deno/examples/databases/create-ip-attribute.md index b3361afee6..047622d7a9 100644 --- a/docs/examples/1.8.x/server-deno/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.8.x/server-deno/examples/databases/create-ip-attribute.md @@ -12,6 +12,6 @@ const response = await databases.createIpAttribute({ collectionId: '<COLLECTION_ID>', key: '', required: false, - default: '', - array: false + default: '', // optional + array: false // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/create-relationship-attribute.md b/docs/examples/1.8.x/server-deno/examples/databases/create-relationship-attribute.md index 29c7488d20..39c73d0ae0 100644 --- a/docs/examples/1.8.x/server-deno/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.8.x/server-deno/examples/databases/create-relationship-attribute.md @@ -12,8 +12,8 @@ const response = await databases.createRelationshipAttribute({ collectionId: '<COLLECTION_ID>', relatedCollectionId: '<RELATED_COLLECTION_ID>', type: RelationshipType.OneToOne, - twoWay: false, - key: '', - twoWayKey: '', - onDelete: RelationMutate.Cascade + twoWay: false, // optional + key: '', // optional + twoWayKey: '', // optional + onDelete: RelationMutate.Cascade // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/create-string-attribute.md b/docs/examples/1.8.x/server-deno/examples/databases/create-string-attribute.md index b7500bd592..17d4aa1dbf 100644 --- a/docs/examples/1.8.x/server-deno/examples/databases/create-string-attribute.md +++ b/docs/examples/1.8.x/server-deno/examples/databases/create-string-attribute.md @@ -13,7 +13,7 @@ const response = await databases.createStringAttribute({ key: '', size: 1, required: false, - default: '<DEFAULT>', - array: false, - encrypt: false + default: '<DEFAULT>', // optional + array: false, // optional + encrypt: false // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/create-url-attribute.md b/docs/examples/1.8.x/server-deno/examples/databases/create-url-attribute.md index 2975cfa0bf..f60423cdba 100644 --- a/docs/examples/1.8.x/server-deno/examples/databases/create-url-attribute.md +++ b/docs/examples/1.8.x/server-deno/examples/databases/create-url-attribute.md @@ -12,6 +12,6 @@ const response = await databases.createUrlAttribute({ collectionId: '<COLLECTION_ID>', key: '', required: false, - default: 'https://example.com', - array: false + default: 'https://example.com', // optional + array: false // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/create.md b/docs/examples/1.8.x/server-deno/examples/databases/create.md index 666d19715e..63e547105c 100644 --- a/docs/examples/1.8.x/server-deno/examples/databases/create.md +++ b/docs/examples/1.8.x/server-deno/examples/databases/create.md @@ -10,5 +10,5 @@ const databases = new Databases(client); const response = await databases.create({ databaseId: '<DATABASE_ID>', name: '<NAME>', - enabled: false + enabled: false // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/decrement-document-attribute.md b/docs/examples/1.8.x/server-deno/examples/databases/decrement-document-attribute.md index 553baaf843..52d71921f6 100644 --- a/docs/examples/1.8.x/server-deno/examples/databases/decrement-document-attribute.md +++ b/docs/examples/1.8.x/server-deno/examples/databases/decrement-document-attribute.md @@ -12,6 +12,6 @@ const response = await databases.decrementDocumentAttribute({ collectionId: '<COLLECTION_ID>', documentId: '<DOCUMENT_ID>', attribute: '', - value: null, - min: null + value: null, // optional + min: null // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/delete-documents.md b/docs/examples/1.8.x/server-deno/examples/databases/delete-documents.md index c958165eb3..b63a960a3f 100644 --- a/docs/examples/1.8.x/server-deno/examples/databases/delete-documents.md +++ b/docs/examples/1.8.x/server-deno/examples/databases/delete-documents.md @@ -10,5 +10,5 @@ const databases = new Databases(client); const response = await databases.deleteDocuments({ databaseId: '<DATABASE_ID>', collectionId: '<COLLECTION_ID>', - queries: [] + queries: [] // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/get-document.md b/docs/examples/1.8.x/server-deno/examples/databases/get-document.md index 7714f9d63b..fb8415895d 100644 --- a/docs/examples/1.8.x/server-deno/examples/databases/get-document.md +++ b/docs/examples/1.8.x/server-deno/examples/databases/get-document.md @@ -11,5 +11,5 @@ const response = await databases.getDocument({ databaseId: '<DATABASE_ID>', collectionId: '<COLLECTION_ID>', documentId: '<DOCUMENT_ID>', - queries: [] + queries: [] // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/increment-document-attribute.md b/docs/examples/1.8.x/server-deno/examples/databases/increment-document-attribute.md index 7c8fbe8b15..c32c48498f 100644 --- a/docs/examples/1.8.x/server-deno/examples/databases/increment-document-attribute.md +++ b/docs/examples/1.8.x/server-deno/examples/databases/increment-document-attribute.md @@ -12,6 +12,6 @@ const response = await databases.incrementDocumentAttribute({ collectionId: '<COLLECTION_ID>', documentId: '<DOCUMENT_ID>', attribute: '', - value: null, - max: null + value: null, // optional + max: null // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/list-attributes.md b/docs/examples/1.8.x/server-deno/examples/databases/list-attributes.md index 0b402eeffd..39de5d4e41 100644 --- a/docs/examples/1.8.x/server-deno/examples/databases/list-attributes.md +++ b/docs/examples/1.8.x/server-deno/examples/databases/list-attributes.md @@ -10,5 +10,5 @@ const databases = new Databases(client); const response = await databases.listAttributes({ databaseId: '<DATABASE_ID>', collectionId: '<COLLECTION_ID>', - queries: [] + queries: [] // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/list-collections.md b/docs/examples/1.8.x/server-deno/examples/databases/list-collections.md index 7b10446bcf..264be3c2fd 100644 --- a/docs/examples/1.8.x/server-deno/examples/databases/list-collections.md +++ b/docs/examples/1.8.x/server-deno/examples/databases/list-collections.md @@ -9,6 +9,6 @@ const databases = new Databases(client); const response = await databases.listCollections({ databaseId: '<DATABASE_ID>', - queries: [], - search: '<SEARCH>' + queries: [], // optional + search: '<SEARCH>' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/list-documents.md b/docs/examples/1.8.x/server-deno/examples/databases/list-documents.md index d30f262af8..5c3899882a 100644 --- a/docs/examples/1.8.x/server-deno/examples/databases/list-documents.md +++ b/docs/examples/1.8.x/server-deno/examples/databases/list-documents.md @@ -10,5 +10,5 @@ const databases = new Databases(client); const response = await databases.listDocuments({ databaseId: '<DATABASE_ID>', collectionId: '<COLLECTION_ID>', - queries: [] + queries: [] // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/list-indexes.md b/docs/examples/1.8.x/server-deno/examples/databases/list-indexes.md index b1bb477c60..628a434fae 100644 --- a/docs/examples/1.8.x/server-deno/examples/databases/list-indexes.md +++ b/docs/examples/1.8.x/server-deno/examples/databases/list-indexes.md @@ -10,5 +10,5 @@ const databases = new Databases(client); const response = await databases.listIndexes({ databaseId: '<DATABASE_ID>', collectionId: '<COLLECTION_ID>', - queries: [] + queries: [] // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/list.md b/docs/examples/1.8.x/server-deno/examples/databases/list.md index 9cac22a91a..4ba17dd9e5 100644 --- a/docs/examples/1.8.x/server-deno/examples/databases/list.md +++ b/docs/examples/1.8.x/server-deno/examples/databases/list.md @@ -8,6 +8,6 @@ const client = new Client() const databases = new Databases(client); const response = await databases.list({ - queries: [], - search: '<SEARCH>' + queries: [], // optional + search: '<SEARCH>' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/update-boolean-attribute.md b/docs/examples/1.8.x/server-deno/examples/databases/update-boolean-attribute.md index 1a320af4c3..28e4718978 100644 --- a/docs/examples/1.8.x/server-deno/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.8.x/server-deno/examples/databases/update-boolean-attribute.md @@ -13,5 +13,5 @@ const response = await databases.updateBooleanAttribute({ key: '', required: false, default: false, - newKey: '' + newKey: '' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/update-collection.md b/docs/examples/1.8.x/server-deno/examples/databases/update-collection.md index f3de3739e2..89b2d0e5f9 100644 --- a/docs/examples/1.8.x/server-deno/examples/databases/update-collection.md +++ b/docs/examples/1.8.x/server-deno/examples/databases/update-collection.md @@ -11,7 +11,7 @@ const response = await databases.updateCollection({ databaseId: '<DATABASE_ID>', collectionId: '<COLLECTION_ID>', name: '<NAME>', - permissions: ["read("any")"], - documentSecurity: false, - enabled: false + permissions: ["read("any")"], // optional + documentSecurity: false, // optional + enabled: false // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/update-datetime-attribute.md b/docs/examples/1.8.x/server-deno/examples/databases/update-datetime-attribute.md index 686add6ad3..9e9116b58d 100644 --- a/docs/examples/1.8.x/server-deno/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.8.x/server-deno/examples/databases/update-datetime-attribute.md @@ -13,5 +13,5 @@ const response = await databases.updateDatetimeAttribute({ key: '', required: false, default: '', - newKey: '' + newKey: '' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/update-document.md b/docs/examples/1.8.x/server-deno/examples/databases/update-document.md index dab3fcd1aa..2a59177970 100644 --- a/docs/examples/1.8.x/server-deno/examples/databases/update-document.md +++ b/docs/examples/1.8.x/server-deno/examples/databases/update-document.md @@ -11,6 +11,6 @@ const response = await databases.updateDocument({ databaseId: '<DATABASE_ID>', collectionId: '<COLLECTION_ID>', documentId: '<DOCUMENT_ID>', - data: {}, - permissions: ["read("any")"] + data: {}, // optional + permissions: ["read("any")"] // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/update-documents.md b/docs/examples/1.8.x/server-deno/examples/databases/update-documents.md index fbfcf77c31..15c4a90c97 100644 --- a/docs/examples/1.8.x/server-deno/examples/databases/update-documents.md +++ b/docs/examples/1.8.x/server-deno/examples/databases/update-documents.md @@ -10,6 +10,6 @@ const databases = new Databases(client); const response = await databases.updateDocuments({ databaseId: '<DATABASE_ID>', collectionId: '<COLLECTION_ID>', - data: {}, - queries: [] + data: {}, // optional + queries: [] // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/update-email-attribute.md b/docs/examples/1.8.x/server-deno/examples/databases/update-email-attribute.md index aab2195689..ff6cf2196d 100644 --- a/docs/examples/1.8.x/server-deno/examples/databases/update-email-attribute.md +++ b/docs/examples/1.8.x/server-deno/examples/databases/update-email-attribute.md @@ -13,5 +13,5 @@ const response = await databases.updateEmailAttribute({ key: '', required: false, default: 'email@example.com', - newKey: '' + newKey: '' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/update-enum-attribute.md b/docs/examples/1.8.x/server-deno/examples/databases/update-enum-attribute.md index 133f26313a..60f84fd5ea 100644 --- a/docs/examples/1.8.x/server-deno/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.8.x/server-deno/examples/databases/update-enum-attribute.md @@ -14,5 +14,5 @@ const response = await databases.updateEnumAttribute({ elements: [], required: false, default: '<DEFAULT>', - newKey: '' + newKey: '' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/update-float-attribute.md b/docs/examples/1.8.x/server-deno/examples/databases/update-float-attribute.md index 3fdf66434c..3a6640732e 100644 --- a/docs/examples/1.8.x/server-deno/examples/databases/update-float-attribute.md +++ b/docs/examples/1.8.x/server-deno/examples/databases/update-float-attribute.md @@ -13,7 +13,7 @@ const response = await databases.updateFloatAttribute({ key: '', required: false, default: null, - min: null, - max: null, - newKey: '' + min: null, // optional + max: null, // optional + newKey: '' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/update-integer-attribute.md b/docs/examples/1.8.x/server-deno/examples/databases/update-integer-attribute.md index ccdbd97606..679eeaa28e 100644 --- a/docs/examples/1.8.x/server-deno/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.8.x/server-deno/examples/databases/update-integer-attribute.md @@ -13,7 +13,7 @@ const response = await databases.updateIntegerAttribute({ key: '', required: false, default: null, - min: null, - max: null, - newKey: '' + min: null, // optional + max: null, // optional + newKey: '' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/update-ip-attribute.md b/docs/examples/1.8.x/server-deno/examples/databases/update-ip-attribute.md index d361ceac60..d4145f481b 100644 --- a/docs/examples/1.8.x/server-deno/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.8.x/server-deno/examples/databases/update-ip-attribute.md @@ -13,5 +13,5 @@ const response = await databases.updateIpAttribute({ key: '', required: false, default: '', - newKey: '' + newKey: '' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/update-relationship-attribute.md b/docs/examples/1.8.x/server-deno/examples/databases/update-relationship-attribute.md index 224ae20788..3c9e9acb46 100644 --- a/docs/examples/1.8.x/server-deno/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.8.x/server-deno/examples/databases/update-relationship-attribute.md @@ -11,6 +11,6 @@ const response = await databases.updateRelationshipAttribute({ databaseId: '<DATABASE_ID>', collectionId: '<COLLECTION_ID>', key: '', - onDelete: RelationMutate.Cascade, - newKey: '' + onDelete: RelationMutate.Cascade, // optional + newKey: '' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/update-string-attribute.md b/docs/examples/1.8.x/server-deno/examples/databases/update-string-attribute.md index 3d814d655c..ec0dd8bf1e 100644 --- a/docs/examples/1.8.x/server-deno/examples/databases/update-string-attribute.md +++ b/docs/examples/1.8.x/server-deno/examples/databases/update-string-attribute.md @@ -13,6 +13,6 @@ const response = await databases.updateStringAttribute({ key: '', required: false, default: '<DEFAULT>', - size: 1, - newKey: '' + size: 1, // optional + newKey: '' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/update-url-attribute.md b/docs/examples/1.8.x/server-deno/examples/databases/update-url-attribute.md index 5d8ba70146..f59ae750a8 100644 --- a/docs/examples/1.8.x/server-deno/examples/databases/update-url-attribute.md +++ b/docs/examples/1.8.x/server-deno/examples/databases/update-url-attribute.md @@ -13,5 +13,5 @@ const response = await databases.updateUrlAttribute({ key: '', required: false, default: 'https://example.com', - newKey: '' + newKey: '' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/update.md b/docs/examples/1.8.x/server-deno/examples/databases/update.md index 078d9b07cc..9df4fca32c 100644 --- a/docs/examples/1.8.x/server-deno/examples/databases/update.md +++ b/docs/examples/1.8.x/server-deno/examples/databases/update.md @@ -10,5 +10,5 @@ const databases = new Databases(client); const response = await databases.update({ databaseId: '<DATABASE_ID>', name: '<NAME>', - enabled: false + enabled: false // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/databases/upsert-document.md b/docs/examples/1.8.x/server-deno/examples/databases/upsert-document.md index c20edecf89..27eb1e19c1 100644 --- a/docs/examples/1.8.x/server-deno/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/server-deno/examples/databases/upsert-document.md @@ -12,5 +12,5 @@ const response = await databases.upsertDocument({ collectionId: '<COLLECTION_ID>', documentId: '<DOCUMENT_ID>', data: {}, - permissions: ["read("any")"] + permissions: ["read("any")"] // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/functions/create-deployment.md b/docs/examples/1.8.x/server-deno/examples/functions/create-deployment.md index fadd4f57d5..4f27138d81 100644 --- a/docs/examples/1.8.x/server-deno/examples/functions/create-deployment.md +++ b/docs/examples/1.8.x/server-deno/examples/functions/create-deployment.md @@ -11,6 +11,6 @@ const response = await functions.createDeployment({ functionId: '<FUNCTION_ID>', code: InputFile.fromPath('/path/to/file.png', 'file.png'), activate: false, - entrypoint: '<ENTRYPOINT>', - commands: '<COMMANDS>' + entrypoint: '<ENTRYPOINT>', // optional + commands: '<COMMANDS>' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/functions/create-duplicate-deployment.md b/docs/examples/1.8.x/server-deno/examples/functions/create-duplicate-deployment.md index 7868b044a1..b8c7e43fce 100644 --- a/docs/examples/1.8.x/server-deno/examples/functions/create-duplicate-deployment.md +++ b/docs/examples/1.8.x/server-deno/examples/functions/create-duplicate-deployment.md @@ -10,5 +10,5 @@ const functions = new Functions(client); const response = await functions.createDuplicateDeployment({ functionId: '<FUNCTION_ID>', deploymentId: '<DEPLOYMENT_ID>', - buildId: '<BUILD_ID>' + buildId: '<BUILD_ID>' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/functions/create-execution.md b/docs/examples/1.8.x/server-deno/examples/functions/create-execution.md index aee235909e..651a5c9024 100644 --- a/docs/examples/1.8.x/server-deno/examples/functions/create-execution.md +++ b/docs/examples/1.8.x/server-deno/examples/functions/create-execution.md @@ -9,10 +9,10 @@ const functions = new Functions(client); const response = await functions.createExecution({ functionId: '<FUNCTION_ID>', - body: '<BODY>', - async: false, - path: '<PATH>', - method: ExecutionMethod.GET, - headers: {}, - scheduledAt: '<SCHEDULED_AT>' + body: '<BODY>', // optional + async: false, // optional + path: '<PATH>', // optional + method: ExecutionMethod.GET, // optional + headers: {}, // optional + scheduledAt: '<SCHEDULED_AT>' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/functions/create-template-deployment.md b/docs/examples/1.8.x/server-deno/examples/functions/create-template-deployment.md index 32e6f115e4..6e8b932852 100644 --- a/docs/examples/1.8.x/server-deno/examples/functions/create-template-deployment.md +++ b/docs/examples/1.8.x/server-deno/examples/functions/create-template-deployment.md @@ -13,5 +13,5 @@ const response = await functions.createTemplateDeployment({ owner: '<OWNER>', rootDirectory: '<ROOT_DIRECTORY>', version: '<VERSION>', - activate: false + activate: false // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/functions/create-variable.md b/docs/examples/1.8.x/server-deno/examples/functions/create-variable.md index 274ced2378..4e871c6f61 100644 --- a/docs/examples/1.8.x/server-deno/examples/functions/create-variable.md +++ b/docs/examples/1.8.x/server-deno/examples/functions/create-variable.md @@ -11,5 +11,5 @@ const response = await functions.createVariable({ functionId: '<FUNCTION_ID>', key: '<KEY>', value: '<VALUE>', - secret: false + secret: false // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/functions/create-vcs-deployment.md b/docs/examples/1.8.x/server-deno/examples/functions/create-vcs-deployment.md index e47d99416b..7a108248f0 100644 --- a/docs/examples/1.8.x/server-deno/examples/functions/create-vcs-deployment.md +++ b/docs/examples/1.8.x/server-deno/examples/functions/create-vcs-deployment.md @@ -11,5 +11,5 @@ const response = await functions.createVcsDeployment({ functionId: '<FUNCTION_ID>', type: VCSDeploymentType.Branch, reference: '<REFERENCE>', - activate: false + activate: false // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/functions/create.md b/docs/examples/1.8.x/server-deno/examples/functions/create.md index 113da008b6..4681bd6a83 100644 --- a/docs/examples/1.8.x/server-deno/examples/functions/create.md +++ b/docs/examples/1.8.x/server-deno/examples/functions/create.md @@ -11,19 +11,19 @@ const response = await functions.create({ functionId: '<FUNCTION_ID>', name: '<NAME>', runtime: .Node145, - execute: ["any"], - events: [], - schedule: '', - timeout: 1, - enabled: false, - logging: false, - entrypoint: '<ENTRYPOINT>', - commands: '<COMMANDS>', - scopes: [], - installationId: '<INSTALLATION_ID>', - providerRepositoryId: '<PROVIDER_REPOSITORY_ID>', - providerBranch: '<PROVIDER_BRANCH>', - providerSilentMode: false, - providerRootDirectory: '<PROVIDER_ROOT_DIRECTORY>', - specification: '' + execute: ["any"], // optional + events: [], // optional + schedule: '', // optional + timeout: 1, // optional + enabled: false, // optional + logging: false, // optional + entrypoint: '<ENTRYPOINT>', // optional + commands: '<COMMANDS>', // optional + scopes: [], // optional + installationId: '<INSTALLATION_ID>', // optional + providerRepositoryId: '<PROVIDER_REPOSITORY_ID>', // optional + providerBranch: '<PROVIDER_BRANCH>', // optional + providerSilentMode: false, // optional + providerRootDirectory: '<PROVIDER_ROOT_DIRECTORY>', // optional + specification: '' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/functions/get-deployment-download.md b/docs/examples/1.8.x/server-deno/examples/functions/get-deployment-download.md index 4dfa3223e4..34971111a0 100644 --- a/docs/examples/1.8.x/server-deno/examples/functions/get-deployment-download.md +++ b/docs/examples/1.8.x/server-deno/examples/functions/get-deployment-download.md @@ -10,5 +10,5 @@ const functions = new Functions(client); const result = functions.getDeploymentDownload({ functionId: '<FUNCTION_ID>', deploymentId: '<DEPLOYMENT_ID>', - type: DeploymentDownloadType.Source + type: DeploymentDownloadType.Source // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/functions/list-deployments.md b/docs/examples/1.8.x/server-deno/examples/functions/list-deployments.md index 1c04aba826..6d1718da39 100644 --- a/docs/examples/1.8.x/server-deno/examples/functions/list-deployments.md +++ b/docs/examples/1.8.x/server-deno/examples/functions/list-deployments.md @@ -9,6 +9,6 @@ const functions = new Functions(client); const response = await functions.listDeployments({ functionId: '<FUNCTION_ID>', - queries: [], - search: '<SEARCH>' + queries: [], // optional + search: '<SEARCH>' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/functions/list-executions.md b/docs/examples/1.8.x/server-deno/examples/functions/list-executions.md index 03e373f7fb..101d4ec55e 100644 --- a/docs/examples/1.8.x/server-deno/examples/functions/list-executions.md +++ b/docs/examples/1.8.x/server-deno/examples/functions/list-executions.md @@ -9,5 +9,5 @@ const functions = new Functions(client); const response = await functions.listExecutions({ functionId: '<FUNCTION_ID>', - queries: [] + queries: [] // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/functions/list.md b/docs/examples/1.8.x/server-deno/examples/functions/list.md index 3b9c401c0f..bb0475d0bc 100644 --- a/docs/examples/1.8.x/server-deno/examples/functions/list.md +++ b/docs/examples/1.8.x/server-deno/examples/functions/list.md @@ -8,6 +8,6 @@ const client = new Client() const functions = new Functions(client); const response = await functions.list({ - queries: [], - search: '<SEARCH>' + queries: [], // optional + search: '<SEARCH>' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/functions/update-variable.md b/docs/examples/1.8.x/server-deno/examples/functions/update-variable.md index fb80ac95b3..cff5cc43f4 100644 --- a/docs/examples/1.8.x/server-deno/examples/functions/update-variable.md +++ b/docs/examples/1.8.x/server-deno/examples/functions/update-variable.md @@ -11,6 +11,6 @@ const response = await functions.updateVariable({ functionId: '<FUNCTION_ID>', variableId: '<VARIABLE_ID>', key: '<KEY>', - value: '<VALUE>', - secret: false + value: '<VALUE>', // optional + secret: false // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/functions/update.md b/docs/examples/1.8.x/server-deno/examples/functions/update.md index d37701a3ff..0a743693f7 100644 --- a/docs/examples/1.8.x/server-deno/examples/functions/update.md +++ b/docs/examples/1.8.x/server-deno/examples/functions/update.md @@ -10,20 +10,20 @@ const functions = new Functions(client); const response = await functions.update({ functionId: '<FUNCTION_ID>', name: '<NAME>', - runtime: .Node145, - execute: ["any"], - events: [], - schedule: '', - timeout: 1, - enabled: false, - logging: false, - entrypoint: '<ENTRYPOINT>', - commands: '<COMMANDS>', - scopes: [], - installationId: '<INSTALLATION_ID>', - providerRepositoryId: '<PROVIDER_REPOSITORY_ID>', - providerBranch: '<PROVIDER_BRANCH>', - providerSilentMode: false, - providerRootDirectory: '<PROVIDER_ROOT_DIRECTORY>', - specification: '' + runtime: .Node145, // optional + execute: ["any"], // optional + events: [], // optional + schedule: '', // optional + timeout: 1, // optional + enabled: false, // optional + logging: false, // optional + entrypoint: '<ENTRYPOINT>', // optional + commands: '<COMMANDS>', // optional + scopes: [], // optional + installationId: '<INSTALLATION_ID>', // optional + providerRepositoryId: '<PROVIDER_REPOSITORY_ID>', // optional + providerBranch: '<PROVIDER_BRANCH>', // optional + providerSilentMode: false, // optional + providerRootDirectory: '<PROVIDER_ROOT_DIRECTORY>', // optional + specification: '' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-boolean-column.md b/docs/examples/1.8.x/server-deno/examples/grids/create-boolean-column.md deleted file mode 100644 index 7097a84ebe..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/create-boolean-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.createBooleanColumn( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '', // key - false, // required - false, // default (optional) - false // array (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-database.md b/docs/examples/1.8.x/server-deno/examples/grids/create-database.md deleted file mode 100644 index 3b1a67d75a..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/create-database.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.createDatabase( - '<DATABASE_ID>', // databaseId - '<NAME>', // name - false // enabled (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-datetime-column.md b/docs/examples/1.8.x/server-deno/examples/grids/create-datetime-column.md deleted file mode 100644 index f33479cd2e..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/create-datetime-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.createDatetimeColumn( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '', // key - false, // required - '', // default (optional) - false // array (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-email-column.md b/docs/examples/1.8.x/server-deno/examples/grids/create-email-column.md deleted file mode 100644 index eec09fb453..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/create-email-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.createEmailColumn( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '', // key - false, // required - 'email@example.com', // default (optional) - false // array (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-enum-column.md b/docs/examples/1.8.x/server-deno/examples/grids/create-enum-column.md deleted file mode 100644 index df68204c8b..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/create-enum-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.createEnumColumn( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '', // key - [], // elements - false, // required - '<DEFAULT>', // default (optional) - false // array (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-float-column.md b/docs/examples/1.8.x/server-deno/examples/grids/create-float-column.md deleted file mode 100644 index e7fdc524dc..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/create-float-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.createFloatColumn( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '', // key - false, // required - null, // min (optional) - null, // max (optional) - null, // default (optional) - false // array (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-index.md b/docs/examples/1.8.x/server-deno/examples/grids/create-index.md deleted file mode 100644 index d1442d57be..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/create-index.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Grids, IndexType } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.createIndex( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '', // key - IndexType.Key, // type - [], // columns - [], // orders (optional) - [] // lengths (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-integer-column.md b/docs/examples/1.8.x/server-deno/examples/grids/create-integer-column.md deleted file mode 100644 index 0dc377dff2..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/create-integer-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.createIntegerColumn( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '', // key - false, // required - null, // min (optional) - null, // max (optional) - null, // default (optional) - false // array (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-ip-column.md b/docs/examples/1.8.x/server-deno/examples/grids/create-ip-column.md deleted file mode 100644 index 222e262042..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/create-ip-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.createIpColumn( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '', // key - false, // required - '', // default (optional) - false // array (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-relationship-column.md b/docs/examples/1.8.x/server-deno/examples/grids/create-relationship-column.md deleted file mode 100644 index 5cfc17ebbd..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/create-relationship-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import { Client, Grids, RelationshipType, RelationMutate } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.createRelationshipColumn( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '<RELATED_TABLE_ID>', // relatedTableId - RelationshipType.OneToOne, // type - false, // twoWay (optional) - '', // key (optional) - '', // twoWayKey (optional) - RelationMutate.Cascade // onDelete (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-row.md b/docs/examples/1.8.x/server-deno/examples/grids/create-row.md deleted file mode 100644 index 0bf0ec7f09..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/create-row.md +++ /dev/null @@ -1,16 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setSession(''); // The user session to authenticate with - -const grids = new Grids(client); - -const response = await grids.createRow( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '<ROW_ID>', // rowId - {}, // data - ["read("any")"] // permissions (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-rows.md b/docs/examples/1.8.x/server-deno/examples/grids/create-rows.md deleted file mode 100644 index e5d81e6f68..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/create-rows.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.createRows( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - [] // rows -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-string-column.md b/docs/examples/1.8.x/server-deno/examples/grids/create-string-column.md deleted file mode 100644 index fb73a25faa..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/create-string-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.createStringColumn( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '', // key - 1, // size - false, // required - '<DEFAULT>', // default (optional) - false, // array (optional) - false // encrypt (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-table.md b/docs/examples/1.8.x/server-deno/examples/grids/create-table.md deleted file mode 100644 index 832b9c5218..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/create-table.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.createTable( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '<NAME>', // name - ["read("any")"], // permissions (optional) - false, // rowSecurity (optional) - false // enabled (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/create-url-column.md b/docs/examples/1.8.x/server-deno/examples/grids/create-url-column.md deleted file mode 100644 index 905d86c6cf..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/create-url-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.createUrlColumn( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '', // key - false, // required - 'https://example.com', // default (optional) - false // array (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/decrement-row-column.md b/docs/examples/1.8.x/server-deno/examples/grids/decrement-row-column.md deleted file mode 100644 index cd86f6f8f3..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/decrement-row-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.decrementRowColumn( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '<ROW_ID>', // rowId - '', // column - null, // value (optional) - null // min (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/delete-column.md b/docs/examples/1.8.x/server-deno/examples/grids/delete-column.md deleted file mode 100644 index d299323df6..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/delete-column.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.deleteColumn( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '' // key -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/delete-database.md b/docs/examples/1.8.x/server-deno/examples/grids/delete-database.md deleted file mode 100644 index aad02459e4..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/delete-database.md +++ /dev/null @@ -1,12 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.deleteDatabase( - '<DATABASE_ID>' // databaseId -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/delete-index.md b/docs/examples/1.8.x/server-deno/examples/grids/delete-index.md deleted file mode 100644 index 2354fc2485..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/delete-index.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.deleteIndex( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '' // key -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/delete-row.md b/docs/examples/1.8.x/server-deno/examples/grids/delete-row.md deleted file mode 100644 index b62fd2145f..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/delete-row.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setSession(''); // The user session to authenticate with - -const grids = new Grids(client); - -const response = await grids.deleteRow( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '<ROW_ID>' // rowId -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/delete-rows.md b/docs/examples/1.8.x/server-deno/examples/grids/delete-rows.md deleted file mode 100644 index a1c75d7fd2..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/delete-rows.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.deleteRows( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - [] // queries (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/delete-table.md b/docs/examples/1.8.x/server-deno/examples/grids/delete-table.md deleted file mode 100644 index b7b09bc1ed..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/delete-table.md +++ /dev/null @@ -1,13 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.deleteTable( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>' // tableId -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/get-column.md b/docs/examples/1.8.x/server-deno/examples/grids/get-column.md deleted file mode 100644 index cd78228565..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/get-column.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.getColumn( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '' // key -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/get-database.md b/docs/examples/1.8.x/server-deno/examples/grids/get-database.md deleted file mode 100644 index c1fecfeff7..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/get-database.md +++ /dev/null @@ -1,12 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.getDatabase( - '<DATABASE_ID>' // databaseId -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/get-index.md b/docs/examples/1.8.x/server-deno/examples/grids/get-index.md deleted file mode 100644 index 8f3a48aec2..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/get-index.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.getIndex( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '' // key -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/get-row.md b/docs/examples/1.8.x/server-deno/examples/grids/get-row.md deleted file mode 100644 index 257b24b67e..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/get-row.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setSession(''); // The user session to authenticate with - -const grids = new Grids(client); - -const response = await grids.getRow( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '<ROW_ID>', // rowId - [] // queries (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/get-table.md b/docs/examples/1.8.x/server-deno/examples/grids/get-table.md deleted file mode 100644 index 5b9c36ab44..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/get-table.md +++ /dev/null @@ -1,13 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.getTable( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>' // tableId -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/increment-row-column.md b/docs/examples/1.8.x/server-deno/examples/grids/increment-row-column.md deleted file mode 100644 index d01174e938..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/increment-row-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.incrementRowColumn( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '<ROW_ID>', // rowId - '', // column - null, // value (optional) - null // max (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/list-columns.md b/docs/examples/1.8.x/server-deno/examples/grids/list-columns.md deleted file mode 100644 index 3e249e2782..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/list-columns.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.listColumns( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - [] // queries (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/list-databases.md b/docs/examples/1.8.x/server-deno/examples/grids/list-databases.md deleted file mode 100644 index 40ce554e50..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/list-databases.md +++ /dev/null @@ -1,13 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.listDatabases( - [], // queries (optional) - '<SEARCH>' // search (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/list-indexes.md b/docs/examples/1.8.x/server-deno/examples/grids/list-indexes.md deleted file mode 100644 index e605c67cc6..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/list-indexes.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.listIndexes( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - [] // queries (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/list-rows.md b/docs/examples/1.8.x/server-deno/examples/grids/list-rows.md deleted file mode 100644 index 2416578d70..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/list-rows.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setSession(''); // The user session to authenticate with - -const grids = new Grids(client); - -const response = await grids.listRows( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - [] // queries (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/list-tables.md b/docs/examples/1.8.x/server-deno/examples/grids/list-tables.md deleted file mode 100644 index f68d5465b5..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/list-tables.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.listTables( - '<DATABASE_ID>', // databaseId - [], // queries (optional) - '<SEARCH>' // search (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/update-boolean-column.md b/docs/examples/1.8.x/server-deno/examples/grids/update-boolean-column.md deleted file mode 100644 index 22c0fe97f8..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/update-boolean-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.updateBooleanColumn( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '', // key - false, // required - false, // default - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/update-database.md b/docs/examples/1.8.x/server-deno/examples/grids/update-database.md deleted file mode 100644 index 0fc883028e..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/update-database.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.updateDatabase( - '<DATABASE_ID>', // databaseId - '<NAME>', // name - false // enabled (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/update-datetime-column.md b/docs/examples/1.8.x/server-deno/examples/grids/update-datetime-column.md deleted file mode 100644 index 00cee55b33..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/update-datetime-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.updateDatetimeColumn( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '', // key - false, // required - '', // default - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/update-email-column.md b/docs/examples/1.8.x/server-deno/examples/grids/update-email-column.md deleted file mode 100644 index eb263b428f..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/update-email-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.updateEmailColumn( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '', // key - false, // required - 'email@example.com', // default - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/update-enum-column.md b/docs/examples/1.8.x/server-deno/examples/grids/update-enum-column.md deleted file mode 100644 index 974dcc99cb..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/update-enum-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.updateEnumColumn( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '', // key - [], // elements - false, // required - '<DEFAULT>', // default - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/update-float-column.md b/docs/examples/1.8.x/server-deno/examples/grids/update-float-column.md deleted file mode 100644 index c1375b015f..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/update-float-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.updateFloatColumn( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '', // key - false, // required - null, // default - null, // min (optional) - null, // max (optional) - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/update-integer-column.md b/docs/examples/1.8.x/server-deno/examples/grids/update-integer-column.md deleted file mode 100644 index c46dbb1994..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/update-integer-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.updateIntegerColumn( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '', // key - false, // required - null, // default - null, // min (optional) - null, // max (optional) - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/update-ip-column.md b/docs/examples/1.8.x/server-deno/examples/grids/update-ip-column.md deleted file mode 100644 index 2013e16429..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/update-ip-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.updateIpColumn( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '', // key - false, // required - '', // default - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/update-relationship-column.md b/docs/examples/1.8.x/server-deno/examples/grids/update-relationship-column.md deleted file mode 100644 index 5151a5c5bc..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/update-relationship-column.md +++ /dev/null @@ -1,16 +0,0 @@ -import { Client, Grids, RelationMutate } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.updateRelationshipColumn( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '', // key - RelationMutate.Cascade, // onDelete (optional) - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/update-row.md b/docs/examples/1.8.x/server-deno/examples/grids/update-row.md deleted file mode 100644 index 5e37a9cb90..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/update-row.md +++ /dev/null @@ -1,16 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setSession(''); // The user session to authenticate with - -const grids = new Grids(client); - -const response = await grids.updateRow( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '<ROW_ID>', // rowId - {}, // data (optional) - ["read("any")"] // permissions (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/update-rows.md b/docs/examples/1.8.x/server-deno/examples/grids/update-rows.md deleted file mode 100644 index 35dc58d22d..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/update-rows.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.updateRows( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - {}, // data (optional) - [] // queries (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/update-string-column.md b/docs/examples/1.8.x/server-deno/examples/grids/update-string-column.md deleted file mode 100644 index ff0113baeb..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/update-string-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.updateStringColumn( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '', // key - false, // required - '<DEFAULT>', // default - 1, // size (optional) - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/update-table.md b/docs/examples/1.8.x/server-deno/examples/grids/update-table.md deleted file mode 100644 index ce01cd0fc7..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/update-table.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.updateTable( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '<NAME>', // name - ["read("any")"], // permissions (optional) - false, // rowSecurity (optional) - false // enabled (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/update-url-column.md b/docs/examples/1.8.x/server-deno/examples/grids/update-url-column.md deleted file mode 100644 index 285f88fbfd..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/update-url-column.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.updateUrlColumn( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '', // key - false, // required - 'https://example.com', // default - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/upsert-row.md b/docs/examples/1.8.x/server-deno/examples/grids/upsert-row.md deleted file mode 100644 index 33534265d5..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/upsert-row.md +++ /dev/null @@ -1,16 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setSession(''); // The user session to authenticate with - -const grids = new Grids(client); - -const response = await grids.upsertRow( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '<ROW_ID>', // rowId - {}, // data (optional) - ["read("any")"] // permissions (optional) -); diff --git a/docs/examples/1.8.x/server-deno/examples/grids/upsert-rows.md b/docs/examples/1.8.x/server-deno/examples/grids/upsert-rows.md deleted file mode 100644 index 8cd7218f17..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/grids/upsert-rows.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Grids } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new Grids(client); - -const response = await grids.upsertRows( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - [] // rows -); diff --git a/docs/examples/1.8.x/server-deno/examples/health/get-certificate.md b/docs/examples/1.8.x/server-deno/examples/health/get-certificate.md index 56afdd65aa..388fce9f2c 100644 --- a/docs/examples/1.8.x/server-deno/examples/health/get-certificate.md +++ b/docs/examples/1.8.x/server-deno/examples/health/get-certificate.md @@ -8,5 +8,5 @@ const client = new Client() const health = new Health(client); const response = await health.getCertificate({ - domain: '' + domain: '' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/health/get-d-b.md b/docs/examples/1.8.x/server-deno/examples/health/get-db.md similarity index 100% rename from docs/examples/1.8.x/server-deno/examples/health/get-d-b.md rename to docs/examples/1.8.x/server-deno/examples/health/get-db.md diff --git a/docs/examples/1.8.x/server-deno/examples/health/get-failed-jobs.md b/docs/examples/1.8.x/server-deno/examples/health/get-failed-jobs.md index a330bcf86b..a8202355ad 100644 --- a/docs/examples/1.8.x/server-deno/examples/health/get-failed-jobs.md +++ b/docs/examples/1.8.x/server-deno/examples/health/get-failed-jobs.md @@ -9,5 +9,5 @@ const health = new Health(client); const response = await health.getFailedJobs({ name: .V1Database, - threshold: null + threshold: null // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/health/get-queue-builds.md b/docs/examples/1.8.x/server-deno/examples/health/get-queue-builds.md index 10ecfd8f88..d247f48e2e 100644 --- a/docs/examples/1.8.x/server-deno/examples/health/get-queue-builds.md +++ b/docs/examples/1.8.x/server-deno/examples/health/get-queue-builds.md @@ -8,5 +8,5 @@ const client = new Client() const health = new Health(client); const response = await health.getQueueBuilds({ - threshold: null + threshold: null // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/health/get-queue-certificates.md b/docs/examples/1.8.x/server-deno/examples/health/get-queue-certificates.md index 2268c1e96a..c43cffb5dd 100644 --- a/docs/examples/1.8.x/server-deno/examples/health/get-queue-certificates.md +++ b/docs/examples/1.8.x/server-deno/examples/health/get-queue-certificates.md @@ -8,5 +8,5 @@ const client = new Client() const health = new Health(client); const response = await health.getQueueCertificates({ - threshold: null + threshold: null // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/health/get-queue-databases.md b/docs/examples/1.8.x/server-deno/examples/health/get-queue-databases.md index 0ba7ca27f3..9c126dc611 100644 --- a/docs/examples/1.8.x/server-deno/examples/health/get-queue-databases.md +++ b/docs/examples/1.8.x/server-deno/examples/health/get-queue-databases.md @@ -8,6 +8,6 @@ const client = new Client() const health = new Health(client); const response = await health.getQueueDatabases({ - name: '<NAME>', - threshold: null + name: '<NAME>', // optional + threshold: null // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/health/get-queue-deletes.md b/docs/examples/1.8.x/server-deno/examples/health/get-queue-deletes.md index 4afe3ecb7d..240cfe34fc 100644 --- a/docs/examples/1.8.x/server-deno/examples/health/get-queue-deletes.md +++ b/docs/examples/1.8.x/server-deno/examples/health/get-queue-deletes.md @@ -8,5 +8,5 @@ const client = new Client() const health = new Health(client); const response = await health.getQueueDeletes({ - threshold: null + threshold: null // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/health/get-queue-functions.md b/docs/examples/1.8.x/server-deno/examples/health/get-queue-functions.md index 5885132532..333b5abc09 100644 --- a/docs/examples/1.8.x/server-deno/examples/health/get-queue-functions.md +++ b/docs/examples/1.8.x/server-deno/examples/health/get-queue-functions.md @@ -8,5 +8,5 @@ const client = new Client() const health = new Health(client); const response = await health.getQueueFunctions({ - threshold: null + threshold: null // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/health/get-queue-logs.md b/docs/examples/1.8.x/server-deno/examples/health/get-queue-logs.md index 92627fe09d..787768506a 100644 --- a/docs/examples/1.8.x/server-deno/examples/health/get-queue-logs.md +++ b/docs/examples/1.8.x/server-deno/examples/health/get-queue-logs.md @@ -8,5 +8,5 @@ const client = new Client() const health = new Health(client); const response = await health.getQueueLogs({ - threshold: null + threshold: null // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/health/get-queue-mails.md b/docs/examples/1.8.x/server-deno/examples/health/get-queue-mails.md index 1ac6e67c58..3ec4b390a3 100644 --- a/docs/examples/1.8.x/server-deno/examples/health/get-queue-mails.md +++ b/docs/examples/1.8.x/server-deno/examples/health/get-queue-mails.md @@ -8,5 +8,5 @@ const client = new Client() const health = new Health(client); const response = await health.getQueueMails({ - threshold: null + threshold: null // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/health/get-queue-messaging.md b/docs/examples/1.8.x/server-deno/examples/health/get-queue-messaging.md index 7351be9b7b..6d5bf48cc8 100644 --- a/docs/examples/1.8.x/server-deno/examples/health/get-queue-messaging.md +++ b/docs/examples/1.8.x/server-deno/examples/health/get-queue-messaging.md @@ -8,5 +8,5 @@ const client = new Client() const health = new Health(client); const response = await health.getQueueMessaging({ - threshold: null + threshold: null // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/health/get-queue-migrations.md b/docs/examples/1.8.x/server-deno/examples/health/get-queue-migrations.md index a3758fa5ad..520b92de2d 100644 --- a/docs/examples/1.8.x/server-deno/examples/health/get-queue-migrations.md +++ b/docs/examples/1.8.x/server-deno/examples/health/get-queue-migrations.md @@ -8,5 +8,5 @@ const client = new Client() const health = new Health(client); const response = await health.getQueueMigrations({ - threshold: null + threshold: null // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/health/get-queue-stats-resources.md b/docs/examples/1.8.x/server-deno/examples/health/get-queue-stats-resources.md index 227f7f5195..8f22c23211 100644 --- a/docs/examples/1.8.x/server-deno/examples/health/get-queue-stats-resources.md +++ b/docs/examples/1.8.x/server-deno/examples/health/get-queue-stats-resources.md @@ -8,5 +8,5 @@ const client = new Client() const health = new Health(client); const response = await health.getQueueStatsResources({ - threshold: null + threshold: null // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/health/get-queue-usage.md b/docs/examples/1.8.x/server-deno/examples/health/get-queue-usage.md index c031f63805..69ab874051 100644 --- a/docs/examples/1.8.x/server-deno/examples/health/get-queue-usage.md +++ b/docs/examples/1.8.x/server-deno/examples/health/get-queue-usage.md @@ -8,5 +8,5 @@ const client = new Client() const health = new Health(client); const response = await health.getQueueUsage({ - threshold: null + threshold: null // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/health/get-queue-webhooks.md b/docs/examples/1.8.x/server-deno/examples/health/get-queue-webhooks.md index a852a551ed..0e14d7cd16 100644 --- a/docs/examples/1.8.x/server-deno/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.8.x/server-deno/examples/health/get-queue-webhooks.md @@ -8,5 +8,5 @@ const client = new Client() const health = new Health(client); const response = await health.getQueueWebhooks({ - threshold: null + threshold: null // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/locale/list-countries-e-u.md b/docs/examples/1.8.x/server-deno/examples/locale/list-countries-eu.md similarity index 100% rename from docs/examples/1.8.x/server-deno/examples/locale/list-countries-e-u.md rename to docs/examples/1.8.x/server-deno/examples/locale/list-countries-eu.md diff --git a/docs/examples/1.8.x/server-deno/examples/messaging/create-a-p-n-s-provider.md b/docs/examples/1.8.x/server-deno/examples/messaging/create-a-p-n-s-provider.md deleted file mode 100644 index b117888289..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/messaging/create-a-p-n-s-provider.md +++ /dev/null @@ -1,19 +0,0 @@ -import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const messaging = new Messaging(client); - -const response = await messaging.createAPNSProvider({ - providerId: '<PROVIDER_ID>', - name: '<NAME>', - authKey: '<AUTH_KEY>', - authKeyId: '<AUTH_KEY_ID>', - teamId: '<TEAM_ID>', - bundleId: '<BUNDLE_ID>', - sandbox: false, - enabled: false -}); diff --git a/docs/examples/1.8.x/server-deno/examples/messaging/create-apns-provider.md b/docs/examples/1.8.x/server-deno/examples/messaging/create-apns-provider.md index b854183a71..b32386b2a5 100644 --- a/docs/examples/1.8.x/server-deno/examples/messaging/create-apns-provider.md +++ b/docs/examples/1.8.x/server-deno/examples/messaging/create-apns-provider.md @@ -7,13 +7,13 @@ const client = new Client() const messaging = new Messaging(client); -const response = await messaging.createApnsProvider({ +const response = await messaging.createAPNSProvider({ providerId: '<PROVIDER_ID>', name: '<NAME>', - authKey: '<AUTH_KEY>', - authKeyId: '<AUTH_KEY_ID>', - teamId: '<TEAM_ID>', - bundleId: '<BUNDLE_ID>', - sandbox: false, - enabled: false + authKey: '<AUTH_KEY>', // optional + authKeyId: '<AUTH_KEY_ID>', // optional + teamId: '<TEAM_ID>', // optional + bundleId: '<BUNDLE_ID>', // optional + sandbox: false, // optional + enabled: false // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/messaging/create-email.md b/docs/examples/1.8.x/server-deno/examples/messaging/create-email.md index 011e1f6ed5..8ba3db8ddf 100644 --- a/docs/examples/1.8.x/server-deno/examples/messaging/create-email.md +++ b/docs/examples/1.8.x/server-deno/examples/messaging/create-email.md @@ -11,13 +11,13 @@ const response = await messaging.createEmail({ messageId: '<MESSAGE_ID>', subject: '<SUBJECT>', content: '<CONTENT>', - topics: [], - users: [], - targets: [], - cc: [], - bcc: [], - attachments: [], - draft: false, - html: false, - scheduledAt: '' + topics: [], // optional + users: [], // optional + targets: [], // optional + cc: [], // optional + bcc: [], // optional + attachments: [], // optional + draft: false, // optional + html: false, // optional + scheduledAt: '' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/messaging/create-f-c-m-provider.md b/docs/examples/1.8.x/server-deno/examples/messaging/create-f-c-m-provider.md deleted file mode 100644 index 5831f798e4..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/messaging/create-f-c-m-provider.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const messaging = new Messaging(client); - -const response = await messaging.createFCMProvider({ - providerId: '<PROVIDER_ID>', - name: '<NAME>', - serviceAccountJSON: {}, - enabled: false -}); diff --git a/docs/examples/1.8.x/server-deno/examples/messaging/create-fcm-provider.md b/docs/examples/1.8.x/server-deno/examples/messaging/create-fcm-provider.md index 1e3596f6dc..bea200d78b 100644 --- a/docs/examples/1.8.x/server-deno/examples/messaging/create-fcm-provider.md +++ b/docs/examples/1.8.x/server-deno/examples/messaging/create-fcm-provider.md @@ -7,9 +7,9 @@ const client = new Client() const messaging = new Messaging(client); -const response = await messaging.createFcmProvider({ +const response = await messaging.createFCMProvider({ providerId: '<PROVIDER_ID>', name: '<NAME>', - serviceAccountJSON: {}, - enabled: false + serviceAccountJSON: {}, // optional + enabled: false // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/messaging/create-mailgun-provider.md b/docs/examples/1.8.x/server-deno/examples/messaging/create-mailgun-provider.md index c17a323653..2eaa888ecd 100644 --- a/docs/examples/1.8.x/server-deno/examples/messaging/create-mailgun-provider.md +++ b/docs/examples/1.8.x/server-deno/examples/messaging/create-mailgun-provider.md @@ -10,12 +10,12 @@ const messaging = new Messaging(client); const response = await messaging.createMailgunProvider({ providerId: '<PROVIDER_ID>', name: '<NAME>', - apiKey: '<API_KEY>', - domain: '<DOMAIN>', - isEuRegion: false, - fromName: '<FROM_NAME>', - fromEmail: 'email@example.com', - replyToName: '<REPLY_TO_NAME>', - replyToEmail: 'email@example.com', - enabled: false + apiKey: '<API_KEY>', // optional + domain: '<DOMAIN>', // optional + isEuRegion: false, // optional + fromName: '<FROM_NAME>', // optional + fromEmail: 'email@example.com', // optional + replyToName: '<REPLY_TO_NAME>', // optional + replyToEmail: 'email@example.com', // optional + enabled: false // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/messaging/create-msg91provider.md b/docs/examples/1.8.x/server-deno/examples/messaging/create-msg-91-provider.md similarity index 74% rename from docs/examples/1.8.x/server-deno/examples/messaging/create-msg91provider.md rename to docs/examples/1.8.x/server-deno/examples/messaging/create-msg-91-provider.md index c076faa236..b9f3238080 100644 --- a/docs/examples/1.8.x/server-deno/examples/messaging/create-msg91provider.md +++ b/docs/examples/1.8.x/server-deno/examples/messaging/create-msg-91-provider.md @@ -10,8 +10,8 @@ const messaging = new Messaging(client); const response = await messaging.createMsg91Provider({ providerId: '<PROVIDER_ID>', name: '<NAME>', - templateId: '<TEMPLATE_ID>', - senderId: '<SENDER_ID>', - authKey: '<AUTH_KEY>', - enabled: false + templateId: '<TEMPLATE_ID>', // optional + senderId: '<SENDER_ID>', // optional + authKey: '<AUTH_KEY>', // optional + enabled: false // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/messaging/create-push.md b/docs/examples/1.8.x/server-deno/examples/messaging/create-push.md index 2c9004cc04..efa40ce1e7 100644 --- a/docs/examples/1.8.x/server-deno/examples/messaging/create-push.md +++ b/docs/examples/1.8.x/server-deno/examples/messaging/create-push.md @@ -9,22 +9,22 @@ const messaging = new Messaging(client); const response = await messaging.createPush({ messageId: '<MESSAGE_ID>', - title: '<TITLE>', - body: '<BODY>', - topics: [], - users: [], - targets: [], - data: {}, - action: '<ACTION>', - image: '[ID1:ID2]', - icon: '<ICON>', - sound: '<SOUND>', - color: '<COLOR>', - tag: '<TAG>', - badge: null, - draft: false, - scheduledAt: '', - contentAvailable: false, - critical: false, - priority: MessagePriority.Normal + title: '<TITLE>', // optional + body: '<BODY>', // optional + topics: [], // optional + users: [], // optional + targets: [], // optional + data: {}, // optional + action: '<ACTION>', // optional + image: '[ID1:ID2]', // optional + icon: '<ICON>', // optional + sound: '<SOUND>', // optional + color: '<COLOR>', // optional + tag: '<TAG>', // optional + badge: null, // optional + draft: false, // optional + scheduledAt: '', // optional + contentAvailable: false, // optional + critical: false, // optional + priority: MessagePriority.Normal // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/messaging/create-s-m-s.md b/docs/examples/1.8.x/server-deno/examples/messaging/create-s-m-s.md deleted file mode 100644 index 8f4fefcab2..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/messaging/create-s-m-s.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const messaging = new Messaging(client); - -const response = await messaging.createSMS({ - messageId: '<MESSAGE_ID>', - content: '<CONTENT>', - topics: [], - users: [], - targets: [], - draft: false, - scheduledAt: '' -}); diff --git a/docs/examples/1.8.x/server-deno/examples/messaging/create-s-m-t-p-provider.md b/docs/examples/1.8.x/server-deno/examples/messaging/create-s-m-t-p-provider.md deleted file mode 100644 index 0a85e7c4c0..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/messaging/create-s-m-t-p-provider.md +++ /dev/null @@ -1,25 +0,0 @@ -import { Client, Messaging, SmtpEncryption } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const messaging = new Messaging(client); - -const response = await messaging.createSMTPProvider({ - providerId: '<PROVIDER_ID>', - name: '<NAME>', - host: '<HOST>', - port: 1, - username: '<USERNAME>', - password: '<PASSWORD>', - encryption: SmtpEncryption.None, - autoTLS: false, - mailer: '<MAILER>', - fromName: '<FROM_NAME>', - fromEmail: 'email@example.com', - replyToName: '<REPLY_TO_NAME>', - replyToEmail: 'email@example.com', - enabled: false -}); diff --git a/docs/examples/1.8.x/server-deno/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.8.x/server-deno/examples/messaging/create-sendgrid-provider.md index 62f5ec14b5..10ce45e381 100644 --- a/docs/examples/1.8.x/server-deno/examples/messaging/create-sendgrid-provider.md +++ b/docs/examples/1.8.x/server-deno/examples/messaging/create-sendgrid-provider.md @@ -10,10 +10,10 @@ const messaging = new Messaging(client); const response = await messaging.createSendgridProvider({ providerId: '<PROVIDER_ID>', name: '<NAME>', - apiKey: '<API_KEY>', - fromName: '<FROM_NAME>', - fromEmail: 'email@example.com', - replyToName: '<REPLY_TO_NAME>', - replyToEmail: 'email@example.com', - enabled: false + apiKey: '<API_KEY>', // optional + fromName: '<FROM_NAME>', // optional + fromEmail: 'email@example.com', // optional + replyToName: '<REPLY_TO_NAME>', // optional + replyToEmail: 'email@example.com', // optional + enabled: false // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/messaging/create-sms.md b/docs/examples/1.8.x/server-deno/examples/messaging/create-sms.md index 5b691122d8..bf81ff9bcd 100644 --- a/docs/examples/1.8.x/server-deno/examples/messaging/create-sms.md +++ b/docs/examples/1.8.x/server-deno/examples/messaging/create-sms.md @@ -7,12 +7,12 @@ const client = new Client() const messaging = new Messaging(client); -const response = await messaging.createSms({ +const response = await messaging.createSMS({ messageId: '<MESSAGE_ID>', content: '<CONTENT>', - topics: [], - users: [], - targets: [], - draft: false, - scheduledAt: '' + topics: [], // optional + users: [], // optional + targets: [], // optional + draft: false, // optional + scheduledAt: '' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/messaging/create-smtp-provider.md b/docs/examples/1.8.x/server-deno/examples/messaging/create-smtp-provider.md index 426cc98d7c..06307b3026 100644 --- a/docs/examples/1.8.x/server-deno/examples/messaging/create-smtp-provider.md +++ b/docs/examples/1.8.x/server-deno/examples/messaging/create-smtp-provider.md @@ -7,19 +7,19 @@ const client = new Client() const messaging = new Messaging(client); -const response = await messaging.createSmtpProvider({ +const response = await messaging.createSMTPProvider({ providerId: '<PROVIDER_ID>', name: '<NAME>', host: '<HOST>', - port: 1, - username: '<USERNAME>', - password: '<PASSWORD>', - encryption: SmtpEncryption.None, - autoTLS: false, - mailer: '<MAILER>', - fromName: '<FROM_NAME>', - fromEmail: 'email@example.com', - replyToName: '<REPLY_TO_NAME>', - replyToEmail: 'email@example.com', - enabled: false + port: 1, // optional + username: '<USERNAME>', // optional + password: '<PASSWORD>', // optional + encryption: SmtpEncryption.None, // optional + autoTLS: false, // optional + mailer: '<MAILER>', // optional + fromName: '<FROM_NAME>', // optional + fromEmail: 'email@example.com', // optional + replyToName: '<REPLY_TO_NAME>', // optional + replyToEmail: 'email@example.com', // optional + enabled: false // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/messaging/create-telesign-provider.md b/docs/examples/1.8.x/server-deno/examples/messaging/create-telesign-provider.md index 04c4b63496..0c9376b2a6 100644 --- a/docs/examples/1.8.x/server-deno/examples/messaging/create-telesign-provider.md +++ b/docs/examples/1.8.x/server-deno/examples/messaging/create-telesign-provider.md @@ -10,8 +10,8 @@ const messaging = new Messaging(client); const response = await messaging.createTelesignProvider({ providerId: '<PROVIDER_ID>', name: '<NAME>', - from: '+12065550100', - customerId: '<CUSTOMER_ID>', - apiKey: '<API_KEY>', - enabled: false + from: '+12065550100', // optional + customerId: '<CUSTOMER_ID>', // optional + apiKey: '<API_KEY>', // optional + enabled: false // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/messaging/create-textmagic-provider.md b/docs/examples/1.8.x/server-deno/examples/messaging/create-textmagic-provider.md index 7fcdcfee33..1bf61f9f1d 100644 --- a/docs/examples/1.8.x/server-deno/examples/messaging/create-textmagic-provider.md +++ b/docs/examples/1.8.x/server-deno/examples/messaging/create-textmagic-provider.md @@ -10,8 +10,8 @@ const messaging = new Messaging(client); const response = await messaging.createTextmagicProvider({ providerId: '<PROVIDER_ID>', name: '<NAME>', - from: '+12065550100', - username: '<USERNAME>', - apiKey: '<API_KEY>', - enabled: false + from: '+12065550100', // optional + username: '<USERNAME>', // optional + apiKey: '<API_KEY>', // optional + enabled: false // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/messaging/create-topic.md b/docs/examples/1.8.x/server-deno/examples/messaging/create-topic.md index 08c1c328db..a15699b1d7 100644 --- a/docs/examples/1.8.x/server-deno/examples/messaging/create-topic.md +++ b/docs/examples/1.8.x/server-deno/examples/messaging/create-topic.md @@ -10,5 +10,5 @@ const messaging = new Messaging(client); const response = await messaging.createTopic({ topicId: '<TOPIC_ID>', name: '<NAME>', - subscribe: ["any"] + subscribe: ["any"] // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/messaging/create-twilio-provider.md b/docs/examples/1.8.x/server-deno/examples/messaging/create-twilio-provider.md index 7ea61ad7e1..cd889f01f1 100644 --- a/docs/examples/1.8.x/server-deno/examples/messaging/create-twilio-provider.md +++ b/docs/examples/1.8.x/server-deno/examples/messaging/create-twilio-provider.md @@ -10,8 +10,8 @@ const messaging = new Messaging(client); const response = await messaging.createTwilioProvider({ providerId: '<PROVIDER_ID>', name: '<NAME>', - from: '+12065550100', - accountSid: '<ACCOUNT_SID>', - authToken: '<AUTH_TOKEN>', - enabled: false + from: '+12065550100', // optional + accountSid: '<ACCOUNT_SID>', // optional + authToken: '<AUTH_TOKEN>', // optional + enabled: false // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/messaging/create-vonage-provider.md b/docs/examples/1.8.x/server-deno/examples/messaging/create-vonage-provider.md index 6b24187914..e03b0b6e55 100644 --- a/docs/examples/1.8.x/server-deno/examples/messaging/create-vonage-provider.md +++ b/docs/examples/1.8.x/server-deno/examples/messaging/create-vonage-provider.md @@ -10,8 +10,8 @@ const messaging = new Messaging(client); const response = await messaging.createVonageProvider({ providerId: '<PROVIDER_ID>', name: '<NAME>', - from: '+12065550100', - apiKey: '<API_KEY>', - apiSecret: '<API_SECRET>', - enabled: false + from: '+12065550100', // optional + apiKey: '<API_KEY>', // optional + apiSecret: '<API_SECRET>', // optional + enabled: false // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/messaging/list-message-logs.md b/docs/examples/1.8.x/server-deno/examples/messaging/list-message-logs.md index 5772ddddba..b470dbcec4 100644 --- a/docs/examples/1.8.x/server-deno/examples/messaging/list-message-logs.md +++ b/docs/examples/1.8.x/server-deno/examples/messaging/list-message-logs.md @@ -9,5 +9,5 @@ const messaging = new Messaging(client); const response = await messaging.listMessageLogs({ messageId: '<MESSAGE_ID>', - queries: [] + queries: [] // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/messaging/list-messages.md b/docs/examples/1.8.x/server-deno/examples/messaging/list-messages.md index a487cb7c18..a1bd90ae29 100644 --- a/docs/examples/1.8.x/server-deno/examples/messaging/list-messages.md +++ b/docs/examples/1.8.x/server-deno/examples/messaging/list-messages.md @@ -8,6 +8,6 @@ const client = new Client() const messaging = new Messaging(client); const response = await messaging.listMessages({ - queries: [], - search: '<SEARCH>' + queries: [], // optional + search: '<SEARCH>' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/messaging/list-provider-logs.md b/docs/examples/1.8.x/server-deno/examples/messaging/list-provider-logs.md index 87fbe57904..9784ff30c3 100644 --- a/docs/examples/1.8.x/server-deno/examples/messaging/list-provider-logs.md +++ b/docs/examples/1.8.x/server-deno/examples/messaging/list-provider-logs.md @@ -9,5 +9,5 @@ const messaging = new Messaging(client); const response = await messaging.listProviderLogs({ providerId: '<PROVIDER_ID>', - queries: [] + queries: [] // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/messaging/list-providers.md b/docs/examples/1.8.x/server-deno/examples/messaging/list-providers.md index 7fc1e06452..150de6fed8 100644 --- a/docs/examples/1.8.x/server-deno/examples/messaging/list-providers.md +++ b/docs/examples/1.8.x/server-deno/examples/messaging/list-providers.md @@ -8,6 +8,6 @@ const client = new Client() const messaging = new Messaging(client); const response = await messaging.listProviders({ - queries: [], - search: '<SEARCH>' + queries: [], // optional + search: '<SEARCH>' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/messaging/list-subscriber-logs.md b/docs/examples/1.8.x/server-deno/examples/messaging/list-subscriber-logs.md index d0f3d1c75e..ccc575ca10 100644 --- a/docs/examples/1.8.x/server-deno/examples/messaging/list-subscriber-logs.md +++ b/docs/examples/1.8.x/server-deno/examples/messaging/list-subscriber-logs.md @@ -9,5 +9,5 @@ const messaging = new Messaging(client); const response = await messaging.listSubscriberLogs({ subscriberId: '<SUBSCRIBER_ID>', - queries: [] + queries: [] // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/messaging/list-subscribers.md b/docs/examples/1.8.x/server-deno/examples/messaging/list-subscribers.md index bd0c8af4a4..68614ec71d 100644 --- a/docs/examples/1.8.x/server-deno/examples/messaging/list-subscribers.md +++ b/docs/examples/1.8.x/server-deno/examples/messaging/list-subscribers.md @@ -9,6 +9,6 @@ const messaging = new Messaging(client); const response = await messaging.listSubscribers({ topicId: '<TOPIC_ID>', - queries: [], - search: '<SEARCH>' + queries: [], // optional + search: '<SEARCH>' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/messaging/list-targets.md b/docs/examples/1.8.x/server-deno/examples/messaging/list-targets.md index 8a18af732d..6d269b72e8 100644 --- a/docs/examples/1.8.x/server-deno/examples/messaging/list-targets.md +++ b/docs/examples/1.8.x/server-deno/examples/messaging/list-targets.md @@ -9,5 +9,5 @@ const messaging = new Messaging(client); const response = await messaging.listTargets({ messageId: '<MESSAGE_ID>', - queries: [] + queries: [] // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/messaging/list-topic-logs.md b/docs/examples/1.8.x/server-deno/examples/messaging/list-topic-logs.md index eeebc950e2..70b287a806 100644 --- a/docs/examples/1.8.x/server-deno/examples/messaging/list-topic-logs.md +++ b/docs/examples/1.8.x/server-deno/examples/messaging/list-topic-logs.md @@ -9,5 +9,5 @@ const messaging = new Messaging(client); const response = await messaging.listTopicLogs({ topicId: '<TOPIC_ID>', - queries: [] + queries: [] // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/messaging/list-topics.md b/docs/examples/1.8.x/server-deno/examples/messaging/list-topics.md index cdd1afe822..073b78e843 100644 --- a/docs/examples/1.8.x/server-deno/examples/messaging/list-topics.md +++ b/docs/examples/1.8.x/server-deno/examples/messaging/list-topics.md @@ -8,6 +8,6 @@ const client = new Client() const messaging = new Messaging(client); const response = await messaging.listTopics({ - queries: [], - search: '<SEARCH>' + queries: [], // optional + search: '<SEARCH>' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/messaging/update-a-p-n-s-provider.md b/docs/examples/1.8.x/server-deno/examples/messaging/update-a-p-n-s-provider.md deleted file mode 100644 index a7b4236874..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/messaging/update-a-p-n-s-provider.md +++ /dev/null @@ -1,19 +0,0 @@ -import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const messaging = new Messaging(client); - -const response = await messaging.updateAPNSProvider({ - providerId: '<PROVIDER_ID>', - name: '<NAME>', - enabled: false, - authKey: '<AUTH_KEY>', - authKeyId: '<AUTH_KEY_ID>', - teamId: '<TEAM_ID>', - bundleId: '<BUNDLE_ID>', - sandbox: false -}); diff --git a/docs/examples/1.8.x/server-deno/examples/messaging/update-apns-provider.md b/docs/examples/1.8.x/server-deno/examples/messaging/update-apns-provider.md index 3860fea1db..160786f480 100644 --- a/docs/examples/1.8.x/server-deno/examples/messaging/update-apns-provider.md +++ b/docs/examples/1.8.x/server-deno/examples/messaging/update-apns-provider.md @@ -7,13 +7,13 @@ const client = new Client() const messaging = new Messaging(client); -const response = await messaging.updateApnsProvider({ +const response = await messaging.updateAPNSProvider({ providerId: '<PROVIDER_ID>', - name: '<NAME>', - enabled: false, - authKey: '<AUTH_KEY>', - authKeyId: '<AUTH_KEY_ID>', - teamId: '<TEAM_ID>', - bundleId: '<BUNDLE_ID>', - sandbox: false + name: '<NAME>', // optional + enabled: false, // optional + authKey: '<AUTH_KEY>', // optional + authKeyId: '<AUTH_KEY_ID>', // optional + teamId: '<TEAM_ID>', // optional + bundleId: '<BUNDLE_ID>', // optional + sandbox: false // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/messaging/update-email.md b/docs/examples/1.8.x/server-deno/examples/messaging/update-email.md index a742160aac..0f281cd795 100644 --- a/docs/examples/1.8.x/server-deno/examples/messaging/update-email.md +++ b/docs/examples/1.8.x/server-deno/examples/messaging/update-email.md @@ -9,15 +9,15 @@ const messaging = new Messaging(client); const response = await messaging.updateEmail({ messageId: '<MESSAGE_ID>', - topics: [], - users: [], - targets: [], - subject: '<SUBJECT>', - content: '<CONTENT>', - draft: false, - html: false, - cc: [], - bcc: [], - scheduledAt: '', - attachments: [] + topics: [], // optional + users: [], // optional + targets: [], // optional + subject: '<SUBJECT>', // optional + content: '<CONTENT>', // optional + draft: false, // optional + html: false, // optional + cc: [], // optional + bcc: [], // optional + scheduledAt: '', // optional + attachments: [] // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/messaging/update-f-c-m-provider.md b/docs/examples/1.8.x/server-deno/examples/messaging/update-f-c-m-provider.md deleted file mode 100644 index dafc6ce6e3..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/messaging/update-f-c-m-provider.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const messaging = new Messaging(client); - -const response = await messaging.updateFCMProvider({ - providerId: '<PROVIDER_ID>', - name: '<NAME>', - enabled: false, - serviceAccountJSON: {} -}); diff --git a/docs/examples/1.8.x/server-deno/examples/messaging/update-fcm-provider.md b/docs/examples/1.8.x/server-deno/examples/messaging/update-fcm-provider.md index 17fb741b33..b76e03736d 100644 --- a/docs/examples/1.8.x/server-deno/examples/messaging/update-fcm-provider.md +++ b/docs/examples/1.8.x/server-deno/examples/messaging/update-fcm-provider.md @@ -7,9 +7,9 @@ const client = new Client() const messaging = new Messaging(client); -const response = await messaging.updateFcmProvider({ +const response = await messaging.updateFCMProvider({ providerId: '<PROVIDER_ID>', - name: '<NAME>', - enabled: false, - serviceAccountJSON: {} + name: '<NAME>', // optional + enabled: false, // optional + serviceAccountJSON: {} // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/messaging/update-mailgun-provider.md b/docs/examples/1.8.x/server-deno/examples/messaging/update-mailgun-provider.md index aad80a0d5b..b4f88e8695 100644 --- a/docs/examples/1.8.x/server-deno/examples/messaging/update-mailgun-provider.md +++ b/docs/examples/1.8.x/server-deno/examples/messaging/update-mailgun-provider.md @@ -9,13 +9,13 @@ const messaging = new Messaging(client); const response = await messaging.updateMailgunProvider({ providerId: '<PROVIDER_ID>', - name: '<NAME>', - apiKey: '<API_KEY>', - domain: '<DOMAIN>', - isEuRegion: false, - enabled: false, - fromName: '<FROM_NAME>', - fromEmail: 'email@example.com', - replyToName: '<REPLY_TO_NAME>', - replyToEmail: '<REPLY_TO_EMAIL>' + name: '<NAME>', // optional + apiKey: '<API_KEY>', // optional + domain: '<DOMAIN>', // optional + isEuRegion: false, // optional + enabled: false, // optional + fromName: '<FROM_NAME>', // optional + fromEmail: 'email@example.com', // optional + replyToName: '<REPLY_TO_NAME>', // optional + replyToEmail: '<REPLY_TO_EMAIL>' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/messaging/update-msg91provider.md b/docs/examples/1.8.x/server-deno/examples/messaging/update-msg-91-provider.md similarity index 69% rename from docs/examples/1.8.x/server-deno/examples/messaging/update-msg91provider.md rename to docs/examples/1.8.x/server-deno/examples/messaging/update-msg-91-provider.md index 8f57eec34f..5cf61cb872 100644 --- a/docs/examples/1.8.x/server-deno/examples/messaging/update-msg91provider.md +++ b/docs/examples/1.8.x/server-deno/examples/messaging/update-msg-91-provider.md @@ -9,9 +9,9 @@ const messaging = new Messaging(client); const response = await messaging.updateMsg91Provider({ providerId: '<PROVIDER_ID>', - name: '<NAME>', - enabled: false, - templateId: '<TEMPLATE_ID>', - senderId: '<SENDER_ID>', - authKey: '<AUTH_KEY>' + name: '<NAME>', // optional + enabled: false, // optional + templateId: '<TEMPLATE_ID>', // optional + senderId: '<SENDER_ID>', // optional + authKey: '<AUTH_KEY>' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/messaging/update-push.md b/docs/examples/1.8.x/server-deno/examples/messaging/update-push.md index 73d2a3ceff..fb776fd489 100644 --- a/docs/examples/1.8.x/server-deno/examples/messaging/update-push.md +++ b/docs/examples/1.8.x/server-deno/examples/messaging/update-push.md @@ -9,22 +9,22 @@ const messaging = new Messaging(client); const response = await messaging.updatePush({ messageId: '<MESSAGE_ID>', - topics: [], - users: [], - targets: [], - title: '<TITLE>', - body: '<BODY>', - data: {}, - action: '<ACTION>', - image: '[ID1:ID2]', - icon: '<ICON>', - sound: '<SOUND>', - color: '<COLOR>', - tag: '<TAG>', - badge: null, - draft: false, - scheduledAt: '', - contentAvailable: false, - critical: false, - priority: MessagePriority.Normal + topics: [], // optional + users: [], // optional + targets: [], // optional + title: '<TITLE>', // optional + body: '<BODY>', // optional + data: {}, // optional + action: '<ACTION>', // optional + image: '[ID1:ID2]', // optional + icon: '<ICON>', // optional + sound: '<SOUND>', // optional + color: '<COLOR>', // optional + tag: '<TAG>', // optional + badge: null, // optional + draft: false, // optional + scheduledAt: '', // optional + contentAvailable: false, // optional + critical: false, // optional + priority: MessagePriority.Normal // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/messaging/update-s-m-s.md b/docs/examples/1.8.x/server-deno/examples/messaging/update-s-m-s.md deleted file mode 100644 index d2a3be05f3..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/messaging/update-s-m-s.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Messaging } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const messaging = new Messaging(client); - -const response = await messaging.updateSMS({ - messageId: '<MESSAGE_ID>', - topics: [], - users: [], - targets: [], - content: '<CONTENT>', - draft: false, - scheduledAt: '' -}); diff --git a/docs/examples/1.8.x/server-deno/examples/messaging/update-s-m-t-p-provider.md b/docs/examples/1.8.x/server-deno/examples/messaging/update-s-m-t-p-provider.md deleted file mode 100644 index ea192a778f..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/messaging/update-s-m-t-p-provider.md +++ /dev/null @@ -1,25 +0,0 @@ -import { Client, Messaging, SmtpEncryption } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const messaging = new Messaging(client); - -const response = await messaging.updateSMTPProvider({ - providerId: '<PROVIDER_ID>', - name: '<NAME>', - host: '<HOST>', - port: 1, - username: '<USERNAME>', - password: '<PASSWORD>', - encryption: SmtpEncryption.None, - autoTLS: false, - mailer: '<MAILER>', - fromName: '<FROM_NAME>', - fromEmail: 'email@example.com', - replyToName: '<REPLY_TO_NAME>', - replyToEmail: '<REPLY_TO_EMAIL>', - enabled: false -}); diff --git a/docs/examples/1.8.x/server-deno/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.8.x/server-deno/examples/messaging/update-sendgrid-provider.md index 708886fece..edf82f6807 100644 --- a/docs/examples/1.8.x/server-deno/examples/messaging/update-sendgrid-provider.md +++ b/docs/examples/1.8.x/server-deno/examples/messaging/update-sendgrid-provider.md @@ -9,11 +9,11 @@ const messaging = new Messaging(client); const response = await messaging.updateSendgridProvider({ providerId: '<PROVIDER_ID>', - name: '<NAME>', - enabled: false, - apiKey: '<API_KEY>', - fromName: '<FROM_NAME>', - fromEmail: 'email@example.com', - replyToName: '<REPLY_TO_NAME>', - replyToEmail: '<REPLY_TO_EMAIL>' + name: '<NAME>', // optional + enabled: false, // optional + apiKey: '<API_KEY>', // optional + fromName: '<FROM_NAME>', // optional + fromEmail: 'email@example.com', // optional + replyToName: '<REPLY_TO_NAME>', // optional + replyToEmail: '<REPLY_TO_EMAIL>' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/messaging/update-sms.md b/docs/examples/1.8.x/server-deno/examples/messaging/update-sms.md index 53ac19a18d..9d7f3a3c2f 100644 --- a/docs/examples/1.8.x/server-deno/examples/messaging/update-sms.md +++ b/docs/examples/1.8.x/server-deno/examples/messaging/update-sms.md @@ -7,12 +7,12 @@ const client = new Client() const messaging = new Messaging(client); -const response = await messaging.updateSms({ +const response = await messaging.updateSMS({ messageId: '<MESSAGE_ID>', - topics: [], - users: [], - targets: [], - content: '<CONTENT>', - draft: false, - scheduledAt: '' + topics: [], // optional + users: [], // optional + targets: [], // optional + content: '<CONTENT>', // optional + draft: false, // optional + scheduledAt: '' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/messaging/update-smtp-provider.md b/docs/examples/1.8.x/server-deno/examples/messaging/update-smtp-provider.md index 35addb7338..6fc0021a3a 100644 --- a/docs/examples/1.8.x/server-deno/examples/messaging/update-smtp-provider.md +++ b/docs/examples/1.8.x/server-deno/examples/messaging/update-smtp-provider.md @@ -7,19 +7,19 @@ const client = new Client() const messaging = new Messaging(client); -const response = await messaging.updateSmtpProvider({ +const response = await messaging.updateSMTPProvider({ providerId: '<PROVIDER_ID>', - name: '<NAME>', - host: '<HOST>', - port: 1, - username: '<USERNAME>', - password: '<PASSWORD>', - encryption: SmtpEncryption.None, - autoTLS: false, - mailer: '<MAILER>', - fromName: '<FROM_NAME>', - fromEmail: 'email@example.com', - replyToName: '<REPLY_TO_NAME>', - replyToEmail: '<REPLY_TO_EMAIL>', - enabled: false + name: '<NAME>', // optional + host: '<HOST>', // optional + port: 1, // optional + username: '<USERNAME>', // optional + password: '<PASSWORD>', // optional + encryption: SmtpEncryption.None, // optional + autoTLS: false, // optional + mailer: '<MAILER>', // optional + fromName: '<FROM_NAME>', // optional + fromEmail: 'email@example.com', // optional + replyToName: '<REPLY_TO_NAME>', // optional + replyToEmail: '<REPLY_TO_EMAIL>', // optional + enabled: false // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/messaging/update-telesign-provider.md b/docs/examples/1.8.x/server-deno/examples/messaging/update-telesign-provider.md index f41eb545b0..defb10e246 100644 --- a/docs/examples/1.8.x/server-deno/examples/messaging/update-telesign-provider.md +++ b/docs/examples/1.8.x/server-deno/examples/messaging/update-telesign-provider.md @@ -9,9 +9,9 @@ const messaging = new Messaging(client); const response = await messaging.updateTelesignProvider({ providerId: '<PROVIDER_ID>', - name: '<NAME>', - enabled: false, - customerId: '<CUSTOMER_ID>', - apiKey: '<API_KEY>', - from: '<FROM>' + name: '<NAME>', // optional + enabled: false, // optional + customerId: '<CUSTOMER_ID>', // optional + apiKey: '<API_KEY>', // optional + from: '<FROM>' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/messaging/update-textmagic-provider.md b/docs/examples/1.8.x/server-deno/examples/messaging/update-textmagic-provider.md index 6c05f5c3f1..c859643999 100644 --- a/docs/examples/1.8.x/server-deno/examples/messaging/update-textmagic-provider.md +++ b/docs/examples/1.8.x/server-deno/examples/messaging/update-textmagic-provider.md @@ -9,9 +9,9 @@ const messaging = new Messaging(client); const response = await messaging.updateTextmagicProvider({ providerId: '<PROVIDER_ID>', - name: '<NAME>', - enabled: false, - username: '<USERNAME>', - apiKey: '<API_KEY>', - from: '<FROM>' + name: '<NAME>', // optional + enabled: false, // optional + username: '<USERNAME>', // optional + apiKey: '<API_KEY>', // optional + from: '<FROM>' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/messaging/update-topic.md b/docs/examples/1.8.x/server-deno/examples/messaging/update-topic.md index a8e50668fd..7dc9337de8 100644 --- a/docs/examples/1.8.x/server-deno/examples/messaging/update-topic.md +++ b/docs/examples/1.8.x/server-deno/examples/messaging/update-topic.md @@ -9,6 +9,6 @@ const messaging = new Messaging(client); const response = await messaging.updateTopic({ topicId: '<TOPIC_ID>', - name: '<NAME>', - subscribe: ["any"] + name: '<NAME>', // optional + subscribe: ["any"] // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/messaging/update-twilio-provider.md b/docs/examples/1.8.x/server-deno/examples/messaging/update-twilio-provider.md index 1c4618d418..75940f5618 100644 --- a/docs/examples/1.8.x/server-deno/examples/messaging/update-twilio-provider.md +++ b/docs/examples/1.8.x/server-deno/examples/messaging/update-twilio-provider.md @@ -9,9 +9,9 @@ const messaging = new Messaging(client); const response = await messaging.updateTwilioProvider({ providerId: '<PROVIDER_ID>', - name: '<NAME>', - enabled: false, - accountSid: '<ACCOUNT_SID>', - authToken: '<AUTH_TOKEN>', - from: '<FROM>' + name: '<NAME>', // optional + enabled: false, // optional + accountSid: '<ACCOUNT_SID>', // optional + authToken: '<AUTH_TOKEN>', // optional + from: '<FROM>' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/messaging/update-vonage-provider.md b/docs/examples/1.8.x/server-deno/examples/messaging/update-vonage-provider.md index c3a2cad8b5..fea4465c18 100644 --- a/docs/examples/1.8.x/server-deno/examples/messaging/update-vonage-provider.md +++ b/docs/examples/1.8.x/server-deno/examples/messaging/update-vonage-provider.md @@ -9,9 +9,9 @@ const messaging = new Messaging(client); const response = await messaging.updateVonageProvider({ providerId: '<PROVIDER_ID>', - name: '<NAME>', - enabled: false, - apiKey: '<API_KEY>', - apiSecret: '<API_SECRET>', - from: '<FROM>' + name: '<NAME>', // optional + enabled: false, // optional + apiKey: '<API_KEY>', // optional + apiSecret: '<API_SECRET>', // optional + from: '<FROM>' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/sites/create-deployment.md b/docs/examples/1.8.x/server-deno/examples/sites/create-deployment.md index 6e9425648f..81a0527633 100644 --- a/docs/examples/1.8.x/server-deno/examples/sites/create-deployment.md +++ b/docs/examples/1.8.x/server-deno/examples/sites/create-deployment.md @@ -11,7 +11,7 @@ const response = await sites.createDeployment({ siteId: '<SITE_ID>', code: InputFile.fromPath('/path/to/file.png', 'file.png'), activate: false, - installCommand: '<INSTALL_COMMAND>', - buildCommand: '<BUILD_COMMAND>', - outputDirectory: '<OUTPUT_DIRECTORY>' + installCommand: '<INSTALL_COMMAND>', // optional + buildCommand: '<BUILD_COMMAND>', // optional + outputDirectory: '<OUTPUT_DIRECTORY>' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/sites/create-template-deployment.md b/docs/examples/1.8.x/server-deno/examples/sites/create-template-deployment.md index 8890b19d21..e9b569d5f5 100644 --- a/docs/examples/1.8.x/server-deno/examples/sites/create-template-deployment.md +++ b/docs/examples/1.8.x/server-deno/examples/sites/create-template-deployment.md @@ -13,5 +13,5 @@ const response = await sites.createTemplateDeployment({ owner: '<OWNER>', rootDirectory: '<ROOT_DIRECTORY>', version: '<VERSION>', - activate: false + activate: false // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/sites/create-variable.md b/docs/examples/1.8.x/server-deno/examples/sites/create-variable.md index e2bf02da2a..ab5e143454 100644 --- a/docs/examples/1.8.x/server-deno/examples/sites/create-variable.md +++ b/docs/examples/1.8.x/server-deno/examples/sites/create-variable.md @@ -11,5 +11,5 @@ const response = await sites.createVariable({ siteId: '<SITE_ID>', key: '<KEY>', value: '<VALUE>', - secret: false + secret: false // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/sites/create-vcs-deployment.md b/docs/examples/1.8.x/server-deno/examples/sites/create-vcs-deployment.md index 750a3c04e8..7c7b7cca53 100644 --- a/docs/examples/1.8.x/server-deno/examples/sites/create-vcs-deployment.md +++ b/docs/examples/1.8.x/server-deno/examples/sites/create-vcs-deployment.md @@ -11,5 +11,5 @@ const response = await sites.createVcsDeployment({ siteId: '<SITE_ID>', type: VCSDeploymentType.Branch, reference: '<REFERENCE>', - activate: false + activate: false // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/sites/create.md b/docs/examples/1.8.x/server-deno/examples/sites/create.md index 5b1d152b73..7161da53a3 100644 --- a/docs/examples/1.8.x/server-deno/examples/sites/create.md +++ b/docs/examples/1.8.x/server-deno/examples/sites/create.md @@ -12,18 +12,18 @@ const response = await sites.create({ name: '<NAME>', framework: .Analog, buildRuntime: .Node145, - enabled: false, - logging: false, - timeout: 1, - installCommand: '<INSTALL_COMMAND>', - buildCommand: '<BUILD_COMMAND>', - outputDirectory: '<OUTPUT_DIRECTORY>', - adapter: .Static, - installationId: '<INSTALLATION_ID>', - fallbackFile: '<FALLBACK_FILE>', - providerRepositoryId: '<PROVIDER_REPOSITORY_ID>', - providerBranch: '<PROVIDER_BRANCH>', - providerSilentMode: false, - providerRootDirectory: '<PROVIDER_ROOT_DIRECTORY>', - specification: '' + enabled: false, // optional + logging: false, // optional + timeout: 1, // optional + installCommand: '<INSTALL_COMMAND>', // optional + buildCommand: '<BUILD_COMMAND>', // optional + outputDirectory: '<OUTPUT_DIRECTORY>', // optional + adapter: .Static, // optional + installationId: '<INSTALLATION_ID>', // optional + fallbackFile: '<FALLBACK_FILE>', // optional + providerRepositoryId: '<PROVIDER_REPOSITORY_ID>', // optional + providerBranch: '<PROVIDER_BRANCH>', // optional + providerSilentMode: false, // optional + providerRootDirectory: '<PROVIDER_ROOT_DIRECTORY>', // optional + specification: '' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/sites/get-deployment-download.md b/docs/examples/1.8.x/server-deno/examples/sites/get-deployment-download.md index ae4d3b34df..40731b1d6a 100644 --- a/docs/examples/1.8.x/server-deno/examples/sites/get-deployment-download.md +++ b/docs/examples/1.8.x/server-deno/examples/sites/get-deployment-download.md @@ -10,5 +10,5 @@ const sites = new Sites(client); const result = sites.getDeploymentDownload({ siteId: '<SITE_ID>', deploymentId: '<DEPLOYMENT_ID>', - type: DeploymentDownloadType.Source + type: DeploymentDownloadType.Source // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/sites/list-deployments.md b/docs/examples/1.8.x/server-deno/examples/sites/list-deployments.md index 0f86956a63..013b62126e 100644 --- a/docs/examples/1.8.x/server-deno/examples/sites/list-deployments.md +++ b/docs/examples/1.8.x/server-deno/examples/sites/list-deployments.md @@ -9,6 +9,6 @@ const sites = new Sites(client); const response = await sites.listDeployments({ siteId: '<SITE_ID>', - queries: [], - search: '<SEARCH>' + queries: [], // optional + search: '<SEARCH>' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/sites/list-logs.md b/docs/examples/1.8.x/server-deno/examples/sites/list-logs.md index 2519ed038d..6ab920a96e 100644 --- a/docs/examples/1.8.x/server-deno/examples/sites/list-logs.md +++ b/docs/examples/1.8.x/server-deno/examples/sites/list-logs.md @@ -9,5 +9,5 @@ const sites = new Sites(client); const response = await sites.listLogs({ siteId: '<SITE_ID>', - queries: [] + queries: [] // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/sites/list.md b/docs/examples/1.8.x/server-deno/examples/sites/list.md index 828e9c797e..87f9ef3bdf 100644 --- a/docs/examples/1.8.x/server-deno/examples/sites/list.md +++ b/docs/examples/1.8.x/server-deno/examples/sites/list.md @@ -8,6 +8,6 @@ const client = new Client() const sites = new Sites(client); const response = await sites.list({ - queries: [], - search: '<SEARCH>' + queries: [], // optional + search: '<SEARCH>' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/sites/update-variable.md b/docs/examples/1.8.x/server-deno/examples/sites/update-variable.md index 214dfffa36..5bc179dd3e 100644 --- a/docs/examples/1.8.x/server-deno/examples/sites/update-variable.md +++ b/docs/examples/1.8.x/server-deno/examples/sites/update-variable.md @@ -11,6 +11,6 @@ const response = await sites.updateVariable({ siteId: '<SITE_ID>', variableId: '<VARIABLE_ID>', key: '<KEY>', - value: '<VALUE>', - secret: false + value: '<VALUE>', // optional + secret: false // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/sites/update.md b/docs/examples/1.8.x/server-deno/examples/sites/update.md index edb6e76c67..1f5235cca2 100644 --- a/docs/examples/1.8.x/server-deno/examples/sites/update.md +++ b/docs/examples/1.8.x/server-deno/examples/sites/update.md @@ -11,19 +11,19 @@ const response = await sites.update({ siteId: '<SITE_ID>', name: '<NAME>', framework: .Analog, - enabled: false, - logging: false, - timeout: 1, - installCommand: '<INSTALL_COMMAND>', - buildCommand: '<BUILD_COMMAND>', - outputDirectory: '<OUTPUT_DIRECTORY>', - buildRuntime: .Node145, - adapter: .Static, - fallbackFile: '<FALLBACK_FILE>', - installationId: '<INSTALLATION_ID>', - providerRepositoryId: '<PROVIDER_REPOSITORY_ID>', - providerBranch: '<PROVIDER_BRANCH>', - providerSilentMode: false, - providerRootDirectory: '<PROVIDER_ROOT_DIRECTORY>', - specification: '' + enabled: false, // optional + logging: false, // optional + timeout: 1, // optional + installCommand: '<INSTALL_COMMAND>', // optional + buildCommand: '<BUILD_COMMAND>', // optional + outputDirectory: '<OUTPUT_DIRECTORY>', // optional + buildRuntime: .Node145, // optional + adapter: .Static, // optional + fallbackFile: '<FALLBACK_FILE>', // optional + installationId: '<INSTALLATION_ID>', // optional + providerRepositoryId: '<PROVIDER_REPOSITORY_ID>', // optional + providerBranch: '<PROVIDER_BRANCH>', // optional + providerSilentMode: false, // optional + providerRootDirectory: '<PROVIDER_ROOT_DIRECTORY>', // optional + specification: '' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/storage/create-bucket.md b/docs/examples/1.8.x/server-deno/examples/storage/create-bucket.md index e2daa65eb4..1f996b1369 100644 --- a/docs/examples/1.8.x/server-deno/examples/storage/create-bucket.md +++ b/docs/examples/1.8.x/server-deno/examples/storage/create-bucket.md @@ -10,12 +10,12 @@ const storage = new Storage(client); const response = await storage.createBucket({ bucketId: '<BUCKET_ID>', name: '<NAME>', - permissions: ["read("any")"], - fileSecurity: false, - enabled: false, - maximumFileSize: 1, - allowedFileExtensions: [], - compression: .None, - encryption: false, - antivirus: false + permissions: ["read("any")"], // optional + fileSecurity: false, // optional + enabled: false, // optional + maximumFileSize: 1, // optional + allowedFileExtensions: [], // optional + compression: .None, // optional + encryption: false, // optional + antivirus: false // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/storage/create-file.md b/docs/examples/1.8.x/server-deno/examples/storage/create-file.md index c8565c746d..4b6c1fd78a 100644 --- a/docs/examples/1.8.x/server-deno/examples/storage/create-file.md +++ b/docs/examples/1.8.x/server-deno/examples/storage/create-file.md @@ -11,5 +11,5 @@ const response = await storage.createFile({ bucketId: '<BUCKET_ID>', fileId: '<FILE_ID>', file: InputFile.fromPath('/path/to/file.png', 'file.png'), - permissions: ["read("any")"] + permissions: ["read("any")"] // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/storage/get-file-download.md b/docs/examples/1.8.x/server-deno/examples/storage/get-file-download.md index 7e0a55b9fd..fa1b465c59 100644 --- a/docs/examples/1.8.x/server-deno/examples/storage/get-file-download.md +++ b/docs/examples/1.8.x/server-deno/examples/storage/get-file-download.md @@ -10,5 +10,5 @@ const storage = new Storage(client); const result = storage.getFileDownload({ bucketId: '<BUCKET_ID>', fileId: '<FILE_ID>', - token: '<TOKEN>' + token: '<TOKEN>' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/storage/get-file-preview.md b/docs/examples/1.8.x/server-deno/examples/storage/get-file-preview.md index 1efe6d8e66..884a84a95f 100644 --- a/docs/examples/1.8.x/server-deno/examples/storage/get-file-preview.md +++ b/docs/examples/1.8.x/server-deno/examples/storage/get-file-preview.md @@ -10,16 +10,16 @@ const storage = new Storage(client); const result = storage.getFilePreview({ bucketId: '<BUCKET_ID>', fileId: '<FILE_ID>', - width: 0, - height: 0, - gravity: ImageGravity.Center, - quality: -1, - borderWidth: 0, - borderColor: '', - borderRadius: 0, - opacity: 0, - rotation: -360, - background: '', - output: ImageFormat.Jpg, - token: '<TOKEN>' + width: 0, // optional + height: 0, // optional + gravity: ImageGravity.Center, // optional + quality: -1, // optional + borderWidth: 0, // optional + borderColor: '', // optional + borderRadius: 0, // optional + opacity: 0, // optional + rotation: -360, // optional + background: '', // optional + output: ImageFormat.Jpg, // optional + token: '<TOKEN>' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/storage/get-file-view.md b/docs/examples/1.8.x/server-deno/examples/storage/get-file-view.md index f629b40b7f..86a357a23c 100644 --- a/docs/examples/1.8.x/server-deno/examples/storage/get-file-view.md +++ b/docs/examples/1.8.x/server-deno/examples/storage/get-file-view.md @@ -10,5 +10,5 @@ const storage = new Storage(client); const result = storage.getFileView({ bucketId: '<BUCKET_ID>', fileId: '<FILE_ID>', - token: '<TOKEN>' + token: '<TOKEN>' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/storage/list-buckets.md b/docs/examples/1.8.x/server-deno/examples/storage/list-buckets.md index 5319459474..56bba163c6 100644 --- a/docs/examples/1.8.x/server-deno/examples/storage/list-buckets.md +++ b/docs/examples/1.8.x/server-deno/examples/storage/list-buckets.md @@ -8,6 +8,6 @@ const client = new Client() const storage = new Storage(client); const response = await storage.listBuckets({ - queries: [], - search: '<SEARCH>' + queries: [], // optional + search: '<SEARCH>' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/storage/list-files.md b/docs/examples/1.8.x/server-deno/examples/storage/list-files.md index f34a0e110a..e2ea466b9b 100644 --- a/docs/examples/1.8.x/server-deno/examples/storage/list-files.md +++ b/docs/examples/1.8.x/server-deno/examples/storage/list-files.md @@ -9,6 +9,6 @@ const storage = new Storage(client); const response = await storage.listFiles({ bucketId: '<BUCKET_ID>', - queries: [], - search: '<SEARCH>' + queries: [], // optional + search: '<SEARCH>' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/storage/update-bucket.md b/docs/examples/1.8.x/server-deno/examples/storage/update-bucket.md index fca45d893a..b0adba1ef3 100644 --- a/docs/examples/1.8.x/server-deno/examples/storage/update-bucket.md +++ b/docs/examples/1.8.x/server-deno/examples/storage/update-bucket.md @@ -10,12 +10,12 @@ const storage = new Storage(client); const response = await storage.updateBucket({ bucketId: '<BUCKET_ID>', name: '<NAME>', - permissions: ["read("any")"], - fileSecurity: false, - enabled: false, - maximumFileSize: 1, - allowedFileExtensions: [], - compression: .None, - encryption: false, - antivirus: false + permissions: ["read("any")"], // optional + fileSecurity: false, // optional + enabled: false, // optional + maximumFileSize: 1, // optional + allowedFileExtensions: [], // optional + compression: .None, // optional + encryption: false, // optional + antivirus: false // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/storage/update-file.md b/docs/examples/1.8.x/server-deno/examples/storage/update-file.md index 65f4dd3c71..1a28c98c3f 100644 --- a/docs/examples/1.8.x/server-deno/examples/storage/update-file.md +++ b/docs/examples/1.8.x/server-deno/examples/storage/update-file.md @@ -10,6 +10,6 @@ const storage = new Storage(client); const response = await storage.updateFile({ bucketId: '<BUCKET_ID>', fileId: '<FILE_ID>', - name: '<NAME>', - permissions: ["read("any")"] + name: '<NAME>', // optional + permissions: ["read("any")"] // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/create-boolean-column.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/create-boolean-column.md index 336d7c00cc..7407b583a6 100644 --- a/docs/examples/1.8.x/server-deno/examples/tablesdb/create-boolean-column.md +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/create-boolean-column.md @@ -12,6 +12,6 @@ const response = await tablesDB.createBooleanColumn({ tableId: '<TABLE_ID>', key: '', required: false, - default: false, - array: false + default: false, // optional + array: false // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/create-datetime-column.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/create-datetime-column.md index 8aaacadc52..f139666946 100644 --- a/docs/examples/1.8.x/server-deno/examples/tablesdb/create-datetime-column.md +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/create-datetime-column.md @@ -12,6 +12,6 @@ const response = await tablesDB.createDatetimeColumn({ tableId: '<TABLE_ID>', key: '', required: false, - default: '', - array: false + default: '', // optional + array: false // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/create-email-column.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/create-email-column.md index bc94776a0f..a004a895e0 100644 --- a/docs/examples/1.8.x/server-deno/examples/tablesdb/create-email-column.md +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/create-email-column.md @@ -12,6 +12,6 @@ const response = await tablesDB.createEmailColumn({ tableId: '<TABLE_ID>', key: '', required: false, - default: 'email@example.com', - array: false + default: 'email@example.com', // optional + array: false // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/create-enum-column.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/create-enum-column.md index aa14faee14..1f40abd73b 100644 --- a/docs/examples/1.8.x/server-deno/examples/tablesdb/create-enum-column.md +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/create-enum-column.md @@ -13,6 +13,6 @@ const response = await tablesDB.createEnumColumn({ key: '', elements: [], required: false, - default: '<DEFAULT>', - array: false + default: '<DEFAULT>', // optional + array: false // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/create-float-column.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/create-float-column.md index 0ac4222b2a..5d555a73bd 100644 --- a/docs/examples/1.8.x/server-deno/examples/tablesdb/create-float-column.md +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/create-float-column.md @@ -12,8 +12,8 @@ const response = await tablesDB.createFloatColumn({ tableId: '<TABLE_ID>', key: '', required: false, - min: null, - max: null, - default: null, - array: false + min: null, // optional + max: null, // optional + default: null, // optional + array: false // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/create-index.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/create-index.md index 87deb2868f..0e164ed29e 100644 --- a/docs/examples/1.8.x/server-deno/examples/tablesdb/create-index.md +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/create-index.md @@ -13,6 +13,6 @@ const response = await tablesDB.createIndex({ key: '', type: IndexType.Key, columns: [], - orders: [], - lengths: [] + orders: [], // optional + lengths: [] // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/create-integer-column.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/create-integer-column.md index 39de99a889..297b096234 100644 --- a/docs/examples/1.8.x/server-deno/examples/tablesdb/create-integer-column.md +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/create-integer-column.md @@ -12,8 +12,8 @@ const response = await tablesDB.createIntegerColumn({ tableId: '<TABLE_ID>', key: '', required: false, - min: null, - max: null, - default: null, - array: false + min: null, // optional + max: null, // optional + default: null, // optional + array: false // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/create-ip-column.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/create-ip-column.md index c2e66bb434..95b20b8803 100644 --- a/docs/examples/1.8.x/server-deno/examples/tablesdb/create-ip-column.md +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/create-ip-column.md @@ -12,6 +12,6 @@ const response = await tablesDB.createIpColumn({ tableId: '<TABLE_ID>', key: '', required: false, - default: '', - array: false + default: '', // optional + array: false // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/create-relationship-column.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/create-relationship-column.md index ddd2bae6d2..27952f7ea6 100644 --- a/docs/examples/1.8.x/server-deno/examples/tablesdb/create-relationship-column.md +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/create-relationship-column.md @@ -12,8 +12,8 @@ const response = await tablesDB.createRelationshipColumn({ tableId: '<TABLE_ID>', relatedTableId: '<RELATED_TABLE_ID>', type: RelationshipType.OneToOne, - twoWay: false, - key: '', - twoWayKey: '', - onDelete: RelationMutate.Cascade + twoWay: false, // optional + key: '', // optional + twoWayKey: '', // optional + onDelete: RelationMutate.Cascade // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/create-row.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/create-row.md index 96b745692e..dadb5ecfb0 100644 --- a/docs/examples/1.8.x/server-deno/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/create-row.md @@ -12,5 +12,5 @@ const response = await tablesDB.createRow({ tableId: '<TABLE_ID>', rowId: '<ROW_ID>', data: {}, - permissions: ["read("any")"] + permissions: ["read("any")"] // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/create-string-column.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/create-string-column.md index 7656947d60..ff0816a946 100644 --- a/docs/examples/1.8.x/server-deno/examples/tablesdb/create-string-column.md +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/create-string-column.md @@ -13,7 +13,7 @@ const response = await tablesDB.createStringColumn({ key: '', size: 1, required: false, - default: '<DEFAULT>', - array: false, - encrypt: false + default: '<DEFAULT>', // optional + array: false, // optional + encrypt: false // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/create-table.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/create-table.md index a54a02cbd9..5dcaac40f6 100644 --- a/docs/examples/1.8.x/server-deno/examples/tablesdb/create-table.md +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/create-table.md @@ -11,7 +11,7 @@ const response = await tablesDB.createTable({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', name: '<NAME>', - permissions: ["read("any")"], - rowSecurity: false, - enabled: false + permissions: ["read("any")"], // optional + rowSecurity: false, // optional + enabled: false // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/create-url-column.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/create-url-column.md index 124b978254..f019bab896 100644 --- a/docs/examples/1.8.x/server-deno/examples/tablesdb/create-url-column.md +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/create-url-column.md @@ -12,6 +12,6 @@ const response = await tablesDB.createUrlColumn({ tableId: '<TABLE_ID>', key: '', required: false, - default: 'https://example.com', - array: false + default: 'https://example.com', // optional + array: false // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/create.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/create.md index 5c8f500cf7..5971eb18c7 100644 --- a/docs/examples/1.8.x/server-deno/examples/tablesdb/create.md +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/create.md @@ -10,5 +10,5 @@ const tablesDB = new TablesDB(client); const response = await tablesDB.create({ databaseId: '<DATABASE_ID>', name: '<NAME>', - enabled: false + enabled: false // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/decrement-row-column.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/decrement-row-column.md index 375e324192..68c2fa458f 100644 --- a/docs/examples/1.8.x/server-deno/examples/tablesdb/decrement-row-column.md +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/decrement-row-column.md @@ -12,6 +12,6 @@ const response = await tablesDB.decrementRowColumn({ tableId: '<TABLE_ID>', rowId: '<ROW_ID>', column: '', - value: null, - min: null + value: null, // optional + min: null // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/delete-rows.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/delete-rows.md index bffbf0ebfe..310b189c96 100644 --- a/docs/examples/1.8.x/server-deno/examples/tablesdb/delete-rows.md +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/delete-rows.md @@ -10,5 +10,5 @@ const tablesDB = new TablesDB(client); const response = await tablesDB.deleteRows({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', - queries: [] + queries: [] // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/get-row.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/get-row.md index a30bb2ae21..c662df22d8 100644 --- a/docs/examples/1.8.x/server-deno/examples/tablesdb/get-row.md +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/get-row.md @@ -11,5 +11,5 @@ const response = await tablesDB.getRow({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', rowId: '<ROW_ID>', - queries: [] + queries: [] // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/increment-row-column.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/increment-row-column.md index 140202737f..a57683e91e 100644 --- a/docs/examples/1.8.x/server-deno/examples/tablesdb/increment-row-column.md +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/increment-row-column.md @@ -12,6 +12,6 @@ const response = await tablesDB.incrementRowColumn({ tableId: '<TABLE_ID>', rowId: '<ROW_ID>', column: '', - value: null, - max: null + value: null, // optional + max: null // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/list-columns.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/list-columns.md index 92e8ce87a2..2a1cbe23d5 100644 --- a/docs/examples/1.8.x/server-deno/examples/tablesdb/list-columns.md +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/list-columns.md @@ -10,5 +10,5 @@ const tablesDB = new TablesDB(client); const response = await tablesDB.listColumns({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', - queries: [] + queries: [] // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/list-indexes.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/list-indexes.md index d937e4c6e8..7a0af70d2b 100644 --- a/docs/examples/1.8.x/server-deno/examples/tablesdb/list-indexes.md +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/list-indexes.md @@ -10,5 +10,5 @@ const tablesDB = new TablesDB(client); const response = await tablesDB.listIndexes({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', - queries: [] + queries: [] // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/list-rows.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/list-rows.md index 293fdbd964..2a0949993f 100644 --- a/docs/examples/1.8.x/server-deno/examples/tablesdb/list-rows.md +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/list-rows.md @@ -10,5 +10,5 @@ const tablesDB = new TablesDB(client); const response = await tablesDB.listRows({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', - queries: [] + queries: [] // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/list-tables.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/list-tables.md index 30fe1c311a..0ffd1b9593 100644 --- a/docs/examples/1.8.x/server-deno/examples/tablesdb/list-tables.md +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/list-tables.md @@ -9,6 +9,6 @@ const tablesDB = new TablesDB(client); const response = await tablesDB.listTables({ databaseId: '<DATABASE_ID>', - queries: [], - search: '<SEARCH>' + queries: [], // optional + search: '<SEARCH>' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/list.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/list.md index 937e2021b2..529bd64318 100644 --- a/docs/examples/1.8.x/server-deno/examples/tablesdb/list.md +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/list.md @@ -8,6 +8,6 @@ const client = new Client() const tablesDB = new TablesDB(client); const response = await tablesDB.list({ - queries: [], - search: '<SEARCH>' + queries: [], // optional + search: '<SEARCH>' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/update-boolean-column.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/update-boolean-column.md index 594903604d..ebc0bfb01e 100644 --- a/docs/examples/1.8.x/server-deno/examples/tablesdb/update-boolean-column.md +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/update-boolean-column.md @@ -13,5 +13,5 @@ const response = await tablesDB.updateBooleanColumn({ key: '', required: false, default: false, - newKey: '' + newKey: '' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/update-datetime-column.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/update-datetime-column.md index f4df6bbe3d..a2672c8a12 100644 --- a/docs/examples/1.8.x/server-deno/examples/tablesdb/update-datetime-column.md +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/update-datetime-column.md @@ -13,5 +13,5 @@ const response = await tablesDB.updateDatetimeColumn({ key: '', required: false, default: '', - newKey: '' + newKey: '' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/update-email-column.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/update-email-column.md index ad1f9fc4c7..18fc845316 100644 --- a/docs/examples/1.8.x/server-deno/examples/tablesdb/update-email-column.md +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/update-email-column.md @@ -13,5 +13,5 @@ const response = await tablesDB.updateEmailColumn({ key: '', required: false, default: 'email@example.com', - newKey: '' + newKey: '' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/update-enum-column.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/update-enum-column.md index 3b887f9155..e282ec8e42 100644 --- a/docs/examples/1.8.x/server-deno/examples/tablesdb/update-enum-column.md +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/update-enum-column.md @@ -14,5 +14,5 @@ const response = await tablesDB.updateEnumColumn({ elements: [], required: false, default: '<DEFAULT>', - newKey: '' + newKey: '' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/update-float-column.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/update-float-column.md index 443312745d..6ee1c5a955 100644 --- a/docs/examples/1.8.x/server-deno/examples/tablesdb/update-float-column.md +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/update-float-column.md @@ -13,7 +13,7 @@ const response = await tablesDB.updateFloatColumn({ key: '', required: false, default: null, - min: null, - max: null, - newKey: '' + min: null, // optional + max: null, // optional + newKey: '' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/update-integer-column.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/update-integer-column.md index 115897359b..1d9968362a 100644 --- a/docs/examples/1.8.x/server-deno/examples/tablesdb/update-integer-column.md +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/update-integer-column.md @@ -13,7 +13,7 @@ const response = await tablesDB.updateIntegerColumn({ key: '', required: false, default: null, - min: null, - max: null, - newKey: '' + min: null, // optional + max: null, // optional + newKey: '' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/update-ip-column.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/update-ip-column.md index f2f405aa63..d69e0f1ab6 100644 --- a/docs/examples/1.8.x/server-deno/examples/tablesdb/update-ip-column.md +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/update-ip-column.md @@ -13,5 +13,5 @@ const response = await tablesDB.updateIpColumn({ key: '', required: false, default: '', - newKey: '' + newKey: '' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/update-relationship-column.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/update-relationship-column.md index 97b86d76f5..3f361e091e 100644 --- a/docs/examples/1.8.x/server-deno/examples/tablesdb/update-relationship-column.md +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/update-relationship-column.md @@ -11,6 +11,6 @@ const response = await tablesDB.updateRelationshipColumn({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', key: '', - onDelete: RelationMutate.Cascade, - newKey: '' + onDelete: RelationMutate.Cascade, // optional + newKey: '' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/update-row.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/update-row.md index 87e8be8e59..53848c7300 100644 --- a/docs/examples/1.8.x/server-deno/examples/tablesdb/update-row.md +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/update-row.md @@ -11,6 +11,6 @@ const response = await tablesDB.updateRow({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', rowId: '<ROW_ID>', - data: {}, - permissions: ["read("any")"] + data: {}, // optional + permissions: ["read("any")"] // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/update-rows.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/update-rows.md index 852b7dbfff..2a3e3f106d 100644 --- a/docs/examples/1.8.x/server-deno/examples/tablesdb/update-rows.md +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/update-rows.md @@ -10,6 +10,6 @@ const tablesDB = new TablesDB(client); const response = await tablesDB.updateRows({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', - data: {}, - queries: [] + data: {}, // optional + queries: [] // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/update-string-column.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/update-string-column.md index dab18a261b..ff532ae23c 100644 --- a/docs/examples/1.8.x/server-deno/examples/tablesdb/update-string-column.md +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/update-string-column.md @@ -13,6 +13,6 @@ const response = await tablesDB.updateStringColumn({ key: '', required: false, default: '<DEFAULT>', - size: 1, - newKey: '' + size: 1, // optional + newKey: '' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/update-table.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/update-table.md index 6a36b09e8f..c0453f66d3 100644 --- a/docs/examples/1.8.x/server-deno/examples/tablesdb/update-table.md +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/update-table.md @@ -11,7 +11,7 @@ const response = await tablesDB.updateTable({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', name: '<NAME>', - permissions: ["read("any")"], - rowSecurity: false, - enabled: false + permissions: ["read("any")"], // optional + rowSecurity: false, // optional + enabled: false // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/update-url-column.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/update-url-column.md index 3ae1f04704..a594499053 100644 --- a/docs/examples/1.8.x/server-deno/examples/tablesdb/update-url-column.md +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/update-url-column.md @@ -13,5 +13,5 @@ const response = await tablesDB.updateUrlColumn({ key: '', required: false, default: 'https://example.com', - newKey: '' + newKey: '' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/update.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/update.md index 59d58fb2b9..f309641f7f 100644 --- a/docs/examples/1.8.x/server-deno/examples/tablesdb/update.md +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/update.md @@ -10,5 +10,5 @@ const tablesDB = new TablesDB(client); const response = await tablesDB.update({ databaseId: '<DATABASE_ID>', name: '<NAME>', - enabled: false + enabled: false // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/tablesdb/upsert-row.md b/docs/examples/1.8.x/server-deno/examples/tablesdb/upsert-row.md index ec69e835fa..701e1a272f 100644 --- a/docs/examples/1.8.x/server-deno/examples/tablesdb/upsert-row.md +++ b/docs/examples/1.8.x/server-deno/examples/tablesdb/upsert-row.md @@ -11,6 +11,6 @@ const response = await tablesDB.upsertRow({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', rowId: '<ROW_ID>', - data: {}, - permissions: ["read("any")"] + data: {}, // optional + permissions: ["read("any")"] // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/teams/create-membership.md b/docs/examples/1.8.x/server-deno/examples/teams/create-membership.md index fc3b8b44e6..27e4ec722a 100644 --- a/docs/examples/1.8.x/server-deno/examples/teams/create-membership.md +++ b/docs/examples/1.8.x/server-deno/examples/teams/create-membership.md @@ -10,9 +10,9 @@ const teams = new Teams(client); const response = await teams.createMembership({ teamId: '<TEAM_ID>', roles: [], - email: 'email@example.com', - userId: '<USER_ID>', - phone: '+12065550100', - url: 'https://example.com', - name: '<NAME>' + email: 'email@example.com', // optional + userId: '<USER_ID>', // optional + phone: '+12065550100', // optional + url: 'https://example.com', // optional + name: '<NAME>' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/teams/create.md b/docs/examples/1.8.x/server-deno/examples/teams/create.md index 7247da9d87..0c921292b5 100644 --- a/docs/examples/1.8.x/server-deno/examples/teams/create.md +++ b/docs/examples/1.8.x/server-deno/examples/teams/create.md @@ -10,5 +10,5 @@ const teams = new Teams(client); const response = await teams.create({ teamId: '<TEAM_ID>', name: '<NAME>', - roles: [] + roles: [] // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/teams/list-memberships.md b/docs/examples/1.8.x/server-deno/examples/teams/list-memberships.md index 1d67b15166..f781fffc48 100644 --- a/docs/examples/1.8.x/server-deno/examples/teams/list-memberships.md +++ b/docs/examples/1.8.x/server-deno/examples/teams/list-memberships.md @@ -9,6 +9,6 @@ const teams = new Teams(client); const response = await teams.listMemberships({ teamId: '<TEAM_ID>', - queries: [], - search: '<SEARCH>' + queries: [], // optional + search: '<SEARCH>' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/teams/list.md b/docs/examples/1.8.x/server-deno/examples/teams/list.md index 0fd5079d2e..4bb0c41b98 100644 --- a/docs/examples/1.8.x/server-deno/examples/teams/list.md +++ b/docs/examples/1.8.x/server-deno/examples/teams/list.md @@ -8,6 +8,6 @@ const client = new Client() const teams = new Teams(client); const response = await teams.list({ - queries: [], - search: '<SEARCH>' + queries: [], // optional + search: '<SEARCH>' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/tokens/create-file-token.md b/docs/examples/1.8.x/server-deno/examples/tokens/create-file-token.md index 52fd3c70cb..e0d5b4d7c2 100644 --- a/docs/examples/1.8.x/server-deno/examples/tokens/create-file-token.md +++ b/docs/examples/1.8.x/server-deno/examples/tokens/create-file-token.md @@ -10,5 +10,5 @@ const tokens = new Tokens(client); const response = await tokens.createFileToken({ bucketId: '<BUCKET_ID>', fileId: '<FILE_ID>', - expire: '' + expire: '' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/tokens/list.md b/docs/examples/1.8.x/server-deno/examples/tokens/list.md index 93e91d3ba9..a33ac66191 100644 --- a/docs/examples/1.8.x/server-deno/examples/tokens/list.md +++ b/docs/examples/1.8.x/server-deno/examples/tokens/list.md @@ -10,5 +10,5 @@ const tokens = new Tokens(client); const response = await tokens.list({ bucketId: '<BUCKET_ID>', fileId: '<FILE_ID>', - queries: [] + queries: [] // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/tokens/update.md b/docs/examples/1.8.x/server-deno/examples/tokens/update.md index 391118c2a8..0524e05dc7 100644 --- a/docs/examples/1.8.x/server-deno/examples/tokens/update.md +++ b/docs/examples/1.8.x/server-deno/examples/tokens/update.md @@ -9,5 +9,5 @@ const tokens = new Tokens(client); const response = await tokens.update({ tokenId: '<TOKEN_ID>', - expire: '' + expire: '' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/users/create-argon2user.md b/docs/examples/1.8.x/server-deno/examples/users/create-argon-2-user.md similarity index 93% rename from docs/examples/1.8.x/server-deno/examples/users/create-argon2user.md rename to docs/examples/1.8.x/server-deno/examples/users/create-argon-2-user.md index 8ec4edcbad..b08fbb9acd 100644 --- a/docs/examples/1.8.x/server-deno/examples/users/create-argon2user.md +++ b/docs/examples/1.8.x/server-deno/examples/users/create-argon-2-user.md @@ -11,5 +11,5 @@ const response = await users.createArgon2User({ userId: '<USER_ID>', email: 'email@example.com', password: 'password', - name: '<NAME>' + name: '<NAME>' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/users/create-bcrypt-user.md b/docs/examples/1.8.x/server-deno/examples/users/create-bcrypt-user.md index 75ef72d22e..6501c0279a 100644 --- a/docs/examples/1.8.x/server-deno/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.8.x/server-deno/examples/users/create-bcrypt-user.md @@ -11,5 +11,5 @@ const response = await users.createBcryptUser({ userId: '<USER_ID>', email: 'email@example.com', password: 'password', - name: '<NAME>' + name: '<NAME>' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/users/create-j-w-t.md b/docs/examples/1.8.x/server-deno/examples/users/create-jwt.md similarity index 84% rename from docs/examples/1.8.x/server-deno/examples/users/create-j-w-t.md rename to docs/examples/1.8.x/server-deno/examples/users/create-jwt.md index 4fef1c6a6e..6cd2f3d62f 100644 --- a/docs/examples/1.8.x/server-deno/examples/users/create-j-w-t.md +++ b/docs/examples/1.8.x/server-deno/examples/users/create-jwt.md @@ -9,6 +9,6 @@ const users = new Users(client); const response = await users.createJWT({ userId: '<USER_ID>', - sessionId: '<SESSION_ID>', - duration: 0 + sessionId: '<SESSION_ID>', // optional + duration: 0 // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/users/create-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-deno/examples/users/create-m-f-a-recovery-codes.md deleted file mode 100644 index fe8a4af08e..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/users/create-m-f-a-recovery-codes.md +++ /dev/null @@ -1,12 +0,0 @@ -import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const users = new Users(client); - -const response = await users.createMFARecoveryCodes({ - userId: '<USER_ID>' -}); diff --git a/docs/examples/1.8.x/server-deno/examples/users/create-m-d5user.md b/docs/examples/1.8.x/server-deno/examples/users/create-md-5-user.md similarity index 93% rename from docs/examples/1.8.x/server-deno/examples/users/create-m-d5user.md rename to docs/examples/1.8.x/server-deno/examples/users/create-md-5-user.md index bf29090692..4af161f795 100644 --- a/docs/examples/1.8.x/server-deno/examples/users/create-m-d5user.md +++ b/docs/examples/1.8.x/server-deno/examples/users/create-md-5-user.md @@ -11,5 +11,5 @@ const response = await users.createMD5User({ userId: '<USER_ID>', email: 'email@example.com', password: 'password', - name: '<NAME>' + name: '<NAME>' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.8.x/server-deno/examples/users/create-mfa-recovery-codes.md index cb33377d73..fe8a4af08e 100644 --- a/docs/examples/1.8.x/server-deno/examples/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-deno/examples/users/create-mfa-recovery-codes.md @@ -7,6 +7,6 @@ const client = new Client() const users = new Users(client); -const response = await users.createMfaRecoveryCodes({ +const response = await users.createMFARecoveryCodes({ userId: '<USER_ID>' }); diff --git a/docs/examples/1.8.x/server-deno/examples/users/create-p-h-pass-user.md b/docs/examples/1.8.x/server-deno/examples/users/create-ph-pass-user.md similarity index 93% rename from docs/examples/1.8.x/server-deno/examples/users/create-p-h-pass-user.md rename to docs/examples/1.8.x/server-deno/examples/users/create-ph-pass-user.md index d461887a59..d1f159a423 100644 --- a/docs/examples/1.8.x/server-deno/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.8.x/server-deno/examples/users/create-ph-pass-user.md @@ -11,5 +11,5 @@ const response = await users.createPHPassUser({ userId: '<USER_ID>', email: 'email@example.com', password: 'password', - name: '<NAME>' + name: '<NAME>' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/users/create-scrypt-modified-user.md b/docs/examples/1.8.x/server-deno/examples/users/create-scrypt-modified-user.md index 7b9c908b0b..e382a4a4ff 100644 --- a/docs/examples/1.8.x/server-deno/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.8.x/server-deno/examples/users/create-scrypt-modified-user.md @@ -14,5 +14,5 @@ const response = await users.createScryptModifiedUser({ passwordSalt: '<PASSWORD_SALT>', passwordSaltSeparator: '<PASSWORD_SALT_SEPARATOR>', passwordSignerKey: '<PASSWORD_SIGNER_KEY>', - name: '<NAME>' + name: '<NAME>' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/users/create-scrypt-user.md b/docs/examples/1.8.x/server-deno/examples/users/create-scrypt-user.md index 63c25f41f4..7a6c8749c6 100644 --- a/docs/examples/1.8.x/server-deno/examples/users/create-scrypt-user.md +++ b/docs/examples/1.8.x/server-deno/examples/users/create-scrypt-user.md @@ -16,5 +16,5 @@ const response = await users.createScryptUser({ passwordMemory: null, passwordParallel: null, passwordLength: null, - name: '<NAME>' + name: '<NAME>' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/users/create-s-h-a-user.md b/docs/examples/1.8.x/server-deno/examples/users/create-sha-user.md similarity index 84% rename from docs/examples/1.8.x/server-deno/examples/users/create-s-h-a-user.md rename to docs/examples/1.8.x/server-deno/examples/users/create-sha-user.md index 3819016971..325da0e6cd 100644 --- a/docs/examples/1.8.x/server-deno/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.8.x/server-deno/examples/users/create-sha-user.md @@ -11,6 +11,6 @@ const response = await users.createSHAUser({ userId: '<USER_ID>', email: 'email@example.com', password: 'password', - passwordVersion: PasswordHash.Sha1, - name: '<NAME>' + passwordVersion: PasswordHash.Sha1, // optional + name: '<NAME>' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/users/create-target.md b/docs/examples/1.8.x/server-deno/examples/users/create-target.md index cd542d41de..861c25afbd 100644 --- a/docs/examples/1.8.x/server-deno/examples/users/create-target.md +++ b/docs/examples/1.8.x/server-deno/examples/users/create-target.md @@ -12,6 +12,6 @@ const response = await users.createTarget({ targetId: '<TARGET_ID>', providerType: MessagingProviderType.Email, identifier: '<IDENTIFIER>', - providerId: '<PROVIDER_ID>', - name: '<NAME>' + providerId: '<PROVIDER_ID>', // optional + name: '<NAME>' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/users/create-token.md b/docs/examples/1.8.x/server-deno/examples/users/create-token.md index 2a215d9a89..b84d0959ec 100644 --- a/docs/examples/1.8.x/server-deno/examples/users/create-token.md +++ b/docs/examples/1.8.x/server-deno/examples/users/create-token.md @@ -9,6 +9,6 @@ const users = new Users(client); const response = await users.createToken({ userId: '<USER_ID>', - length: 4, - expire: 60 + length: 4, // optional + expire: 60 // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/users/create.md b/docs/examples/1.8.x/server-deno/examples/users/create.md index cee05f32b4..7da9b9ad3e 100644 --- a/docs/examples/1.8.x/server-deno/examples/users/create.md +++ b/docs/examples/1.8.x/server-deno/examples/users/create.md @@ -9,8 +9,8 @@ const users = new Users(client); const response = await users.create({ userId: '<USER_ID>', - email: 'email@example.com', - phone: '+12065550100', - password: '', - name: '<NAME>' + email: 'email@example.com', // optional + phone: '+12065550100', // optional + password: '', // optional + name: '<NAME>' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/users/delete-m-f-a-authenticator.md b/docs/examples/1.8.x/server-deno/examples/users/delete-m-f-a-authenticator.md deleted file mode 100644 index 5097cffdd7..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/users/delete-m-f-a-authenticator.md +++ /dev/null @@ -1,13 +0,0 @@ -import { Client, Users, AuthenticatorType } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const users = new Users(client); - -const response = await users.deleteMFAAuthenticator({ - userId: '<USER_ID>', - type: AuthenticatorType.Totp -}); diff --git a/docs/examples/1.8.x/server-deno/examples/users/delete-mfa-authenticator.md b/docs/examples/1.8.x/server-deno/examples/users/delete-mfa-authenticator.md index 2945d5ce3f..5097cffdd7 100644 --- a/docs/examples/1.8.x/server-deno/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/1.8.x/server-deno/examples/users/delete-mfa-authenticator.md @@ -7,7 +7,7 @@ const client = new Client() const users = new Users(client); -const response = await users.deleteMfaAuthenticator({ +const response = await users.deleteMFAAuthenticator({ userId: '<USER_ID>', type: AuthenticatorType.Totp }); diff --git a/docs/examples/1.8.x/server-deno/examples/users/get-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-deno/examples/users/get-m-f-a-recovery-codes.md deleted file mode 100644 index c2e4752a71..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/users/get-m-f-a-recovery-codes.md +++ /dev/null @@ -1,12 +0,0 @@ -import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const users = new Users(client); - -const response = await users.getMFARecoveryCodes({ - userId: '<USER_ID>' -}); diff --git a/docs/examples/1.8.x/server-deno/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.8.x/server-deno/examples/users/get-mfa-recovery-codes.md index 7d00af0db1..c2e4752a71 100644 --- a/docs/examples/1.8.x/server-deno/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-deno/examples/users/get-mfa-recovery-codes.md @@ -7,6 +7,6 @@ const client = new Client() const users = new Users(client); -const response = await users.getMfaRecoveryCodes({ +const response = await users.getMFARecoveryCodes({ userId: '<USER_ID>' }); diff --git a/docs/examples/1.8.x/server-deno/examples/users/list-identities.md b/docs/examples/1.8.x/server-deno/examples/users/list-identities.md index ae7ce5d45e..f91100759c 100644 --- a/docs/examples/1.8.x/server-deno/examples/users/list-identities.md +++ b/docs/examples/1.8.x/server-deno/examples/users/list-identities.md @@ -8,6 +8,6 @@ const client = new Client() const users = new Users(client); const response = await users.listIdentities({ - queries: [], - search: '<SEARCH>' + queries: [], // optional + search: '<SEARCH>' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/users/list-logs.md b/docs/examples/1.8.x/server-deno/examples/users/list-logs.md index 62e56258e1..a039a745f9 100644 --- a/docs/examples/1.8.x/server-deno/examples/users/list-logs.md +++ b/docs/examples/1.8.x/server-deno/examples/users/list-logs.md @@ -9,5 +9,5 @@ const users = new Users(client); const response = await users.listLogs({ userId: '<USER_ID>', - queries: [] + queries: [] // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/users/list-m-f-a-factors.md b/docs/examples/1.8.x/server-deno/examples/users/list-m-f-a-factors.md deleted file mode 100644 index c4130118ba..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/users/list-m-f-a-factors.md +++ /dev/null @@ -1,12 +0,0 @@ -import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const users = new Users(client); - -const response = await users.listMFAFactors({ - userId: '<USER_ID>' -}); diff --git a/docs/examples/1.8.x/server-deno/examples/users/list-memberships.md b/docs/examples/1.8.x/server-deno/examples/users/list-memberships.md index 20993dcce4..538a635a12 100644 --- a/docs/examples/1.8.x/server-deno/examples/users/list-memberships.md +++ b/docs/examples/1.8.x/server-deno/examples/users/list-memberships.md @@ -9,6 +9,6 @@ const users = new Users(client); const response = await users.listMemberships({ userId: '<USER_ID>', - queries: [], - search: '<SEARCH>' + queries: [], // optional + search: '<SEARCH>' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/users/list-mfa-factors.md b/docs/examples/1.8.x/server-deno/examples/users/list-mfa-factors.md index e54e9beae9..c4130118ba 100644 --- a/docs/examples/1.8.x/server-deno/examples/users/list-mfa-factors.md +++ b/docs/examples/1.8.x/server-deno/examples/users/list-mfa-factors.md @@ -7,6 +7,6 @@ const client = new Client() const users = new Users(client); -const response = await users.listMfaFactors({ +const response = await users.listMFAFactors({ userId: '<USER_ID>' }); diff --git a/docs/examples/1.8.x/server-deno/examples/users/list-targets.md b/docs/examples/1.8.x/server-deno/examples/users/list-targets.md index a9571dcdcc..9eee79fd34 100644 --- a/docs/examples/1.8.x/server-deno/examples/users/list-targets.md +++ b/docs/examples/1.8.x/server-deno/examples/users/list-targets.md @@ -9,5 +9,5 @@ const users = new Users(client); const response = await users.listTargets({ userId: '<USER_ID>', - queries: [] + queries: [] // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/users/list.md b/docs/examples/1.8.x/server-deno/examples/users/list.md index 9b8b4fe2db..df734633ce 100644 --- a/docs/examples/1.8.x/server-deno/examples/users/list.md +++ b/docs/examples/1.8.x/server-deno/examples/users/list.md @@ -8,6 +8,6 @@ const client = new Client() const users = new Users(client); const response = await users.list({ - queries: [], - search: '<SEARCH>' + queries: [], // optional + search: '<SEARCH>' // optional }); diff --git a/docs/examples/1.8.x/server-deno/examples/users/update-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-deno/examples/users/update-m-f-a-recovery-codes.md deleted file mode 100644 index ce1b875b03..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/users/update-m-f-a-recovery-codes.md +++ /dev/null @@ -1,12 +0,0 @@ -import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const users = new Users(client); - -const response = await users.updateMFARecoveryCodes({ - userId: '<USER_ID>' -}); diff --git a/docs/examples/1.8.x/server-deno/examples/users/update-m-f-a.md b/docs/examples/1.8.x/server-deno/examples/users/update-m-f-a.md deleted file mode 100644 index 235357f818..0000000000 --- a/docs/examples/1.8.x/server-deno/examples/users/update-m-f-a.md +++ /dev/null @@ -1,13 +0,0 @@ -import { Client, Users } from "https://deno.land/x/appwrite/mod.ts"; - -const client = new Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const users = new Users(client); - -const response = await users.updateMFA({ - userId: '<USER_ID>', - mfa: false -}); diff --git a/docs/examples/1.8.x/server-deno/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.8.x/server-deno/examples/users/update-mfa-recovery-codes.md index 9bfd39540c..ce1b875b03 100644 --- a/docs/examples/1.8.x/server-deno/examples/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-deno/examples/users/update-mfa-recovery-codes.md @@ -7,6 +7,6 @@ const client = new Client() const users = new Users(client); -const response = await users.updateMfaRecoveryCodes({ +const response = await users.updateMFARecoveryCodes({ userId: '<USER_ID>' }); diff --git a/docs/examples/1.8.x/server-deno/examples/users/update-mfa.md b/docs/examples/1.8.x/server-deno/examples/users/update-mfa.md index 97a1afc1f9..235357f818 100644 --- a/docs/examples/1.8.x/server-deno/examples/users/update-mfa.md +++ b/docs/examples/1.8.x/server-deno/examples/users/update-mfa.md @@ -7,7 +7,7 @@ const client = new Client() const users = new Users(client); -const response = await users.updateMfa({ +const response = await users.updateMFA({ userId: '<USER_ID>', mfa: false }); diff --git a/docs/examples/1.8.x/server-deno/examples/users/update-target.md b/docs/examples/1.8.x/server-deno/examples/users/update-target.md index 437c614a5c..ebc039bca0 100644 --- a/docs/examples/1.8.x/server-deno/examples/users/update-target.md +++ b/docs/examples/1.8.x/server-deno/examples/users/update-target.md @@ -10,7 +10,7 @@ const users = new Users(client); const response = await users.updateTarget({ userId: '<USER_ID>', targetId: '<TARGET_ID>', - identifier: '<IDENTIFIER>', - providerId: '<PROVIDER_ID>', - name: '<NAME>' + identifier: '<IDENTIFIER>', // optional + providerId: '<PROVIDER_ID>', // optional + name: '<NAME>' // optional }); diff --git a/docs/examples/1.8.x/server-dotnet/examples/account/create-j-w-t.md b/docs/examples/1.8.x/server-dotnet/examples/account/create-jwt.md similarity index 100% rename from docs/examples/1.8.x/server-dotnet/examples/account/create-j-w-t.md rename to docs/examples/1.8.x/server-dotnet/examples/account/create-jwt.md diff --git a/docs/examples/1.8.x/server-dotnet/examples/account/create-m-f-a-authenticator.md b/docs/examples/1.8.x/server-dotnet/examples/account/create-m-f-a-authenticator.md deleted file mode 100644 index 9076fcd069..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/account/create-m-f-a-authenticator.md +++ /dev/null @@ -1,15 +0,0 @@ -using Appwrite; -using Appwrite.Enums; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetSession(""); // The user session to authenticate with - -Account account = new Account(client); - -MfaType result = await account.CreateMFAAuthenticator( - type: AuthenticatorType.Totp -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/account/create-m-f-a-challenge.md b/docs/examples/1.8.x/server-dotnet/examples/account/create-m-f-a-challenge.md deleted file mode 100644 index 32497b4ec3..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/account/create-m-f-a-challenge.md +++ /dev/null @@ -1,14 +0,0 @@ -using Appwrite; -using Appwrite.Enums; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>"); // Your project ID - -Account account = new Account(client); - -MfaChallenge result = await account.CreateMFAChallenge( - factor: AuthenticationFactor.Email -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/account/create-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-dotnet/examples/account/create-m-f-a-recovery-codes.md deleted file mode 100644 index 406fd4493f..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/account/create-m-f-a-recovery-codes.md +++ /dev/null @@ -1,12 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetSession(""); // The user session to authenticate with - -Account account = new Account(client); - -MfaRecoveryCodes result = await account.CreateMFARecoveryCodes(); diff --git a/docs/examples/1.8.x/server-dotnet/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.8.x/server-dotnet/examples/account/create-magic-url-token.md similarity index 100% rename from docs/examples/1.8.x/server-dotnet/examples/account/create-magic-u-r-l-token.md rename to docs/examples/1.8.x/server-dotnet/examples/account/create-magic-url-token.md diff --git a/docs/examples/1.8.x/server-dotnet/examples/account/create-mfa-authenticator.md b/docs/examples/1.8.x/server-dotnet/examples/account/create-mfa-authenticator.md index bc54970469..9076fcd069 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.8.x/server-dotnet/examples/account/create-mfa-authenticator.md @@ -10,6 +10,6 @@ Client client = new Client() Account account = new Account(client); -MfaType result = await account.CreateMfaAuthenticator( +MfaType result = await account.CreateMFAAuthenticator( type: AuthenticatorType.Totp ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/account/create-mfa-challenge.md b/docs/examples/1.8.x/server-dotnet/examples/account/create-mfa-challenge.md index 734133f2bd..32497b4ec3 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.8.x/server-dotnet/examples/account/create-mfa-challenge.md @@ -9,6 +9,6 @@ Client client = new Client() Account account = new Account(client); -MfaChallenge result = await account.CreateMfaChallenge( +MfaChallenge result = await account.CreateMFAChallenge( factor: AuthenticationFactor.Email ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.8.x/server-dotnet/examples/account/create-mfa-recovery-codes.md index 1922a45c0a..406fd4493f 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-dotnet/examples/account/create-mfa-recovery-codes.md @@ -9,4 +9,4 @@ Client client = new Client() Account account = new Account(client); -MfaRecoveryCodes result = await account.CreateMfaRecoveryCodes(); +MfaRecoveryCodes result = await account.CreateMFARecoveryCodes(); diff --git a/docs/examples/1.8.x/server-dotnet/examples/account/create-o-auth2token.md b/docs/examples/1.8.x/server-dotnet/examples/account/create-o-auth-2-token.md similarity index 100% rename from docs/examples/1.8.x/server-dotnet/examples/account/create-o-auth2token.md rename to docs/examples/1.8.x/server-dotnet/examples/account/create-o-auth-2-token.md diff --git a/docs/examples/1.8.x/server-dotnet/examples/account/delete-m-f-a-authenticator.md b/docs/examples/1.8.x/server-dotnet/examples/account/delete-m-f-a-authenticator.md deleted file mode 100644 index c695de2956..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/account/delete-m-f-a-authenticator.md +++ /dev/null @@ -1,15 +0,0 @@ -using Appwrite; -using Appwrite.Enums; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetSession(""); // The user session to authenticate with - -Account account = new Account(client); - -await account.DeleteMFAAuthenticator( - type: AuthenticatorType.Totp -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/account/delete-mfa-authenticator.md b/docs/examples/1.8.x/server-dotnet/examples/account/delete-mfa-authenticator.md index 2b27cb6ad8..c695de2956 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.8.x/server-dotnet/examples/account/delete-mfa-authenticator.md @@ -10,6 +10,6 @@ Client client = new Client() Account account = new Account(client); -await account.DeleteMfaAuthenticator( +await account.DeleteMFAAuthenticator( type: AuthenticatorType.Totp ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/account/get-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-dotnet/examples/account/get-m-f-a-recovery-codes.md deleted file mode 100644 index 2e5468ad98..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/account/get-m-f-a-recovery-codes.md +++ /dev/null @@ -1,12 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetSession(""); // The user session to authenticate with - -Account account = new Account(client); - -MfaRecoveryCodes result = await account.GetMFARecoveryCodes(); diff --git a/docs/examples/1.8.x/server-dotnet/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.8.x/server-dotnet/examples/account/get-mfa-recovery-codes.md index cc39db191d..2e5468ad98 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-dotnet/examples/account/get-mfa-recovery-codes.md @@ -9,4 +9,4 @@ Client client = new Client() Account account = new Account(client); -MfaRecoveryCodes result = await account.GetMfaRecoveryCodes(); +MfaRecoveryCodes result = await account.GetMFARecoveryCodes(); diff --git a/docs/examples/1.8.x/server-dotnet/examples/account/list-m-f-a-factors.md b/docs/examples/1.8.x/server-dotnet/examples/account/list-m-f-a-factors.md deleted file mode 100644 index f284f6f227..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/account/list-m-f-a-factors.md +++ /dev/null @@ -1,12 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetSession(""); // The user session to authenticate with - -Account account = new Account(client); - -MfaFactors result = await account.ListMFAFactors(); diff --git a/docs/examples/1.8.x/server-dotnet/examples/account/list-mfa-factors.md b/docs/examples/1.8.x/server-dotnet/examples/account/list-mfa-factors.md index 291534920f..f284f6f227 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/account/list-mfa-factors.md +++ b/docs/examples/1.8.x/server-dotnet/examples/account/list-mfa-factors.md @@ -9,4 +9,4 @@ Client client = new Client() Account account = new Account(client); -MfaFactors result = await account.ListMfaFactors(); +MfaFactors result = await account.ListMFAFactors(); diff --git a/docs/examples/1.8.x/server-dotnet/examples/account/update-m-f-a-authenticator.md b/docs/examples/1.8.x/server-dotnet/examples/account/update-m-f-a-authenticator.md deleted file mode 100644 index f5dd5c502f..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/account/update-m-f-a-authenticator.md +++ /dev/null @@ -1,16 +0,0 @@ -using Appwrite; -using Appwrite.Enums; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetSession(""); // The user session to authenticate with - -Account account = new Account(client); - -User result = await account.UpdateMFAAuthenticator( - type: AuthenticatorType.Totp, - otp: "<OTP>" -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/account/update-m-f-a-challenge.md b/docs/examples/1.8.x/server-dotnet/examples/account/update-m-f-a-challenge.md deleted file mode 100644 index f9a9db465b..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/account/update-m-f-a-challenge.md +++ /dev/null @@ -1,15 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetSession(""); // The user session to authenticate with - -Account account = new Account(client); - -Session result = await account.UpdateMFAChallenge( - challengeId: "<CHALLENGE_ID>", - otp: "<OTP>" -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/account/update-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-dotnet/examples/account/update-m-f-a-recovery-codes.md deleted file mode 100644 index bfc6c876f2..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/account/update-m-f-a-recovery-codes.md +++ /dev/null @@ -1,12 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetSession(""); // The user session to authenticate with - -Account account = new Account(client); - -MfaRecoveryCodes result = await account.UpdateMFARecoveryCodes(); diff --git a/docs/examples/1.8.x/server-dotnet/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.8.x/server-dotnet/examples/account/update-magic-url-session.md similarity index 100% rename from docs/examples/1.8.x/server-dotnet/examples/account/update-magic-u-r-l-session.md rename to docs/examples/1.8.x/server-dotnet/examples/account/update-magic-url-session.md diff --git a/docs/examples/1.8.x/server-dotnet/examples/account/update-mfa-authenticator.md b/docs/examples/1.8.x/server-dotnet/examples/account/update-mfa-authenticator.md index 051653d19a..f5dd5c502f 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.8.x/server-dotnet/examples/account/update-mfa-authenticator.md @@ -10,7 +10,7 @@ Client client = new Client() Account account = new Account(client); -User result = await account.UpdateMfaAuthenticator( +User result = await account.UpdateMFAAuthenticator( type: AuthenticatorType.Totp, otp: "<OTP>" ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/account/update-mfa-challenge.md b/docs/examples/1.8.x/server-dotnet/examples/account/update-mfa-challenge.md index d273505839..f9a9db465b 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.8.x/server-dotnet/examples/account/update-mfa-challenge.md @@ -9,7 +9,7 @@ Client client = new Client() Account account = new Account(client); -Session result = await account.UpdateMfaChallenge( +Session result = await account.UpdateMFAChallenge( challengeId: "<CHALLENGE_ID>", otp: "<OTP>" ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.8.x/server-dotnet/examples/account/update-mfa-recovery-codes.md index 7daaf93213..bfc6c876f2 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-dotnet/examples/account/update-mfa-recovery-codes.md @@ -9,4 +9,4 @@ Client client = new Client() Account account = new Account(client); -MfaRecoveryCodes result = await account.UpdateMfaRecoveryCodes(); +MfaRecoveryCodes result = await account.UpdateMFARecoveryCodes(); diff --git a/docs/examples/1.8.x/server-dotnet/examples/account/update-m-f-a.md b/docs/examples/1.8.x/server-dotnet/examples/account/update-mfa.md similarity index 100% rename from docs/examples/1.8.x/server-dotnet/examples/account/update-m-f-a.md rename to docs/examples/1.8.x/server-dotnet/examples/account/update-mfa.md diff --git a/docs/examples/1.8.x/server-dotnet/examples/avatars/get-q-r.md b/docs/examples/1.8.x/server-dotnet/examples/avatars/get-qr.md similarity index 100% rename from docs/examples/1.8.x/server-dotnet/examples/avatars/get-q-r.md rename to docs/examples/1.8.x/server-dotnet/examples/avatars/get-qr.md diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-boolean-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-boolean-column.md deleted file mode 100644 index e173d1189b..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/create-boolean-column.md +++ /dev/null @@ -1,19 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -ColumnBoolean result = await grids.CreateBooleanColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - required: false, - default: false, // optional - array: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-database.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-database.md deleted file mode 100644 index 7006f00d01..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/create-database.md +++ /dev/null @@ -1,16 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -Database result = await grids.CreateDatabase( - databaseId: "<DATABASE_ID>", - name: "<NAME>", - enabled: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-datetime-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-datetime-column.md deleted file mode 100644 index b4e730fc6d..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/create-datetime-column.md +++ /dev/null @@ -1,19 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -ColumnDatetime result = await grids.CreateDatetimeColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - required: false, - default: "", // optional - array: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-email-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-email-column.md deleted file mode 100644 index bb2cad7dbd..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/create-email-column.md +++ /dev/null @@ -1,19 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -ColumnEmail result = await grids.CreateEmailColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - required: false, - default: "email@example.com", // optional - array: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-enum-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-enum-column.md deleted file mode 100644 index 4ce99366ad..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/create-enum-column.md +++ /dev/null @@ -1,20 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -ColumnEnum result = await grids.CreateEnumColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - elements: new List<string>(), - required: false, - default: "<DEFAULT>", // optional - array: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-float-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-float-column.md deleted file mode 100644 index 3ecd76c367..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/create-float-column.md +++ /dev/null @@ -1,21 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -ColumnFloat result = await grids.CreateFloatColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - required: false, - min: 0, // optional - max: 0, // optional - default: 0, // optional - array: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-index.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-index.md deleted file mode 100644 index 854ed47e81..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/create-index.md +++ /dev/null @@ -1,21 +0,0 @@ -using Appwrite; -using Appwrite.Enums; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -ColumnIndex result = await grids.CreateIndex( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - type: IndexType.Key, - columns: new List<string>(), - orders: new List<string>(), // optional - lengths: new List<long>() // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-integer-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-integer-column.md deleted file mode 100644 index ef13d5569c..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/create-integer-column.md +++ /dev/null @@ -1,21 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -ColumnInteger result = await grids.CreateIntegerColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - required: false, - min: 0, // optional - max: 0, // optional - default: 0, // optional - array: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-ip-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-ip-column.md deleted file mode 100644 index bfaa594d49..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/create-ip-column.md +++ /dev/null @@ -1,19 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -ColumnIp result = await grids.CreateIpColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - required: false, - default: "", // optional - array: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-relationship-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-relationship-column.md deleted file mode 100644 index 614f5d4fec..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/create-relationship-column.md +++ /dev/null @@ -1,22 +0,0 @@ -using Appwrite; -using Appwrite.Enums; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -ColumnRelationship result = await grids.CreateRelationshipColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - relatedTableId: "<RELATED_TABLE_ID>", - type: RelationshipType.OneToOne, - twoWay: false, // optional - key: "", // optional - twoWayKey: "", // optional - onDelete: RelationMutate.Cascade // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-row.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-row.md deleted file mode 100644 index 235c9b5c4e..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/create-row.md +++ /dev/null @@ -1,18 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetSession(""); // The user session to authenticate with - -Grids grids = new Grids(client); - -Row result = await grids.CreateRow( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - rowId: "<ROW_ID>", - data: [object], - permissions: ["read("any")"] // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-rows.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-rows.md deleted file mode 100644 index 42ee3ef6a2..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/create-rows.md +++ /dev/null @@ -1,16 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -RowList result = await grids.CreateRows( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - rows: new List<object>() -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-string-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-string-column.md deleted file mode 100644 index ca00dcf32e..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/create-string-column.md +++ /dev/null @@ -1,21 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -ColumnString result = await grids.CreateStringColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - size: 1, - required: false, - default: "<DEFAULT>", // optional - array: false, // optional - encrypt: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-table.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-table.md deleted file mode 100644 index 50fdfa878e..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/create-table.md +++ /dev/null @@ -1,19 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -Table result = await grids.CreateTable( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - name: "<NAME>", - permissions: ["read("any")"], // optional - rowSecurity: false, // optional - enabled: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/create-url-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/create-url-column.md deleted file mode 100644 index 8a4f69bd26..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/create-url-column.md +++ /dev/null @@ -1,19 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -ColumnUrl result = await grids.CreateUrlColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - required: false, - default: "https://example.com", // optional - array: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/decrement-row-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/decrement-row-column.md deleted file mode 100644 index b17e902e45..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/decrement-row-column.md +++ /dev/null @@ -1,19 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -Row result = await grids.DecrementRowColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - rowId: "<ROW_ID>", - column: "", - value: 0, // optional - min: 0 // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/delete-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/delete-column.md deleted file mode 100644 index 24f23546ba..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/delete-column.md +++ /dev/null @@ -1,16 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -await grids.DeleteColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "" -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/delete-database.md b/docs/examples/1.8.x/server-dotnet/examples/grids/delete-database.md deleted file mode 100644 index 38f28a001a..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/delete-database.md +++ /dev/null @@ -1,14 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -await grids.DeleteDatabase( - databaseId: "<DATABASE_ID>" -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/delete-index.md b/docs/examples/1.8.x/server-dotnet/examples/grids/delete-index.md deleted file mode 100644 index 5a037e2a96..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/delete-index.md +++ /dev/null @@ -1,16 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -await grids.DeleteIndex( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "" -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/delete-row.md b/docs/examples/1.8.x/server-dotnet/examples/grids/delete-row.md deleted file mode 100644 index 13972747a8..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/delete-row.md +++ /dev/null @@ -1,16 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetSession(""); // The user session to authenticate with - -Grids grids = new Grids(client); - -await grids.DeleteRow( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - rowId: "<ROW_ID>" -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/delete-rows.md b/docs/examples/1.8.x/server-dotnet/examples/grids/delete-rows.md deleted file mode 100644 index 4ddd11b6d1..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/delete-rows.md +++ /dev/null @@ -1,16 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -await grids.DeleteRows( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - queries: new List<string>() // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/delete-table.md b/docs/examples/1.8.x/server-dotnet/examples/grids/delete-table.md deleted file mode 100644 index 9741ac2c2e..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/delete-table.md +++ /dev/null @@ -1,15 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -await grids.DeleteTable( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>" -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/get-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/get-column.md deleted file mode 100644 index 2c6d7a3944..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/get-column.md +++ /dev/null @@ -1,16 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - - result = await grids.GetColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "" -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/get-database.md b/docs/examples/1.8.x/server-dotnet/examples/grids/get-database.md deleted file mode 100644 index 5aebe5104d..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/get-database.md +++ /dev/null @@ -1,14 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -Database result = await grids.GetDatabase( - databaseId: "<DATABASE_ID>" -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/get-index.md b/docs/examples/1.8.x/server-dotnet/examples/grids/get-index.md deleted file mode 100644 index ff99a21ed0..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/get-index.md +++ /dev/null @@ -1,16 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -ColumnIndex result = await grids.GetIndex( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "" -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/get-row.md b/docs/examples/1.8.x/server-dotnet/examples/grids/get-row.md deleted file mode 100644 index c75e0e50d5..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/get-row.md +++ /dev/null @@ -1,17 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetSession(""); // The user session to authenticate with - -Grids grids = new Grids(client); - -Row result = await grids.GetRow( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - rowId: "<ROW_ID>", - queries: new List<string>() // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/get-table.md b/docs/examples/1.8.x/server-dotnet/examples/grids/get-table.md deleted file mode 100644 index 7fcecc6170..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/get-table.md +++ /dev/null @@ -1,15 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -Table result = await grids.GetTable( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>" -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/increment-row-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/increment-row-column.md deleted file mode 100644 index 3e6d044905..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/increment-row-column.md +++ /dev/null @@ -1,19 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -Row result = await grids.IncrementRowColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - rowId: "<ROW_ID>", - column: "", - value: 0, // optional - max: 0 // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/list-columns.md b/docs/examples/1.8.x/server-dotnet/examples/grids/list-columns.md deleted file mode 100644 index e8478c1d23..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/list-columns.md +++ /dev/null @@ -1,16 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -ColumnList result = await grids.ListColumns( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - queries: new List<string>() // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/list-databases.md b/docs/examples/1.8.x/server-dotnet/examples/grids/list-databases.md deleted file mode 100644 index f37deb8ef2..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/list-databases.md +++ /dev/null @@ -1,15 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -DatabaseList result = await grids.ListDatabases( - queries: new List<string>(), // optional - search: "<SEARCH>" // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/list-indexes.md b/docs/examples/1.8.x/server-dotnet/examples/grids/list-indexes.md deleted file mode 100644 index b6f3737b43..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/list-indexes.md +++ /dev/null @@ -1,16 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -ColumnIndexList result = await grids.ListIndexes( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - queries: new List<string>() // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/list-rows.md b/docs/examples/1.8.x/server-dotnet/examples/grids/list-rows.md deleted file mode 100644 index a1a64fe256..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/list-rows.md +++ /dev/null @@ -1,16 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetSession(""); // The user session to authenticate with - -Grids grids = new Grids(client); - -RowList result = await grids.ListRows( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - queries: new List<string>() // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/list-tables.md b/docs/examples/1.8.x/server-dotnet/examples/grids/list-tables.md deleted file mode 100644 index 85f431b7ef..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/list-tables.md +++ /dev/null @@ -1,16 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -TableList result = await grids.ListTables( - databaseId: "<DATABASE_ID>", - queries: new List<string>(), // optional - search: "<SEARCH>" // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/update-boolean-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-boolean-column.md deleted file mode 100644 index ff2376e403..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/update-boolean-column.md +++ /dev/null @@ -1,19 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -ColumnBoolean result = await grids.UpdateBooleanColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - required: false, - default: false, - newKey: "" // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/update-database.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-database.md deleted file mode 100644 index cd3b0a236d..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/update-database.md +++ /dev/null @@ -1,16 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -Database result = await grids.UpdateDatabase( - databaseId: "<DATABASE_ID>", - name: "<NAME>", - enabled: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/update-datetime-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-datetime-column.md deleted file mode 100644 index 7b630922e8..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/update-datetime-column.md +++ /dev/null @@ -1,19 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -ColumnDatetime result = await grids.UpdateDatetimeColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - required: false, - default: "", - newKey: "" // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/update-email-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-email-column.md deleted file mode 100644 index 9ce04025ca..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/update-email-column.md +++ /dev/null @@ -1,19 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -ColumnEmail result = await grids.UpdateEmailColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - required: false, - default: "email@example.com", - newKey: "" // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/update-enum-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-enum-column.md deleted file mode 100644 index b29b3615de..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/update-enum-column.md +++ /dev/null @@ -1,20 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -ColumnEnum result = await grids.UpdateEnumColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - elements: new List<string>(), - required: false, - default: "<DEFAULT>", - newKey: "" // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/update-float-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-float-column.md deleted file mode 100644 index 96db20a2c5..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/update-float-column.md +++ /dev/null @@ -1,21 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -ColumnFloat result = await grids.UpdateFloatColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - required: false, - default: 0, - min: 0, // optional - max: 0, // optional - newKey: "" // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/update-integer-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-integer-column.md deleted file mode 100644 index 87e6b0fee2..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/update-integer-column.md +++ /dev/null @@ -1,21 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -ColumnInteger result = await grids.UpdateIntegerColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - required: false, - default: 0, - min: 0, // optional - max: 0, // optional - newKey: "" // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/update-ip-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-ip-column.md deleted file mode 100644 index 789c6c98e6..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/update-ip-column.md +++ /dev/null @@ -1,19 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -ColumnIp result = await grids.UpdateIpColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - required: false, - default: "", - newKey: "" // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/update-relationship-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-relationship-column.md deleted file mode 100644 index a1d30a43a2..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/update-relationship-column.md +++ /dev/null @@ -1,19 +0,0 @@ -using Appwrite; -using Appwrite.Enums; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -ColumnRelationship result = await grids.UpdateRelationshipColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - onDelete: RelationMutate.Cascade, // optional - newKey: "" // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/update-row.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-row.md deleted file mode 100644 index 2dc2b23d32..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/update-row.md +++ /dev/null @@ -1,18 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetSession(""); // The user session to authenticate with - -Grids grids = new Grids(client); - -Row result = await grids.UpdateRow( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - rowId: "<ROW_ID>", - data: [object], // optional - permissions: ["read("any")"] // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/update-rows.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-rows.md deleted file mode 100644 index c0103c9639..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/update-rows.md +++ /dev/null @@ -1,17 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -RowList result = await grids.UpdateRows( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - data: [object], // optional - queries: new List<string>() // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/update-string-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-string-column.md deleted file mode 100644 index 2277142eb8..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/update-string-column.md +++ /dev/null @@ -1,20 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -ColumnString result = await grids.UpdateStringColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - required: false, - default: "<DEFAULT>", - size: 1, // optional - newKey: "" // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/update-table.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-table.md deleted file mode 100644 index 76362573a5..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/update-table.md +++ /dev/null @@ -1,19 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -Table result = await grids.UpdateTable( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - name: "<NAME>", - permissions: ["read("any")"], // optional - rowSecurity: false, // optional - enabled: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/update-url-column.md b/docs/examples/1.8.x/server-dotnet/examples/grids/update-url-column.md deleted file mode 100644 index 8054b60e3f..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/update-url-column.md +++ /dev/null @@ -1,19 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -ColumnUrl result = await grids.UpdateUrlColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - required: false, - default: "https://example.com", - newKey: "" // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/upsert-row.md b/docs/examples/1.8.x/server-dotnet/examples/grids/upsert-row.md deleted file mode 100644 index 7f517a2f09..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/upsert-row.md +++ /dev/null @@ -1,18 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetSession(""); // The user session to authenticate with - -Grids grids = new Grids(client); - -Row result = await grids.UpsertRow( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - rowId: "<ROW_ID>", - data: [object], // optional - permissions: ["read("any")"] // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/grids/upsert-rows.md b/docs/examples/1.8.x/server-dotnet/examples/grids/upsert-rows.md deleted file mode 100644 index 1cb3b54d0b..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/grids/upsert-rows.md +++ /dev/null @@ -1,16 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -RowList result = await grids.UpsertRows( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - rows: new List<object>() -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/health/get-d-b.md b/docs/examples/1.8.x/server-dotnet/examples/health/get-db.md similarity index 100% rename from docs/examples/1.8.x/server-dotnet/examples/health/get-d-b.md rename to docs/examples/1.8.x/server-dotnet/examples/health/get-db.md diff --git a/docs/examples/1.8.x/server-dotnet/examples/locale/list-countries-e-u.md b/docs/examples/1.8.x/server-dotnet/examples/locale/list-countries-eu.md similarity index 100% rename from docs/examples/1.8.x/server-dotnet/examples/locale/list-countries-e-u.md rename to docs/examples/1.8.x/server-dotnet/examples/locale/list-countries-eu.md diff --git a/docs/examples/1.8.x/server-dotnet/examples/messaging/create-a-p-n-s-provider.md b/docs/examples/1.8.x/server-dotnet/examples/messaging/create-a-p-n-s-provider.md deleted file mode 100644 index 74bfe5ec2f..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/messaging/create-a-p-n-s-provider.md +++ /dev/null @@ -1,21 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetKey("<YOUR_API_KEY>"); // Your secret API key - -Messaging messaging = new Messaging(client); - -Provider result = await messaging.CreateAPNSProvider( - providerId: "<PROVIDER_ID>", - name: "<NAME>", - authKey: "<AUTH_KEY>", // optional - authKeyId: "<AUTH_KEY_ID>", // optional - teamId: "<TEAM_ID>", // optional - bundleId: "<BUNDLE_ID>", // optional - sandbox: false, // optional - enabled: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/messaging/create-apns-provider.md b/docs/examples/1.8.x/server-dotnet/examples/messaging/create-apns-provider.md index 9cc37a17e0..74bfe5ec2f 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/messaging/create-apns-provider.md +++ b/docs/examples/1.8.x/server-dotnet/examples/messaging/create-apns-provider.md @@ -9,7 +9,7 @@ Client client = new Client() Messaging messaging = new Messaging(client); -Provider result = await messaging.CreateApnsProvider( +Provider result = await messaging.CreateAPNSProvider( providerId: "<PROVIDER_ID>", name: "<NAME>", authKey: "<AUTH_KEY>", // optional diff --git a/docs/examples/1.8.x/server-dotnet/examples/messaging/create-f-c-m-provider.md b/docs/examples/1.8.x/server-dotnet/examples/messaging/create-f-c-m-provider.md deleted file mode 100644 index 0b72bb3fea..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/messaging/create-f-c-m-provider.md +++ /dev/null @@ -1,17 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetKey("<YOUR_API_KEY>"); // Your secret API key - -Messaging messaging = new Messaging(client); - -Provider result = await messaging.CreateFCMProvider( - providerId: "<PROVIDER_ID>", - name: "<NAME>", - serviceAccountJSON: [object], // optional - enabled: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/messaging/create-fcm-provider.md b/docs/examples/1.8.x/server-dotnet/examples/messaging/create-fcm-provider.md index 15fdace2d3..0b72bb3fea 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/messaging/create-fcm-provider.md +++ b/docs/examples/1.8.x/server-dotnet/examples/messaging/create-fcm-provider.md @@ -9,7 +9,7 @@ Client client = new Client() Messaging messaging = new Messaging(client); -Provider result = await messaging.CreateFcmProvider( +Provider result = await messaging.CreateFCMProvider( providerId: "<PROVIDER_ID>", name: "<NAME>", serviceAccountJSON: [object], // optional diff --git a/docs/examples/1.8.x/server-dotnet/examples/messaging/create-msg91provider.md b/docs/examples/1.8.x/server-dotnet/examples/messaging/create-msg-91-provider.md similarity index 100% rename from docs/examples/1.8.x/server-dotnet/examples/messaging/create-msg91provider.md rename to docs/examples/1.8.x/server-dotnet/examples/messaging/create-msg-91-provider.md diff --git a/docs/examples/1.8.x/server-dotnet/examples/messaging/create-s-m-s.md b/docs/examples/1.8.x/server-dotnet/examples/messaging/create-s-m-s.md deleted file mode 100644 index f67a43164f..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/messaging/create-s-m-s.md +++ /dev/null @@ -1,20 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetKey("<YOUR_API_KEY>"); // Your secret API key - -Messaging messaging = new Messaging(client); - -Message result = await messaging.CreateSMS( - messageId: "<MESSAGE_ID>", - content: "<CONTENT>", - topics: new List<string>(), // optional - users: new List<string>(), // optional - targets: new List<string>(), // optional - draft: false, // optional - scheduledAt: "" // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/messaging/create-s-m-t-p-provider.md b/docs/examples/1.8.x/server-dotnet/examples/messaging/create-s-m-t-p-provider.md deleted file mode 100644 index d29826dd4a..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/messaging/create-s-m-t-p-provider.md +++ /dev/null @@ -1,28 +0,0 @@ -using Appwrite; -using Appwrite.Enums; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetKey("<YOUR_API_KEY>"); // Your secret API key - -Messaging messaging = new Messaging(client); - -Provider result = await messaging.CreateSMTPProvider( - providerId: "<PROVIDER_ID>", - name: "<NAME>", - host: "<HOST>", - port: 1, // optional - username: "<USERNAME>", // optional - password: "<PASSWORD>", // optional - encryption: SmtpEncryption.None, // optional - autoTLS: false, // optional - mailer: "<MAILER>", // optional - fromName: "<FROM_NAME>", // optional - fromEmail: "email@example.com", // optional - replyToName: "<REPLY_TO_NAME>", // optional - replyToEmail: "email@example.com", // optional - enabled: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/messaging/create-sms.md b/docs/examples/1.8.x/server-dotnet/examples/messaging/create-sms.md index 06e9e69e65..f67a43164f 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/messaging/create-sms.md +++ b/docs/examples/1.8.x/server-dotnet/examples/messaging/create-sms.md @@ -9,7 +9,7 @@ Client client = new Client() Messaging messaging = new Messaging(client); -Message result = await messaging.CreateSms( +Message result = await messaging.CreateSMS( messageId: "<MESSAGE_ID>", content: "<CONTENT>", topics: new List<string>(), // optional diff --git a/docs/examples/1.8.x/server-dotnet/examples/messaging/create-smtp-provider.md b/docs/examples/1.8.x/server-dotnet/examples/messaging/create-smtp-provider.md index 16b091f98e..d29826dd4a 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/messaging/create-smtp-provider.md +++ b/docs/examples/1.8.x/server-dotnet/examples/messaging/create-smtp-provider.md @@ -10,7 +10,7 @@ Client client = new Client() Messaging messaging = new Messaging(client); -Provider result = await messaging.CreateSmtpProvider( +Provider result = await messaging.CreateSMTPProvider( providerId: "<PROVIDER_ID>", name: "<NAME>", host: "<HOST>", diff --git a/docs/examples/1.8.x/server-dotnet/examples/messaging/update-a-p-n-s-provider.md b/docs/examples/1.8.x/server-dotnet/examples/messaging/update-a-p-n-s-provider.md deleted file mode 100644 index 24cd49da16..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/messaging/update-a-p-n-s-provider.md +++ /dev/null @@ -1,21 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetKey("<YOUR_API_KEY>"); // Your secret API key - -Messaging messaging = new Messaging(client); - -Provider result = await messaging.UpdateAPNSProvider( - providerId: "<PROVIDER_ID>", - name: "<NAME>", // optional - enabled: false, // optional - authKey: "<AUTH_KEY>", // optional - authKeyId: "<AUTH_KEY_ID>", // optional - teamId: "<TEAM_ID>", // optional - bundleId: "<BUNDLE_ID>", // optional - sandbox: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/messaging/update-apns-provider.md b/docs/examples/1.8.x/server-dotnet/examples/messaging/update-apns-provider.md index f06e134d02..24cd49da16 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/messaging/update-apns-provider.md +++ b/docs/examples/1.8.x/server-dotnet/examples/messaging/update-apns-provider.md @@ -9,7 +9,7 @@ Client client = new Client() Messaging messaging = new Messaging(client); -Provider result = await messaging.UpdateApnsProvider( +Provider result = await messaging.UpdateAPNSProvider( providerId: "<PROVIDER_ID>", name: "<NAME>", // optional enabled: false, // optional diff --git a/docs/examples/1.8.x/server-dotnet/examples/messaging/update-f-c-m-provider.md b/docs/examples/1.8.x/server-dotnet/examples/messaging/update-f-c-m-provider.md deleted file mode 100644 index df1ce204f6..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/messaging/update-f-c-m-provider.md +++ /dev/null @@ -1,17 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetKey("<YOUR_API_KEY>"); // Your secret API key - -Messaging messaging = new Messaging(client); - -Provider result = await messaging.UpdateFCMProvider( - providerId: "<PROVIDER_ID>", - name: "<NAME>", // optional - enabled: false, // optional - serviceAccountJSON: [object] // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/messaging/update-fcm-provider.md b/docs/examples/1.8.x/server-dotnet/examples/messaging/update-fcm-provider.md index 0006fedf54..df1ce204f6 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/messaging/update-fcm-provider.md +++ b/docs/examples/1.8.x/server-dotnet/examples/messaging/update-fcm-provider.md @@ -9,7 +9,7 @@ Client client = new Client() Messaging messaging = new Messaging(client); -Provider result = await messaging.UpdateFcmProvider( +Provider result = await messaging.UpdateFCMProvider( providerId: "<PROVIDER_ID>", name: "<NAME>", // optional enabled: false, // optional diff --git a/docs/examples/1.8.x/server-dotnet/examples/messaging/update-msg91provider.md b/docs/examples/1.8.x/server-dotnet/examples/messaging/update-msg-91-provider.md similarity index 100% rename from docs/examples/1.8.x/server-dotnet/examples/messaging/update-msg91provider.md rename to docs/examples/1.8.x/server-dotnet/examples/messaging/update-msg-91-provider.md diff --git a/docs/examples/1.8.x/server-dotnet/examples/messaging/update-s-m-s.md b/docs/examples/1.8.x/server-dotnet/examples/messaging/update-s-m-s.md deleted file mode 100644 index 3216fcff03..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/messaging/update-s-m-s.md +++ /dev/null @@ -1,20 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetKey("<YOUR_API_KEY>"); // Your secret API key - -Messaging messaging = new Messaging(client); - -Message result = await messaging.UpdateSMS( - messageId: "<MESSAGE_ID>", - topics: new List<string>(), // optional - users: new List<string>(), // optional - targets: new List<string>(), // optional - content: "<CONTENT>", // optional - draft: false, // optional - scheduledAt: "" // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/messaging/update-s-m-t-p-provider.md b/docs/examples/1.8.x/server-dotnet/examples/messaging/update-s-m-t-p-provider.md deleted file mode 100644 index 29553887ff..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/messaging/update-s-m-t-p-provider.md +++ /dev/null @@ -1,28 +0,0 @@ -using Appwrite; -using Appwrite.Enums; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetKey("<YOUR_API_KEY>"); // Your secret API key - -Messaging messaging = new Messaging(client); - -Provider result = await messaging.UpdateSMTPProvider( - providerId: "<PROVIDER_ID>", - name: "<NAME>", // optional - host: "<HOST>", // optional - port: 1, // optional - username: "<USERNAME>", // optional - password: "<PASSWORD>", // optional - encryption: SmtpEncryption.None, // optional - autoTLS: false, // optional - mailer: "<MAILER>", // optional - fromName: "<FROM_NAME>", // optional - fromEmail: "email@example.com", // optional - replyToName: "<REPLY_TO_NAME>", // optional - replyToEmail: "<REPLY_TO_EMAIL>", // optional - enabled: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/messaging/update-sms.md b/docs/examples/1.8.x/server-dotnet/examples/messaging/update-sms.md index 475d29923d..3216fcff03 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/messaging/update-sms.md +++ b/docs/examples/1.8.x/server-dotnet/examples/messaging/update-sms.md @@ -9,7 +9,7 @@ Client client = new Client() Messaging messaging = new Messaging(client); -Message result = await messaging.UpdateSms( +Message result = await messaging.UpdateSMS( messageId: "<MESSAGE_ID>", topics: new List<string>(), // optional users: new List<string>(), // optional diff --git a/docs/examples/1.8.x/server-dotnet/examples/messaging/update-smtp-provider.md b/docs/examples/1.8.x/server-dotnet/examples/messaging/update-smtp-provider.md index 4e7ab6dfeb..29553887ff 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/messaging/update-smtp-provider.md +++ b/docs/examples/1.8.x/server-dotnet/examples/messaging/update-smtp-provider.md @@ -10,7 +10,7 @@ Client client = new Client() Messaging messaging = new Messaging(client); -Provider result = await messaging.UpdateSmtpProvider( +Provider result = await messaging.UpdateSMTPProvider( providerId: "<PROVIDER_ID>", name: "<NAME>", // optional host: "<HOST>", // optional diff --git a/docs/examples/1.8.x/server-dotnet/examples/users/create-argon2user.md b/docs/examples/1.8.x/server-dotnet/examples/users/create-argon-2-user.md similarity index 100% rename from docs/examples/1.8.x/server-dotnet/examples/users/create-argon2user.md rename to docs/examples/1.8.x/server-dotnet/examples/users/create-argon-2-user.md diff --git a/docs/examples/1.8.x/server-dotnet/examples/users/create-j-w-t.md b/docs/examples/1.8.x/server-dotnet/examples/users/create-jwt.md similarity index 100% rename from docs/examples/1.8.x/server-dotnet/examples/users/create-j-w-t.md rename to docs/examples/1.8.x/server-dotnet/examples/users/create-jwt.md diff --git a/docs/examples/1.8.x/server-dotnet/examples/users/create-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-dotnet/examples/users/create-m-f-a-recovery-codes.md deleted file mode 100644 index d0c0d95ad8..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/users/create-m-f-a-recovery-codes.md +++ /dev/null @@ -1,14 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetKey("<YOUR_API_KEY>"); // Your secret API key - -Users users = new Users(client); - -MfaRecoveryCodes result = await users.CreateMFARecoveryCodes( - userId: "<USER_ID>" -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/users/create-m-d5user.md b/docs/examples/1.8.x/server-dotnet/examples/users/create-md-5-user.md similarity index 100% rename from docs/examples/1.8.x/server-dotnet/examples/users/create-m-d5user.md rename to docs/examples/1.8.x/server-dotnet/examples/users/create-md-5-user.md diff --git a/docs/examples/1.8.x/server-dotnet/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.8.x/server-dotnet/examples/users/create-mfa-recovery-codes.md index 9b43dc02af..d0c0d95ad8 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-dotnet/examples/users/create-mfa-recovery-codes.md @@ -9,6 +9,6 @@ Client client = new Client() Users users = new Users(client); -MfaRecoveryCodes result = await users.CreateMfaRecoveryCodes( +MfaRecoveryCodes result = await users.CreateMFARecoveryCodes( userId: "<USER_ID>" ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/users/create-p-h-pass-user.md b/docs/examples/1.8.x/server-dotnet/examples/users/create-ph-pass-user.md similarity index 100% rename from docs/examples/1.8.x/server-dotnet/examples/users/create-p-h-pass-user.md rename to docs/examples/1.8.x/server-dotnet/examples/users/create-ph-pass-user.md diff --git a/docs/examples/1.8.x/server-dotnet/examples/users/create-s-h-a-user.md b/docs/examples/1.8.x/server-dotnet/examples/users/create-sha-user.md similarity index 100% rename from docs/examples/1.8.x/server-dotnet/examples/users/create-s-h-a-user.md rename to docs/examples/1.8.x/server-dotnet/examples/users/create-sha-user.md diff --git a/docs/examples/1.8.x/server-dotnet/examples/users/delete-m-f-a-authenticator.md b/docs/examples/1.8.x/server-dotnet/examples/users/delete-m-f-a-authenticator.md deleted file mode 100644 index b4cec73ae9..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/users/delete-m-f-a-authenticator.md +++ /dev/null @@ -1,16 +0,0 @@ -using Appwrite; -using Appwrite.Enums; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetKey("<YOUR_API_KEY>"); // Your secret API key - -Users users = new Users(client); - -await users.DeleteMFAAuthenticator( - userId: "<USER_ID>", - type: AuthenticatorType.Totp -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/users/delete-mfa-authenticator.md b/docs/examples/1.8.x/server-dotnet/examples/users/delete-mfa-authenticator.md index bb33dbf9e4..b4cec73ae9 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/1.8.x/server-dotnet/examples/users/delete-mfa-authenticator.md @@ -10,7 +10,7 @@ Client client = new Client() Users users = new Users(client); -await users.DeleteMfaAuthenticator( +await users.DeleteMFAAuthenticator( userId: "<USER_ID>", type: AuthenticatorType.Totp ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/users/get-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-dotnet/examples/users/get-m-f-a-recovery-codes.md deleted file mode 100644 index ce9453119f..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/users/get-m-f-a-recovery-codes.md +++ /dev/null @@ -1,14 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetKey("<YOUR_API_KEY>"); // Your secret API key - -Users users = new Users(client); - -MfaRecoveryCodes result = await users.GetMFARecoveryCodes( - userId: "<USER_ID>" -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.8.x/server-dotnet/examples/users/get-mfa-recovery-codes.md index 213c3473a8..ce9453119f 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-dotnet/examples/users/get-mfa-recovery-codes.md @@ -9,6 +9,6 @@ Client client = new Client() Users users = new Users(client); -MfaRecoveryCodes result = await users.GetMfaRecoveryCodes( +MfaRecoveryCodes result = await users.GetMFARecoveryCodes( userId: "<USER_ID>" ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/users/list-m-f-a-factors.md b/docs/examples/1.8.x/server-dotnet/examples/users/list-m-f-a-factors.md deleted file mode 100644 index 956949d0a9..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/users/list-m-f-a-factors.md +++ /dev/null @@ -1,14 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetKey("<YOUR_API_KEY>"); // Your secret API key - -Users users = new Users(client); - -MfaFactors result = await users.ListMFAFactors( - userId: "<USER_ID>" -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/users/list-mfa-factors.md b/docs/examples/1.8.x/server-dotnet/examples/users/list-mfa-factors.md index 54f68ae516..956949d0a9 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/users/list-mfa-factors.md +++ b/docs/examples/1.8.x/server-dotnet/examples/users/list-mfa-factors.md @@ -9,6 +9,6 @@ Client client = new Client() Users users = new Users(client); -MfaFactors result = await users.ListMfaFactors( +MfaFactors result = await users.ListMFAFactors( userId: "<USER_ID>" ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/users/update-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-dotnet/examples/users/update-m-f-a-recovery-codes.md deleted file mode 100644 index ac14ccf932..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/users/update-m-f-a-recovery-codes.md +++ /dev/null @@ -1,14 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetKey("<YOUR_API_KEY>"); // Your secret API key - -Users users = new Users(client); - -MfaRecoveryCodes result = await users.UpdateMFARecoveryCodes( - userId: "<USER_ID>" -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/users/update-m-f-a.md b/docs/examples/1.8.x/server-dotnet/examples/users/update-m-f-a.md deleted file mode 100644 index 1114982333..0000000000 --- a/docs/examples/1.8.x/server-dotnet/examples/users/update-m-f-a.md +++ /dev/null @@ -1,15 +0,0 @@ -using Appwrite; -using Appwrite.Models; -using Appwrite.Services; - -Client client = new Client() - .SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .SetProject("<YOUR_PROJECT_ID>") // Your project ID - .SetKey("<YOUR_API_KEY>"); // Your secret API key - -Users users = new Users(client); - -User result = await users.UpdateMFA( - userId: "<USER_ID>", - mfa: false -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.8.x/server-dotnet/examples/users/update-mfa-recovery-codes.md index 35be70777a..ac14ccf932 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-dotnet/examples/users/update-mfa-recovery-codes.md @@ -9,6 +9,6 @@ Client client = new Client() Users users = new Users(client); -MfaRecoveryCodes result = await users.UpdateMfaRecoveryCodes( +MfaRecoveryCodes result = await users.UpdateMFARecoveryCodes( userId: "<USER_ID>" ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-dotnet/examples/users/update-mfa.md b/docs/examples/1.8.x/server-dotnet/examples/users/update-mfa.md index d009df1759..1114982333 100644 --- a/docs/examples/1.8.x/server-dotnet/examples/users/update-mfa.md +++ b/docs/examples/1.8.x/server-dotnet/examples/users/update-mfa.md @@ -9,7 +9,7 @@ Client client = new Client() Users users = new Users(client); -User result = await users.UpdateMfa( +User result = await users.UpdateMFA( userId: "<USER_ID>", mfa: false ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-go/examples/account/create-j-w-t.md b/docs/examples/1.8.x/server-go/examples/account/create-jwt.md similarity index 100% rename from docs/examples/1.8.x/server-go/examples/account/create-j-w-t.md rename to docs/examples/1.8.x/server-go/examples/account/create-jwt.md diff --git a/docs/examples/1.8.x/server-go/examples/account/create-m-f-a-authenticator.md b/docs/examples/1.8.x/server-go/examples/account/create-m-f-a-authenticator.md deleted file mode 100644 index 07c3ba8860..0000000000 --- a/docs/examples/1.8.x/server-go/examples/account/create-m-f-a-authenticator.md +++ /dev/null @@ -1,26 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/account" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithSession("") // The user session to authenticate with - ) - - service := account.New(client) - response, error := service.CreateMFAAuthenticator( - "totp", - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/account/create-m-f-a-challenge.md b/docs/examples/1.8.x/server-go/examples/account/create-m-f-a-challenge.md deleted file mode 100644 index dd1cdff7f6..0000000000 --- a/docs/examples/1.8.x/server-go/examples/account/create-m-f-a-challenge.md +++ /dev/null @@ -1,25 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/account" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - ) - - service := account.New(client) - response, error := service.CreateMFAChallenge( - "email", - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/account/create-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-go/examples/account/create-m-f-a-recovery-codes.md deleted file mode 100644 index d5d4eb2e54..0000000000 --- a/docs/examples/1.8.x/server-go/examples/account/create-m-f-a-recovery-codes.md +++ /dev/null @@ -1,25 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/account" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithSession("") // The user session to authenticate with - ) - - service := account.New(client) - response, error := service.CreateMFARecoveryCodes( - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.8.x/server-go/examples/account/create-magic-url-token.md similarity index 100% rename from docs/examples/1.8.x/server-go/examples/account/create-magic-u-r-l-token.md rename to docs/examples/1.8.x/server-go/examples/account/create-magic-url-token.md diff --git a/docs/examples/1.8.x/server-go/examples/account/create-mfa-authenticator.md b/docs/examples/1.8.x/server-go/examples/account/create-mfa-authenticator.md index 336a91d944..07c3ba8860 100644 --- a/docs/examples/1.8.x/server-go/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.8.x/server-go/examples/account/create-mfa-authenticator.md @@ -14,7 +14,7 @@ func main() { ) service := account.New(client) - response, error := service.CreateMfaAuthenticator( + response, error := service.CreateMFAAuthenticator( "totp", ) diff --git a/docs/examples/1.8.x/server-go/examples/account/create-mfa-challenge.md b/docs/examples/1.8.x/server-go/examples/account/create-mfa-challenge.md index 4e17eb5ad9..dd1cdff7f6 100644 --- a/docs/examples/1.8.x/server-go/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.8.x/server-go/examples/account/create-mfa-challenge.md @@ -13,7 +13,7 @@ func main() { ) service := account.New(client) - response, error := service.CreateMfaChallenge( + response, error := service.CreateMFAChallenge( "email", ) diff --git a/docs/examples/1.8.x/server-go/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.8.x/server-go/examples/account/create-mfa-recovery-codes.md index 714d6106a0..d5d4eb2e54 100644 --- a/docs/examples/1.8.x/server-go/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-go/examples/account/create-mfa-recovery-codes.md @@ -14,7 +14,7 @@ func main() { ) service := account.New(client) - response, error := service.CreateMfaRecoveryCodes( + response, error := service.CreateMFARecoveryCodes( ) if error != nil { diff --git a/docs/examples/1.8.x/server-go/examples/account/create-o-auth2token.md b/docs/examples/1.8.x/server-go/examples/account/create-o-auth-2-token.md similarity index 100% rename from docs/examples/1.8.x/server-go/examples/account/create-o-auth2token.md rename to docs/examples/1.8.x/server-go/examples/account/create-o-auth-2-token.md diff --git a/docs/examples/1.8.x/server-go/examples/account/delete-m-f-a-authenticator.md b/docs/examples/1.8.x/server-go/examples/account/delete-m-f-a-authenticator.md deleted file mode 100644 index 0bb0b028b8..0000000000 --- a/docs/examples/1.8.x/server-go/examples/account/delete-m-f-a-authenticator.md +++ /dev/null @@ -1,26 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/account" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithSession("") // The user session to authenticate with - ) - - service := account.New(client) - response, error := service.DeleteMFAAuthenticator( - "totp", - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/account/delete-mfa-authenticator.md b/docs/examples/1.8.x/server-go/examples/account/delete-mfa-authenticator.md index 6eb956bdec..0bb0b028b8 100644 --- a/docs/examples/1.8.x/server-go/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.8.x/server-go/examples/account/delete-mfa-authenticator.md @@ -14,7 +14,7 @@ func main() { ) service := account.New(client) - response, error := service.DeleteMfaAuthenticator( + response, error := service.DeleteMFAAuthenticator( "totp", ) diff --git a/docs/examples/1.8.x/server-go/examples/account/get-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-go/examples/account/get-m-f-a-recovery-codes.md deleted file mode 100644 index 31c751546f..0000000000 --- a/docs/examples/1.8.x/server-go/examples/account/get-m-f-a-recovery-codes.md +++ /dev/null @@ -1,25 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/account" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithSession("") // The user session to authenticate with - ) - - service := account.New(client) - response, error := service.GetMFARecoveryCodes( - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.8.x/server-go/examples/account/get-mfa-recovery-codes.md index fd07fe36d9..31c751546f 100644 --- a/docs/examples/1.8.x/server-go/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-go/examples/account/get-mfa-recovery-codes.md @@ -14,7 +14,7 @@ func main() { ) service := account.New(client) - response, error := service.GetMfaRecoveryCodes( + response, error := service.GetMFARecoveryCodes( ) if error != nil { diff --git a/docs/examples/1.8.x/server-go/examples/account/list-m-f-a-factors.md b/docs/examples/1.8.x/server-go/examples/account/list-m-f-a-factors.md deleted file mode 100644 index 8da13c72e8..0000000000 --- a/docs/examples/1.8.x/server-go/examples/account/list-m-f-a-factors.md +++ /dev/null @@ -1,25 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/account" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithSession("") // The user session to authenticate with - ) - - service := account.New(client) - response, error := service.ListMFAFactors( - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/account/list-mfa-factors.md b/docs/examples/1.8.x/server-go/examples/account/list-mfa-factors.md index 26fb516fed..8da13c72e8 100644 --- a/docs/examples/1.8.x/server-go/examples/account/list-mfa-factors.md +++ b/docs/examples/1.8.x/server-go/examples/account/list-mfa-factors.md @@ -14,7 +14,7 @@ func main() { ) service := account.New(client) - response, error := service.ListMfaFactors( + response, error := service.ListMFAFactors( ) if error != nil { diff --git a/docs/examples/1.8.x/server-go/examples/account/update-m-f-a-authenticator.md b/docs/examples/1.8.x/server-go/examples/account/update-m-f-a-authenticator.md deleted file mode 100644 index 4235c933b4..0000000000 --- a/docs/examples/1.8.x/server-go/examples/account/update-m-f-a-authenticator.md +++ /dev/null @@ -1,27 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/account" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithSession("") // The user session to authenticate with - ) - - service := account.New(client) - response, error := service.UpdateMFAAuthenticator( - "totp", - "<OTP>", - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/account/update-m-f-a-challenge.md b/docs/examples/1.8.x/server-go/examples/account/update-m-f-a-challenge.md deleted file mode 100644 index 33ad5596d3..0000000000 --- a/docs/examples/1.8.x/server-go/examples/account/update-m-f-a-challenge.md +++ /dev/null @@ -1,27 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/account" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithSession("") // The user session to authenticate with - ) - - service := account.New(client) - response, error := service.UpdateMFAChallenge( - "<CHALLENGE_ID>", - "<OTP>", - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/account/update-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-go/examples/account/update-m-f-a-recovery-codes.md deleted file mode 100644 index d96c43963e..0000000000 --- a/docs/examples/1.8.x/server-go/examples/account/update-m-f-a-recovery-codes.md +++ /dev/null @@ -1,25 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/account" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithSession("") // The user session to authenticate with - ) - - service := account.New(client) - response, error := service.UpdateMFARecoveryCodes( - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.8.x/server-go/examples/account/update-magic-url-session.md similarity index 100% rename from docs/examples/1.8.x/server-go/examples/account/update-magic-u-r-l-session.md rename to docs/examples/1.8.x/server-go/examples/account/update-magic-url-session.md diff --git a/docs/examples/1.8.x/server-go/examples/account/update-mfa-authenticator.md b/docs/examples/1.8.x/server-go/examples/account/update-mfa-authenticator.md index ce4ebaffe7..4235c933b4 100644 --- a/docs/examples/1.8.x/server-go/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.8.x/server-go/examples/account/update-mfa-authenticator.md @@ -14,7 +14,7 @@ func main() { ) service := account.New(client) - response, error := service.UpdateMfaAuthenticator( + response, error := service.UpdateMFAAuthenticator( "totp", "<OTP>", ) diff --git a/docs/examples/1.8.x/server-go/examples/account/update-mfa-challenge.md b/docs/examples/1.8.x/server-go/examples/account/update-mfa-challenge.md index d2bb0c92ec..33ad5596d3 100644 --- a/docs/examples/1.8.x/server-go/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.8.x/server-go/examples/account/update-mfa-challenge.md @@ -14,7 +14,7 @@ func main() { ) service := account.New(client) - response, error := service.UpdateMfaChallenge( + response, error := service.UpdateMFAChallenge( "<CHALLENGE_ID>", "<OTP>", ) diff --git a/docs/examples/1.8.x/server-go/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.8.x/server-go/examples/account/update-mfa-recovery-codes.md index 9902b143f5..d96c43963e 100644 --- a/docs/examples/1.8.x/server-go/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-go/examples/account/update-mfa-recovery-codes.md @@ -14,7 +14,7 @@ func main() { ) service := account.New(client) - response, error := service.UpdateMfaRecoveryCodes( + response, error := service.UpdateMFARecoveryCodes( ) if error != nil { diff --git a/docs/examples/1.8.x/server-go/examples/account/update-m-f-a.md b/docs/examples/1.8.x/server-go/examples/account/update-mfa.md similarity index 100% rename from docs/examples/1.8.x/server-go/examples/account/update-m-f-a.md rename to docs/examples/1.8.x/server-go/examples/account/update-mfa.md diff --git a/docs/examples/1.8.x/server-go/examples/avatars/get-q-r.md b/docs/examples/1.8.x/server-go/examples/avatars/get-qr.md similarity index 100% rename from docs/examples/1.8.x/server-go/examples/avatars/get-q-r.md rename to docs/examples/1.8.x/server-go/examples/avatars/get-qr.md diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-boolean-column.md b/docs/examples/1.8.x/server-go/examples/grids/create-boolean-column.md deleted file mode 100644 index 11d8b0ca50..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/create-boolean-column.md +++ /dev/null @@ -1,31 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithKey("<YOUR_API_KEY>") // Your secret API key - ) - - service := grids.New(client) - response, error := service.CreateBooleanColumn( - "<DATABASE_ID>", - "<TABLE_ID>", - "", - false, - grids.WithCreateBooleanColumnDefault(false), - grids.WithCreateBooleanColumnArray(false), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-database.md b/docs/examples/1.8.x/server-go/examples/grids/create-database.md deleted file mode 100644 index d66dea2c03..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/create-database.md +++ /dev/null @@ -1,28 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithKey("<YOUR_API_KEY>") // Your secret API key - ) - - service := grids.New(client) - response, error := service.CreateDatabase( - "<DATABASE_ID>", - "<NAME>", - grids.WithCreateDatabaseEnabled(false), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-datetime-column.md b/docs/examples/1.8.x/server-go/examples/grids/create-datetime-column.md deleted file mode 100644 index e386f763ff..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/create-datetime-column.md +++ /dev/null @@ -1,31 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithKey("<YOUR_API_KEY>") // Your secret API key - ) - - service := grids.New(client) - response, error := service.CreateDatetimeColumn( - "<DATABASE_ID>", - "<TABLE_ID>", - "", - false, - grids.WithCreateDatetimeColumnDefault(""), - grids.WithCreateDatetimeColumnArray(false), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-email-column.md b/docs/examples/1.8.x/server-go/examples/grids/create-email-column.md deleted file mode 100644 index 9ecdf5cadf..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/create-email-column.md +++ /dev/null @@ -1,31 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithKey("<YOUR_API_KEY>") // Your secret API key - ) - - service := grids.New(client) - response, error := service.CreateEmailColumn( - "<DATABASE_ID>", - "<TABLE_ID>", - "", - false, - grids.WithCreateEmailColumnDefault("email@example.com"), - grids.WithCreateEmailColumnArray(false), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-enum-column.md b/docs/examples/1.8.x/server-go/examples/grids/create-enum-column.md deleted file mode 100644 index 35a2ed3f0f..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/create-enum-column.md +++ /dev/null @@ -1,32 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithKey("<YOUR_API_KEY>") // Your secret API key - ) - - service := grids.New(client) - response, error := service.CreateEnumColumn( - "<DATABASE_ID>", - "<TABLE_ID>", - "", - []interface{}{}, - false, - grids.WithCreateEnumColumnDefault("<DEFAULT>"), - grids.WithCreateEnumColumnArray(false), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-float-column.md b/docs/examples/1.8.x/server-go/examples/grids/create-float-column.md deleted file mode 100644 index 765eb58f24..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/create-float-column.md +++ /dev/null @@ -1,33 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithKey("<YOUR_API_KEY>") // Your secret API key - ) - - service := grids.New(client) - response, error := service.CreateFloatColumn( - "<DATABASE_ID>", - "<TABLE_ID>", - "", - false, - grids.WithCreateFloatColumnMin(0), - grids.WithCreateFloatColumnMax(0), - grids.WithCreateFloatColumnDefault(0), - grids.WithCreateFloatColumnArray(false), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-index.md b/docs/examples/1.8.x/server-go/examples/grids/create-index.md deleted file mode 100644 index ad39cc5c83..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/create-index.md +++ /dev/null @@ -1,32 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithKey("<YOUR_API_KEY>") // Your secret API key - ) - - service := grids.New(client) - response, error := service.CreateIndex( - "<DATABASE_ID>", - "<TABLE_ID>", - "", - "key", - []interface{}{}, - grids.WithCreateIndexOrders([]interface{}{}), - grids.WithCreateIndexLengths([]interface{}{}), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-integer-column.md b/docs/examples/1.8.x/server-go/examples/grids/create-integer-column.md deleted file mode 100644 index 3b67883650..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/create-integer-column.md +++ /dev/null @@ -1,33 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithKey("<YOUR_API_KEY>") // Your secret API key - ) - - service := grids.New(client) - response, error := service.CreateIntegerColumn( - "<DATABASE_ID>", - "<TABLE_ID>", - "", - false, - grids.WithCreateIntegerColumnMin(0), - grids.WithCreateIntegerColumnMax(0), - grids.WithCreateIntegerColumnDefault(0), - grids.WithCreateIntegerColumnArray(false), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-ip-column.md b/docs/examples/1.8.x/server-go/examples/grids/create-ip-column.md deleted file mode 100644 index 8954c91144..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/create-ip-column.md +++ /dev/null @@ -1,31 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithKey("<YOUR_API_KEY>") // Your secret API key - ) - - service := grids.New(client) - response, error := service.CreateIpColumn( - "<DATABASE_ID>", - "<TABLE_ID>", - "", - false, - grids.WithCreateIpColumnDefault(""), - grids.WithCreateIpColumnArray(false), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-relationship-column.md b/docs/examples/1.8.x/server-go/examples/grids/create-relationship-column.md deleted file mode 100644 index 2ce5bd2acd..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/create-relationship-column.md +++ /dev/null @@ -1,33 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithKey("<YOUR_API_KEY>") // Your secret API key - ) - - service := grids.New(client) - response, error := service.CreateRelationshipColumn( - "<DATABASE_ID>", - "<TABLE_ID>", - "<RELATED_TABLE_ID>", - "oneToOne", - grids.WithCreateRelationshipColumnTwoWay(false), - grids.WithCreateRelationshipColumnKey(""), - grids.WithCreateRelationshipColumnTwoWayKey(""), - grids.WithCreateRelationshipColumnOnDelete("cascade"), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-row.md b/docs/examples/1.8.x/server-go/examples/grids/create-row.md deleted file mode 100644 index b2e8aac2a2..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/create-row.md +++ /dev/null @@ -1,30 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithSession("") // The user session to authenticate with - ) - - service := grids.New(client) - response, error := service.CreateRow( - "<DATABASE_ID>", - "<TABLE_ID>", - "<ROW_ID>", - map[string]interface{}{}, - grids.WithCreateRowPermissions(interface{}{"read("any")"}), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-rows.md b/docs/examples/1.8.x/server-go/examples/grids/create-rows.md deleted file mode 100644 index 95442b0231..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/create-rows.md +++ /dev/null @@ -1,28 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithKey("<YOUR_API_KEY>") // Your secret API key - ) - - service := grids.New(client) - response, error := service.CreateRows( - "<DATABASE_ID>", - "<TABLE_ID>", - []interface{}{}, - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-string-column.md b/docs/examples/1.8.x/server-go/examples/grids/create-string-column.md deleted file mode 100644 index 0033ea1af6..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/create-string-column.md +++ /dev/null @@ -1,33 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithKey("<YOUR_API_KEY>") // Your secret API key - ) - - service := grids.New(client) - response, error := service.CreateStringColumn( - "<DATABASE_ID>", - "<TABLE_ID>", - "", - 1, - false, - grids.WithCreateStringColumnDefault("<DEFAULT>"), - grids.WithCreateStringColumnArray(false), - grids.WithCreateStringColumnEncrypt(false), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-table.md b/docs/examples/1.8.x/server-go/examples/grids/create-table.md deleted file mode 100644 index adc367db5c..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/create-table.md +++ /dev/null @@ -1,31 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithKey("<YOUR_API_KEY>") // Your secret API key - ) - - service := grids.New(client) - response, error := service.CreateTable( - "<DATABASE_ID>", - "<TABLE_ID>", - "<NAME>", - grids.WithCreateTablePermissions(interface{}{"read("any")"}), - grids.WithCreateTableRowSecurity(false), - grids.WithCreateTableEnabled(false), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/create-url-column.md b/docs/examples/1.8.x/server-go/examples/grids/create-url-column.md deleted file mode 100644 index 3e93fe1838..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/create-url-column.md +++ /dev/null @@ -1,31 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithKey("<YOUR_API_KEY>") // Your secret API key - ) - - service := grids.New(client) - response, error := service.CreateUrlColumn( - "<DATABASE_ID>", - "<TABLE_ID>", - "", - false, - grids.WithCreateUrlColumnDefault("https://example.com"), - grids.WithCreateUrlColumnArray(false), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/decrement-row-column.md b/docs/examples/1.8.x/server-go/examples/grids/decrement-row-column.md deleted file mode 100644 index cb36ada619..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/decrement-row-column.md +++ /dev/null @@ -1,31 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithKey("<YOUR_API_KEY>") // Your secret API key - ) - - service := grids.New(client) - response, error := service.DecrementRowColumn( - "<DATABASE_ID>", - "<TABLE_ID>", - "<ROW_ID>", - "", - grids.WithDecrementRowColumnValue(0), - grids.WithDecrementRowColumnMin(0), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/delete-column.md b/docs/examples/1.8.x/server-go/examples/grids/delete-column.md deleted file mode 100644 index 6b73e86c05..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/delete-column.md +++ /dev/null @@ -1,28 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithKey("<YOUR_API_KEY>") // Your secret API key - ) - - service := grids.New(client) - response, error := service.DeleteColumn( - "<DATABASE_ID>", - "<TABLE_ID>", - "", - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/delete-database.md b/docs/examples/1.8.x/server-go/examples/grids/delete-database.md deleted file mode 100644 index 4d74f859fc..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/delete-database.md +++ /dev/null @@ -1,26 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithKey("<YOUR_API_KEY>") // Your secret API key - ) - - service := grids.New(client) - response, error := service.DeleteDatabase( - "<DATABASE_ID>", - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/delete-index.md b/docs/examples/1.8.x/server-go/examples/grids/delete-index.md deleted file mode 100644 index c34a2752ac..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/delete-index.md +++ /dev/null @@ -1,28 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithKey("<YOUR_API_KEY>") // Your secret API key - ) - - service := grids.New(client) - response, error := service.DeleteIndex( - "<DATABASE_ID>", - "<TABLE_ID>", - "", - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/delete-row.md b/docs/examples/1.8.x/server-go/examples/grids/delete-row.md deleted file mode 100644 index cb072c49bd..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/delete-row.md +++ /dev/null @@ -1,28 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithSession("") // The user session to authenticate with - ) - - service := grids.New(client) - response, error := service.DeleteRow( - "<DATABASE_ID>", - "<TABLE_ID>", - "<ROW_ID>", - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/delete-rows.md b/docs/examples/1.8.x/server-go/examples/grids/delete-rows.md deleted file mode 100644 index 0ce880f996..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/delete-rows.md +++ /dev/null @@ -1,28 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithKey("<YOUR_API_KEY>") // Your secret API key - ) - - service := grids.New(client) - response, error := service.DeleteRows( - "<DATABASE_ID>", - "<TABLE_ID>", - grids.WithDeleteRowsQueries([]interface{}{}), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/delete-table.md b/docs/examples/1.8.x/server-go/examples/grids/delete-table.md deleted file mode 100644 index 66e031a5ce..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/delete-table.md +++ /dev/null @@ -1,27 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithKey("<YOUR_API_KEY>") // Your secret API key - ) - - service := grids.New(client) - response, error := service.DeleteTable( - "<DATABASE_ID>", - "<TABLE_ID>", - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/get-column.md b/docs/examples/1.8.x/server-go/examples/grids/get-column.md deleted file mode 100644 index bff6153550..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/get-column.md +++ /dev/null @@ -1,28 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithKey("<YOUR_API_KEY>") // Your secret API key - ) - - service := grids.New(client) - response, error := service.GetColumn( - "<DATABASE_ID>", - "<TABLE_ID>", - "", - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/get-database.md b/docs/examples/1.8.x/server-go/examples/grids/get-database.md deleted file mode 100644 index 4f80bf5590..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/get-database.md +++ /dev/null @@ -1,26 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithKey("<YOUR_API_KEY>") // Your secret API key - ) - - service := grids.New(client) - response, error := service.GetDatabase( - "<DATABASE_ID>", - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/get-index.md b/docs/examples/1.8.x/server-go/examples/grids/get-index.md deleted file mode 100644 index 5982b49b2e..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/get-index.md +++ /dev/null @@ -1,28 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithKey("<YOUR_API_KEY>") // Your secret API key - ) - - service := grids.New(client) - response, error := service.GetIndex( - "<DATABASE_ID>", - "<TABLE_ID>", - "", - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/get-row.md b/docs/examples/1.8.x/server-go/examples/grids/get-row.md deleted file mode 100644 index 1551d4969b..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/get-row.md +++ /dev/null @@ -1,29 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithSession("") // The user session to authenticate with - ) - - service := grids.New(client) - response, error := service.GetRow( - "<DATABASE_ID>", - "<TABLE_ID>", - "<ROW_ID>", - grids.WithGetRowQueries([]interface{}{}), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/get-table.md b/docs/examples/1.8.x/server-go/examples/grids/get-table.md deleted file mode 100644 index 1f96e8526d..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/get-table.md +++ /dev/null @@ -1,27 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithKey("<YOUR_API_KEY>") // Your secret API key - ) - - service := grids.New(client) - response, error := service.GetTable( - "<DATABASE_ID>", - "<TABLE_ID>", - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/increment-row-column.md b/docs/examples/1.8.x/server-go/examples/grids/increment-row-column.md deleted file mode 100644 index 52f5858884..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/increment-row-column.md +++ /dev/null @@ -1,31 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithKey("<YOUR_API_KEY>") // Your secret API key - ) - - service := grids.New(client) - response, error := service.IncrementRowColumn( - "<DATABASE_ID>", - "<TABLE_ID>", - "<ROW_ID>", - "", - grids.WithIncrementRowColumnValue(0), - grids.WithIncrementRowColumnMax(0), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/list-columns.md b/docs/examples/1.8.x/server-go/examples/grids/list-columns.md deleted file mode 100644 index ae411a216c..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/list-columns.md +++ /dev/null @@ -1,28 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithKey("<YOUR_API_KEY>") // Your secret API key - ) - - service := grids.New(client) - response, error := service.ListColumns( - "<DATABASE_ID>", - "<TABLE_ID>", - grids.WithListColumnsQueries([]interface{}{}), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/list-databases.md b/docs/examples/1.8.x/server-go/examples/grids/list-databases.md deleted file mode 100644 index e43bd7d100..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/list-databases.md +++ /dev/null @@ -1,27 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithKey("<YOUR_API_KEY>") // Your secret API key - ) - - service := grids.New(client) - response, error := service.ListDatabases( - grids.WithListDatabasesQueries([]interface{}{}), - grids.WithListDatabasesSearch("<SEARCH>"), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/list-indexes.md b/docs/examples/1.8.x/server-go/examples/grids/list-indexes.md deleted file mode 100644 index 092c75301a..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/list-indexes.md +++ /dev/null @@ -1,28 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithKey("<YOUR_API_KEY>") // Your secret API key - ) - - service := grids.New(client) - response, error := service.ListIndexes( - "<DATABASE_ID>", - "<TABLE_ID>", - grids.WithListIndexesQueries([]interface{}{}), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/list-rows.md b/docs/examples/1.8.x/server-go/examples/grids/list-rows.md deleted file mode 100644 index b406f106bb..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/list-rows.md +++ /dev/null @@ -1,28 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithSession("") // The user session to authenticate with - ) - - service := grids.New(client) - response, error := service.ListRows( - "<DATABASE_ID>", - "<TABLE_ID>", - grids.WithListRowsQueries([]interface{}{}), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/list-tables.md b/docs/examples/1.8.x/server-go/examples/grids/list-tables.md deleted file mode 100644 index f38879c65b..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/list-tables.md +++ /dev/null @@ -1,28 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithKey("<YOUR_API_KEY>") // Your secret API key - ) - - service := grids.New(client) - response, error := service.ListTables( - "<DATABASE_ID>", - grids.WithListTablesQueries([]interface{}{}), - grids.WithListTablesSearch("<SEARCH>"), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/update-boolean-column.md b/docs/examples/1.8.x/server-go/examples/grids/update-boolean-column.md deleted file mode 100644 index 5ffc910caf..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/update-boolean-column.md +++ /dev/null @@ -1,31 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithKey("<YOUR_API_KEY>") // Your secret API key - ) - - service := grids.New(client) - response, error := service.UpdateBooleanColumn( - "<DATABASE_ID>", - "<TABLE_ID>", - "", - false, - false, - grids.WithUpdateBooleanColumnNewKey(""), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/update-database.md b/docs/examples/1.8.x/server-go/examples/grids/update-database.md deleted file mode 100644 index 9f9c95546a..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/update-database.md +++ /dev/null @@ -1,28 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithKey("<YOUR_API_KEY>") // Your secret API key - ) - - service := grids.New(client) - response, error := service.UpdateDatabase( - "<DATABASE_ID>", - "<NAME>", - grids.WithUpdateDatabaseEnabled(false), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/update-datetime-column.md b/docs/examples/1.8.x/server-go/examples/grids/update-datetime-column.md deleted file mode 100644 index 5bf6440a74..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/update-datetime-column.md +++ /dev/null @@ -1,31 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithKey("<YOUR_API_KEY>") // Your secret API key - ) - - service := grids.New(client) - response, error := service.UpdateDatetimeColumn( - "<DATABASE_ID>", - "<TABLE_ID>", - "", - false, - "", - grids.WithUpdateDatetimeColumnNewKey(""), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/update-email-column.md b/docs/examples/1.8.x/server-go/examples/grids/update-email-column.md deleted file mode 100644 index 8ebbdcabc4..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/update-email-column.md +++ /dev/null @@ -1,31 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithKey("<YOUR_API_KEY>") // Your secret API key - ) - - service := grids.New(client) - response, error := service.UpdateEmailColumn( - "<DATABASE_ID>", - "<TABLE_ID>", - "", - false, - "email@example.com", - grids.WithUpdateEmailColumnNewKey(""), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/update-enum-column.md b/docs/examples/1.8.x/server-go/examples/grids/update-enum-column.md deleted file mode 100644 index edec1cbcc0..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/update-enum-column.md +++ /dev/null @@ -1,32 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithKey("<YOUR_API_KEY>") // Your secret API key - ) - - service := grids.New(client) - response, error := service.UpdateEnumColumn( - "<DATABASE_ID>", - "<TABLE_ID>", - "", - []interface{}{}, - false, - "<DEFAULT>", - grids.WithUpdateEnumColumnNewKey(""), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/update-float-column.md b/docs/examples/1.8.x/server-go/examples/grids/update-float-column.md deleted file mode 100644 index 80057dab06..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/update-float-column.md +++ /dev/null @@ -1,33 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithKey("<YOUR_API_KEY>") // Your secret API key - ) - - service := grids.New(client) - response, error := service.UpdateFloatColumn( - "<DATABASE_ID>", - "<TABLE_ID>", - "", - false, - 0, - grids.WithUpdateFloatColumnMin(0), - grids.WithUpdateFloatColumnMax(0), - grids.WithUpdateFloatColumnNewKey(""), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/update-integer-column.md b/docs/examples/1.8.x/server-go/examples/grids/update-integer-column.md deleted file mode 100644 index a3b9bd316c..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/update-integer-column.md +++ /dev/null @@ -1,33 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithKey("<YOUR_API_KEY>") // Your secret API key - ) - - service := grids.New(client) - response, error := service.UpdateIntegerColumn( - "<DATABASE_ID>", - "<TABLE_ID>", - "", - false, - 0, - grids.WithUpdateIntegerColumnMin(0), - grids.WithUpdateIntegerColumnMax(0), - grids.WithUpdateIntegerColumnNewKey(""), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/update-ip-column.md b/docs/examples/1.8.x/server-go/examples/grids/update-ip-column.md deleted file mode 100644 index 888c69e9ee..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/update-ip-column.md +++ /dev/null @@ -1,31 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithKey("<YOUR_API_KEY>") // Your secret API key - ) - - service := grids.New(client) - response, error := service.UpdateIpColumn( - "<DATABASE_ID>", - "<TABLE_ID>", - "", - false, - "", - grids.WithUpdateIpColumnNewKey(""), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/update-relationship-column.md b/docs/examples/1.8.x/server-go/examples/grids/update-relationship-column.md deleted file mode 100644 index db57f41995..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/update-relationship-column.md +++ /dev/null @@ -1,30 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithKey("<YOUR_API_KEY>") // Your secret API key - ) - - service := grids.New(client) - response, error := service.UpdateRelationshipColumn( - "<DATABASE_ID>", - "<TABLE_ID>", - "", - grids.WithUpdateRelationshipColumnOnDelete("cascade"), - grids.WithUpdateRelationshipColumnNewKey(""), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/update-row.md b/docs/examples/1.8.x/server-go/examples/grids/update-row.md deleted file mode 100644 index e1a99f289f..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/update-row.md +++ /dev/null @@ -1,30 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithSession("") // The user session to authenticate with - ) - - service := grids.New(client) - response, error := service.UpdateRow( - "<DATABASE_ID>", - "<TABLE_ID>", - "<ROW_ID>", - grids.WithUpdateRowData(map[string]interface{}{}), - grids.WithUpdateRowPermissions(interface{}{"read("any")"}), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/update-rows.md b/docs/examples/1.8.x/server-go/examples/grids/update-rows.md deleted file mode 100644 index f2b0c0c6de..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/update-rows.md +++ /dev/null @@ -1,29 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithKey("<YOUR_API_KEY>") // Your secret API key - ) - - service := grids.New(client) - response, error := service.UpdateRows( - "<DATABASE_ID>", - "<TABLE_ID>", - grids.WithUpdateRowsData(map[string]interface{}{}), - grids.WithUpdateRowsQueries([]interface{}{}), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/update-string-column.md b/docs/examples/1.8.x/server-go/examples/grids/update-string-column.md deleted file mode 100644 index a50fcb704c..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/update-string-column.md +++ /dev/null @@ -1,32 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithKey("<YOUR_API_KEY>") // Your secret API key - ) - - service := grids.New(client) - response, error := service.UpdateStringColumn( - "<DATABASE_ID>", - "<TABLE_ID>", - "", - false, - "<DEFAULT>", - grids.WithUpdateStringColumnSize(1), - grids.WithUpdateStringColumnNewKey(""), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/update-table.md b/docs/examples/1.8.x/server-go/examples/grids/update-table.md deleted file mode 100644 index cf1bef575f..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/update-table.md +++ /dev/null @@ -1,31 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithKey("<YOUR_API_KEY>") // Your secret API key - ) - - service := grids.New(client) - response, error := service.UpdateTable( - "<DATABASE_ID>", - "<TABLE_ID>", - "<NAME>", - grids.WithUpdateTablePermissions(interface{}{"read("any")"}), - grids.WithUpdateTableRowSecurity(false), - grids.WithUpdateTableEnabled(false), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/update-url-column.md b/docs/examples/1.8.x/server-go/examples/grids/update-url-column.md deleted file mode 100644 index 0c28025e5c..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/update-url-column.md +++ /dev/null @@ -1,31 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithKey("<YOUR_API_KEY>") // Your secret API key - ) - - service := grids.New(client) - response, error := service.UpdateUrlColumn( - "<DATABASE_ID>", - "<TABLE_ID>", - "", - false, - "https://example.com", - grids.WithUpdateUrlColumnNewKey(""), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/upsert-row.md b/docs/examples/1.8.x/server-go/examples/grids/upsert-row.md deleted file mode 100644 index bc104a159a..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/upsert-row.md +++ /dev/null @@ -1,30 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithSession("") // The user session to authenticate with - ) - - service := grids.New(client) - response, error := service.UpsertRow( - "<DATABASE_ID>", - "<TABLE_ID>", - "<ROW_ID>", - grids.WithUpsertRowData(map[string]interface{}{}), - grids.WithUpsertRowPermissions(interface{}{"read("any")"}), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/grids/upsert-rows.md b/docs/examples/1.8.x/server-go/examples/grids/upsert-rows.md deleted file mode 100644 index 6282f9da2e..0000000000 --- a/docs/examples/1.8.x/server-go/examples/grids/upsert-rows.md +++ /dev/null @@ -1,28 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/grids" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithKey("<YOUR_API_KEY>") // Your secret API key - ) - - service := grids.New(client) - response, error := service.UpsertRows( - "<DATABASE_ID>", - "<TABLE_ID>", - []interface{}{}, - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/health/get-d-b.md b/docs/examples/1.8.x/server-go/examples/health/get-db.md similarity index 100% rename from docs/examples/1.8.x/server-go/examples/health/get-d-b.md rename to docs/examples/1.8.x/server-go/examples/health/get-db.md diff --git a/docs/examples/1.8.x/server-go/examples/locale/list-countries-e-u.md b/docs/examples/1.8.x/server-go/examples/locale/list-countries-eu.md similarity index 100% rename from docs/examples/1.8.x/server-go/examples/locale/list-countries-e-u.md rename to docs/examples/1.8.x/server-go/examples/locale/list-countries-eu.md diff --git a/docs/examples/1.8.x/server-go/examples/messaging/create-a-p-n-s-provider.md b/docs/examples/1.8.x/server-go/examples/messaging/create-a-p-n-s-provider.md deleted file mode 100644 index 477b86546b..0000000000 --- a/docs/examples/1.8.x/server-go/examples/messaging/create-a-p-n-s-provider.md +++ /dev/null @@ -1,33 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/messaging" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithKey("<YOUR_API_KEY>") // Your secret API key - ) - - service := messaging.New(client) - response, error := service.CreateAPNSProvider( - "<PROVIDER_ID>", - "<NAME>", - messaging.WithCreateAPNSProviderAuthKey("<AUTH_KEY>"), - messaging.WithCreateAPNSProviderAuthKeyId("<AUTH_KEY_ID>"), - messaging.WithCreateAPNSProviderTeamId("<TEAM_ID>"), - messaging.WithCreateAPNSProviderBundleId("<BUNDLE_ID>"), - messaging.WithCreateAPNSProviderSandbox(false), - messaging.WithCreateAPNSProviderEnabled(false), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/messaging/create-apns-provider.md b/docs/examples/1.8.x/server-go/examples/messaging/create-apns-provider.md index 36a5b747ce..477b86546b 100644 --- a/docs/examples/1.8.x/server-go/examples/messaging/create-apns-provider.md +++ b/docs/examples/1.8.x/server-go/examples/messaging/create-apns-provider.md @@ -14,15 +14,15 @@ func main() { ) service := messaging.New(client) - response, error := service.CreateApnsProvider( + response, error := service.CreateAPNSProvider( "<PROVIDER_ID>", "<NAME>", - messaging.WithCreateApnsProviderAuthKey("<AUTH_KEY>"), - messaging.WithCreateApnsProviderAuthKeyId("<AUTH_KEY_ID>"), - messaging.WithCreateApnsProviderTeamId("<TEAM_ID>"), - messaging.WithCreateApnsProviderBundleId("<BUNDLE_ID>"), - messaging.WithCreateApnsProviderSandbox(false), - messaging.WithCreateApnsProviderEnabled(false), + messaging.WithCreateAPNSProviderAuthKey("<AUTH_KEY>"), + messaging.WithCreateAPNSProviderAuthKeyId("<AUTH_KEY_ID>"), + messaging.WithCreateAPNSProviderTeamId("<TEAM_ID>"), + messaging.WithCreateAPNSProviderBundleId("<BUNDLE_ID>"), + messaging.WithCreateAPNSProviderSandbox(false), + messaging.WithCreateAPNSProviderEnabled(false), ) if error != nil { diff --git a/docs/examples/1.8.x/server-go/examples/messaging/create-f-c-m-provider.md b/docs/examples/1.8.x/server-go/examples/messaging/create-f-c-m-provider.md deleted file mode 100644 index 01e18d11c6..0000000000 --- a/docs/examples/1.8.x/server-go/examples/messaging/create-f-c-m-provider.md +++ /dev/null @@ -1,29 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/messaging" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithKey("<YOUR_API_KEY>") // Your secret API key - ) - - service := messaging.New(client) - response, error := service.CreateFCMProvider( - "<PROVIDER_ID>", - "<NAME>", - messaging.WithCreateFCMProviderServiceAccountJSON(map[string]interface{}{}), - messaging.WithCreateFCMProviderEnabled(false), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/messaging/create-fcm-provider.md b/docs/examples/1.8.x/server-go/examples/messaging/create-fcm-provider.md index 266b11ce5f..01e18d11c6 100644 --- a/docs/examples/1.8.x/server-go/examples/messaging/create-fcm-provider.md +++ b/docs/examples/1.8.x/server-go/examples/messaging/create-fcm-provider.md @@ -14,11 +14,11 @@ func main() { ) service := messaging.New(client) - response, error := service.CreateFcmProvider( + response, error := service.CreateFCMProvider( "<PROVIDER_ID>", "<NAME>", - messaging.WithCreateFcmProviderServiceAccountJSON(map[string]interface{}{}), - messaging.WithCreateFcmProviderEnabled(false), + messaging.WithCreateFCMProviderServiceAccountJSON(map[string]interface{}{}), + messaging.WithCreateFCMProviderEnabled(false), ) if error != nil { diff --git a/docs/examples/1.8.x/server-go/examples/messaging/create-msg91provider.md b/docs/examples/1.8.x/server-go/examples/messaging/create-msg-91-provider.md similarity index 100% rename from docs/examples/1.8.x/server-go/examples/messaging/create-msg91provider.md rename to docs/examples/1.8.x/server-go/examples/messaging/create-msg-91-provider.md diff --git a/docs/examples/1.8.x/server-go/examples/messaging/create-s-m-s.md b/docs/examples/1.8.x/server-go/examples/messaging/create-s-m-s.md deleted file mode 100644 index d22316017a..0000000000 --- a/docs/examples/1.8.x/server-go/examples/messaging/create-s-m-s.md +++ /dev/null @@ -1,32 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/messaging" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithKey("<YOUR_API_KEY>") // Your secret API key - ) - - service := messaging.New(client) - response, error := service.CreateSMS( - "<MESSAGE_ID>", - "<CONTENT>", - messaging.WithCreateSMSTopics([]interface{}{}), - messaging.WithCreateSMSUsers([]interface{}{}), - messaging.WithCreateSMSTargets([]interface{}{}), - messaging.WithCreateSMSDraft(false), - messaging.WithCreateSMSScheduledAt(""), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/messaging/create-s-m-t-p-provider.md b/docs/examples/1.8.x/server-go/examples/messaging/create-s-m-t-p-provider.md deleted file mode 100644 index 8eb41ad2da..0000000000 --- a/docs/examples/1.8.x/server-go/examples/messaging/create-s-m-t-p-provider.md +++ /dev/null @@ -1,39 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/messaging" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithKey("<YOUR_API_KEY>") // Your secret API key - ) - - service := messaging.New(client) - response, error := service.CreateSMTPProvider( - "<PROVIDER_ID>", - "<NAME>", - "<HOST>", - messaging.WithCreateSMTPProviderPort(1), - messaging.WithCreateSMTPProviderUsername("<USERNAME>"), - messaging.WithCreateSMTPProviderPassword("<PASSWORD>"), - messaging.WithCreateSMTPProviderEncryption("none"), - messaging.WithCreateSMTPProviderAutoTLS(false), - messaging.WithCreateSMTPProviderMailer("<MAILER>"), - messaging.WithCreateSMTPProviderFromName("<FROM_NAME>"), - messaging.WithCreateSMTPProviderFromEmail("email@example.com"), - messaging.WithCreateSMTPProviderReplyToName("<REPLY_TO_NAME>"), - messaging.WithCreateSMTPProviderReplyToEmail("email@example.com"), - messaging.WithCreateSMTPProviderEnabled(false), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/messaging/create-sms.md b/docs/examples/1.8.x/server-go/examples/messaging/create-sms.md index 0afa78f5f6..d22316017a 100644 --- a/docs/examples/1.8.x/server-go/examples/messaging/create-sms.md +++ b/docs/examples/1.8.x/server-go/examples/messaging/create-sms.md @@ -14,14 +14,14 @@ func main() { ) service := messaging.New(client) - response, error := service.CreateSms( + response, error := service.CreateSMS( "<MESSAGE_ID>", "<CONTENT>", - messaging.WithCreateSmsTopics([]interface{}{}), - messaging.WithCreateSmsUsers([]interface{}{}), - messaging.WithCreateSmsTargets([]interface{}{}), - messaging.WithCreateSmsDraft(false), - messaging.WithCreateSmsScheduledAt(""), + messaging.WithCreateSMSTopics([]interface{}{}), + messaging.WithCreateSMSUsers([]interface{}{}), + messaging.WithCreateSMSTargets([]interface{}{}), + messaging.WithCreateSMSDraft(false), + messaging.WithCreateSMSScheduledAt(""), ) if error != nil { diff --git a/docs/examples/1.8.x/server-go/examples/messaging/create-smtp-provider.md b/docs/examples/1.8.x/server-go/examples/messaging/create-smtp-provider.md index 9d84f98a9f..8eb41ad2da 100644 --- a/docs/examples/1.8.x/server-go/examples/messaging/create-smtp-provider.md +++ b/docs/examples/1.8.x/server-go/examples/messaging/create-smtp-provider.md @@ -14,21 +14,21 @@ func main() { ) service := messaging.New(client) - response, error := service.CreateSmtpProvider( + response, error := service.CreateSMTPProvider( "<PROVIDER_ID>", "<NAME>", "<HOST>", - messaging.WithCreateSmtpProviderPort(1), - messaging.WithCreateSmtpProviderUsername("<USERNAME>"), - messaging.WithCreateSmtpProviderPassword("<PASSWORD>"), - messaging.WithCreateSmtpProviderEncryption("none"), - messaging.WithCreateSmtpProviderAutoTLS(false), - messaging.WithCreateSmtpProviderMailer("<MAILER>"), - messaging.WithCreateSmtpProviderFromName("<FROM_NAME>"), - messaging.WithCreateSmtpProviderFromEmail("email@example.com"), - messaging.WithCreateSmtpProviderReplyToName("<REPLY_TO_NAME>"), - messaging.WithCreateSmtpProviderReplyToEmail("email@example.com"), - messaging.WithCreateSmtpProviderEnabled(false), + messaging.WithCreateSMTPProviderPort(1), + messaging.WithCreateSMTPProviderUsername("<USERNAME>"), + messaging.WithCreateSMTPProviderPassword("<PASSWORD>"), + messaging.WithCreateSMTPProviderEncryption("none"), + messaging.WithCreateSMTPProviderAutoTLS(false), + messaging.WithCreateSMTPProviderMailer("<MAILER>"), + messaging.WithCreateSMTPProviderFromName("<FROM_NAME>"), + messaging.WithCreateSMTPProviderFromEmail("email@example.com"), + messaging.WithCreateSMTPProviderReplyToName("<REPLY_TO_NAME>"), + messaging.WithCreateSMTPProviderReplyToEmail("email@example.com"), + messaging.WithCreateSMTPProviderEnabled(false), ) if error != nil { diff --git a/docs/examples/1.8.x/server-go/examples/messaging/update-a-p-n-s-provider.md b/docs/examples/1.8.x/server-go/examples/messaging/update-a-p-n-s-provider.md deleted file mode 100644 index 1cf307bd78..0000000000 --- a/docs/examples/1.8.x/server-go/examples/messaging/update-a-p-n-s-provider.md +++ /dev/null @@ -1,33 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/messaging" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithKey("<YOUR_API_KEY>") // Your secret API key - ) - - service := messaging.New(client) - response, error := service.UpdateAPNSProvider( - "<PROVIDER_ID>", - messaging.WithUpdateAPNSProviderName("<NAME>"), - messaging.WithUpdateAPNSProviderEnabled(false), - messaging.WithUpdateAPNSProviderAuthKey("<AUTH_KEY>"), - messaging.WithUpdateAPNSProviderAuthKeyId("<AUTH_KEY_ID>"), - messaging.WithUpdateAPNSProviderTeamId("<TEAM_ID>"), - messaging.WithUpdateAPNSProviderBundleId("<BUNDLE_ID>"), - messaging.WithUpdateAPNSProviderSandbox(false), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/messaging/update-apns-provider.md b/docs/examples/1.8.x/server-go/examples/messaging/update-apns-provider.md index 74e4fa56f8..1cf307bd78 100644 --- a/docs/examples/1.8.x/server-go/examples/messaging/update-apns-provider.md +++ b/docs/examples/1.8.x/server-go/examples/messaging/update-apns-provider.md @@ -14,15 +14,15 @@ func main() { ) service := messaging.New(client) - response, error := service.UpdateApnsProvider( + response, error := service.UpdateAPNSProvider( "<PROVIDER_ID>", - messaging.WithUpdateApnsProviderName("<NAME>"), - messaging.WithUpdateApnsProviderEnabled(false), - messaging.WithUpdateApnsProviderAuthKey("<AUTH_KEY>"), - messaging.WithUpdateApnsProviderAuthKeyId("<AUTH_KEY_ID>"), - messaging.WithUpdateApnsProviderTeamId("<TEAM_ID>"), - messaging.WithUpdateApnsProviderBundleId("<BUNDLE_ID>"), - messaging.WithUpdateApnsProviderSandbox(false), + messaging.WithUpdateAPNSProviderName("<NAME>"), + messaging.WithUpdateAPNSProviderEnabled(false), + messaging.WithUpdateAPNSProviderAuthKey("<AUTH_KEY>"), + messaging.WithUpdateAPNSProviderAuthKeyId("<AUTH_KEY_ID>"), + messaging.WithUpdateAPNSProviderTeamId("<TEAM_ID>"), + messaging.WithUpdateAPNSProviderBundleId("<BUNDLE_ID>"), + messaging.WithUpdateAPNSProviderSandbox(false), ) if error != nil { diff --git a/docs/examples/1.8.x/server-go/examples/messaging/update-f-c-m-provider.md b/docs/examples/1.8.x/server-go/examples/messaging/update-f-c-m-provider.md deleted file mode 100644 index 3f9d615fa9..0000000000 --- a/docs/examples/1.8.x/server-go/examples/messaging/update-f-c-m-provider.md +++ /dev/null @@ -1,29 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/messaging" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithKey("<YOUR_API_KEY>") // Your secret API key - ) - - service := messaging.New(client) - response, error := service.UpdateFCMProvider( - "<PROVIDER_ID>", - messaging.WithUpdateFCMProviderName("<NAME>"), - messaging.WithUpdateFCMProviderEnabled(false), - messaging.WithUpdateFCMProviderServiceAccountJSON(map[string]interface{}{}), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/messaging/update-fcm-provider.md b/docs/examples/1.8.x/server-go/examples/messaging/update-fcm-provider.md index c70327a022..3f9d615fa9 100644 --- a/docs/examples/1.8.x/server-go/examples/messaging/update-fcm-provider.md +++ b/docs/examples/1.8.x/server-go/examples/messaging/update-fcm-provider.md @@ -14,11 +14,11 @@ func main() { ) service := messaging.New(client) - response, error := service.UpdateFcmProvider( + response, error := service.UpdateFCMProvider( "<PROVIDER_ID>", - messaging.WithUpdateFcmProviderName("<NAME>"), - messaging.WithUpdateFcmProviderEnabled(false), - messaging.WithUpdateFcmProviderServiceAccountJSON(map[string]interface{}{}), + messaging.WithUpdateFCMProviderName("<NAME>"), + messaging.WithUpdateFCMProviderEnabled(false), + messaging.WithUpdateFCMProviderServiceAccountJSON(map[string]interface{}{}), ) if error != nil { diff --git a/docs/examples/1.8.x/server-go/examples/messaging/update-msg91provider.md b/docs/examples/1.8.x/server-go/examples/messaging/update-msg-91-provider.md similarity index 100% rename from docs/examples/1.8.x/server-go/examples/messaging/update-msg91provider.md rename to docs/examples/1.8.x/server-go/examples/messaging/update-msg-91-provider.md diff --git a/docs/examples/1.8.x/server-go/examples/messaging/update-s-m-s.md b/docs/examples/1.8.x/server-go/examples/messaging/update-s-m-s.md deleted file mode 100644 index 3c57e872a1..0000000000 --- a/docs/examples/1.8.x/server-go/examples/messaging/update-s-m-s.md +++ /dev/null @@ -1,32 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/messaging" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithKey("<YOUR_API_KEY>") // Your secret API key - ) - - service := messaging.New(client) - response, error := service.UpdateSMS( - "<MESSAGE_ID>", - messaging.WithUpdateSMSTopics([]interface{}{}), - messaging.WithUpdateSMSUsers([]interface{}{}), - messaging.WithUpdateSMSTargets([]interface{}{}), - messaging.WithUpdateSMSContent("<CONTENT>"), - messaging.WithUpdateSMSDraft(false), - messaging.WithUpdateSMSScheduledAt(""), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/messaging/update-s-m-t-p-provider.md b/docs/examples/1.8.x/server-go/examples/messaging/update-s-m-t-p-provider.md deleted file mode 100644 index 61c961bb96..0000000000 --- a/docs/examples/1.8.x/server-go/examples/messaging/update-s-m-t-p-provider.md +++ /dev/null @@ -1,39 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/messaging" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithKey("<YOUR_API_KEY>") // Your secret API key - ) - - service := messaging.New(client) - response, error := service.UpdateSMTPProvider( - "<PROVIDER_ID>", - messaging.WithUpdateSMTPProviderName("<NAME>"), - messaging.WithUpdateSMTPProviderHost("<HOST>"), - messaging.WithUpdateSMTPProviderPort(1), - messaging.WithUpdateSMTPProviderUsername("<USERNAME>"), - messaging.WithUpdateSMTPProviderPassword("<PASSWORD>"), - messaging.WithUpdateSMTPProviderEncryption("none"), - messaging.WithUpdateSMTPProviderAutoTLS(false), - messaging.WithUpdateSMTPProviderMailer("<MAILER>"), - messaging.WithUpdateSMTPProviderFromName("<FROM_NAME>"), - messaging.WithUpdateSMTPProviderFromEmail("email@example.com"), - messaging.WithUpdateSMTPProviderReplyToName("<REPLY_TO_NAME>"), - messaging.WithUpdateSMTPProviderReplyToEmail("<REPLY_TO_EMAIL>"), - messaging.WithUpdateSMTPProviderEnabled(false), - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/messaging/update-sms.md b/docs/examples/1.8.x/server-go/examples/messaging/update-sms.md index f62798e298..3c57e872a1 100644 --- a/docs/examples/1.8.x/server-go/examples/messaging/update-sms.md +++ b/docs/examples/1.8.x/server-go/examples/messaging/update-sms.md @@ -14,14 +14,14 @@ func main() { ) service := messaging.New(client) - response, error := service.UpdateSms( + response, error := service.UpdateSMS( "<MESSAGE_ID>", - messaging.WithUpdateSmsTopics([]interface{}{}), - messaging.WithUpdateSmsUsers([]interface{}{}), - messaging.WithUpdateSmsTargets([]interface{}{}), - messaging.WithUpdateSmsContent("<CONTENT>"), - messaging.WithUpdateSmsDraft(false), - messaging.WithUpdateSmsScheduledAt(""), + messaging.WithUpdateSMSTopics([]interface{}{}), + messaging.WithUpdateSMSUsers([]interface{}{}), + messaging.WithUpdateSMSTargets([]interface{}{}), + messaging.WithUpdateSMSContent("<CONTENT>"), + messaging.WithUpdateSMSDraft(false), + messaging.WithUpdateSMSScheduledAt(""), ) if error != nil { diff --git a/docs/examples/1.8.x/server-go/examples/messaging/update-smtp-provider.md b/docs/examples/1.8.x/server-go/examples/messaging/update-smtp-provider.md index ccfb91b1b9..61c961bb96 100644 --- a/docs/examples/1.8.x/server-go/examples/messaging/update-smtp-provider.md +++ b/docs/examples/1.8.x/server-go/examples/messaging/update-smtp-provider.md @@ -14,21 +14,21 @@ func main() { ) service := messaging.New(client) - response, error := service.UpdateSmtpProvider( + response, error := service.UpdateSMTPProvider( "<PROVIDER_ID>", - messaging.WithUpdateSmtpProviderName("<NAME>"), - messaging.WithUpdateSmtpProviderHost("<HOST>"), - messaging.WithUpdateSmtpProviderPort(1), - messaging.WithUpdateSmtpProviderUsername("<USERNAME>"), - messaging.WithUpdateSmtpProviderPassword("<PASSWORD>"), - messaging.WithUpdateSmtpProviderEncryption("none"), - messaging.WithUpdateSmtpProviderAutoTLS(false), - messaging.WithUpdateSmtpProviderMailer("<MAILER>"), - messaging.WithUpdateSmtpProviderFromName("<FROM_NAME>"), - messaging.WithUpdateSmtpProviderFromEmail("email@example.com"), - messaging.WithUpdateSmtpProviderReplyToName("<REPLY_TO_NAME>"), - messaging.WithUpdateSmtpProviderReplyToEmail("<REPLY_TO_EMAIL>"), - messaging.WithUpdateSmtpProviderEnabled(false), + messaging.WithUpdateSMTPProviderName("<NAME>"), + messaging.WithUpdateSMTPProviderHost("<HOST>"), + messaging.WithUpdateSMTPProviderPort(1), + messaging.WithUpdateSMTPProviderUsername("<USERNAME>"), + messaging.WithUpdateSMTPProviderPassword("<PASSWORD>"), + messaging.WithUpdateSMTPProviderEncryption("none"), + messaging.WithUpdateSMTPProviderAutoTLS(false), + messaging.WithUpdateSMTPProviderMailer("<MAILER>"), + messaging.WithUpdateSMTPProviderFromName("<FROM_NAME>"), + messaging.WithUpdateSMTPProviderFromEmail("email@example.com"), + messaging.WithUpdateSMTPProviderReplyToName("<REPLY_TO_NAME>"), + messaging.WithUpdateSMTPProviderReplyToEmail("<REPLY_TO_EMAIL>"), + messaging.WithUpdateSMTPProviderEnabled(false), ) if error != nil { diff --git a/docs/examples/1.8.x/server-go/examples/users/create-argon2user.md b/docs/examples/1.8.x/server-go/examples/users/create-argon-2-user.md similarity index 100% rename from docs/examples/1.8.x/server-go/examples/users/create-argon2user.md rename to docs/examples/1.8.x/server-go/examples/users/create-argon-2-user.md diff --git a/docs/examples/1.8.x/server-go/examples/users/create-j-w-t.md b/docs/examples/1.8.x/server-go/examples/users/create-jwt.md similarity index 100% rename from docs/examples/1.8.x/server-go/examples/users/create-j-w-t.md rename to docs/examples/1.8.x/server-go/examples/users/create-jwt.md diff --git a/docs/examples/1.8.x/server-go/examples/users/create-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-go/examples/users/create-m-f-a-recovery-codes.md deleted file mode 100644 index bc85d3a21e..0000000000 --- a/docs/examples/1.8.x/server-go/examples/users/create-m-f-a-recovery-codes.md +++ /dev/null @@ -1,26 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/users" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithKey("<YOUR_API_KEY>") // Your secret API key - ) - - service := users.New(client) - response, error := service.CreateMFARecoveryCodes( - "<USER_ID>", - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/users/create-m-d5user.md b/docs/examples/1.8.x/server-go/examples/users/create-md-5-user.md similarity index 100% rename from docs/examples/1.8.x/server-go/examples/users/create-m-d5user.md rename to docs/examples/1.8.x/server-go/examples/users/create-md-5-user.md diff --git a/docs/examples/1.8.x/server-go/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.8.x/server-go/examples/users/create-mfa-recovery-codes.md index 1c2097e571..bc85d3a21e 100644 --- a/docs/examples/1.8.x/server-go/examples/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-go/examples/users/create-mfa-recovery-codes.md @@ -14,7 +14,7 @@ func main() { ) service := users.New(client) - response, error := service.CreateMfaRecoveryCodes( + response, error := service.CreateMFARecoveryCodes( "<USER_ID>", ) diff --git a/docs/examples/1.8.x/server-go/examples/users/create-p-h-pass-user.md b/docs/examples/1.8.x/server-go/examples/users/create-ph-pass-user.md similarity index 100% rename from docs/examples/1.8.x/server-go/examples/users/create-p-h-pass-user.md rename to docs/examples/1.8.x/server-go/examples/users/create-ph-pass-user.md diff --git a/docs/examples/1.8.x/server-go/examples/users/create-s-h-a-user.md b/docs/examples/1.8.x/server-go/examples/users/create-sha-user.md similarity index 100% rename from docs/examples/1.8.x/server-go/examples/users/create-s-h-a-user.md rename to docs/examples/1.8.x/server-go/examples/users/create-sha-user.md diff --git a/docs/examples/1.8.x/server-go/examples/users/delete-m-f-a-authenticator.md b/docs/examples/1.8.x/server-go/examples/users/delete-m-f-a-authenticator.md deleted file mode 100644 index 812858261d..0000000000 --- a/docs/examples/1.8.x/server-go/examples/users/delete-m-f-a-authenticator.md +++ /dev/null @@ -1,27 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/users" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithKey("<YOUR_API_KEY>") // Your secret API key - ) - - service := users.New(client) - response, error := service.DeleteMFAAuthenticator( - "<USER_ID>", - "totp", - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/users/delete-mfa-authenticator.md b/docs/examples/1.8.x/server-go/examples/users/delete-mfa-authenticator.md index bb845b90c1..812858261d 100644 --- a/docs/examples/1.8.x/server-go/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/1.8.x/server-go/examples/users/delete-mfa-authenticator.md @@ -14,7 +14,7 @@ func main() { ) service := users.New(client) - response, error := service.DeleteMfaAuthenticator( + response, error := service.DeleteMFAAuthenticator( "<USER_ID>", "totp", ) diff --git a/docs/examples/1.8.x/server-go/examples/users/get-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-go/examples/users/get-m-f-a-recovery-codes.md deleted file mode 100644 index 9824241724..0000000000 --- a/docs/examples/1.8.x/server-go/examples/users/get-m-f-a-recovery-codes.md +++ /dev/null @@ -1,26 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/users" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithKey("<YOUR_API_KEY>") // Your secret API key - ) - - service := users.New(client) - response, error := service.GetMFARecoveryCodes( - "<USER_ID>", - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.8.x/server-go/examples/users/get-mfa-recovery-codes.md index 8b16231be7..9824241724 100644 --- a/docs/examples/1.8.x/server-go/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-go/examples/users/get-mfa-recovery-codes.md @@ -14,7 +14,7 @@ func main() { ) service := users.New(client) - response, error := service.GetMfaRecoveryCodes( + response, error := service.GetMFARecoveryCodes( "<USER_ID>", ) diff --git a/docs/examples/1.8.x/server-go/examples/users/list-m-f-a-factors.md b/docs/examples/1.8.x/server-go/examples/users/list-m-f-a-factors.md deleted file mode 100644 index 3abb918307..0000000000 --- a/docs/examples/1.8.x/server-go/examples/users/list-m-f-a-factors.md +++ /dev/null @@ -1,26 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/users" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithKey("<YOUR_API_KEY>") // Your secret API key - ) - - service := users.New(client) - response, error := service.ListMFAFactors( - "<USER_ID>", - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/users/list-mfa-factors.md b/docs/examples/1.8.x/server-go/examples/users/list-mfa-factors.md index 8709b21ae7..3abb918307 100644 --- a/docs/examples/1.8.x/server-go/examples/users/list-mfa-factors.md +++ b/docs/examples/1.8.x/server-go/examples/users/list-mfa-factors.md @@ -14,7 +14,7 @@ func main() { ) service := users.New(client) - response, error := service.ListMfaFactors( + response, error := service.ListMFAFactors( "<USER_ID>", ) diff --git a/docs/examples/1.8.x/server-go/examples/users/update-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-go/examples/users/update-m-f-a-recovery-codes.md deleted file mode 100644 index 618b51678e..0000000000 --- a/docs/examples/1.8.x/server-go/examples/users/update-m-f-a-recovery-codes.md +++ /dev/null @@ -1,26 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/users" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithKey("<YOUR_API_KEY>") // Your secret API key - ) - - service := users.New(client) - response, error := service.UpdateMFARecoveryCodes( - "<USER_ID>", - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/users/update-m-f-a.md b/docs/examples/1.8.x/server-go/examples/users/update-m-f-a.md deleted file mode 100644 index 6fefa02c77..0000000000 --- a/docs/examples/1.8.x/server-go/examples/users/update-m-f-a.md +++ /dev/null @@ -1,27 +0,0 @@ -package main - -import ( - "fmt" - "github.com/appwrite/sdk-for-go/client" - "github.com/appwrite/sdk-for-go/users" -) - -func main() { - client := client.New( - client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - client.WithProject("<YOUR_PROJECT_ID>") // Your project ID - client.WithKey("<YOUR_API_KEY>") // Your secret API key - ) - - service := users.New(client) - response, error := service.UpdateMFA( - "<USER_ID>", - false, - ) - - if error != nil { - panic(error) - } - - fmt.Println(response) -} diff --git a/docs/examples/1.8.x/server-go/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.8.x/server-go/examples/users/update-mfa-recovery-codes.md index d495b752de..618b51678e 100644 --- a/docs/examples/1.8.x/server-go/examples/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-go/examples/users/update-mfa-recovery-codes.md @@ -14,7 +14,7 @@ func main() { ) service := users.New(client) - response, error := service.UpdateMfaRecoveryCodes( + response, error := service.UpdateMFARecoveryCodes( "<USER_ID>", ) diff --git a/docs/examples/1.8.x/server-go/examples/users/update-mfa.md b/docs/examples/1.8.x/server-go/examples/users/update-mfa.md index cfcddbf5e1..6fefa02c77 100644 --- a/docs/examples/1.8.x/server-go/examples/users/update-mfa.md +++ b/docs/examples/1.8.x/server-go/examples/users/update-mfa.md @@ -14,7 +14,7 @@ func main() { ) service := users.New(client) - response, error := service.UpdateMfa( + response, error := service.UpdateMFA( "<USER_ID>", false, ) diff --git a/docs/examples/1.8.x/server-graphql/examples/account/create-j-w-t.md b/docs/examples/1.8.x/server-graphql/examples/account/create-jwt.md similarity index 100% rename from docs/examples/1.8.x/server-graphql/examples/account/create-j-w-t.md rename to docs/examples/1.8.x/server-graphql/examples/account/create-jwt.md diff --git a/docs/examples/1.8.x/server-graphql/examples/account/create-m-f-a-authenticator.md b/docs/examples/1.8.x/server-graphql/examples/account/create-m-f-a-authenticator.md deleted file mode 100644 index 8605340168..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/account/create-m-f-a-authenticator.md +++ /dev/null @@ -1,8 +0,0 @@ -mutation { - accountCreateMFAAuthenticator( - type: "totp" - ) { - secret - uri - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/account/create-m-f-a-challenge.md b/docs/examples/1.8.x/server-graphql/examples/account/create-m-f-a-challenge.md deleted file mode 100644 index aff5a10123..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/account/create-m-f-a-challenge.md +++ /dev/null @@ -1,10 +0,0 @@ -mutation { - accountCreateMFAChallenge( - factor: "email" - ) { - _id - _createdAt - userId - expire - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/account/create-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-graphql/examples/account/create-m-f-a-recovery-codes.md deleted file mode 100644 index 4cb6d36d42..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/account/create-m-f-a-recovery-codes.md +++ /dev/null @@ -1,5 +0,0 @@ -mutation { - accountCreateMFARecoveryCodes { - recoveryCodes - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.8.x/server-graphql/examples/account/create-magic-url-token.md similarity index 100% rename from docs/examples/1.8.x/server-graphql/examples/account/create-magic-u-r-l-token.md rename to docs/examples/1.8.x/server-graphql/examples/account/create-magic-url-token.md diff --git a/docs/examples/1.8.x/server-graphql/examples/account/create-mfa-authenticator.md b/docs/examples/1.8.x/server-graphql/examples/account/create-mfa-authenticator.md index 6b29292494..8605340168 100644 --- a/docs/examples/1.8.x/server-graphql/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.8.x/server-graphql/examples/account/create-mfa-authenticator.md @@ -1,5 +1,5 @@ mutation { - accountCreateMfaAuthenticator( + accountCreateMFAAuthenticator( type: "totp" ) { secret diff --git a/docs/examples/1.8.x/server-graphql/examples/account/create-mfa-challenge.md b/docs/examples/1.8.x/server-graphql/examples/account/create-mfa-challenge.md index eb5cba127d..aff5a10123 100644 --- a/docs/examples/1.8.x/server-graphql/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.8.x/server-graphql/examples/account/create-mfa-challenge.md @@ -1,5 +1,5 @@ mutation { - accountCreateMfaChallenge( + accountCreateMFAChallenge( factor: "email" ) { _id diff --git a/docs/examples/1.8.x/server-graphql/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.8.x/server-graphql/examples/account/create-mfa-recovery-codes.md index f39b7d080d..4cb6d36d42 100644 --- a/docs/examples/1.8.x/server-graphql/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-graphql/examples/account/create-mfa-recovery-codes.md @@ -1,5 +1,5 @@ mutation { - accountCreateMfaRecoveryCodes { + accountCreateMFARecoveryCodes { recoveryCodes } } diff --git a/docs/examples/1.8.x/server-graphql/examples/account/delete-m-f-a-authenticator.md b/docs/examples/1.8.x/server-graphql/examples/account/delete-m-f-a-authenticator.md deleted file mode 100644 index 03e876e3f9..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/account/delete-m-f-a-authenticator.md +++ /dev/null @@ -1,7 +0,0 @@ -mutation { - accountDeleteMFAAuthenticator( - type: "totp" - ) { - status - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/account/delete-mfa-authenticator.md b/docs/examples/1.8.x/server-graphql/examples/account/delete-mfa-authenticator.md index fc5486623a..03e876e3f9 100644 --- a/docs/examples/1.8.x/server-graphql/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.8.x/server-graphql/examples/account/delete-mfa-authenticator.md @@ -1,5 +1,5 @@ mutation { - accountDeleteMfaAuthenticator( + accountDeleteMFAAuthenticator( type: "totp" ) { status diff --git a/docs/examples/1.8.x/server-graphql/examples/account/get-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-graphql/examples/account/get-m-f-a-recovery-codes.md deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/docs/examples/1.8.x/server-graphql/examples/account/list-m-f-a-factors.md b/docs/examples/1.8.x/server-graphql/examples/account/list-m-f-a-factors.md deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/docs/examples/1.8.x/server-graphql/examples/account/update-m-f-a-authenticator.md b/docs/examples/1.8.x/server-graphql/examples/account/update-m-f-a-authenticator.md deleted file mode 100644 index b3021b70b8..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/account/update-m-f-a-authenticator.md +++ /dev/null @@ -1,38 +0,0 @@ -mutation { - accountUpdateMFAAuthenticator( - type: "totp", - otp: "<OTP>" - ) { - _id - _createdAt - _updatedAt - name - password - hash - hashOptions - registration - status - labels - passwordUpdate - email - phone - emailVerification - phoneVerification - mfa - prefs { - data - } - targets { - _id - _createdAt - _updatedAt - name - userId - providerId - providerType - identifier - expired - } - accessedAt - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/account/update-m-f-a-challenge.md b/docs/examples/1.8.x/server-graphql/examples/account/update-m-f-a-challenge.md deleted file mode 100644 index bf389f1eff..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/account/update-m-f-a-challenge.md +++ /dev/null @@ -1,36 +0,0 @@ -mutation { - accountUpdateMFAChallenge( - challengeId: "<CHALLENGE_ID>", - otp: "<OTP>" - ) { - _id - _createdAt - _updatedAt - userId - expire - provider - providerUid - providerAccessToken - providerAccessTokenExpiry - providerRefreshToken - ip - osCode - osName - osVersion - clientType - clientCode - clientName - clientVersion - clientEngine - clientEngineVersion - deviceName - deviceBrand - deviceModel - countryCode - countryName - current - factors - secret - mfaUpdatedAt - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/account/update-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-graphql/examples/account/update-m-f-a-recovery-codes.md deleted file mode 100644 index dc46be71ad..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/account/update-m-f-a-recovery-codes.md +++ /dev/null @@ -1,5 +0,0 @@ -mutation { - accountUpdateMFARecoveryCodes { - recoveryCodes - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.8.x/server-graphql/examples/account/update-magic-url-session.md similarity index 100% rename from docs/examples/1.8.x/server-graphql/examples/account/update-magic-u-r-l-session.md rename to docs/examples/1.8.x/server-graphql/examples/account/update-magic-url-session.md diff --git a/docs/examples/1.8.x/server-graphql/examples/account/update-mfa-authenticator.md b/docs/examples/1.8.x/server-graphql/examples/account/update-mfa-authenticator.md index 9cfe9150be..b3021b70b8 100644 --- a/docs/examples/1.8.x/server-graphql/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.8.x/server-graphql/examples/account/update-mfa-authenticator.md @@ -1,5 +1,5 @@ mutation { - accountUpdateMfaAuthenticator( + accountUpdateMFAAuthenticator( type: "totp", otp: "<OTP>" ) { diff --git a/docs/examples/1.8.x/server-graphql/examples/account/update-mfa-challenge.md b/docs/examples/1.8.x/server-graphql/examples/account/update-mfa-challenge.md index 0bcec2157f..bf389f1eff 100644 --- a/docs/examples/1.8.x/server-graphql/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.8.x/server-graphql/examples/account/update-mfa-challenge.md @@ -1,5 +1,5 @@ mutation { - accountUpdateMfaChallenge( + accountUpdateMFAChallenge( challengeId: "<CHALLENGE_ID>", otp: "<OTP>" ) { diff --git a/docs/examples/1.8.x/server-graphql/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.8.x/server-graphql/examples/account/update-mfa-recovery-codes.md index e706d2b9d7..dc46be71ad 100644 --- a/docs/examples/1.8.x/server-graphql/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-graphql/examples/account/update-mfa-recovery-codes.md @@ -1,5 +1,5 @@ mutation { - accountUpdateMfaRecoveryCodes { + accountUpdateMFARecoveryCodes { recoveryCodes } } diff --git a/docs/examples/1.8.x/server-graphql/examples/account/update-m-f-a.md b/docs/examples/1.8.x/server-graphql/examples/account/update-mfa.md similarity index 100% rename from docs/examples/1.8.x/server-graphql/examples/account/update-m-f-a.md rename to docs/examples/1.8.x/server-graphql/examples/account/update-mfa.md diff --git a/docs/examples/1.8.x/server-graphql/examples/avatars/get-q-r.md b/docs/examples/1.8.x/server-graphql/examples/avatars/get-q-r.md deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/docs/examples/1.8.x/client-graphql/examples/avatars/get-q-r.md b/docs/examples/1.8.x/server-graphql/examples/avatars/get-qr.md similarity index 100% rename from docs/examples/1.8.x/client-graphql/examples/avatars/get-q-r.md rename to docs/examples/1.8.x/server-graphql/examples/avatars/get-qr.md diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-boolean-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-boolean-column.md deleted file mode 100644 index bd7abcb175..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/create-boolean-column.md +++ /dev/null @@ -1,20 +0,0 @@ -mutation { - gridsCreateBooleanColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - required: false, - default: false, - array: false - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - default - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-database.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-database.md deleted file mode 100644 index 41d37ebdee..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/create-database.md +++ /dev/null @@ -1,13 +0,0 @@ -mutation { - gridsCreateDatabase( - databaseId: "<DATABASE_ID>", - name: "<NAME>", - enabled: false - ) { - _id - name - _createdAt - _updatedAt - enabled - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-datetime-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-datetime-column.md deleted file mode 100644 index aa14c43156..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/create-datetime-column.md +++ /dev/null @@ -1,21 +0,0 @@ -mutation { - gridsCreateDatetimeColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - required: false, - default: "", - array: false - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - format - default - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-email-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-email-column.md deleted file mode 100644 index c9bc913726..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/create-email-column.md +++ /dev/null @@ -1,21 +0,0 @@ -mutation { - gridsCreateEmailColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - required: false, - default: "email@example.com", - array: false - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - format - default - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-enum-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-enum-column.md deleted file mode 100644 index 8ace10f9ac..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/create-enum-column.md +++ /dev/null @@ -1,23 +0,0 @@ -mutation { - gridsCreateEnumColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - elements: [], - required: false, - default: "<DEFAULT>", - array: false - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - elements - format - default - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-float-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-float-column.md deleted file mode 100644 index 92031d03ca..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/create-float-column.md +++ /dev/null @@ -1,24 +0,0 @@ -mutation { - gridsCreateFloatColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - required: false, - min: 0, - max: 0, - default: 0, - array: false - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - min - max - default - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-index.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-index.md deleted file mode 100644 index cc338ddad2..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/create-index.md +++ /dev/null @@ -1,22 +0,0 @@ -mutation { - gridsCreateIndex( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - type: "key", - columns: [], - orders: [], - lengths: [] - ) { - _id - _createdAt - _updatedAt - key - type - status - error - columns - lengths - orders - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-integer-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-integer-column.md deleted file mode 100644 index 735d47c8ac..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/create-integer-column.md +++ /dev/null @@ -1,24 +0,0 @@ -mutation { - gridsCreateIntegerColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - required: false, - min: 0, - max: 0, - default: 0, - array: false - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - min - max - default - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-ip-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-ip-column.md deleted file mode 100644 index 241d308f09..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/create-ip-column.md +++ /dev/null @@ -1,21 +0,0 @@ -mutation { - gridsCreateIpColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - required: false, - default: "", - array: false - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - format - default - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-relationship-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-relationship-column.md deleted file mode 100644 index 2c08478e09..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/create-relationship-column.md +++ /dev/null @@ -1,27 +0,0 @@ -mutation { - gridsCreateRelationshipColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - relatedTableId: "<RELATED_TABLE_ID>", - type: "oneToOne", - twoWay: false, - key: "", - twoWayKey: "", - onDelete: "cascade" - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - relatedTable - relationType - twoWay - twoWayKey - onDelete - side - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-row.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-row.md deleted file mode 100644 index cffb7361f2..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/create-row.md +++ /dev/null @@ -1,18 +0,0 @@ -mutation { - gridsCreateRow( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - rowId: "<ROW_ID>", - data: "{}", - permissions: ["read("any")"] - ) { - _id - _sequence - _tableId - _databaseId - _createdAt - _updatedAt - _permissions - data - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-rows.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-rows.md deleted file mode 100644 index cd134ec201..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/create-rows.md +++ /dev/null @@ -1,19 +0,0 @@ -mutation { - gridsCreateRows( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - rows: [] - ) { - total - rows { - _id - _sequence - _tableId - _databaseId - _createdAt - _updatedAt - _permissions - data - } - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-string-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-string-column.md deleted file mode 100644 index 57b42c6010..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/create-string-column.md +++ /dev/null @@ -1,24 +0,0 @@ -mutation { - gridsCreateStringColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - size: 1, - required: false, - default: "<DEFAULT>", - array: false, - encrypt: false - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - size - default - encrypt - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-table.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-table.md deleted file mode 100644 index 77335ad867..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/create-table.md +++ /dev/null @@ -1,32 +0,0 @@ -mutation { - gridsCreateTable( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - name: "<NAME>", - permissions: ["read("any")"], - rowSecurity: false, - enabled: false - ) { - _id - _createdAt - _updatedAt - _permissions - databaseId - name - enabled - rowSecurity - columns - indexes { - _id - _createdAt - _updatedAt - key - type - status - error - columns - lengths - orders - } - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/create-url-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/create-url-column.md deleted file mode 100644 index 07ca9ab869..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/create-url-column.md +++ /dev/null @@ -1,21 +0,0 @@ -mutation { - gridsCreateUrlColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - required: false, - default: "https://example.com", - array: false - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - format - default - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/decrement-row-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/decrement-row-column.md deleted file mode 100644 index 6b47884a92..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/decrement-row-column.md +++ /dev/null @@ -1,19 +0,0 @@ -mutation { - gridsDecrementRowColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - rowId: "<ROW_ID>", - column: "", - value: 0, - min: 0 - ) { - _id - _sequence - _tableId - _databaseId - _createdAt - _updatedAt - _permissions - data - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/delete-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/delete-column.md deleted file mode 100644 index 0ad25321b5..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/delete-column.md +++ /dev/null @@ -1,9 +0,0 @@ -mutation { - gridsDeleteColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "" - ) { - status - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/delete-database.md b/docs/examples/1.8.x/server-graphql/examples/grids/delete-database.md deleted file mode 100644 index a3e3d1a5bf..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/delete-database.md +++ /dev/null @@ -1,7 +0,0 @@ -mutation { - gridsDeleteDatabase( - databaseId: "<DATABASE_ID>" - ) { - status - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/delete-index.md b/docs/examples/1.8.x/server-graphql/examples/grids/delete-index.md deleted file mode 100644 index 0921aa0aef..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/delete-index.md +++ /dev/null @@ -1,9 +0,0 @@ -mutation { - gridsDeleteIndex( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "" - ) { - status - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/delete-row.md b/docs/examples/1.8.x/server-graphql/examples/grids/delete-row.md deleted file mode 100644 index 40dcbdc219..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/delete-row.md +++ /dev/null @@ -1,9 +0,0 @@ -mutation { - gridsDeleteRow( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - rowId: "<ROW_ID>" - ) { - status - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/delete-rows.md b/docs/examples/1.8.x/server-graphql/examples/grids/delete-rows.md deleted file mode 100644 index 69559934a4..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/delete-rows.md +++ /dev/null @@ -1,19 +0,0 @@ -mutation { - gridsDeleteRows( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - queries: [] - ) { - total - rows { - _id - _sequence - _tableId - _databaseId - _createdAt - _updatedAt - _permissions - data - } - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/delete-table.md b/docs/examples/1.8.x/server-graphql/examples/grids/delete-table.md deleted file mode 100644 index a145be50d9..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/delete-table.md +++ /dev/null @@ -1,8 +0,0 @@ -mutation { - gridsDeleteTable( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>" - ) { - status - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/get-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/get-column.md deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/get-database.md b/docs/examples/1.8.x/server-graphql/examples/grids/get-database.md deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/get-index.md b/docs/examples/1.8.x/server-graphql/examples/grids/get-index.md deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/get-row.md b/docs/examples/1.8.x/server-graphql/examples/grids/get-row.md deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/get-table.md b/docs/examples/1.8.x/server-graphql/examples/grids/get-table.md deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/increment-row-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/increment-row-column.md deleted file mode 100644 index 709e6b2f0d..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/increment-row-column.md +++ /dev/null @@ -1,19 +0,0 @@ -mutation { - gridsIncrementRowColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - rowId: "<ROW_ID>", - column: "", - value: 0, - max: 0 - ) { - _id - _sequence - _tableId - _databaseId - _createdAt - _updatedAt - _permissions - data - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/list-columns.md b/docs/examples/1.8.x/server-graphql/examples/grids/list-columns.md deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/list-databases.md b/docs/examples/1.8.x/server-graphql/examples/grids/list-databases.md deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/list-indexes.md b/docs/examples/1.8.x/server-graphql/examples/grids/list-indexes.md deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/list-rows.md b/docs/examples/1.8.x/server-graphql/examples/grids/list-rows.md deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/list-tables.md b/docs/examples/1.8.x/server-graphql/examples/grids/list-tables.md deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/update-boolean-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-boolean-column.md deleted file mode 100644 index 67c8495471..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/update-boolean-column.md +++ /dev/null @@ -1,20 +0,0 @@ -mutation { - gridsUpdateBooleanColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - required: false, - default: false, - newKey: "" - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - default - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/update-database.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-database.md deleted file mode 100644 index 02c045b9cd..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/update-database.md +++ /dev/null @@ -1,13 +0,0 @@ -mutation { - gridsUpdateDatabase( - databaseId: "<DATABASE_ID>", - name: "<NAME>", - enabled: false - ) { - _id - name - _createdAt - _updatedAt - enabled - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/update-datetime-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-datetime-column.md deleted file mode 100644 index 5e19393c67..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/update-datetime-column.md +++ /dev/null @@ -1,21 +0,0 @@ -mutation { - gridsUpdateDatetimeColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - required: false, - default: "", - newKey: "" - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - format - default - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/update-email-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-email-column.md deleted file mode 100644 index caa6153896..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/update-email-column.md +++ /dev/null @@ -1,21 +0,0 @@ -mutation { - gridsUpdateEmailColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - required: false, - default: "email@example.com", - newKey: "" - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - format - default - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/update-enum-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-enum-column.md deleted file mode 100644 index c3d90f4e23..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/update-enum-column.md +++ /dev/null @@ -1,23 +0,0 @@ -mutation { - gridsUpdateEnumColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - elements: [], - required: false, - default: "<DEFAULT>", - newKey: "" - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - elements - format - default - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/update-float-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-float-column.md deleted file mode 100644 index a6b700ce73..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/update-float-column.md +++ /dev/null @@ -1,24 +0,0 @@ -mutation { - gridsUpdateFloatColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - required: false, - default: 0, - min: 0, - max: 0, - newKey: "" - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - min - max - default - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/update-integer-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-integer-column.md deleted file mode 100644 index fcc53102d1..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/update-integer-column.md +++ /dev/null @@ -1,24 +0,0 @@ -mutation { - gridsUpdateIntegerColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - required: false, - default: 0, - min: 0, - max: 0, - newKey: "" - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - min - max - default - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/update-ip-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-ip-column.md deleted file mode 100644 index f867063151..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/update-ip-column.md +++ /dev/null @@ -1,21 +0,0 @@ -mutation { - gridsUpdateIpColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - required: false, - default: "", - newKey: "" - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - format - default - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/update-relationship-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-relationship-column.md deleted file mode 100644 index e24311b53a..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/update-relationship-column.md +++ /dev/null @@ -1,24 +0,0 @@ -mutation { - gridsUpdateRelationshipColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - onDelete: "cascade", - newKey: "" - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - relatedTable - relationType - twoWay - twoWayKey - onDelete - side - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/update-row.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-row.md deleted file mode 100644 index 2bb105e8c0..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/update-row.md +++ /dev/null @@ -1,18 +0,0 @@ -mutation { - gridsUpdateRow( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - rowId: "<ROW_ID>", - data: "{}", - permissions: ["read("any")"] - ) { - _id - _sequence - _tableId - _databaseId - _createdAt - _updatedAt - _permissions - data - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/update-rows.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-rows.md deleted file mode 100644 index 99df9b0b99..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/update-rows.md +++ /dev/null @@ -1,20 +0,0 @@ -mutation { - gridsUpdateRows( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - data: "{}", - queries: [] - ) { - total - rows { - _id - _sequence - _tableId - _databaseId - _createdAt - _updatedAt - _permissions - data - } - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/update-string-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-string-column.md deleted file mode 100644 index c98f49a807..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/update-string-column.md +++ /dev/null @@ -1,23 +0,0 @@ -mutation { - gridsUpdateStringColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - required: false, - default: "<DEFAULT>", - size: 1, - newKey: "" - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - size - default - encrypt - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/update-table.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-table.md deleted file mode 100644 index cea6d5cfff..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/update-table.md +++ /dev/null @@ -1,32 +0,0 @@ -mutation { - gridsUpdateTable( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - name: "<NAME>", - permissions: ["read("any")"], - rowSecurity: false, - enabled: false - ) { - _id - _createdAt - _updatedAt - _permissions - databaseId - name - enabled - rowSecurity - columns - indexes { - _id - _createdAt - _updatedAt - key - type - status - error - columns - lengths - orders - } - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/update-url-column.md b/docs/examples/1.8.x/server-graphql/examples/grids/update-url-column.md deleted file mode 100644 index c64d93882d..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/update-url-column.md +++ /dev/null @@ -1,21 +0,0 @@ -mutation { - gridsUpdateUrlColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - required: false, - default: "https://example.com", - newKey: "" - ) { - key - type - status - error - required - array - _createdAt - _updatedAt - format - default - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/upsert-row.md b/docs/examples/1.8.x/server-graphql/examples/grids/upsert-row.md deleted file mode 100644 index f8e0606109..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/upsert-row.md +++ /dev/null @@ -1,18 +0,0 @@ -mutation { - gridsUpsertRow( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - rowId: "<ROW_ID>", - data: "{}", - permissions: ["read("any")"] - ) { - _id - _sequence - _tableId - _databaseId - _createdAt - _updatedAt - _permissions - data - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/grids/upsert-rows.md b/docs/examples/1.8.x/server-graphql/examples/grids/upsert-rows.md deleted file mode 100644 index d456e9883d..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/grids/upsert-rows.md +++ /dev/null @@ -1,19 +0,0 @@ -mutation { - gridsUpsertRows( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - rows: [] - ) { - total - rows { - _id - _sequence - _tableId - _databaseId - _createdAt - _updatedAt - _permissions - data - } - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/health/get-d-b.md b/docs/examples/1.8.x/server-graphql/examples/health/get-d-b.md deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/docs/examples/1.8.x/client-graphql/examples/grids/get-row.md b/docs/examples/1.8.x/server-graphql/examples/health/get-db.md similarity index 100% rename from docs/examples/1.8.x/client-graphql/examples/grids/get-row.md rename to docs/examples/1.8.x/server-graphql/examples/health/get-db.md diff --git a/docs/examples/1.8.x/server-graphql/examples/locale/list-countries-e-u.md b/docs/examples/1.8.x/server-graphql/examples/locale/list-countries-e-u.md deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/docs/examples/1.8.x/client-graphql/examples/grids/list-rows.md b/docs/examples/1.8.x/server-graphql/examples/locale/list-countries-eu.md similarity index 100% rename from docs/examples/1.8.x/client-graphql/examples/grids/list-rows.md rename to docs/examples/1.8.x/server-graphql/examples/locale/list-countries-eu.md diff --git a/docs/examples/1.8.x/server-graphql/examples/messaging/create-a-p-n-s-provider.md b/docs/examples/1.8.x/server-graphql/examples/messaging/create-a-p-n-s-provider.md deleted file mode 100644 index 7e2f1480e9..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/messaging/create-a-p-n-s-provider.md +++ /dev/null @@ -1,22 +0,0 @@ -mutation { - messagingCreateAPNSProvider( - providerId: "<PROVIDER_ID>", - name: "<NAME>", - authKey: "<AUTH_KEY>", - authKeyId: "<AUTH_KEY_ID>", - teamId: "<TEAM_ID>", - bundleId: "<BUNDLE_ID>", - sandbox: false, - enabled: false - ) { - _id - _createdAt - _updatedAt - name - provider - enabled - type - credentials - options - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/messaging/create-apns-provider.md b/docs/examples/1.8.x/server-graphql/examples/messaging/create-apns-provider.md index 425b3bb8dc..7e2f1480e9 100644 --- a/docs/examples/1.8.x/server-graphql/examples/messaging/create-apns-provider.md +++ b/docs/examples/1.8.x/server-graphql/examples/messaging/create-apns-provider.md @@ -1,5 +1,5 @@ mutation { - messagingCreateApnsProvider( + messagingCreateAPNSProvider( providerId: "<PROVIDER_ID>", name: "<NAME>", authKey: "<AUTH_KEY>", diff --git a/docs/examples/1.8.x/server-graphql/examples/messaging/create-f-c-m-provider.md b/docs/examples/1.8.x/server-graphql/examples/messaging/create-f-c-m-provider.md deleted file mode 100644 index b2e524536f..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/messaging/create-f-c-m-provider.md +++ /dev/null @@ -1,18 +0,0 @@ -mutation { - messagingCreateFCMProvider( - providerId: "<PROVIDER_ID>", - name: "<NAME>", - serviceAccountJSON: "{}", - enabled: false - ) { - _id - _createdAt - _updatedAt - name - provider - enabled - type - credentials - options - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/messaging/create-fcm-provider.md b/docs/examples/1.8.x/server-graphql/examples/messaging/create-fcm-provider.md index 0aa48a9e2f..b2e524536f 100644 --- a/docs/examples/1.8.x/server-graphql/examples/messaging/create-fcm-provider.md +++ b/docs/examples/1.8.x/server-graphql/examples/messaging/create-fcm-provider.md @@ -1,5 +1,5 @@ mutation { - messagingCreateFcmProvider( + messagingCreateFCMProvider( providerId: "<PROVIDER_ID>", name: "<NAME>", serviceAccountJSON: "{}", diff --git a/docs/examples/1.8.x/server-graphql/examples/messaging/create-msg91provider.md b/docs/examples/1.8.x/server-graphql/examples/messaging/create-msg-91-provider.md similarity index 100% rename from docs/examples/1.8.x/server-graphql/examples/messaging/create-msg91provider.md rename to docs/examples/1.8.x/server-graphql/examples/messaging/create-msg-91-provider.md diff --git a/docs/examples/1.8.x/server-graphql/examples/messaging/create-s-m-s.md b/docs/examples/1.8.x/server-graphql/examples/messaging/create-s-m-s.md deleted file mode 100644 index 1adeff586f..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/messaging/create-s-m-s.md +++ /dev/null @@ -1,25 +0,0 @@ -mutation { - messagingCreateSMS( - messageId: "<MESSAGE_ID>", - content: "<CONTENT>", - topics: [], - users: [], - targets: [], - draft: false, - scheduledAt: "" - ) { - _id - _createdAt - _updatedAt - providerType - topics - users - targets - scheduledAt - deliveredAt - deliveryErrors - deliveredTotal - data - status - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/messaging/create-s-m-t-p-provider.md b/docs/examples/1.8.x/server-graphql/examples/messaging/create-s-m-t-p-provider.md deleted file mode 100644 index ea16765677..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/messaging/create-s-m-t-p-provider.md +++ /dev/null @@ -1,28 +0,0 @@ -mutation { - messagingCreateSMTPProvider( - providerId: "<PROVIDER_ID>", - name: "<NAME>", - host: "<HOST>", - port: 1, - username: "<USERNAME>", - password: "<PASSWORD>", - encryption: "none", - autoTLS: false, - mailer: "<MAILER>", - fromName: "<FROM_NAME>", - fromEmail: "email@example.com", - replyToName: "<REPLY_TO_NAME>", - replyToEmail: "email@example.com", - enabled: false - ) { - _id - _createdAt - _updatedAt - name - provider - enabled - type - credentials - options - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/messaging/create-sms.md b/docs/examples/1.8.x/server-graphql/examples/messaging/create-sms.md index 99af83b154..1adeff586f 100644 --- a/docs/examples/1.8.x/server-graphql/examples/messaging/create-sms.md +++ b/docs/examples/1.8.x/server-graphql/examples/messaging/create-sms.md @@ -1,5 +1,5 @@ mutation { - messagingCreateSms( + messagingCreateSMS( messageId: "<MESSAGE_ID>", content: "<CONTENT>", topics: [], diff --git a/docs/examples/1.8.x/server-graphql/examples/messaging/create-smtp-provider.md b/docs/examples/1.8.x/server-graphql/examples/messaging/create-smtp-provider.md index b7b24bc1a5..ea16765677 100644 --- a/docs/examples/1.8.x/server-graphql/examples/messaging/create-smtp-provider.md +++ b/docs/examples/1.8.x/server-graphql/examples/messaging/create-smtp-provider.md @@ -1,5 +1,5 @@ mutation { - messagingCreateSmtpProvider( + messagingCreateSMTPProvider( providerId: "<PROVIDER_ID>", name: "<NAME>", host: "<HOST>", diff --git a/docs/examples/1.8.x/server-graphql/examples/messaging/update-a-p-n-s-provider.md b/docs/examples/1.8.x/server-graphql/examples/messaging/update-a-p-n-s-provider.md deleted file mode 100644 index c1eb27aaeb..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/messaging/update-a-p-n-s-provider.md +++ /dev/null @@ -1,22 +0,0 @@ -mutation { - messagingUpdateAPNSProvider( - providerId: "<PROVIDER_ID>", - name: "<NAME>", - enabled: false, - authKey: "<AUTH_KEY>", - authKeyId: "<AUTH_KEY_ID>", - teamId: "<TEAM_ID>", - bundleId: "<BUNDLE_ID>", - sandbox: false - ) { - _id - _createdAt - _updatedAt - name - provider - enabled - type - credentials - options - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/messaging/update-apns-provider.md b/docs/examples/1.8.x/server-graphql/examples/messaging/update-apns-provider.md index b3d6e8745e..c1eb27aaeb 100644 --- a/docs/examples/1.8.x/server-graphql/examples/messaging/update-apns-provider.md +++ b/docs/examples/1.8.x/server-graphql/examples/messaging/update-apns-provider.md @@ -1,5 +1,5 @@ mutation { - messagingUpdateApnsProvider( + messagingUpdateAPNSProvider( providerId: "<PROVIDER_ID>", name: "<NAME>", enabled: false, diff --git a/docs/examples/1.8.x/server-graphql/examples/messaging/update-f-c-m-provider.md b/docs/examples/1.8.x/server-graphql/examples/messaging/update-f-c-m-provider.md deleted file mode 100644 index db3be401ee..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/messaging/update-f-c-m-provider.md +++ /dev/null @@ -1,18 +0,0 @@ -mutation { - messagingUpdateFCMProvider( - providerId: "<PROVIDER_ID>", - name: "<NAME>", - enabled: false, - serviceAccountJSON: "{}" - ) { - _id - _createdAt - _updatedAt - name - provider - enabled - type - credentials - options - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/messaging/update-fcm-provider.md b/docs/examples/1.8.x/server-graphql/examples/messaging/update-fcm-provider.md index a0b3f9e3da..db3be401ee 100644 --- a/docs/examples/1.8.x/server-graphql/examples/messaging/update-fcm-provider.md +++ b/docs/examples/1.8.x/server-graphql/examples/messaging/update-fcm-provider.md @@ -1,5 +1,5 @@ mutation { - messagingUpdateFcmProvider( + messagingUpdateFCMProvider( providerId: "<PROVIDER_ID>", name: "<NAME>", enabled: false, diff --git a/docs/examples/1.8.x/server-graphql/examples/messaging/update-msg91provider.md b/docs/examples/1.8.x/server-graphql/examples/messaging/update-msg-91-provider.md similarity index 100% rename from docs/examples/1.8.x/server-graphql/examples/messaging/update-msg91provider.md rename to docs/examples/1.8.x/server-graphql/examples/messaging/update-msg-91-provider.md diff --git a/docs/examples/1.8.x/server-graphql/examples/messaging/update-s-m-s.md b/docs/examples/1.8.x/server-graphql/examples/messaging/update-s-m-s.md deleted file mode 100644 index e056cd6d8a..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/messaging/update-s-m-s.md +++ /dev/null @@ -1,25 +0,0 @@ -mutation { - messagingUpdateSMS( - messageId: "<MESSAGE_ID>", - topics: [], - users: [], - targets: [], - content: "<CONTENT>", - draft: false, - scheduledAt: "" - ) { - _id - _createdAt - _updatedAt - providerType - topics - users - targets - scheduledAt - deliveredAt - deliveryErrors - deliveredTotal - data - status - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/messaging/update-s-m-t-p-provider.md b/docs/examples/1.8.x/server-graphql/examples/messaging/update-s-m-t-p-provider.md deleted file mode 100644 index dada7d3fb3..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/messaging/update-s-m-t-p-provider.md +++ /dev/null @@ -1,28 +0,0 @@ -mutation { - messagingUpdateSMTPProvider( - providerId: "<PROVIDER_ID>", - name: "<NAME>", - host: "<HOST>", - port: 1, - username: "<USERNAME>", - password: "<PASSWORD>", - encryption: "none", - autoTLS: false, - mailer: "<MAILER>", - fromName: "<FROM_NAME>", - fromEmail: "email@example.com", - replyToName: "<REPLY_TO_NAME>", - replyToEmail: "<REPLY_TO_EMAIL>", - enabled: false - ) { - _id - _createdAt - _updatedAt - name - provider - enabled - type - credentials - options - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/messaging/update-sms.md b/docs/examples/1.8.x/server-graphql/examples/messaging/update-sms.md index 7b45f09abc..e056cd6d8a 100644 --- a/docs/examples/1.8.x/server-graphql/examples/messaging/update-sms.md +++ b/docs/examples/1.8.x/server-graphql/examples/messaging/update-sms.md @@ -1,5 +1,5 @@ mutation { - messagingUpdateSms( + messagingUpdateSMS( messageId: "<MESSAGE_ID>", topics: [], users: [], diff --git a/docs/examples/1.8.x/server-graphql/examples/messaging/update-smtp-provider.md b/docs/examples/1.8.x/server-graphql/examples/messaging/update-smtp-provider.md index a091685655..dada7d3fb3 100644 --- a/docs/examples/1.8.x/server-graphql/examples/messaging/update-smtp-provider.md +++ b/docs/examples/1.8.x/server-graphql/examples/messaging/update-smtp-provider.md @@ -1,5 +1,5 @@ mutation { - messagingUpdateSmtpProvider( + messagingUpdateSMTPProvider( providerId: "<PROVIDER_ID>", name: "<NAME>", host: "<HOST>", diff --git a/docs/examples/1.8.x/server-graphql/examples/users/create-argon2user.md b/docs/examples/1.8.x/server-graphql/examples/users/create-argon-2-user.md similarity index 100% rename from docs/examples/1.8.x/server-graphql/examples/users/create-argon2user.md rename to docs/examples/1.8.x/server-graphql/examples/users/create-argon-2-user.md diff --git a/docs/examples/1.8.x/server-graphql/examples/users/create-j-w-t.md b/docs/examples/1.8.x/server-graphql/examples/users/create-jwt.md similarity index 100% rename from docs/examples/1.8.x/server-graphql/examples/users/create-j-w-t.md rename to docs/examples/1.8.x/server-graphql/examples/users/create-jwt.md diff --git a/docs/examples/1.8.x/server-graphql/examples/users/create-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-graphql/examples/users/create-m-f-a-recovery-codes.md deleted file mode 100644 index 5c329f5e0b..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/users/create-m-f-a-recovery-codes.md +++ /dev/null @@ -1,7 +0,0 @@ -mutation { - usersCreateMFARecoveryCodes( - userId: "<USER_ID>" - ) { - recoveryCodes - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/users/create-m-d5user.md b/docs/examples/1.8.x/server-graphql/examples/users/create-md-5-user.md similarity index 100% rename from docs/examples/1.8.x/server-graphql/examples/users/create-m-d5user.md rename to docs/examples/1.8.x/server-graphql/examples/users/create-md-5-user.md diff --git a/docs/examples/1.8.x/server-graphql/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.8.x/server-graphql/examples/users/create-mfa-recovery-codes.md index 7c4f1c5575..5c329f5e0b 100644 --- a/docs/examples/1.8.x/server-graphql/examples/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-graphql/examples/users/create-mfa-recovery-codes.md @@ -1,5 +1,5 @@ mutation { - usersCreateMfaRecoveryCodes( + usersCreateMFARecoveryCodes( userId: "<USER_ID>" ) { recoveryCodes diff --git a/docs/examples/1.8.x/server-graphql/examples/users/create-p-h-pass-user.md b/docs/examples/1.8.x/server-graphql/examples/users/create-ph-pass-user.md similarity index 100% rename from docs/examples/1.8.x/server-graphql/examples/users/create-p-h-pass-user.md rename to docs/examples/1.8.x/server-graphql/examples/users/create-ph-pass-user.md diff --git a/docs/examples/1.8.x/server-graphql/examples/users/create-s-h-a-user.md b/docs/examples/1.8.x/server-graphql/examples/users/create-sha-user.md similarity index 100% rename from docs/examples/1.8.x/server-graphql/examples/users/create-s-h-a-user.md rename to docs/examples/1.8.x/server-graphql/examples/users/create-sha-user.md diff --git a/docs/examples/1.8.x/server-graphql/examples/users/delete-m-f-a-authenticator.md b/docs/examples/1.8.x/server-graphql/examples/users/delete-m-f-a-authenticator.md deleted file mode 100644 index 2e7ea73733..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/users/delete-m-f-a-authenticator.md +++ /dev/null @@ -1,8 +0,0 @@ -mutation { - usersDeleteMFAAuthenticator( - userId: "<USER_ID>", - type: "totp" - ) { - status - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/users/delete-mfa-authenticator.md b/docs/examples/1.8.x/server-graphql/examples/users/delete-mfa-authenticator.md index 43f73404f0..2e7ea73733 100644 --- a/docs/examples/1.8.x/server-graphql/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/1.8.x/server-graphql/examples/users/delete-mfa-authenticator.md @@ -1,5 +1,5 @@ mutation { - usersDeleteMfaAuthenticator( + usersDeleteMFAAuthenticator( userId: "<USER_ID>", type: "totp" ) { diff --git a/docs/examples/1.8.x/server-graphql/examples/users/get-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-graphql/examples/users/get-m-f-a-recovery-codes.md deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/docs/examples/1.8.x/server-graphql/examples/users/list-m-f-a-factors.md b/docs/examples/1.8.x/server-graphql/examples/users/list-m-f-a-factors.md deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/docs/examples/1.8.x/server-graphql/examples/users/update-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-graphql/examples/users/update-m-f-a-recovery-codes.md deleted file mode 100644 index 8881b1ad96..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/users/update-m-f-a-recovery-codes.md +++ /dev/null @@ -1,7 +0,0 @@ -mutation { - usersUpdateMFARecoveryCodes( - userId: "<USER_ID>" - ) { - recoveryCodes - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/users/update-m-f-a.md b/docs/examples/1.8.x/server-graphql/examples/users/update-m-f-a.md deleted file mode 100644 index 8c8f0a3787..0000000000 --- a/docs/examples/1.8.x/server-graphql/examples/users/update-m-f-a.md +++ /dev/null @@ -1,38 +0,0 @@ -mutation { - usersUpdateMFA( - userId: "<USER_ID>", - mfa: false - ) { - _id - _createdAt - _updatedAt - name - password - hash - hashOptions - registration - status - labels - passwordUpdate - email - phone - emailVerification - phoneVerification - mfa - prefs { - data - } - targets { - _id - _createdAt - _updatedAt - name - userId - providerId - providerType - identifier - expired - } - accessedAt - } -} diff --git a/docs/examples/1.8.x/server-graphql/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.8.x/server-graphql/examples/users/update-mfa-recovery-codes.md index dbef2bd345..8881b1ad96 100644 --- a/docs/examples/1.8.x/server-graphql/examples/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-graphql/examples/users/update-mfa-recovery-codes.md @@ -1,5 +1,5 @@ mutation { - usersUpdateMfaRecoveryCodes( + usersUpdateMFARecoveryCodes( userId: "<USER_ID>" ) { recoveryCodes diff --git a/docs/examples/1.8.x/server-graphql/examples/users/update-mfa.md b/docs/examples/1.8.x/server-graphql/examples/users/update-mfa.md index ac09ea19a4..8c8f0a3787 100644 --- a/docs/examples/1.8.x/server-graphql/examples/users/update-mfa.md +++ b/docs/examples/1.8.x/server-graphql/examples/users/update-mfa.md @@ -1,5 +1,5 @@ mutation { - usersUpdateMfa( + usersUpdateMFA( userId: "<USER_ID>", mfa: false ) { diff --git a/docs/examples/1.8.x/server-kotlin/java/account/create-j-w-t.md b/docs/examples/1.8.x/server-kotlin/java/account/create-jwt.md similarity index 100% rename from docs/examples/1.8.x/server-kotlin/java/account/create-j-w-t.md rename to docs/examples/1.8.x/server-kotlin/java/account/create-jwt.md diff --git a/docs/examples/1.8.x/server-kotlin/java/account/create-m-f-a-authenticator.md b/docs/examples/1.8.x/server-kotlin/java/account/create-m-f-a-authenticator.md deleted file mode 100644 index d38ddd3b44..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/account/create-m-f-a-authenticator.md +++ /dev/null @@ -1,24 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Account; -import io.appwrite.enums.AuthenticatorType; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setSession(""); // The user session to authenticate with - -Account account = new Account(client); - -account.createMFAAuthenticator( - AuthenticatorType.TOTP, // type - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/account/create-m-f-a-challenge.md b/docs/examples/1.8.x/server-kotlin/java/account/create-m-f-a-challenge.md deleted file mode 100644 index 5c048cbace..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/account/create-m-f-a-challenge.md +++ /dev/null @@ -1,23 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Account; -import io.appwrite.enums.AuthenticationFactor; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>"); // Your project ID - -Account account = new Account(client); - -account.createMFAChallenge( - AuthenticationFactor.EMAIL, // factor - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/account/create-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-kotlin/java/account/create-m-f-a-recovery-codes.md deleted file mode 100644 index 6a47a17729..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/account/create-m-f-a-recovery-codes.md +++ /dev/null @@ -1,19 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Account; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setSession(""); // The user session to authenticate with - -Account account = new Account(client); - -account.createMFARecoveryCodes(new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); -})); diff --git a/docs/examples/1.8.x/server-kotlin/java/account/create-magic-u-r-l-token.md b/docs/examples/1.8.x/server-kotlin/java/account/create-magic-url-token.md similarity index 100% rename from docs/examples/1.8.x/server-kotlin/java/account/create-magic-u-r-l-token.md rename to docs/examples/1.8.x/server-kotlin/java/account/create-magic-url-token.md diff --git a/docs/examples/1.8.x/server-kotlin/java/account/create-mfa-authenticator.md b/docs/examples/1.8.x/server-kotlin/java/account/create-mfa-authenticator.md index ee37e48794..d38ddd3b44 100644 --- a/docs/examples/1.8.x/server-kotlin/java/account/create-mfa-authenticator.md +++ b/docs/examples/1.8.x/server-kotlin/java/account/create-mfa-authenticator.md @@ -10,7 +10,7 @@ Client client = new Client() Account account = new Account(client); -account.createMfaAuthenticator( +account.createMFAAuthenticator( AuthenticatorType.TOTP, // type new CoroutineCallback<>((result, error) -> { if (error != null) { diff --git a/docs/examples/1.8.x/server-kotlin/java/account/create-mfa-challenge.md b/docs/examples/1.8.x/server-kotlin/java/account/create-mfa-challenge.md index 4a07e26e49..5c048cbace 100644 --- a/docs/examples/1.8.x/server-kotlin/java/account/create-mfa-challenge.md +++ b/docs/examples/1.8.x/server-kotlin/java/account/create-mfa-challenge.md @@ -9,7 +9,7 @@ Client client = new Client() Account account = new Account(client); -account.createMfaChallenge( +account.createMFAChallenge( AuthenticationFactor.EMAIL, // factor new CoroutineCallback<>((result, error) -> { if (error != null) { diff --git a/docs/examples/1.8.x/server-kotlin/java/account/create-mfa-recovery-codes.md b/docs/examples/1.8.x/server-kotlin/java/account/create-mfa-recovery-codes.md index eb76cdca9b..6a47a17729 100644 --- a/docs/examples/1.8.x/server-kotlin/java/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-kotlin/java/account/create-mfa-recovery-codes.md @@ -9,7 +9,7 @@ Client client = new Client() Account account = new Account(client); -account.createMfaRecoveryCodes(new CoroutineCallback<>((result, error) -> { +account.createMFARecoveryCodes(new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); return; diff --git a/docs/examples/1.8.x/server-kotlin/java/account/create-o-auth2token.md b/docs/examples/1.8.x/server-kotlin/java/account/create-o-auth-2-token.md similarity index 100% rename from docs/examples/1.8.x/server-kotlin/java/account/create-o-auth2token.md rename to docs/examples/1.8.x/server-kotlin/java/account/create-o-auth-2-token.md diff --git a/docs/examples/1.8.x/server-kotlin/java/account/delete-m-f-a-authenticator.md b/docs/examples/1.8.x/server-kotlin/java/account/delete-m-f-a-authenticator.md deleted file mode 100644 index 20a6acda53..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/account/delete-m-f-a-authenticator.md +++ /dev/null @@ -1,24 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Account; -import io.appwrite.enums.AuthenticatorType; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setSession(""); // The user session to authenticate with - -Account account = new Account(client); - -account.deleteMFAAuthenticator( - AuthenticatorType.TOTP, // type - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/account/delete-mfa-authenticator.md b/docs/examples/1.8.x/server-kotlin/java/account/delete-mfa-authenticator.md index 06835f6680..20a6acda53 100644 --- a/docs/examples/1.8.x/server-kotlin/java/account/delete-mfa-authenticator.md +++ b/docs/examples/1.8.x/server-kotlin/java/account/delete-mfa-authenticator.md @@ -10,7 +10,7 @@ Client client = new Client() Account account = new Account(client); -account.deleteMfaAuthenticator( +account.deleteMFAAuthenticator( AuthenticatorType.TOTP, // type new CoroutineCallback<>((result, error) -> { if (error != null) { diff --git a/docs/examples/1.8.x/server-kotlin/java/account/get-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-kotlin/java/account/get-m-f-a-recovery-codes.md deleted file mode 100644 index 813a0a62c0..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/account/get-m-f-a-recovery-codes.md +++ /dev/null @@ -1,19 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Account; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setSession(""); // The user session to authenticate with - -Account account = new Account(client); - -account.getMFARecoveryCodes(new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); -})); diff --git a/docs/examples/1.8.x/server-kotlin/java/account/get-mfa-recovery-codes.md b/docs/examples/1.8.x/server-kotlin/java/account/get-mfa-recovery-codes.md index c818c3ea74..813a0a62c0 100644 --- a/docs/examples/1.8.x/server-kotlin/java/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-kotlin/java/account/get-mfa-recovery-codes.md @@ -9,7 +9,7 @@ Client client = new Client() Account account = new Account(client); -account.getMfaRecoveryCodes(new CoroutineCallback<>((result, error) -> { +account.getMFARecoveryCodes(new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); return; diff --git a/docs/examples/1.8.x/server-kotlin/java/account/list-m-f-a-factors.md b/docs/examples/1.8.x/server-kotlin/java/account/list-m-f-a-factors.md deleted file mode 100644 index 0bdc378b08..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/account/list-m-f-a-factors.md +++ /dev/null @@ -1,19 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Account; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setSession(""); // The user session to authenticate with - -Account account = new Account(client); - -account.listMFAFactors(new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); -})); diff --git a/docs/examples/1.8.x/server-kotlin/java/account/list-mfa-factors.md b/docs/examples/1.8.x/server-kotlin/java/account/list-mfa-factors.md index d9f90a4127..0bdc378b08 100644 --- a/docs/examples/1.8.x/server-kotlin/java/account/list-mfa-factors.md +++ b/docs/examples/1.8.x/server-kotlin/java/account/list-mfa-factors.md @@ -9,7 +9,7 @@ Client client = new Client() Account account = new Account(client); -account.listMfaFactors(new CoroutineCallback<>((result, error) -> { +account.listMFAFactors(new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); return; diff --git a/docs/examples/1.8.x/server-kotlin/java/account/update-m-f-a-authenticator.md b/docs/examples/1.8.x/server-kotlin/java/account/update-m-f-a-authenticator.md deleted file mode 100644 index 87e3852ccd..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/account/update-m-f-a-authenticator.md +++ /dev/null @@ -1,25 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Account; -import io.appwrite.enums.AuthenticatorType; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setSession(""); // The user session to authenticate with - -Account account = new Account(client); - -account.updateMFAAuthenticator( - AuthenticatorType.TOTP, // type - "<OTP>", // otp - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/account/update-m-f-a-challenge.md b/docs/examples/1.8.x/server-kotlin/java/account/update-m-f-a-challenge.md deleted file mode 100644 index 5e1bebe629..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/account/update-m-f-a-challenge.md +++ /dev/null @@ -1,24 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Account; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setSession(""); // The user session to authenticate with - -Account account = new Account(client); - -account.updateMFAChallenge( - "<CHALLENGE_ID>", // challengeId - "<OTP>", // otp - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/account/update-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-kotlin/java/account/update-m-f-a-recovery-codes.md deleted file mode 100644 index 7c303ddc64..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/account/update-m-f-a-recovery-codes.md +++ /dev/null @@ -1,19 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Account; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setSession(""); // The user session to authenticate with - -Account account = new Account(client); - -account.updateMFARecoveryCodes(new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); -})); diff --git a/docs/examples/1.8.x/server-kotlin/java/account/update-magic-u-r-l-session.md b/docs/examples/1.8.x/server-kotlin/java/account/update-magic-url-session.md similarity index 100% rename from docs/examples/1.8.x/server-kotlin/java/account/update-magic-u-r-l-session.md rename to docs/examples/1.8.x/server-kotlin/java/account/update-magic-url-session.md diff --git a/docs/examples/1.8.x/server-kotlin/java/account/update-mfa-authenticator.md b/docs/examples/1.8.x/server-kotlin/java/account/update-mfa-authenticator.md index 947c85a244..87e3852ccd 100644 --- a/docs/examples/1.8.x/server-kotlin/java/account/update-mfa-authenticator.md +++ b/docs/examples/1.8.x/server-kotlin/java/account/update-mfa-authenticator.md @@ -10,7 +10,7 @@ Client client = new Client() Account account = new Account(client); -account.updateMfaAuthenticator( +account.updateMFAAuthenticator( AuthenticatorType.TOTP, // type "<OTP>", // otp new CoroutineCallback<>((result, error) -> { diff --git a/docs/examples/1.8.x/server-kotlin/java/account/update-mfa-challenge.md b/docs/examples/1.8.x/server-kotlin/java/account/update-mfa-challenge.md index b9b0ae9db5..5e1bebe629 100644 --- a/docs/examples/1.8.x/server-kotlin/java/account/update-mfa-challenge.md +++ b/docs/examples/1.8.x/server-kotlin/java/account/update-mfa-challenge.md @@ -9,7 +9,7 @@ Client client = new Client() Account account = new Account(client); -account.updateMfaChallenge( +account.updateMFAChallenge( "<CHALLENGE_ID>", // challengeId "<OTP>", // otp new CoroutineCallback<>((result, error) -> { diff --git a/docs/examples/1.8.x/server-kotlin/java/account/update-mfa-recovery-codes.md b/docs/examples/1.8.x/server-kotlin/java/account/update-mfa-recovery-codes.md index 4b3e52700b..7c303ddc64 100644 --- a/docs/examples/1.8.x/server-kotlin/java/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-kotlin/java/account/update-mfa-recovery-codes.md @@ -9,7 +9,7 @@ Client client = new Client() Account account = new Account(client); -account.updateMfaRecoveryCodes(new CoroutineCallback<>((result, error) -> { +account.updateMFARecoveryCodes(new CoroutineCallback<>((result, error) -> { if (error != null) { error.printStackTrace(); return; diff --git a/docs/examples/1.8.x/server-kotlin/java/account/update-m-f-a.md b/docs/examples/1.8.x/server-kotlin/java/account/update-mfa.md similarity index 100% rename from docs/examples/1.8.x/server-kotlin/java/account/update-m-f-a.md rename to docs/examples/1.8.x/server-kotlin/java/account/update-mfa.md diff --git a/docs/examples/1.8.x/server-kotlin/java/avatars/get-q-r.md b/docs/examples/1.8.x/server-kotlin/java/avatars/get-qr.md similarity index 100% rename from docs/examples/1.8.x/server-kotlin/java/avatars/get-q-r.md rename to docs/examples/1.8.x/server-kotlin/java/avatars/get-qr.md diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-boolean-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-boolean-column.md deleted file mode 100644 index 2981fc8cf4..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/create-boolean-column.md +++ /dev/null @@ -1,28 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -grids.createBooleanColumn( - "<DATABASE_ID>", // databaseId - "<TABLE_ID>", // tableId - "", // key - false, // required - false, // default (optional) - false, // array (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-database.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-database.md deleted file mode 100644 index 4c6155962e..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/create-database.md +++ /dev/null @@ -1,25 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -grids.createDatabase( - "<DATABASE_ID>", // databaseId - "<NAME>", // name - false, // enabled (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-datetime-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-datetime-column.md deleted file mode 100644 index 7389ea9a94..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/create-datetime-column.md +++ /dev/null @@ -1,28 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -grids.createDatetimeColumn( - "<DATABASE_ID>", // databaseId - "<TABLE_ID>", // tableId - "", // key - false, // required - "", // default (optional) - false, // array (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-email-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-email-column.md deleted file mode 100644 index be481047e1..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/create-email-column.md +++ /dev/null @@ -1,28 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -grids.createEmailColumn( - "<DATABASE_ID>", // databaseId - "<TABLE_ID>", // tableId - "", // key - false, // required - "email@example.com", // default (optional) - false, // array (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-enum-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-enum-column.md deleted file mode 100644 index 33c6b63e27..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/create-enum-column.md +++ /dev/null @@ -1,29 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -grids.createEnumColumn( - "<DATABASE_ID>", // databaseId - "<TABLE_ID>", // tableId - "", // key - listOf(), // elements - false, // required - "<DEFAULT>", // default (optional) - false, // array (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-float-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-float-column.md deleted file mode 100644 index d66f1b5c60..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/create-float-column.md +++ /dev/null @@ -1,30 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -grids.createFloatColumn( - "<DATABASE_ID>", // databaseId - "<TABLE_ID>", // tableId - "", // key - false, // required - 0, // min (optional) - 0, // max (optional) - 0, // default (optional) - false, // array (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-index.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-index.md deleted file mode 100644 index 670310bb66..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/create-index.md +++ /dev/null @@ -1,30 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; -import io.appwrite.enums.IndexType; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -grids.createIndex( - "<DATABASE_ID>", // databaseId - "<TABLE_ID>", // tableId - "", // key - IndexType.KEY, // type - listOf(), // columns - listOf(), // orders (optional) - listOf(), // lengths (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-integer-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-integer-column.md deleted file mode 100644 index 342654ef1a..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/create-integer-column.md +++ /dev/null @@ -1,30 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -grids.createIntegerColumn( - "<DATABASE_ID>", // databaseId - "<TABLE_ID>", // tableId - "", // key - false, // required - 0, // min (optional) - 0, // max (optional) - 0, // default (optional) - false, // array (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-ip-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-ip-column.md deleted file mode 100644 index d72e7dd59d..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/create-ip-column.md +++ /dev/null @@ -1,28 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -grids.createIpColumn( - "<DATABASE_ID>", // databaseId - "<TABLE_ID>", // tableId - "", // key - false, // required - "", // default (optional) - false, // array (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-relationship-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-relationship-column.md deleted file mode 100644 index 2d1c5fb22a..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/create-relationship-column.md +++ /dev/null @@ -1,31 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; -import io.appwrite.enums.RelationshipType; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -grids.createRelationshipColumn( - "<DATABASE_ID>", // databaseId - "<TABLE_ID>", // tableId - "<RELATED_TABLE_ID>", // relatedTableId - RelationshipType.ONETOONE, // type - false, // twoWay (optional) - "", // key (optional) - "", // twoWayKey (optional) - RelationMutate.CASCADE, // onDelete (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-row.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-row.md deleted file mode 100644 index 6b954814c0..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/create-row.md +++ /dev/null @@ -1,27 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setSession(""); // The user session to authenticate with - -Grids grids = new Grids(client); - -grids.createRow( - "<DATABASE_ID>", // databaseId - "<TABLE_ID>", // tableId - "<ROW_ID>", // rowId - mapOf( "a" to "b" ), // data - listOf("read("any")"), // permissions (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-rows.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-rows.md deleted file mode 100644 index a55855d8f5..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/create-rows.md +++ /dev/null @@ -1,25 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -grids.createRows( - "<DATABASE_ID>", // databaseId - "<TABLE_ID>", // tableId - listOf(), // rows - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-string-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-string-column.md deleted file mode 100644 index b819afb4b4..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/create-string-column.md +++ /dev/null @@ -1,30 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -grids.createStringColumn( - "<DATABASE_ID>", // databaseId - "<TABLE_ID>", // tableId - "", // key - 1, // size - false, // required - "<DEFAULT>", // default (optional) - false, // array (optional) - false, // encrypt (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-table.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-table.md deleted file mode 100644 index aa98b81de6..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/create-table.md +++ /dev/null @@ -1,28 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -grids.createTable( - "<DATABASE_ID>", // databaseId - "<TABLE_ID>", // tableId - "<NAME>", // name - listOf("read("any")"), // permissions (optional) - false, // rowSecurity (optional) - false, // enabled (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/create-url-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/create-url-column.md deleted file mode 100644 index d8761440b3..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/create-url-column.md +++ /dev/null @@ -1,28 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -grids.createUrlColumn( - "<DATABASE_ID>", // databaseId - "<TABLE_ID>", // tableId - "", // key - false, // required - "https://example.com", // default (optional) - false, // array (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/decrement-row-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/decrement-row-column.md deleted file mode 100644 index 407ea83f81..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/decrement-row-column.md +++ /dev/null @@ -1,28 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -grids.decrementRowColumn( - "<DATABASE_ID>", // databaseId - "<TABLE_ID>", // tableId - "<ROW_ID>", // rowId - "", // column - 0, // value (optional) - 0, // min (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/delete-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/delete-column.md deleted file mode 100644 index cc3c40fba7..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/delete-column.md +++ /dev/null @@ -1,25 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -grids.deleteColumn( - "<DATABASE_ID>", // databaseId - "<TABLE_ID>", // tableId - "", // key - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/delete-database.md b/docs/examples/1.8.x/server-kotlin/java/grids/delete-database.md deleted file mode 100644 index fca41e75ea..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/delete-database.md +++ /dev/null @@ -1,23 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -grids.deleteDatabase( - "<DATABASE_ID>", // databaseId - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/delete-index.md b/docs/examples/1.8.x/server-kotlin/java/grids/delete-index.md deleted file mode 100644 index 43449e908f..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/delete-index.md +++ /dev/null @@ -1,25 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -grids.deleteIndex( - "<DATABASE_ID>", // databaseId - "<TABLE_ID>", // tableId - "", // key - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/delete-row.md b/docs/examples/1.8.x/server-kotlin/java/grids/delete-row.md deleted file mode 100644 index cb812bac12..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/delete-row.md +++ /dev/null @@ -1,25 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setSession(""); // The user session to authenticate with - -Grids grids = new Grids(client); - -grids.deleteRow( - "<DATABASE_ID>", // databaseId - "<TABLE_ID>", // tableId - "<ROW_ID>", // rowId - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/delete-rows.md b/docs/examples/1.8.x/server-kotlin/java/grids/delete-rows.md deleted file mode 100644 index 2425af9e8c..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/delete-rows.md +++ /dev/null @@ -1,25 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -grids.deleteRows( - "<DATABASE_ID>", // databaseId - "<TABLE_ID>", // tableId - listOf(), // queries (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/delete-table.md b/docs/examples/1.8.x/server-kotlin/java/grids/delete-table.md deleted file mode 100644 index dbbb4781ba..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/delete-table.md +++ /dev/null @@ -1,24 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -grids.deleteTable( - "<DATABASE_ID>", // databaseId - "<TABLE_ID>", // tableId - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/get-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/get-column.md deleted file mode 100644 index 1d630f17d7..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/get-column.md +++ /dev/null @@ -1,25 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -grids.getColumn( - "<DATABASE_ID>", // databaseId - "<TABLE_ID>", // tableId - "", // key - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/get-database.md b/docs/examples/1.8.x/server-kotlin/java/grids/get-database.md deleted file mode 100644 index bc7eea4dbb..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/get-database.md +++ /dev/null @@ -1,23 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -grids.getDatabase( - "<DATABASE_ID>", // databaseId - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/get-index.md b/docs/examples/1.8.x/server-kotlin/java/grids/get-index.md deleted file mode 100644 index 14163c34a9..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/get-index.md +++ /dev/null @@ -1,25 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -grids.getIndex( - "<DATABASE_ID>", // databaseId - "<TABLE_ID>", // tableId - "", // key - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/get-row.md b/docs/examples/1.8.x/server-kotlin/java/grids/get-row.md deleted file mode 100644 index e9d89c92b8..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/get-row.md +++ /dev/null @@ -1,26 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setSession(""); // The user session to authenticate with - -Grids grids = new Grids(client); - -grids.getRow( - "<DATABASE_ID>", // databaseId - "<TABLE_ID>", // tableId - "<ROW_ID>", // rowId - listOf(), // queries (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/get-table.md b/docs/examples/1.8.x/server-kotlin/java/grids/get-table.md deleted file mode 100644 index 39d090219b..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/get-table.md +++ /dev/null @@ -1,24 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -grids.getTable( - "<DATABASE_ID>", // databaseId - "<TABLE_ID>", // tableId - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/increment-row-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/increment-row-column.md deleted file mode 100644 index aaccf0a1a3..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/increment-row-column.md +++ /dev/null @@ -1,28 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -grids.incrementRowColumn( - "<DATABASE_ID>", // databaseId - "<TABLE_ID>", // tableId - "<ROW_ID>", // rowId - "", // column - 0, // value (optional) - 0, // max (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/list-columns.md b/docs/examples/1.8.x/server-kotlin/java/grids/list-columns.md deleted file mode 100644 index f95ca925a6..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/list-columns.md +++ /dev/null @@ -1,25 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -grids.listColumns( - "<DATABASE_ID>", // databaseId - "<TABLE_ID>", // tableId - listOf(), // queries (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/list-databases.md b/docs/examples/1.8.x/server-kotlin/java/grids/list-databases.md deleted file mode 100644 index 97f7263dd4..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/list-databases.md +++ /dev/null @@ -1,24 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -grids.listDatabases( - listOf(), // queries (optional) - "<SEARCH>", // search (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/list-indexes.md b/docs/examples/1.8.x/server-kotlin/java/grids/list-indexes.md deleted file mode 100644 index aa5b11a8c2..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/list-indexes.md +++ /dev/null @@ -1,25 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -grids.listIndexes( - "<DATABASE_ID>", // databaseId - "<TABLE_ID>", // tableId - listOf(), // queries (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/list-rows.md b/docs/examples/1.8.x/server-kotlin/java/grids/list-rows.md deleted file mode 100644 index ccf3d74a25..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/list-rows.md +++ /dev/null @@ -1,25 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setSession(""); // The user session to authenticate with - -Grids grids = new Grids(client); - -grids.listRows( - "<DATABASE_ID>", // databaseId - "<TABLE_ID>", // tableId - listOf(), // queries (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/list-tables.md b/docs/examples/1.8.x/server-kotlin/java/grids/list-tables.md deleted file mode 100644 index 0a60dbeebe..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/list-tables.md +++ /dev/null @@ -1,25 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -grids.listTables( - "<DATABASE_ID>", // databaseId - listOf(), // queries (optional) - "<SEARCH>", // search (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/update-boolean-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-boolean-column.md deleted file mode 100644 index e3d6b71b70..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/update-boolean-column.md +++ /dev/null @@ -1,28 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -grids.updateBooleanColumn( - "<DATABASE_ID>", // databaseId - "<TABLE_ID>", // tableId - "", // key - false, // required - false, // default - "", // newKey (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/update-database.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-database.md deleted file mode 100644 index da9bd7d04b..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/update-database.md +++ /dev/null @@ -1,25 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -grids.updateDatabase( - "<DATABASE_ID>", // databaseId - "<NAME>", // name - false, // enabled (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/update-datetime-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-datetime-column.md deleted file mode 100644 index ede33229ad..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/update-datetime-column.md +++ /dev/null @@ -1,28 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -grids.updateDatetimeColumn( - "<DATABASE_ID>", // databaseId - "<TABLE_ID>", // tableId - "", // key - false, // required - "", // default - "", // newKey (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/update-email-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-email-column.md deleted file mode 100644 index 48803eb4f4..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/update-email-column.md +++ /dev/null @@ -1,28 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -grids.updateEmailColumn( - "<DATABASE_ID>", // databaseId - "<TABLE_ID>", // tableId - "", // key - false, // required - "email@example.com", // default - "", // newKey (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/update-enum-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-enum-column.md deleted file mode 100644 index 63dc238d2e..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/update-enum-column.md +++ /dev/null @@ -1,29 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -grids.updateEnumColumn( - "<DATABASE_ID>", // databaseId - "<TABLE_ID>", // tableId - "", // key - listOf(), // elements - false, // required - "<DEFAULT>", // default - "", // newKey (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/update-float-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-float-column.md deleted file mode 100644 index 9833f5ec8b..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/update-float-column.md +++ /dev/null @@ -1,30 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -grids.updateFloatColumn( - "<DATABASE_ID>", // databaseId - "<TABLE_ID>", // tableId - "", // key - false, // required - 0, // default - 0, // min (optional) - 0, // max (optional) - "", // newKey (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/update-integer-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-integer-column.md deleted file mode 100644 index 059b1328d5..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/update-integer-column.md +++ /dev/null @@ -1,30 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -grids.updateIntegerColumn( - "<DATABASE_ID>", // databaseId - "<TABLE_ID>", // tableId - "", // key - false, // required - 0, // default - 0, // min (optional) - 0, // max (optional) - "", // newKey (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/update-ip-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-ip-column.md deleted file mode 100644 index 8e31214981..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/update-ip-column.md +++ /dev/null @@ -1,28 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -grids.updateIpColumn( - "<DATABASE_ID>", // databaseId - "<TABLE_ID>", // tableId - "", // key - false, // required - "", // default - "", // newKey (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/update-relationship-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-relationship-column.md deleted file mode 100644 index b90b21b164..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/update-relationship-column.md +++ /dev/null @@ -1,27 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -grids.updateRelationshipColumn( - "<DATABASE_ID>", // databaseId - "<TABLE_ID>", // tableId - "", // key - RelationMutate.CASCADE, // onDelete (optional) - "", // newKey (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/update-row.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-row.md deleted file mode 100644 index 5f95afb5f5..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/update-row.md +++ /dev/null @@ -1,27 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setSession(""); // The user session to authenticate with - -Grids grids = new Grids(client); - -grids.updateRow( - "<DATABASE_ID>", // databaseId - "<TABLE_ID>", // tableId - "<ROW_ID>", // rowId - mapOf( "a" to "b" ), // data (optional) - listOf("read("any")"), // permissions (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/update-rows.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-rows.md deleted file mode 100644 index 67c9a1be89..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/update-rows.md +++ /dev/null @@ -1,26 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -grids.updateRows( - "<DATABASE_ID>", // databaseId - "<TABLE_ID>", // tableId - mapOf( "a" to "b" ), // data (optional) - listOf(), // queries (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/update-string-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-string-column.md deleted file mode 100644 index 13e266abc0..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/update-string-column.md +++ /dev/null @@ -1,29 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -grids.updateStringColumn( - "<DATABASE_ID>", // databaseId - "<TABLE_ID>", // tableId - "", // key - false, // required - "<DEFAULT>", // default - 1, // size (optional) - "", // newKey (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/update-table.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-table.md deleted file mode 100644 index 24dfc05e49..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/update-table.md +++ /dev/null @@ -1,28 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -grids.updateTable( - "<DATABASE_ID>", // databaseId - "<TABLE_ID>", // tableId - "<NAME>", // name - listOf("read("any")"), // permissions (optional) - false, // rowSecurity (optional) - false, // enabled (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/update-url-column.md b/docs/examples/1.8.x/server-kotlin/java/grids/update-url-column.md deleted file mode 100644 index 5217121225..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/update-url-column.md +++ /dev/null @@ -1,28 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -grids.updateUrlColumn( - "<DATABASE_ID>", // databaseId - "<TABLE_ID>", // tableId - "", // key - false, // required - "https://example.com", // default - "", // newKey (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/upsert-row.md b/docs/examples/1.8.x/server-kotlin/java/grids/upsert-row.md deleted file mode 100644 index 8f1b8670df..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/upsert-row.md +++ /dev/null @@ -1,27 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setSession(""); // The user session to authenticate with - -Grids grids = new Grids(client); - -grids.upsertRow( - "<DATABASE_ID>", // databaseId - "<TABLE_ID>", // tableId - "<ROW_ID>", // rowId - mapOf( "a" to "b" ), // data (optional) - listOf("read("any")"), // permissions (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/grids/upsert-rows.md b/docs/examples/1.8.x/server-kotlin/java/grids/upsert-rows.md deleted file mode 100644 index 2081f0f19f..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/grids/upsert-rows.md +++ /dev/null @@ -1,25 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Grids; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>"); // Your secret API key - -Grids grids = new Grids(client); - -grids.upsertRows( - "<DATABASE_ID>", // databaseId - "<TABLE_ID>", // tableId - listOf(), // rows - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/health/get-d-b.md b/docs/examples/1.8.x/server-kotlin/java/health/get-db.md similarity index 100% rename from docs/examples/1.8.x/server-kotlin/java/health/get-d-b.md rename to docs/examples/1.8.x/server-kotlin/java/health/get-db.md diff --git a/docs/examples/1.8.x/server-kotlin/java/locale/list-countries-e-u.md b/docs/examples/1.8.x/server-kotlin/java/locale/list-countries-eu.md similarity index 100% rename from docs/examples/1.8.x/server-kotlin/java/locale/list-countries-e-u.md rename to docs/examples/1.8.x/server-kotlin/java/locale/list-countries-eu.md diff --git a/docs/examples/1.8.x/server-kotlin/java/messaging/create-a-p-n-s-provider.md b/docs/examples/1.8.x/server-kotlin/java/messaging/create-a-p-n-s-provider.md deleted file mode 100644 index acae476a17..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/messaging/create-a-p-n-s-provider.md +++ /dev/null @@ -1,30 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Messaging; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>"); // Your secret API key - -Messaging messaging = new Messaging(client); - -messaging.createAPNSProvider( - "<PROVIDER_ID>", // providerId - "<NAME>", // name - "<AUTH_KEY>", // authKey (optional) - "<AUTH_KEY_ID>", // authKeyId (optional) - "<TEAM_ID>", // teamId (optional) - "<BUNDLE_ID>", // bundleId (optional) - false, // sandbox (optional) - false, // enabled (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/messaging/create-apns-provider.md b/docs/examples/1.8.x/server-kotlin/java/messaging/create-apns-provider.md index 0f6618079f..acae476a17 100644 --- a/docs/examples/1.8.x/server-kotlin/java/messaging/create-apns-provider.md +++ b/docs/examples/1.8.x/server-kotlin/java/messaging/create-apns-provider.md @@ -9,7 +9,7 @@ Client client = new Client() Messaging messaging = new Messaging(client); -messaging.createApnsProvider( +messaging.createAPNSProvider( "<PROVIDER_ID>", // providerId "<NAME>", // name "<AUTH_KEY>", // authKey (optional) diff --git a/docs/examples/1.8.x/server-kotlin/java/messaging/create-f-c-m-provider.md b/docs/examples/1.8.x/server-kotlin/java/messaging/create-f-c-m-provider.md deleted file mode 100644 index 0d67e28cf0..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/messaging/create-f-c-m-provider.md +++ /dev/null @@ -1,26 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Messaging; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>"); // Your secret API key - -Messaging messaging = new Messaging(client); - -messaging.createFCMProvider( - "<PROVIDER_ID>", // providerId - "<NAME>", // name - mapOf( "a" to "b" ), // serviceAccountJSON (optional) - false, // enabled (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/messaging/create-fcm-provider.md b/docs/examples/1.8.x/server-kotlin/java/messaging/create-fcm-provider.md index 636a1bdd39..0d67e28cf0 100644 --- a/docs/examples/1.8.x/server-kotlin/java/messaging/create-fcm-provider.md +++ b/docs/examples/1.8.x/server-kotlin/java/messaging/create-fcm-provider.md @@ -9,7 +9,7 @@ Client client = new Client() Messaging messaging = new Messaging(client); -messaging.createFcmProvider( +messaging.createFCMProvider( "<PROVIDER_ID>", // providerId "<NAME>", // name mapOf( "a" to "b" ), // serviceAccountJSON (optional) diff --git a/docs/examples/1.8.x/server-kotlin/java/messaging/create-msg91provider.md b/docs/examples/1.8.x/server-kotlin/java/messaging/create-msg-91-provider.md similarity index 100% rename from docs/examples/1.8.x/server-kotlin/java/messaging/create-msg91provider.md rename to docs/examples/1.8.x/server-kotlin/java/messaging/create-msg-91-provider.md diff --git a/docs/examples/1.8.x/server-kotlin/java/messaging/create-s-m-s.md b/docs/examples/1.8.x/server-kotlin/java/messaging/create-s-m-s.md deleted file mode 100644 index ca40cc33a8..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/messaging/create-s-m-s.md +++ /dev/null @@ -1,29 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Messaging; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>"); // Your secret API key - -Messaging messaging = new Messaging(client); - -messaging.createSMS( - "<MESSAGE_ID>", // messageId - "<CONTENT>", // content - listOf(), // topics (optional) - listOf(), // users (optional) - listOf(), // targets (optional) - false, // draft (optional) - "", // scheduledAt (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/messaging/create-s-m-t-p-provider.md b/docs/examples/1.8.x/server-kotlin/java/messaging/create-s-m-t-p-provider.md deleted file mode 100644 index 1f1a0f998f..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/messaging/create-s-m-t-p-provider.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Messaging; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>"); // Your secret API key - -Messaging messaging = new Messaging(client); - -messaging.createSMTPProvider( - "<PROVIDER_ID>", // providerId - "<NAME>", // name - "<HOST>", // host - 1, // port (optional) - "<USERNAME>", // username (optional) - "<PASSWORD>", // password (optional) - SmtpEncryption.NONE, // encryption (optional) - false, // autoTLS (optional) - "<MAILER>", // mailer (optional) - "<FROM_NAME>", // fromName (optional) - "email@example.com", // fromEmail (optional) - "<REPLY_TO_NAME>", // replyToName (optional) - "email@example.com", // replyToEmail (optional) - false, // enabled (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/messaging/create-sms.md b/docs/examples/1.8.x/server-kotlin/java/messaging/create-sms.md index 9e3e3bdf5d..ca40cc33a8 100644 --- a/docs/examples/1.8.x/server-kotlin/java/messaging/create-sms.md +++ b/docs/examples/1.8.x/server-kotlin/java/messaging/create-sms.md @@ -9,7 +9,7 @@ Client client = new Client() Messaging messaging = new Messaging(client); -messaging.createSms( +messaging.createSMS( "<MESSAGE_ID>", // messageId "<CONTENT>", // content listOf(), // topics (optional) diff --git a/docs/examples/1.8.x/server-kotlin/java/messaging/create-smtp-provider.md b/docs/examples/1.8.x/server-kotlin/java/messaging/create-smtp-provider.md index ebd153c29c..1f1a0f998f 100644 --- a/docs/examples/1.8.x/server-kotlin/java/messaging/create-smtp-provider.md +++ b/docs/examples/1.8.x/server-kotlin/java/messaging/create-smtp-provider.md @@ -9,7 +9,7 @@ Client client = new Client() Messaging messaging = new Messaging(client); -messaging.createSmtpProvider( +messaging.createSMTPProvider( "<PROVIDER_ID>", // providerId "<NAME>", // name "<HOST>", // host diff --git a/docs/examples/1.8.x/server-kotlin/java/messaging/update-a-p-n-s-provider.md b/docs/examples/1.8.x/server-kotlin/java/messaging/update-a-p-n-s-provider.md deleted file mode 100644 index c5da5ba819..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/messaging/update-a-p-n-s-provider.md +++ /dev/null @@ -1,30 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Messaging; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>"); // Your secret API key - -Messaging messaging = new Messaging(client); - -messaging.updateAPNSProvider( - "<PROVIDER_ID>", // providerId - "<NAME>", // name (optional) - false, // enabled (optional) - "<AUTH_KEY>", // authKey (optional) - "<AUTH_KEY_ID>", // authKeyId (optional) - "<TEAM_ID>", // teamId (optional) - "<BUNDLE_ID>", // bundleId (optional) - false, // sandbox (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/messaging/update-apns-provider.md b/docs/examples/1.8.x/server-kotlin/java/messaging/update-apns-provider.md index 737a142495..c5da5ba819 100644 --- a/docs/examples/1.8.x/server-kotlin/java/messaging/update-apns-provider.md +++ b/docs/examples/1.8.x/server-kotlin/java/messaging/update-apns-provider.md @@ -9,7 +9,7 @@ Client client = new Client() Messaging messaging = new Messaging(client); -messaging.updateApnsProvider( +messaging.updateAPNSProvider( "<PROVIDER_ID>", // providerId "<NAME>", // name (optional) false, // enabled (optional) diff --git a/docs/examples/1.8.x/server-kotlin/java/messaging/update-f-c-m-provider.md b/docs/examples/1.8.x/server-kotlin/java/messaging/update-f-c-m-provider.md deleted file mode 100644 index dd92f9321f..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/messaging/update-f-c-m-provider.md +++ /dev/null @@ -1,26 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Messaging; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>"); // Your secret API key - -Messaging messaging = new Messaging(client); - -messaging.updateFCMProvider( - "<PROVIDER_ID>", // providerId - "<NAME>", // name (optional) - false, // enabled (optional) - mapOf( "a" to "b" ), // serviceAccountJSON (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/messaging/update-fcm-provider.md b/docs/examples/1.8.x/server-kotlin/java/messaging/update-fcm-provider.md index 68c56ef18e..dd92f9321f 100644 --- a/docs/examples/1.8.x/server-kotlin/java/messaging/update-fcm-provider.md +++ b/docs/examples/1.8.x/server-kotlin/java/messaging/update-fcm-provider.md @@ -9,7 +9,7 @@ Client client = new Client() Messaging messaging = new Messaging(client); -messaging.updateFcmProvider( +messaging.updateFCMProvider( "<PROVIDER_ID>", // providerId "<NAME>", // name (optional) false, // enabled (optional) diff --git a/docs/examples/1.8.x/server-kotlin/java/messaging/update-msg91provider.md b/docs/examples/1.8.x/server-kotlin/java/messaging/update-msg-91-provider.md similarity index 100% rename from docs/examples/1.8.x/server-kotlin/java/messaging/update-msg91provider.md rename to docs/examples/1.8.x/server-kotlin/java/messaging/update-msg-91-provider.md diff --git a/docs/examples/1.8.x/server-kotlin/java/messaging/update-s-m-s.md b/docs/examples/1.8.x/server-kotlin/java/messaging/update-s-m-s.md deleted file mode 100644 index c59505b68a..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/messaging/update-s-m-s.md +++ /dev/null @@ -1,29 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Messaging; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>"); // Your secret API key - -Messaging messaging = new Messaging(client); - -messaging.updateSMS( - "<MESSAGE_ID>", // messageId - listOf(), // topics (optional) - listOf(), // users (optional) - listOf(), // targets (optional) - "<CONTENT>", // content (optional) - false, // draft (optional) - "", // scheduledAt (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/messaging/update-s-m-t-p-provider.md b/docs/examples/1.8.x/server-kotlin/java/messaging/update-s-m-t-p-provider.md deleted file mode 100644 index 36f120033a..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/messaging/update-s-m-t-p-provider.md +++ /dev/null @@ -1,36 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Messaging; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>"); // Your secret API key - -Messaging messaging = new Messaging(client); - -messaging.updateSMTPProvider( - "<PROVIDER_ID>", // providerId - "<NAME>", // name (optional) - "<HOST>", // host (optional) - 1, // port (optional) - "<USERNAME>", // username (optional) - "<PASSWORD>", // password (optional) - SmtpEncryption.NONE, // encryption (optional) - false, // autoTLS (optional) - "<MAILER>", // mailer (optional) - "<FROM_NAME>", // fromName (optional) - "email@example.com", // fromEmail (optional) - "<REPLY_TO_NAME>", // replyToName (optional) - "<REPLY_TO_EMAIL>", // replyToEmail (optional) - false, // enabled (optional) - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/messaging/update-sms.md b/docs/examples/1.8.x/server-kotlin/java/messaging/update-sms.md index c55cfdfddb..c59505b68a 100644 --- a/docs/examples/1.8.x/server-kotlin/java/messaging/update-sms.md +++ b/docs/examples/1.8.x/server-kotlin/java/messaging/update-sms.md @@ -9,7 +9,7 @@ Client client = new Client() Messaging messaging = new Messaging(client); -messaging.updateSms( +messaging.updateSMS( "<MESSAGE_ID>", // messageId listOf(), // topics (optional) listOf(), // users (optional) diff --git a/docs/examples/1.8.x/server-kotlin/java/messaging/update-smtp-provider.md b/docs/examples/1.8.x/server-kotlin/java/messaging/update-smtp-provider.md index 3f39661024..36f120033a 100644 --- a/docs/examples/1.8.x/server-kotlin/java/messaging/update-smtp-provider.md +++ b/docs/examples/1.8.x/server-kotlin/java/messaging/update-smtp-provider.md @@ -9,7 +9,7 @@ Client client = new Client() Messaging messaging = new Messaging(client); -messaging.updateSmtpProvider( +messaging.updateSMTPProvider( "<PROVIDER_ID>", // providerId "<NAME>", // name (optional) "<HOST>", // host (optional) diff --git a/docs/examples/1.8.x/server-kotlin/java/users/create-argon2user.md b/docs/examples/1.8.x/server-kotlin/java/users/create-argon-2-user.md similarity index 100% rename from docs/examples/1.8.x/server-kotlin/java/users/create-argon2user.md rename to docs/examples/1.8.x/server-kotlin/java/users/create-argon-2-user.md diff --git a/docs/examples/1.8.x/server-kotlin/java/users/create-j-w-t.md b/docs/examples/1.8.x/server-kotlin/java/users/create-jwt.md similarity index 100% rename from docs/examples/1.8.x/server-kotlin/java/users/create-j-w-t.md rename to docs/examples/1.8.x/server-kotlin/java/users/create-jwt.md diff --git a/docs/examples/1.8.x/server-kotlin/java/users/create-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-kotlin/java/users/create-m-f-a-recovery-codes.md deleted file mode 100644 index 167c92cbbd..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/users/create-m-f-a-recovery-codes.md +++ /dev/null @@ -1,23 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Users; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>"); // Your secret API key - -Users users = new Users(client); - -users.createMFARecoveryCodes( - "<USER_ID>", // userId - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/users/create-m-d5user.md b/docs/examples/1.8.x/server-kotlin/java/users/create-md-5-user.md similarity index 100% rename from docs/examples/1.8.x/server-kotlin/java/users/create-m-d5user.md rename to docs/examples/1.8.x/server-kotlin/java/users/create-md-5-user.md diff --git a/docs/examples/1.8.x/server-kotlin/java/users/create-mfa-recovery-codes.md b/docs/examples/1.8.x/server-kotlin/java/users/create-mfa-recovery-codes.md index 62afec2a1f..167c92cbbd 100644 --- a/docs/examples/1.8.x/server-kotlin/java/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-kotlin/java/users/create-mfa-recovery-codes.md @@ -9,7 +9,7 @@ Client client = new Client() Users users = new Users(client); -users.createMfaRecoveryCodes( +users.createMFARecoveryCodes( "<USER_ID>", // userId new CoroutineCallback<>((result, error) -> { if (error != null) { diff --git a/docs/examples/1.8.x/server-kotlin/java/users/create-p-h-pass-user.md b/docs/examples/1.8.x/server-kotlin/java/users/create-ph-pass-user.md similarity index 100% rename from docs/examples/1.8.x/server-kotlin/java/users/create-p-h-pass-user.md rename to docs/examples/1.8.x/server-kotlin/java/users/create-ph-pass-user.md diff --git a/docs/examples/1.8.x/server-kotlin/java/users/create-s-h-a-user.md b/docs/examples/1.8.x/server-kotlin/java/users/create-sha-user.md similarity index 100% rename from docs/examples/1.8.x/server-kotlin/java/users/create-s-h-a-user.md rename to docs/examples/1.8.x/server-kotlin/java/users/create-sha-user.md diff --git a/docs/examples/1.8.x/server-kotlin/java/users/delete-m-f-a-authenticator.md b/docs/examples/1.8.x/server-kotlin/java/users/delete-m-f-a-authenticator.md deleted file mode 100644 index c27b39ef53..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/users/delete-m-f-a-authenticator.md +++ /dev/null @@ -1,25 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Users; -import io.appwrite.enums.AuthenticatorType; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>"); // Your secret API key - -Users users = new Users(client); - -users.deleteMFAAuthenticator( - "<USER_ID>", // userId - AuthenticatorType.TOTP, // type - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/users/delete-mfa-authenticator.md b/docs/examples/1.8.x/server-kotlin/java/users/delete-mfa-authenticator.md index 7ed33d6d82..c27b39ef53 100644 --- a/docs/examples/1.8.x/server-kotlin/java/users/delete-mfa-authenticator.md +++ b/docs/examples/1.8.x/server-kotlin/java/users/delete-mfa-authenticator.md @@ -10,7 +10,7 @@ Client client = new Client() Users users = new Users(client); -users.deleteMfaAuthenticator( +users.deleteMFAAuthenticator( "<USER_ID>", // userId AuthenticatorType.TOTP, // type new CoroutineCallback<>((result, error) -> { diff --git a/docs/examples/1.8.x/server-kotlin/java/users/get-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-kotlin/java/users/get-m-f-a-recovery-codes.md deleted file mode 100644 index e617355701..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/users/get-m-f-a-recovery-codes.md +++ /dev/null @@ -1,23 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Users; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>"); // Your secret API key - -Users users = new Users(client); - -users.getMFARecoveryCodes( - "<USER_ID>", // userId - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/users/get-mfa-recovery-codes.md b/docs/examples/1.8.x/server-kotlin/java/users/get-mfa-recovery-codes.md index 940dafee90..e617355701 100644 --- a/docs/examples/1.8.x/server-kotlin/java/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-kotlin/java/users/get-mfa-recovery-codes.md @@ -9,7 +9,7 @@ Client client = new Client() Users users = new Users(client); -users.getMfaRecoveryCodes( +users.getMFARecoveryCodes( "<USER_ID>", // userId new CoroutineCallback<>((result, error) -> { if (error != null) { diff --git a/docs/examples/1.8.x/server-kotlin/java/users/list-m-f-a-factors.md b/docs/examples/1.8.x/server-kotlin/java/users/list-m-f-a-factors.md deleted file mode 100644 index c26f463b68..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/users/list-m-f-a-factors.md +++ /dev/null @@ -1,23 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Users; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>"); // Your secret API key - -Users users = new Users(client); - -users.listMFAFactors( - "<USER_ID>", // userId - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/users/list-mfa-factors.md b/docs/examples/1.8.x/server-kotlin/java/users/list-mfa-factors.md index a377214d19..c26f463b68 100644 --- a/docs/examples/1.8.x/server-kotlin/java/users/list-mfa-factors.md +++ b/docs/examples/1.8.x/server-kotlin/java/users/list-mfa-factors.md @@ -9,7 +9,7 @@ Client client = new Client() Users users = new Users(client); -users.listMfaFactors( +users.listMFAFactors( "<USER_ID>", // userId new CoroutineCallback<>((result, error) -> { if (error != null) { diff --git a/docs/examples/1.8.x/server-kotlin/java/users/update-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-kotlin/java/users/update-m-f-a-recovery-codes.md deleted file mode 100644 index 98522b6219..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/users/update-m-f-a-recovery-codes.md +++ /dev/null @@ -1,23 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Users; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>"); // Your secret API key - -Users users = new Users(client); - -users.updateMFARecoveryCodes( - "<USER_ID>", // userId - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/users/update-m-f-a.md b/docs/examples/1.8.x/server-kotlin/java/users/update-m-f-a.md deleted file mode 100644 index dbcded6d93..0000000000 --- a/docs/examples/1.8.x/server-kotlin/java/users/update-m-f-a.md +++ /dev/null @@ -1,24 +0,0 @@ -import io.appwrite.Client; -import io.appwrite.coroutines.CoroutineCallback; -import io.appwrite.services.Users; - -Client client = new Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>"); // Your secret API key - -Users users = new Users(client); - -users.updateMFA( - "<USER_ID>", // userId - false, // mfa - new CoroutineCallback<>((result, error) -> { - if (error != null) { - error.printStackTrace(); - return; - } - - System.out.println(result); - }) -); - diff --git a/docs/examples/1.8.x/server-kotlin/java/users/update-mfa-recovery-codes.md b/docs/examples/1.8.x/server-kotlin/java/users/update-mfa-recovery-codes.md index 439561012f..98522b6219 100644 --- a/docs/examples/1.8.x/server-kotlin/java/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-kotlin/java/users/update-mfa-recovery-codes.md @@ -9,7 +9,7 @@ Client client = new Client() Users users = new Users(client); -users.updateMfaRecoveryCodes( +users.updateMFARecoveryCodes( "<USER_ID>", // userId new CoroutineCallback<>((result, error) -> { if (error != null) { diff --git a/docs/examples/1.8.x/server-kotlin/java/users/update-mfa.md b/docs/examples/1.8.x/server-kotlin/java/users/update-mfa.md index 76a198f513..dbcded6d93 100644 --- a/docs/examples/1.8.x/server-kotlin/java/users/update-mfa.md +++ b/docs/examples/1.8.x/server-kotlin/java/users/update-mfa.md @@ -9,7 +9,7 @@ Client client = new Client() Users users = new Users(client); -users.updateMfa( +users.updateMFA( "<USER_ID>", // userId false, // mfa new CoroutineCallback<>((result, error) -> { diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/account/create-j-w-t.md b/docs/examples/1.8.x/server-kotlin/kotlin/account/create-jwt.md similarity index 100% rename from docs/examples/1.8.x/server-kotlin/kotlin/account/create-j-w-t.md rename to docs/examples/1.8.x/server-kotlin/kotlin/account/create-jwt.md diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/account/create-m-f-a-authenticator.md b/docs/examples/1.8.x/server-kotlin/kotlin/account/create-m-f-a-authenticator.md deleted file mode 100644 index fed90b4a7b..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/account/create-m-f-a-authenticator.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Account -import io.appwrite.enums.AuthenticatorType - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setSession("") // The user session to authenticate with - -val account = Account(client) - -val response = account.createMFAAuthenticator( - type = AuthenticatorType.TOTP -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/account/create-m-f-a-challenge.md b/docs/examples/1.8.x/server-kotlin/kotlin/account/create-m-f-a-challenge.md deleted file mode 100644 index 7213142a45..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/account/create-m-f-a-challenge.md +++ /dev/null @@ -1,14 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Account -import io.appwrite.enums.AuthenticationFactor - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - -val account = Account(client) - -val response = account.createMFAChallenge( - factor = AuthenticationFactor.EMAIL -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/account/create-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-kotlin/kotlin/account/create-m-f-a-recovery-codes.md deleted file mode 100644 index c01499b04b..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/account/create-m-f-a-recovery-codes.md +++ /dev/null @@ -1,12 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Account - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setSession("") // The user session to authenticate with - -val account = Account(client) - -val response = account.createMFARecoveryCodes() diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/account/create-magic-u-r-l-token.md b/docs/examples/1.8.x/server-kotlin/kotlin/account/create-magic-url-token.md similarity index 100% rename from docs/examples/1.8.x/server-kotlin/kotlin/account/create-magic-u-r-l-token.md rename to docs/examples/1.8.x/server-kotlin/kotlin/account/create-magic-url-token.md diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/account/create-mfa-authenticator.md b/docs/examples/1.8.x/server-kotlin/kotlin/account/create-mfa-authenticator.md index 803579da03..fed90b4a7b 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/account/create-mfa-authenticator.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/account/create-mfa-authenticator.md @@ -10,6 +10,6 @@ val client = Client() val account = Account(client) -val response = account.createMfaAuthenticator( +val response = account.createMFAAuthenticator( type = AuthenticatorType.TOTP ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/account/create-mfa-challenge.md b/docs/examples/1.8.x/server-kotlin/kotlin/account/create-mfa-challenge.md index a3fbe25d75..7213142a45 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/account/create-mfa-challenge.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/account/create-mfa-challenge.md @@ -9,6 +9,6 @@ val client = Client() val account = Account(client) -val response = account.createMfaChallenge( +val response = account.createMFAChallenge( factor = AuthenticationFactor.EMAIL ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/account/create-mfa-recovery-codes.md b/docs/examples/1.8.x/server-kotlin/kotlin/account/create-mfa-recovery-codes.md index c21a382fcc..c01499b04b 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/account/create-mfa-recovery-codes.md @@ -9,4 +9,4 @@ val client = Client() val account = Account(client) -val response = account.createMfaRecoveryCodes() +val response = account.createMFARecoveryCodes() diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/account/create-o-auth2token.md b/docs/examples/1.8.x/server-kotlin/kotlin/account/create-o-auth-2-token.md similarity index 100% rename from docs/examples/1.8.x/server-kotlin/kotlin/account/create-o-auth2token.md rename to docs/examples/1.8.x/server-kotlin/kotlin/account/create-o-auth-2-token.md diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/account/delete-m-f-a-authenticator.md b/docs/examples/1.8.x/server-kotlin/kotlin/account/delete-m-f-a-authenticator.md deleted file mode 100644 index 9b06f8cd99..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/account/delete-m-f-a-authenticator.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Account -import io.appwrite.enums.AuthenticatorType - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setSession("") // The user session to authenticate with - -val account = Account(client) - -val response = account.deleteMFAAuthenticator( - type = AuthenticatorType.TOTP -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/account/delete-mfa-authenticator.md b/docs/examples/1.8.x/server-kotlin/kotlin/account/delete-mfa-authenticator.md index 2068077f46..9b06f8cd99 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/account/delete-mfa-authenticator.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/account/delete-mfa-authenticator.md @@ -10,6 +10,6 @@ val client = Client() val account = Account(client) -val response = account.deleteMfaAuthenticator( +val response = account.deleteMFAAuthenticator( type = AuthenticatorType.TOTP ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/account/get-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-kotlin/kotlin/account/get-m-f-a-recovery-codes.md deleted file mode 100644 index 96567f4ca5..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/account/get-m-f-a-recovery-codes.md +++ /dev/null @@ -1,12 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Account - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setSession("") // The user session to authenticate with - -val account = Account(client) - -val response = account.getMFARecoveryCodes() diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/account/get-mfa-recovery-codes.md b/docs/examples/1.8.x/server-kotlin/kotlin/account/get-mfa-recovery-codes.md index 027c211230..96567f4ca5 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/account/get-mfa-recovery-codes.md @@ -9,4 +9,4 @@ val client = Client() val account = Account(client) -val response = account.getMfaRecoveryCodes() +val response = account.getMFARecoveryCodes() diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/account/list-m-f-a-factors.md b/docs/examples/1.8.x/server-kotlin/kotlin/account/list-m-f-a-factors.md deleted file mode 100644 index 0f073df3e9..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/account/list-m-f-a-factors.md +++ /dev/null @@ -1,12 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Account - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setSession("") // The user session to authenticate with - -val account = Account(client) - -val response = account.listMFAFactors() diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/account/list-mfa-factors.md b/docs/examples/1.8.x/server-kotlin/kotlin/account/list-mfa-factors.md index ce47dcd752..0f073df3e9 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/account/list-mfa-factors.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/account/list-mfa-factors.md @@ -9,4 +9,4 @@ val client = Client() val account = Account(client) -val response = account.listMfaFactors() +val response = account.listMFAFactors() diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/account/update-m-f-a-authenticator.md b/docs/examples/1.8.x/server-kotlin/kotlin/account/update-m-f-a-authenticator.md deleted file mode 100644 index 99764f2f0d..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/account/update-m-f-a-authenticator.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Account -import io.appwrite.enums.AuthenticatorType - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setSession("") // The user session to authenticate with - -val account = Account(client) - -val response = account.updateMFAAuthenticator( - type = AuthenticatorType.TOTP, - otp = "<OTP>" -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/account/update-m-f-a-challenge.md b/docs/examples/1.8.x/server-kotlin/kotlin/account/update-m-f-a-challenge.md deleted file mode 100644 index de90873650..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/account/update-m-f-a-challenge.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Account - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setSession("") // The user session to authenticate with - -val account = Account(client) - -val response = account.updateMFAChallenge( - challengeId = "<CHALLENGE_ID>", - otp = "<OTP>" -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/account/update-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-kotlin/kotlin/account/update-m-f-a-recovery-codes.md deleted file mode 100644 index 05f6476e0f..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/account/update-m-f-a-recovery-codes.md +++ /dev/null @@ -1,12 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Account - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setSession("") // The user session to authenticate with - -val account = Account(client) - -val response = account.updateMFARecoveryCodes() diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/account/update-magic-u-r-l-session.md b/docs/examples/1.8.x/server-kotlin/kotlin/account/update-magic-url-session.md similarity index 100% rename from docs/examples/1.8.x/server-kotlin/kotlin/account/update-magic-u-r-l-session.md rename to docs/examples/1.8.x/server-kotlin/kotlin/account/update-magic-url-session.md diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/account/update-mfa-authenticator.md b/docs/examples/1.8.x/server-kotlin/kotlin/account/update-mfa-authenticator.md index 521d133f6f..99764f2f0d 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/account/update-mfa-authenticator.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/account/update-mfa-authenticator.md @@ -10,7 +10,7 @@ val client = Client() val account = Account(client) -val response = account.updateMfaAuthenticator( +val response = account.updateMFAAuthenticator( type = AuthenticatorType.TOTP, otp = "<OTP>" ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/account/update-mfa-challenge.md b/docs/examples/1.8.x/server-kotlin/kotlin/account/update-mfa-challenge.md index 6b978b765e..de90873650 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/account/update-mfa-challenge.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/account/update-mfa-challenge.md @@ -9,7 +9,7 @@ val client = Client() val account = Account(client) -val response = account.updateMfaChallenge( +val response = account.updateMFAChallenge( challengeId = "<CHALLENGE_ID>", otp = "<OTP>" ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/account/update-mfa-recovery-codes.md b/docs/examples/1.8.x/server-kotlin/kotlin/account/update-mfa-recovery-codes.md index 31da824bbf..05f6476e0f 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/account/update-mfa-recovery-codes.md @@ -9,4 +9,4 @@ val client = Client() val account = Account(client) -val response = account.updateMfaRecoveryCodes() +val response = account.updateMFARecoveryCodes() diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/account/update-m-f-a.md b/docs/examples/1.8.x/server-kotlin/kotlin/account/update-mfa.md similarity index 100% rename from docs/examples/1.8.x/server-kotlin/kotlin/account/update-m-f-a.md rename to docs/examples/1.8.x/server-kotlin/kotlin/account/update-mfa.md diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/avatars/get-q-r.md b/docs/examples/1.8.x/server-kotlin/kotlin/avatars/get-qr.md similarity index 100% rename from docs/examples/1.8.x/server-kotlin/kotlin/avatars/get-q-r.md rename to docs/examples/1.8.x/server-kotlin/kotlin/avatars/get-qr.md diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-boolean-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-boolean-column.md deleted file mode 100644 index 5966655e1e..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-boolean-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -val grids = Grids(client) - -val response = grids.createBooleanColumn( - databaseId = "<DATABASE_ID>", - tableId = "<TABLE_ID>", - key = "", - required = false, - default = false, // optional - array = false // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-database.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-database.md deleted file mode 100644 index bc9999ff18..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-database.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -val grids = Grids(client) - -val response = grids.createDatabase( - databaseId = "<DATABASE_ID>", - name = "<NAME>", - enabled = false // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-datetime-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-datetime-column.md deleted file mode 100644 index f3b11b5018..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-datetime-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -val grids = Grids(client) - -val response = grids.createDatetimeColumn( - databaseId = "<DATABASE_ID>", - tableId = "<TABLE_ID>", - key = "", - required = false, - default = "", // optional - array = false // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-email-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-email-column.md deleted file mode 100644 index a70dd3ac45..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-email-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -val grids = Grids(client) - -val response = grids.createEmailColumn( - databaseId = "<DATABASE_ID>", - tableId = "<TABLE_ID>", - key = "", - required = false, - default = "email@example.com", // optional - array = false // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-enum-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-enum-column.md deleted file mode 100644 index 3858155479..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-enum-column.md +++ /dev/null @@ -1,20 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -val grids = Grids(client) - -val response = grids.createEnumColumn( - databaseId = "<DATABASE_ID>", - tableId = "<TABLE_ID>", - key = "", - elements = listOf(), - required = false, - default = "<DEFAULT>", // optional - array = false // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-float-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-float-column.md deleted file mode 100644 index d7b4c0155d..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-float-column.md +++ /dev/null @@ -1,21 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -val grids = Grids(client) - -val response = grids.createFloatColumn( - databaseId = "<DATABASE_ID>", - tableId = "<TABLE_ID>", - key = "", - required = false, - min = 0, // optional - max = 0, // optional - default = 0, // optional - array = false // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-index.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-index.md deleted file mode 100644 index df16a35cc2..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-index.md +++ /dev/null @@ -1,21 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids -import io.appwrite.enums.IndexType - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -val grids = Grids(client) - -val response = grids.createIndex( - databaseId = "<DATABASE_ID>", - tableId = "<TABLE_ID>", - key = "", - type = IndexType.KEY, - columns = listOf(), - orders = listOf(), // optional - lengths = listOf() // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-integer-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-integer-column.md deleted file mode 100644 index db8bde2d72..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-integer-column.md +++ /dev/null @@ -1,21 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -val grids = Grids(client) - -val response = grids.createIntegerColumn( - databaseId = "<DATABASE_ID>", - tableId = "<TABLE_ID>", - key = "", - required = false, - min = 0, // optional - max = 0, // optional - default = 0, // optional - array = false // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-ip-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-ip-column.md deleted file mode 100644 index f3ab36bd0c..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-ip-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -val grids = Grids(client) - -val response = grids.createIpColumn( - databaseId = "<DATABASE_ID>", - tableId = "<TABLE_ID>", - key = "", - required = false, - default = "", // optional - array = false // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-relationship-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-relationship-column.md deleted file mode 100644 index 9ba4cafbb7..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-relationship-column.md +++ /dev/null @@ -1,22 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids -import io.appwrite.enums.RelationshipType - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -val grids = Grids(client) - -val response = grids.createRelationshipColumn( - databaseId = "<DATABASE_ID>", - tableId = "<TABLE_ID>", - relatedTableId = "<RELATED_TABLE_ID>", - type = RelationshipType.ONETOONE, - twoWay = false, // optional - key = "", // optional - twoWayKey = "", // optional - onDelete = "cascade" // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-row.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-row.md deleted file mode 100644 index 0c3d2531c5..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-row.md +++ /dev/null @@ -1,18 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setSession("") // The user session to authenticate with - -val grids = Grids(client) - -val response = grids.createRow( - databaseId = "<DATABASE_ID>", - tableId = "<TABLE_ID>", - rowId = "<ROW_ID>", - data = mapOf( "a" to "b" ), - permissions = listOf("read("any")") // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-rows.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-rows.md deleted file mode 100644 index 9c7da7c93b..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-rows.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -val grids = Grids(client) - -val response = grids.createRows( - databaseId = "<DATABASE_ID>", - tableId = "<TABLE_ID>", - rows = listOf() -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-string-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-string-column.md deleted file mode 100644 index f6793c817b..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-string-column.md +++ /dev/null @@ -1,21 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -val grids = Grids(client) - -val response = grids.createStringColumn( - databaseId = "<DATABASE_ID>", - tableId = "<TABLE_ID>", - key = "", - size = 1, - required = false, - default = "<DEFAULT>", // optional - array = false, // optional - encrypt = false // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-table.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-table.md deleted file mode 100644 index 55de471725..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-table.md +++ /dev/null @@ -1,19 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -val grids = Grids(client) - -val response = grids.createTable( - databaseId = "<DATABASE_ID>", - tableId = "<TABLE_ID>", - name = "<NAME>", - permissions = listOf("read("any")"), // optional - rowSecurity = false, // optional - enabled = false // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-url-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-url-column.md deleted file mode 100644 index 33311e29ca..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/create-url-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -val grids = Grids(client) - -val response = grids.createUrlColumn( - databaseId = "<DATABASE_ID>", - tableId = "<TABLE_ID>", - key = "", - required = false, - default = "https://example.com", // optional - array = false // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/decrement-row-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/decrement-row-column.md deleted file mode 100644 index 9a450f66f3..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/decrement-row-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -val grids = Grids(client) - -val response = grids.decrementRowColumn( - databaseId = "<DATABASE_ID>", - tableId = "<TABLE_ID>", - rowId = "<ROW_ID>", - column = "", - value = 0, // optional - min = 0 // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-column.md deleted file mode 100644 index 09636dae09..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-column.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -val grids = Grids(client) - -val response = grids.deleteColumn( - databaseId = "<DATABASE_ID>", - tableId = "<TABLE_ID>", - key = "" -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-database.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-database.md deleted file mode 100644 index f872453a99..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-database.md +++ /dev/null @@ -1,14 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -val grids = Grids(client) - -val response = grids.deleteDatabase( - databaseId = "<DATABASE_ID>" -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-index.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-index.md deleted file mode 100644 index d3037ca6b0..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-index.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -val grids = Grids(client) - -val response = grids.deleteIndex( - databaseId = "<DATABASE_ID>", - tableId = "<TABLE_ID>", - key = "" -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-row.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-row.md deleted file mode 100644 index 25b60e0e2d..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-row.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setSession("") // The user session to authenticate with - -val grids = Grids(client) - -val response = grids.deleteRow( - databaseId = "<DATABASE_ID>", - tableId = "<TABLE_ID>", - rowId = "<ROW_ID>" -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-rows.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-rows.md deleted file mode 100644 index c3aa106eac..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-rows.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -val grids = Grids(client) - -val response = grids.deleteRows( - databaseId = "<DATABASE_ID>", - tableId = "<TABLE_ID>", - queries = listOf() // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-table.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-table.md deleted file mode 100644 index f0208d4345..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/delete-table.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -val grids = Grids(client) - -val response = grids.deleteTable( - databaseId = "<DATABASE_ID>", - tableId = "<TABLE_ID>" -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-column.md deleted file mode 100644 index 92890a7dc3..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-column.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -val grids = Grids(client) - -val response = grids.getColumn( - databaseId = "<DATABASE_ID>", - tableId = "<TABLE_ID>", - key = "" -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-database.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-database.md deleted file mode 100644 index fd91ab0ad3..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-database.md +++ /dev/null @@ -1,14 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -val grids = Grids(client) - -val response = grids.getDatabase( - databaseId = "<DATABASE_ID>" -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-index.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-index.md deleted file mode 100644 index 7c0b2dc8cb..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-index.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -val grids = Grids(client) - -val response = grids.getIndex( - databaseId = "<DATABASE_ID>", - tableId = "<TABLE_ID>", - key = "" -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-row.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-row.md deleted file mode 100644 index b217814b27..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-row.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setSession("") // The user session to authenticate with - -val grids = Grids(client) - -val response = grids.getRow( - databaseId = "<DATABASE_ID>", - tableId = "<TABLE_ID>", - rowId = "<ROW_ID>", - queries = listOf() // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-table.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-table.md deleted file mode 100644 index d8a4cd243e..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/get-table.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -val grids = Grids(client) - -val response = grids.getTable( - databaseId = "<DATABASE_ID>", - tableId = "<TABLE_ID>" -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/increment-row-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/increment-row-column.md deleted file mode 100644 index adbe5c287e..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/increment-row-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -val grids = Grids(client) - -val response = grids.incrementRowColumn( - databaseId = "<DATABASE_ID>", - tableId = "<TABLE_ID>", - rowId = "<ROW_ID>", - column = "", - value = 0, // optional - max = 0 // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-columns.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-columns.md deleted file mode 100644 index b033eb423d..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-columns.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -val grids = Grids(client) - -val response = grids.listColumns( - databaseId = "<DATABASE_ID>", - tableId = "<TABLE_ID>", - queries = listOf() // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-databases.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-databases.md deleted file mode 100644 index c713568269..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-databases.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -val grids = Grids(client) - -val response = grids.listDatabases( - queries = listOf(), // optional - search = "<SEARCH>" // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-indexes.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-indexes.md deleted file mode 100644 index 84bbcbd232..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-indexes.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -val grids = Grids(client) - -val response = grids.listIndexes( - databaseId = "<DATABASE_ID>", - tableId = "<TABLE_ID>", - queries = listOf() // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-rows.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-rows.md deleted file mode 100644 index ea54280ff3..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-rows.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setSession("") // The user session to authenticate with - -val grids = Grids(client) - -val response = grids.listRows( - databaseId = "<DATABASE_ID>", - tableId = "<TABLE_ID>", - queries = listOf() // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-tables.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-tables.md deleted file mode 100644 index 6bb5a588b2..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/list-tables.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -val grids = Grids(client) - -val response = grids.listTables( - databaseId = "<DATABASE_ID>", - queries = listOf(), // optional - search = "<SEARCH>" // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-boolean-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-boolean-column.md deleted file mode 100644 index b9360ec99e..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-boolean-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -val grids = Grids(client) - -val response = grids.updateBooleanColumn( - databaseId = "<DATABASE_ID>", - tableId = "<TABLE_ID>", - key = "", - required = false, - default = false, - newKey = "" // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-database.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-database.md deleted file mode 100644 index ae8aacc343..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-database.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -val grids = Grids(client) - -val response = grids.updateDatabase( - databaseId = "<DATABASE_ID>", - name = "<NAME>", - enabled = false // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-datetime-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-datetime-column.md deleted file mode 100644 index 50282217d7..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-datetime-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -val grids = Grids(client) - -val response = grids.updateDatetimeColumn( - databaseId = "<DATABASE_ID>", - tableId = "<TABLE_ID>", - key = "", - required = false, - default = "", - newKey = "" // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-email-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-email-column.md deleted file mode 100644 index a9c2996800..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-email-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -val grids = Grids(client) - -val response = grids.updateEmailColumn( - databaseId = "<DATABASE_ID>", - tableId = "<TABLE_ID>", - key = "", - required = false, - default = "email@example.com", - newKey = "" // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-enum-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-enum-column.md deleted file mode 100644 index c23eef358b..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-enum-column.md +++ /dev/null @@ -1,20 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -val grids = Grids(client) - -val response = grids.updateEnumColumn( - databaseId = "<DATABASE_ID>", - tableId = "<TABLE_ID>", - key = "", - elements = listOf(), - required = false, - default = "<DEFAULT>", - newKey = "" // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-float-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-float-column.md deleted file mode 100644 index 1054c34fbd..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-float-column.md +++ /dev/null @@ -1,21 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -val grids = Grids(client) - -val response = grids.updateFloatColumn( - databaseId = "<DATABASE_ID>", - tableId = "<TABLE_ID>", - key = "", - required = false, - default = 0, - min = 0, // optional - max = 0, // optional - newKey = "" // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-integer-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-integer-column.md deleted file mode 100644 index 288c74b4fe..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-integer-column.md +++ /dev/null @@ -1,21 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -val grids = Grids(client) - -val response = grids.updateIntegerColumn( - databaseId = "<DATABASE_ID>", - tableId = "<TABLE_ID>", - key = "", - required = false, - default = 0, - min = 0, // optional - max = 0, // optional - newKey = "" // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-ip-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-ip-column.md deleted file mode 100644 index cbc358a3b6..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-ip-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -val grids = Grids(client) - -val response = grids.updateIpColumn( - databaseId = "<DATABASE_ID>", - tableId = "<TABLE_ID>", - key = "", - required = false, - default = "", - newKey = "" // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-relationship-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-relationship-column.md deleted file mode 100644 index 99df537cfe..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-relationship-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -val grids = Grids(client) - -val response = grids.updateRelationshipColumn( - databaseId = "<DATABASE_ID>", - tableId = "<TABLE_ID>", - key = "", - onDelete = "cascade", // optional - newKey = "" // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-row.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-row.md deleted file mode 100644 index ae18af353a..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-row.md +++ /dev/null @@ -1,18 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setSession("") // The user session to authenticate with - -val grids = Grids(client) - -val response = grids.updateRow( - databaseId = "<DATABASE_ID>", - tableId = "<TABLE_ID>", - rowId = "<ROW_ID>", - data = mapOf( "a" to "b" ), // optional - permissions = listOf("read("any")") // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-rows.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-rows.md deleted file mode 100644 index 3682cd0724..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-rows.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -val grids = Grids(client) - -val response = grids.updateRows( - databaseId = "<DATABASE_ID>", - tableId = "<TABLE_ID>", - data = mapOf( "a" to "b" ), // optional - queries = listOf() // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-string-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-string-column.md deleted file mode 100644 index 8f7a213260..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-string-column.md +++ /dev/null @@ -1,20 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -val grids = Grids(client) - -val response = grids.updateStringColumn( - databaseId = "<DATABASE_ID>", - tableId = "<TABLE_ID>", - key = "", - required = false, - default = "<DEFAULT>", - size = 1, // optional - newKey = "" // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-table.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-table.md deleted file mode 100644 index 99232d858f..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-table.md +++ /dev/null @@ -1,19 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -val grids = Grids(client) - -val response = grids.updateTable( - databaseId = "<DATABASE_ID>", - tableId = "<TABLE_ID>", - name = "<NAME>", - permissions = listOf("read("any")"), // optional - rowSecurity = false, // optional - enabled = false // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-url-column.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-url-column.md deleted file mode 100644 index 65d299dba8..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/update-url-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -val grids = Grids(client) - -val response = grids.updateUrlColumn( - databaseId = "<DATABASE_ID>", - tableId = "<TABLE_ID>", - key = "", - required = false, - default = "https://example.com", - newKey = "" // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/upsert-row.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/upsert-row.md deleted file mode 100644 index cbf0f38c8d..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/upsert-row.md +++ /dev/null @@ -1,18 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setSession("") // The user session to authenticate with - -val grids = Grids(client) - -val response = grids.upsertRow( - databaseId = "<DATABASE_ID>", - tableId = "<TABLE_ID>", - rowId = "<ROW_ID>", - data = mapOf( "a" to "b" ), // optional - permissions = listOf("read("any")") // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/grids/upsert-rows.md b/docs/examples/1.8.x/server-kotlin/kotlin/grids/upsert-rows.md deleted file mode 100644 index c767b66803..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/grids/upsert-rows.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Grids - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -val grids = Grids(client) - -val response = grids.upsertRows( - databaseId = "<DATABASE_ID>", - tableId = "<TABLE_ID>", - rows = listOf() -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/health/get-d-b.md b/docs/examples/1.8.x/server-kotlin/kotlin/health/get-db.md similarity index 100% rename from docs/examples/1.8.x/server-kotlin/kotlin/health/get-d-b.md rename to docs/examples/1.8.x/server-kotlin/kotlin/health/get-db.md diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/locale/list-countries-e-u.md b/docs/examples/1.8.x/server-kotlin/kotlin/locale/list-countries-eu.md similarity index 100% rename from docs/examples/1.8.x/server-kotlin/kotlin/locale/list-countries-e-u.md rename to docs/examples/1.8.x/server-kotlin/kotlin/locale/list-countries-eu.md diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/messaging/create-a-p-n-s-provider.md b/docs/examples/1.8.x/server-kotlin/kotlin/messaging/create-a-p-n-s-provider.md deleted file mode 100644 index 5104edf3e2..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/messaging/create-a-p-n-s-provider.md +++ /dev/null @@ -1,21 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Messaging - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -val messaging = Messaging(client) - -val response = messaging.createAPNSProvider( - providerId = "<PROVIDER_ID>", - name = "<NAME>", - authKey = "<AUTH_KEY>", // optional - authKeyId = "<AUTH_KEY_ID>", // optional - teamId = "<TEAM_ID>", // optional - bundleId = "<BUNDLE_ID>", // optional - sandbox = false, // optional - enabled = false // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/messaging/create-apns-provider.md b/docs/examples/1.8.x/server-kotlin/kotlin/messaging/create-apns-provider.md index a19cbe2725..5104edf3e2 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/messaging/create-apns-provider.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/messaging/create-apns-provider.md @@ -9,7 +9,7 @@ val client = Client() val messaging = Messaging(client) -val response = messaging.createApnsProvider( +val response = messaging.createAPNSProvider( providerId = "<PROVIDER_ID>", name = "<NAME>", authKey = "<AUTH_KEY>", // optional diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/messaging/create-f-c-m-provider.md b/docs/examples/1.8.x/server-kotlin/kotlin/messaging/create-f-c-m-provider.md deleted file mode 100644 index b1a2ef8314..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/messaging/create-f-c-m-provider.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Messaging - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -val messaging = Messaging(client) - -val response = messaging.createFCMProvider( - providerId = "<PROVIDER_ID>", - name = "<NAME>", - serviceAccountJSON = mapOf( "a" to "b" ), // optional - enabled = false // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/messaging/create-fcm-provider.md b/docs/examples/1.8.x/server-kotlin/kotlin/messaging/create-fcm-provider.md index c1a077ca5c..b1a2ef8314 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/messaging/create-fcm-provider.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/messaging/create-fcm-provider.md @@ -9,7 +9,7 @@ val client = Client() val messaging = Messaging(client) -val response = messaging.createFcmProvider( +val response = messaging.createFCMProvider( providerId = "<PROVIDER_ID>", name = "<NAME>", serviceAccountJSON = mapOf( "a" to "b" ), // optional diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/messaging/create-msg91provider.md b/docs/examples/1.8.x/server-kotlin/kotlin/messaging/create-msg-91-provider.md similarity index 100% rename from docs/examples/1.8.x/server-kotlin/kotlin/messaging/create-msg91provider.md rename to docs/examples/1.8.x/server-kotlin/kotlin/messaging/create-msg-91-provider.md diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/messaging/create-s-m-s.md b/docs/examples/1.8.x/server-kotlin/kotlin/messaging/create-s-m-s.md deleted file mode 100644 index 54c06eb3e2..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/messaging/create-s-m-s.md +++ /dev/null @@ -1,20 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Messaging - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -val messaging = Messaging(client) - -val response = messaging.createSMS( - messageId = "<MESSAGE_ID>", - content = "<CONTENT>", - topics = listOf(), // optional - users = listOf(), // optional - targets = listOf(), // optional - draft = false, // optional - scheduledAt = "" // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/messaging/create-s-m-t-p-provider.md b/docs/examples/1.8.x/server-kotlin/kotlin/messaging/create-s-m-t-p-provider.md deleted file mode 100644 index ce50130e80..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/messaging/create-s-m-t-p-provider.md +++ /dev/null @@ -1,27 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Messaging - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -val messaging = Messaging(client) - -val response = messaging.createSMTPProvider( - providerId = "<PROVIDER_ID>", - name = "<NAME>", - host = "<HOST>", - port = 1, // optional - username = "<USERNAME>", // optional - password = "<PASSWORD>", // optional - encryption = "none", // optional - autoTLS = false, // optional - mailer = "<MAILER>", // optional - fromName = "<FROM_NAME>", // optional - fromEmail = "email@example.com", // optional - replyToName = "<REPLY_TO_NAME>", // optional - replyToEmail = "email@example.com", // optional - enabled = false // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/messaging/create-sms.md b/docs/examples/1.8.x/server-kotlin/kotlin/messaging/create-sms.md index 49185290c3..54c06eb3e2 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/messaging/create-sms.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/messaging/create-sms.md @@ -9,7 +9,7 @@ val client = Client() val messaging = Messaging(client) -val response = messaging.createSms( +val response = messaging.createSMS( messageId = "<MESSAGE_ID>", content = "<CONTENT>", topics = listOf(), // optional diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/messaging/create-smtp-provider.md b/docs/examples/1.8.x/server-kotlin/kotlin/messaging/create-smtp-provider.md index ae3b6678e4..ce50130e80 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/messaging/create-smtp-provider.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/messaging/create-smtp-provider.md @@ -9,7 +9,7 @@ val client = Client() val messaging = Messaging(client) -val response = messaging.createSmtpProvider( +val response = messaging.createSMTPProvider( providerId = "<PROVIDER_ID>", name = "<NAME>", host = "<HOST>", diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/messaging/update-a-p-n-s-provider.md b/docs/examples/1.8.x/server-kotlin/kotlin/messaging/update-a-p-n-s-provider.md deleted file mode 100644 index 29b436e41d..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/messaging/update-a-p-n-s-provider.md +++ /dev/null @@ -1,21 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Messaging - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -val messaging = Messaging(client) - -val response = messaging.updateAPNSProvider( - providerId = "<PROVIDER_ID>", - name = "<NAME>", // optional - enabled = false, // optional - authKey = "<AUTH_KEY>", // optional - authKeyId = "<AUTH_KEY_ID>", // optional - teamId = "<TEAM_ID>", // optional - bundleId = "<BUNDLE_ID>", // optional - sandbox = false // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/messaging/update-apns-provider.md b/docs/examples/1.8.x/server-kotlin/kotlin/messaging/update-apns-provider.md index d0d5a07848..29b436e41d 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/messaging/update-apns-provider.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/messaging/update-apns-provider.md @@ -9,7 +9,7 @@ val client = Client() val messaging = Messaging(client) -val response = messaging.updateApnsProvider( +val response = messaging.updateAPNSProvider( providerId = "<PROVIDER_ID>", name = "<NAME>", // optional enabled = false, // optional diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/messaging/update-f-c-m-provider.md b/docs/examples/1.8.x/server-kotlin/kotlin/messaging/update-f-c-m-provider.md deleted file mode 100644 index 84e5635fb2..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/messaging/update-f-c-m-provider.md +++ /dev/null @@ -1,17 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Messaging - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -val messaging = Messaging(client) - -val response = messaging.updateFCMProvider( - providerId = "<PROVIDER_ID>", - name = "<NAME>", // optional - enabled = false, // optional - serviceAccountJSON = mapOf( "a" to "b" ) // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/messaging/update-fcm-provider.md b/docs/examples/1.8.x/server-kotlin/kotlin/messaging/update-fcm-provider.md index 477e7188d8..84e5635fb2 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/messaging/update-fcm-provider.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/messaging/update-fcm-provider.md @@ -9,7 +9,7 @@ val client = Client() val messaging = Messaging(client) -val response = messaging.updateFcmProvider( +val response = messaging.updateFCMProvider( providerId = "<PROVIDER_ID>", name = "<NAME>", // optional enabled = false, // optional diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/messaging/update-msg91provider.md b/docs/examples/1.8.x/server-kotlin/kotlin/messaging/update-msg-91-provider.md similarity index 100% rename from docs/examples/1.8.x/server-kotlin/kotlin/messaging/update-msg91provider.md rename to docs/examples/1.8.x/server-kotlin/kotlin/messaging/update-msg-91-provider.md diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/messaging/update-s-m-s.md b/docs/examples/1.8.x/server-kotlin/kotlin/messaging/update-s-m-s.md deleted file mode 100644 index 534e9addfc..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/messaging/update-s-m-s.md +++ /dev/null @@ -1,20 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Messaging - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -val messaging = Messaging(client) - -val response = messaging.updateSMS( - messageId = "<MESSAGE_ID>", - topics = listOf(), // optional - users = listOf(), // optional - targets = listOf(), // optional - content = "<CONTENT>", // optional - draft = false, // optional - scheduledAt = "" // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/messaging/update-s-m-t-p-provider.md b/docs/examples/1.8.x/server-kotlin/kotlin/messaging/update-s-m-t-p-provider.md deleted file mode 100644 index 7652e53166..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/messaging/update-s-m-t-p-provider.md +++ /dev/null @@ -1,27 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Messaging - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -val messaging = Messaging(client) - -val response = messaging.updateSMTPProvider( - providerId = "<PROVIDER_ID>", - name = "<NAME>", // optional - host = "<HOST>", // optional - port = 1, // optional - username = "<USERNAME>", // optional - password = "<PASSWORD>", // optional - encryption = "none", // optional - autoTLS = false, // optional - mailer = "<MAILER>", // optional - fromName = "<FROM_NAME>", // optional - fromEmail = "email@example.com", // optional - replyToName = "<REPLY_TO_NAME>", // optional - replyToEmail = "<REPLY_TO_EMAIL>", // optional - enabled = false // optional -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/messaging/update-sms.md b/docs/examples/1.8.x/server-kotlin/kotlin/messaging/update-sms.md index 3d08b8a16c..534e9addfc 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/messaging/update-sms.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/messaging/update-sms.md @@ -9,7 +9,7 @@ val client = Client() val messaging = Messaging(client) -val response = messaging.updateSms( +val response = messaging.updateSMS( messageId = "<MESSAGE_ID>", topics = listOf(), // optional users = listOf(), // optional diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/messaging/update-smtp-provider.md b/docs/examples/1.8.x/server-kotlin/kotlin/messaging/update-smtp-provider.md index cb745865ec..7652e53166 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/messaging/update-smtp-provider.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/messaging/update-smtp-provider.md @@ -9,7 +9,7 @@ val client = Client() val messaging = Messaging(client) -val response = messaging.updateSmtpProvider( +val response = messaging.updateSMTPProvider( providerId = "<PROVIDER_ID>", name = "<NAME>", // optional host = "<HOST>", // optional diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/users/create-argon2user.md b/docs/examples/1.8.x/server-kotlin/kotlin/users/create-argon-2-user.md similarity index 100% rename from docs/examples/1.8.x/server-kotlin/kotlin/users/create-argon2user.md rename to docs/examples/1.8.x/server-kotlin/kotlin/users/create-argon-2-user.md diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/users/create-j-w-t.md b/docs/examples/1.8.x/server-kotlin/kotlin/users/create-jwt.md similarity index 100% rename from docs/examples/1.8.x/server-kotlin/kotlin/users/create-j-w-t.md rename to docs/examples/1.8.x/server-kotlin/kotlin/users/create-jwt.md diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/users/create-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-kotlin/kotlin/users/create-m-f-a-recovery-codes.md deleted file mode 100644 index 7a0b1c61da..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/users/create-m-f-a-recovery-codes.md +++ /dev/null @@ -1,14 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Users - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -val users = Users(client) - -val response = users.createMFARecoveryCodes( - userId = "<USER_ID>" -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/users/create-m-d5user.md b/docs/examples/1.8.x/server-kotlin/kotlin/users/create-md-5-user.md similarity index 100% rename from docs/examples/1.8.x/server-kotlin/kotlin/users/create-m-d5user.md rename to docs/examples/1.8.x/server-kotlin/kotlin/users/create-md-5-user.md diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/users/create-mfa-recovery-codes.md b/docs/examples/1.8.x/server-kotlin/kotlin/users/create-mfa-recovery-codes.md index 2d1dbf0a1d..7a0b1c61da 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/users/create-mfa-recovery-codes.md @@ -9,6 +9,6 @@ val client = Client() val users = Users(client) -val response = users.createMfaRecoveryCodes( +val response = users.createMFARecoveryCodes( userId = "<USER_ID>" ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/users/create-p-h-pass-user.md b/docs/examples/1.8.x/server-kotlin/kotlin/users/create-ph-pass-user.md similarity index 100% rename from docs/examples/1.8.x/server-kotlin/kotlin/users/create-p-h-pass-user.md rename to docs/examples/1.8.x/server-kotlin/kotlin/users/create-ph-pass-user.md diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/users/create-s-h-a-user.md b/docs/examples/1.8.x/server-kotlin/kotlin/users/create-sha-user.md similarity index 100% rename from docs/examples/1.8.x/server-kotlin/kotlin/users/create-s-h-a-user.md rename to docs/examples/1.8.x/server-kotlin/kotlin/users/create-sha-user.md diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/users/delete-m-f-a-authenticator.md b/docs/examples/1.8.x/server-kotlin/kotlin/users/delete-m-f-a-authenticator.md deleted file mode 100644 index a7c80893bf..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/users/delete-m-f-a-authenticator.md +++ /dev/null @@ -1,16 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Users -import io.appwrite.enums.AuthenticatorType - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -val users = Users(client) - -val response = users.deleteMFAAuthenticator( - userId = "<USER_ID>", - type = AuthenticatorType.TOTP -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/users/delete-mfa-authenticator.md b/docs/examples/1.8.x/server-kotlin/kotlin/users/delete-mfa-authenticator.md index 22085b2f72..a7c80893bf 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/users/delete-mfa-authenticator.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/users/delete-mfa-authenticator.md @@ -10,7 +10,7 @@ val client = Client() val users = Users(client) -val response = users.deleteMfaAuthenticator( +val response = users.deleteMFAAuthenticator( userId = "<USER_ID>", type = AuthenticatorType.TOTP ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/users/get-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-kotlin/kotlin/users/get-m-f-a-recovery-codes.md deleted file mode 100644 index 1ad9197585..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/users/get-m-f-a-recovery-codes.md +++ /dev/null @@ -1,14 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Users - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -val users = Users(client) - -val response = users.getMFARecoveryCodes( - userId = "<USER_ID>" -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/users/get-mfa-recovery-codes.md b/docs/examples/1.8.x/server-kotlin/kotlin/users/get-mfa-recovery-codes.md index e0c45dc258..1ad9197585 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/users/get-mfa-recovery-codes.md @@ -9,6 +9,6 @@ val client = Client() val users = Users(client) -val response = users.getMfaRecoveryCodes( +val response = users.getMFARecoveryCodes( userId = "<USER_ID>" ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/users/list-m-f-a-factors.md b/docs/examples/1.8.x/server-kotlin/kotlin/users/list-m-f-a-factors.md deleted file mode 100644 index 9d0791cf13..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/users/list-m-f-a-factors.md +++ /dev/null @@ -1,14 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Users - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -val users = Users(client) - -val response = users.listMFAFactors( - userId = "<USER_ID>" -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/users/list-mfa-factors.md b/docs/examples/1.8.x/server-kotlin/kotlin/users/list-mfa-factors.md index 4eb6721ce5..9d0791cf13 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/users/list-mfa-factors.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/users/list-mfa-factors.md @@ -9,6 +9,6 @@ val client = Client() val users = Users(client) -val response = users.listMfaFactors( +val response = users.listMFAFactors( userId = "<USER_ID>" ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/users/update-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-kotlin/kotlin/users/update-m-f-a-recovery-codes.md deleted file mode 100644 index 80b92b4565..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/users/update-m-f-a-recovery-codes.md +++ /dev/null @@ -1,14 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Users - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -val users = Users(client) - -val response = users.updateMFARecoveryCodes( - userId = "<USER_ID>" -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/users/update-m-f-a.md b/docs/examples/1.8.x/server-kotlin/kotlin/users/update-m-f-a.md deleted file mode 100644 index d2f448e086..0000000000 --- a/docs/examples/1.8.x/server-kotlin/kotlin/users/update-m-f-a.md +++ /dev/null @@ -1,15 +0,0 @@ -import io.appwrite.Client -import io.appwrite.coroutines.CoroutineCallback -import io.appwrite.services.Users - -val client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -val users = Users(client) - -val response = users.updateMFA( - userId = "<USER_ID>", - mfa = false -) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/users/update-mfa-recovery-codes.md b/docs/examples/1.8.x/server-kotlin/kotlin/users/update-mfa-recovery-codes.md index 74602c0f7e..80b92b4565 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/users/update-mfa-recovery-codes.md @@ -9,6 +9,6 @@ val client = Client() val users = Users(client) -val response = users.updateMfaRecoveryCodes( +val response = users.updateMFARecoveryCodes( userId = "<USER_ID>" ) diff --git a/docs/examples/1.8.x/server-kotlin/kotlin/users/update-mfa.md b/docs/examples/1.8.x/server-kotlin/kotlin/users/update-mfa.md index 0148d582b8..d2f448e086 100644 --- a/docs/examples/1.8.x/server-kotlin/kotlin/users/update-mfa.md +++ b/docs/examples/1.8.x/server-kotlin/kotlin/users/update-mfa.md @@ -9,7 +9,7 @@ val client = Client() val users = Users(client) -val response = users.updateMfa( +val response = users.updateMFA( userId = "<USER_ID>", mfa = false ) diff --git a/docs/examples/1.8.x/server-nodejs/examples/account/create-email-token.md b/docs/examples/1.8.x/server-nodejs/examples/account/create-email-token.md index 8c31825b4b..eb071b9e08 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/account/create-email-token.md +++ b/docs/examples/1.8.x/server-nodejs/examples/account/create-email-token.md @@ -9,5 +9,5 @@ const account = new sdk.Account(client); const result = await account.createEmailToken({ userId: '<USER_ID>', email: 'email@example.com', - phrase: false + phrase: false // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/account/create-j-w-t.md b/docs/examples/1.8.x/server-nodejs/examples/account/create-jwt.md similarity index 100% rename from docs/examples/1.8.x/server-nodejs/examples/account/create-j-w-t.md rename to docs/examples/1.8.x/server-nodejs/examples/account/create-jwt.md diff --git a/docs/examples/1.8.x/server-nodejs/examples/account/create-m-f-a-authenticator.md b/docs/examples/1.8.x/server-nodejs/examples/account/create-m-f-a-authenticator.md deleted file mode 100644 index 8dd6a599c0..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/account/create-m-f-a-authenticator.md +++ /dev/null @@ -1,12 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setSession(''); // The user session to authenticate with - -const account = new sdk.Account(client); - -const result = await account.createMFAAuthenticator({ - type: sdk.AuthenticatorType.Totp -}); diff --git a/docs/examples/1.8.x/server-nodejs/examples/account/create-m-f-a-challenge.md b/docs/examples/1.8.x/server-nodejs/examples/account/create-m-f-a-challenge.md deleted file mode 100644 index 4195f46892..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/account/create-m-f-a-challenge.md +++ /dev/null @@ -1,11 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>'); // Your project ID - -const account = new sdk.Account(client); - -const result = await account.createMFAChallenge({ - factor: sdk.AuthenticationFactor.Email -}); diff --git a/docs/examples/1.8.x/server-nodejs/examples/account/create-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-nodejs/examples/account/create-m-f-a-recovery-codes.md deleted file mode 100644 index 1392f44399..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/account/create-m-f-a-recovery-codes.md +++ /dev/null @@ -1,10 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setSession(''); // The user session to authenticate with - -const account = new sdk.Account(client); - -const result = await account.createMFARecoveryCodes(); diff --git a/docs/examples/1.8.x/server-nodejs/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.8.x/server-nodejs/examples/account/create-magic-url-token.md similarity index 83% rename from docs/examples/1.8.x/server-nodejs/examples/account/create-magic-u-r-l-token.md rename to docs/examples/1.8.x/server-nodejs/examples/account/create-magic-url-token.md index 1dab03e8d7..59f7d10c53 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/account/create-magic-u-r-l-token.md +++ b/docs/examples/1.8.x/server-nodejs/examples/account/create-magic-url-token.md @@ -9,6 +9,6 @@ const account = new sdk.Account(client); const result = await account.createMagicURLToken({ userId: '<USER_ID>', email: 'email@example.com', - url: 'https://example.com', - phrase: false + url: 'https://example.com', // optional + phrase: false // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/account/create-mfa-authenticator.md b/docs/examples/1.8.x/server-nodejs/examples/account/create-mfa-authenticator.md index 83841b114d..8dd6a599c0 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.8.x/server-nodejs/examples/account/create-mfa-authenticator.md @@ -7,6 +7,6 @@ const client = new sdk.Client() const account = new sdk.Account(client); -const result = await account.createMfaAuthenticator({ +const result = await account.createMFAAuthenticator({ type: sdk.AuthenticatorType.Totp }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/account/create-mfa-challenge.md b/docs/examples/1.8.x/server-nodejs/examples/account/create-mfa-challenge.md index 40c22fd780..4195f46892 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.8.x/server-nodejs/examples/account/create-mfa-challenge.md @@ -6,6 +6,6 @@ const client = new sdk.Client() const account = new sdk.Account(client); -const result = await account.createMfaChallenge({ +const result = await account.createMFAChallenge({ factor: sdk.AuthenticationFactor.Email }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.8.x/server-nodejs/examples/account/create-mfa-recovery-codes.md index 42b3c8c6f5..1392f44399 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-nodejs/examples/account/create-mfa-recovery-codes.md @@ -7,4 +7,4 @@ const client = new sdk.Client() const account = new sdk.Account(client); -const result = await account.createMfaRecoveryCodes(); +const result = await account.createMFARecoveryCodes(); diff --git a/docs/examples/1.8.x/server-nodejs/examples/account/create-o-auth2token.md b/docs/examples/1.8.x/server-nodejs/examples/account/create-o-auth-2-token.md similarity index 73% rename from docs/examples/1.8.x/server-nodejs/examples/account/create-o-auth2token.md rename to docs/examples/1.8.x/server-nodejs/examples/account/create-o-auth-2-token.md index c46d24fab1..cc4f31552a 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/account/create-o-auth2token.md +++ b/docs/examples/1.8.x/server-nodejs/examples/account/create-o-auth-2-token.md @@ -8,7 +8,7 @@ const account = new sdk.Account(client); const result = await account.createOAuth2Token({ provider: sdk.OAuthProvider.Amazon, - success: 'https://example.com', - failure: 'https://example.com', - scopes: [] + success: 'https://example.com', // optional + failure: 'https://example.com', // optional + scopes: [] // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/account/create.md b/docs/examples/1.8.x/server-nodejs/examples/account/create.md index 20a5ec1c4b..7ba2d427d1 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/account/create.md +++ b/docs/examples/1.8.x/server-nodejs/examples/account/create.md @@ -10,5 +10,5 @@ const result = await account.create({ userId: '<USER_ID>', email: 'email@example.com', password: '', - name: '<NAME>' + name: '<NAME>' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/account/delete-m-f-a-authenticator.md b/docs/examples/1.8.x/server-nodejs/examples/account/delete-m-f-a-authenticator.md deleted file mode 100644 index f3d8093ca2..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/account/delete-m-f-a-authenticator.md +++ /dev/null @@ -1,12 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setSession(''); // The user session to authenticate with - -const account = new sdk.Account(client); - -const result = await account.deleteMFAAuthenticator({ - type: sdk.AuthenticatorType.Totp -}); diff --git a/docs/examples/1.8.x/server-nodejs/examples/account/delete-mfa-authenticator.md b/docs/examples/1.8.x/server-nodejs/examples/account/delete-mfa-authenticator.md index 63e629dff7..f3d8093ca2 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.8.x/server-nodejs/examples/account/delete-mfa-authenticator.md @@ -7,6 +7,6 @@ const client = new sdk.Client() const account = new sdk.Account(client); -const result = await account.deleteMfaAuthenticator({ +const result = await account.deleteMFAAuthenticator({ type: sdk.AuthenticatorType.Totp }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/account/get-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-nodejs/examples/account/get-m-f-a-recovery-codes.md deleted file mode 100644 index 6461e6b586..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/account/get-m-f-a-recovery-codes.md +++ /dev/null @@ -1,10 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setSession(''); // The user session to authenticate with - -const account = new sdk.Account(client); - -const result = await account.getMFARecoveryCodes(); diff --git a/docs/examples/1.8.x/server-nodejs/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.8.x/server-nodejs/examples/account/get-mfa-recovery-codes.md index 27f902424e..6461e6b586 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-nodejs/examples/account/get-mfa-recovery-codes.md @@ -7,4 +7,4 @@ const client = new sdk.Client() const account = new sdk.Account(client); -const result = await account.getMfaRecoveryCodes(); +const result = await account.getMFARecoveryCodes(); diff --git a/docs/examples/1.8.x/server-nodejs/examples/account/list-identities.md b/docs/examples/1.8.x/server-nodejs/examples/account/list-identities.md index e299c88dee..b124065db7 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/account/list-identities.md +++ b/docs/examples/1.8.x/server-nodejs/examples/account/list-identities.md @@ -8,5 +8,5 @@ const client = new sdk.Client() const account = new sdk.Account(client); const result = await account.listIdentities({ - queries: [] + queries: [] // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/account/list-logs.md b/docs/examples/1.8.x/server-nodejs/examples/account/list-logs.md index 9e205bf027..ca47edda5e 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/account/list-logs.md +++ b/docs/examples/1.8.x/server-nodejs/examples/account/list-logs.md @@ -8,5 +8,5 @@ const client = new sdk.Client() const account = new sdk.Account(client); const result = await account.listLogs({ - queries: [] + queries: [] // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/account/list-m-f-a-factors.md b/docs/examples/1.8.x/server-nodejs/examples/account/list-m-f-a-factors.md deleted file mode 100644 index 97f7f5fbc7..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/account/list-m-f-a-factors.md +++ /dev/null @@ -1,10 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setSession(''); // The user session to authenticate with - -const account = new sdk.Account(client); - -const result = await account.listMFAFactors(); diff --git a/docs/examples/1.8.x/server-nodejs/examples/account/list-mfa-factors.md b/docs/examples/1.8.x/server-nodejs/examples/account/list-mfa-factors.md index a993e31aa8..97f7f5fbc7 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/account/list-mfa-factors.md +++ b/docs/examples/1.8.x/server-nodejs/examples/account/list-mfa-factors.md @@ -7,4 +7,4 @@ const client = new sdk.Client() const account = new sdk.Account(client); -const result = await account.listMfaFactors(); +const result = await account.listMFAFactors(); diff --git a/docs/examples/1.8.x/server-nodejs/examples/account/update-m-f-a-authenticator.md b/docs/examples/1.8.x/server-nodejs/examples/account/update-m-f-a-authenticator.md deleted file mode 100644 index 18e15754bc..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/account/update-m-f-a-authenticator.md +++ /dev/null @@ -1,13 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setSession(''); // The user session to authenticate with - -const account = new sdk.Account(client); - -const result = await account.updateMFAAuthenticator({ - type: sdk.AuthenticatorType.Totp, - otp: '<OTP>' -}); diff --git a/docs/examples/1.8.x/server-nodejs/examples/account/update-m-f-a-challenge.md b/docs/examples/1.8.x/server-nodejs/examples/account/update-m-f-a-challenge.md deleted file mode 100644 index 4903e1e298..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/account/update-m-f-a-challenge.md +++ /dev/null @@ -1,13 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setSession(''); // The user session to authenticate with - -const account = new sdk.Account(client); - -const result = await account.updateMFAChallenge({ - challengeId: '<CHALLENGE_ID>', - otp: '<OTP>' -}); diff --git a/docs/examples/1.8.x/server-nodejs/examples/account/update-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-nodejs/examples/account/update-m-f-a-recovery-codes.md deleted file mode 100644 index fd5c1fd56d..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/account/update-m-f-a-recovery-codes.md +++ /dev/null @@ -1,10 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setSession(''); // The user session to authenticate with - -const account = new sdk.Account(client); - -const result = await account.updateMFARecoveryCodes(); diff --git a/docs/examples/1.8.x/server-nodejs/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.8.x/server-nodejs/examples/account/update-magic-url-session.md similarity index 100% rename from docs/examples/1.8.x/server-nodejs/examples/account/update-magic-u-r-l-session.md rename to docs/examples/1.8.x/server-nodejs/examples/account/update-magic-url-session.md diff --git a/docs/examples/1.8.x/server-nodejs/examples/account/update-mfa-authenticator.md b/docs/examples/1.8.x/server-nodejs/examples/account/update-mfa-authenticator.md index 9901cd17a2..18e15754bc 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.8.x/server-nodejs/examples/account/update-mfa-authenticator.md @@ -7,7 +7,7 @@ const client = new sdk.Client() const account = new sdk.Account(client); -const result = await account.updateMfaAuthenticator({ +const result = await account.updateMFAAuthenticator({ type: sdk.AuthenticatorType.Totp, otp: '<OTP>' }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/account/update-mfa-challenge.md b/docs/examples/1.8.x/server-nodejs/examples/account/update-mfa-challenge.md index 36ebc25c71..4903e1e298 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.8.x/server-nodejs/examples/account/update-mfa-challenge.md @@ -7,7 +7,7 @@ const client = new sdk.Client() const account = new sdk.Account(client); -const result = await account.updateMfaChallenge({ +const result = await account.updateMFAChallenge({ challengeId: '<CHALLENGE_ID>', otp: '<OTP>' }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.8.x/server-nodejs/examples/account/update-mfa-recovery-codes.md index 9db82175c9..fd5c1fd56d 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-nodejs/examples/account/update-mfa-recovery-codes.md @@ -7,4 +7,4 @@ const client = new sdk.Client() const account = new sdk.Account(client); -const result = await account.updateMfaRecoveryCodes(); +const result = await account.updateMFARecoveryCodes(); diff --git a/docs/examples/1.8.x/server-nodejs/examples/account/update-m-f-a.md b/docs/examples/1.8.x/server-nodejs/examples/account/update-mfa.md similarity index 100% rename from docs/examples/1.8.x/server-nodejs/examples/account/update-m-f-a.md rename to docs/examples/1.8.x/server-nodejs/examples/account/update-mfa.md diff --git a/docs/examples/1.8.x/server-nodejs/examples/account/update-password.md b/docs/examples/1.8.x/server-nodejs/examples/account/update-password.md index 1a37a35a9c..e7e8437f5b 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/account/update-password.md +++ b/docs/examples/1.8.x/server-nodejs/examples/account/update-password.md @@ -9,5 +9,5 @@ const account = new sdk.Account(client); const result = await account.updatePassword({ password: '', - oldPassword: 'password' + oldPassword: 'password' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/avatars/get-browser.md b/docs/examples/1.8.x/server-nodejs/examples/avatars/get-browser.md index 480e5fc69a..9f3b2cce80 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/avatars/get-browser.md +++ b/docs/examples/1.8.x/server-nodejs/examples/avatars/get-browser.md @@ -9,7 +9,7 @@ const avatars = new sdk.Avatars(client); const result = await avatars.getBrowser({ code: sdk.Browser.AvantBrowser, - width: 0, - height: 0, - quality: -1 + width: 0, // optional + height: 0, // optional + quality: -1 // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/avatars/get-credit-card.md b/docs/examples/1.8.x/server-nodejs/examples/avatars/get-credit-card.md index 332c2b8e2c..1337d05fb9 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/avatars/get-credit-card.md +++ b/docs/examples/1.8.x/server-nodejs/examples/avatars/get-credit-card.md @@ -9,7 +9,7 @@ const avatars = new sdk.Avatars(client); const result = await avatars.getCreditCard({ code: sdk.CreditCard.AmericanExpress, - width: 0, - height: 0, - quality: -1 + width: 0, // optional + height: 0, // optional + quality: -1 // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/avatars/get-flag.md b/docs/examples/1.8.x/server-nodejs/examples/avatars/get-flag.md index ecde4a5a50..672c18bb77 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/avatars/get-flag.md +++ b/docs/examples/1.8.x/server-nodejs/examples/avatars/get-flag.md @@ -9,7 +9,7 @@ const avatars = new sdk.Avatars(client); const result = await avatars.getFlag({ code: sdk.Flag.Afghanistan, - width: 0, - height: 0, - quality: -1 + width: 0, // optional + height: 0, // optional + quality: -1 // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/avatars/get-image.md b/docs/examples/1.8.x/server-nodejs/examples/avatars/get-image.md index 9b23cb5f6b..12aef10321 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/avatars/get-image.md +++ b/docs/examples/1.8.x/server-nodejs/examples/avatars/get-image.md @@ -9,6 +9,6 @@ const avatars = new sdk.Avatars(client); const result = await avatars.getImage({ url: 'https://example.com', - width: 0, - height: 0 + width: 0, // optional + height: 0 // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/avatars/get-initials.md b/docs/examples/1.8.x/server-nodejs/examples/avatars/get-initials.md index ddde2dd56b..584786f65c 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/avatars/get-initials.md +++ b/docs/examples/1.8.x/server-nodejs/examples/avatars/get-initials.md @@ -8,8 +8,8 @@ const client = new sdk.Client() const avatars = new sdk.Avatars(client); const result = await avatars.getInitials({ - name: '<NAME>', - width: 0, - height: 0, - background: '' + name: '<NAME>', // optional + width: 0, // optional + height: 0, // optional + background: '' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/avatars/get-q-r.md b/docs/examples/1.8.x/server-nodejs/examples/avatars/get-qr.md similarity index 81% rename from docs/examples/1.8.x/server-nodejs/examples/avatars/get-q-r.md rename to docs/examples/1.8.x/server-nodejs/examples/avatars/get-qr.md index 10299b5e07..fd083807c8 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/avatars/get-q-r.md +++ b/docs/examples/1.8.x/server-nodejs/examples/avatars/get-qr.md @@ -9,7 +9,7 @@ const avatars = new sdk.Avatars(client); const result = await avatars.getQR({ text: '<TEXT>', - size: 1, - margin: 0, - download: false + size: 1, // optional + margin: 0, // optional + download: false // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/create-boolean-attribute.md b/docs/examples/1.8.x/server-nodejs/examples/databases/create-boolean-attribute.md index 554f66189f..2e9b5629cc 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/create-boolean-attribute.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/create-boolean-attribute.md @@ -12,6 +12,6 @@ const result = await databases.createBooleanAttribute({ collectionId: '<COLLECTION_ID>', key: '', required: false, - default: false, - array: false + default: false, // optional + array: false // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/create-collection.md b/docs/examples/1.8.x/server-nodejs/examples/databases/create-collection.md index 7adaf2207a..8ad770d907 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/create-collection.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/create-collection.md @@ -11,7 +11,7 @@ const result = await databases.createCollection({ databaseId: '<DATABASE_ID>', collectionId: '<COLLECTION_ID>', name: '<NAME>', - permissions: ["read("any")"], - documentSecurity: false, - enabled: false + permissions: ["read("any")"], // optional + documentSecurity: false, // optional + enabled: false // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/create-datetime-attribute.md b/docs/examples/1.8.x/server-nodejs/examples/databases/create-datetime-attribute.md index eb38f59a0c..7ca8b553e9 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/create-datetime-attribute.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/create-datetime-attribute.md @@ -12,6 +12,6 @@ const result = await databases.createDatetimeAttribute({ collectionId: '<COLLECTION_ID>', key: '', required: false, - default: '', - array: false + default: '', // optional + array: false // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/create-document.md b/docs/examples/1.8.x/server-nodejs/examples/databases/create-document.md index a3c092c2cc..39442d1cb7 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/create-document.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/create-document.md @@ -12,5 +12,5 @@ const result = await databases.createDocument({ collectionId: '<COLLECTION_ID>', documentId: '<DOCUMENT_ID>', data: {}, - permissions: ["read("any")"] + permissions: ["read("any")"] // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/create-email-attribute.md b/docs/examples/1.8.x/server-nodejs/examples/databases/create-email-attribute.md index 8802844c4d..4afebf6560 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/create-email-attribute.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/create-email-attribute.md @@ -12,6 +12,6 @@ const result = await databases.createEmailAttribute({ collectionId: '<COLLECTION_ID>', key: '', required: false, - default: 'email@example.com', - array: false + default: 'email@example.com', // optional + array: false // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/create-enum-attribute.md b/docs/examples/1.8.x/server-nodejs/examples/databases/create-enum-attribute.md index 44a836afd2..5866eabb7d 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/create-enum-attribute.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/create-enum-attribute.md @@ -13,6 +13,6 @@ const result = await databases.createEnumAttribute({ key: '', elements: [], required: false, - default: '<DEFAULT>', - array: false + default: '<DEFAULT>', // optional + array: false // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/create-float-attribute.md b/docs/examples/1.8.x/server-nodejs/examples/databases/create-float-attribute.md index 19bc0184a4..7843c1658a 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/create-float-attribute.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/create-float-attribute.md @@ -12,8 +12,8 @@ const result = await databases.createFloatAttribute({ collectionId: '<COLLECTION_ID>', key: '', required: false, - min: null, - max: null, - default: null, - array: false + min: null, // optional + max: null, // optional + default: null, // optional + array: false // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/create-index.md b/docs/examples/1.8.x/server-nodejs/examples/databases/create-index.md index b5f37dee1c..ce5214a9ab 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/create-index.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/create-index.md @@ -13,6 +13,6 @@ const result = await databases.createIndex({ key: '', type: sdk.IndexType.Key, attributes: [], - orders: [], - lengths: [] + orders: [], // optional + lengths: [] // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/create-integer-attribute.md b/docs/examples/1.8.x/server-nodejs/examples/databases/create-integer-attribute.md index 63230c76c0..e3752669b6 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/create-integer-attribute.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/create-integer-attribute.md @@ -12,8 +12,8 @@ const result = await databases.createIntegerAttribute({ collectionId: '<COLLECTION_ID>', key: '', required: false, - min: null, - max: null, - default: null, - array: false + min: null, // optional + max: null, // optional + default: null, // optional + array: false // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/create-ip-attribute.md b/docs/examples/1.8.x/server-nodejs/examples/databases/create-ip-attribute.md index 2ad3d59e7d..110e3a813f 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/create-ip-attribute.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/create-ip-attribute.md @@ -12,6 +12,6 @@ const result = await databases.createIpAttribute({ collectionId: '<COLLECTION_ID>', key: '', required: false, - default: '', - array: false + default: '', // optional + array: false // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/create-relationship-attribute.md b/docs/examples/1.8.x/server-nodejs/examples/databases/create-relationship-attribute.md index ed15e29b20..b09c6a3b07 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/create-relationship-attribute.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/create-relationship-attribute.md @@ -12,8 +12,8 @@ const result = await databases.createRelationshipAttribute({ collectionId: '<COLLECTION_ID>', relatedCollectionId: '<RELATED_COLLECTION_ID>', type: sdk.RelationshipType.OneToOne, - twoWay: false, - key: '', - twoWayKey: '', - onDelete: sdk.RelationMutate.Cascade + twoWay: false, // optional + key: '', // optional + twoWayKey: '', // optional + onDelete: sdk.RelationMutate.Cascade // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/create-string-attribute.md b/docs/examples/1.8.x/server-nodejs/examples/databases/create-string-attribute.md index 6bb7590696..57ed8f4ea2 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/create-string-attribute.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/create-string-attribute.md @@ -13,7 +13,7 @@ const result = await databases.createStringAttribute({ key: '', size: 1, required: false, - default: '<DEFAULT>', - array: false, - encrypt: false + default: '<DEFAULT>', // optional + array: false, // optional + encrypt: false // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/create-url-attribute.md b/docs/examples/1.8.x/server-nodejs/examples/databases/create-url-attribute.md index 2aa705d681..af3177f837 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/create-url-attribute.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/create-url-attribute.md @@ -12,6 +12,6 @@ const result = await databases.createUrlAttribute({ collectionId: '<COLLECTION_ID>', key: '', required: false, - default: 'https://example.com', - array: false + default: 'https://example.com', // optional + array: false // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/create.md b/docs/examples/1.8.x/server-nodejs/examples/databases/create.md index a87dbddce2..7392a85f37 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/create.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/create.md @@ -10,5 +10,5 @@ const databases = new sdk.Databases(client); const result = await databases.create({ databaseId: '<DATABASE_ID>', name: '<NAME>', - enabled: false + enabled: false // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/decrement-document-attribute.md b/docs/examples/1.8.x/server-nodejs/examples/databases/decrement-document-attribute.md index 1e782359a2..87e4d7d25c 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/decrement-document-attribute.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/decrement-document-attribute.md @@ -12,6 +12,6 @@ const result = await databases.decrementDocumentAttribute({ collectionId: '<COLLECTION_ID>', documentId: '<DOCUMENT_ID>', attribute: '', - value: null, - min: null + value: null, // optional + min: null // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/delete-documents.md b/docs/examples/1.8.x/server-nodejs/examples/databases/delete-documents.md index 2bbb4c0381..0965d8ddaf 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/delete-documents.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/delete-documents.md @@ -10,5 +10,5 @@ const databases = new sdk.Databases(client); const result = await databases.deleteDocuments({ databaseId: '<DATABASE_ID>', collectionId: '<COLLECTION_ID>', - queries: [] + queries: [] // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/get-document.md b/docs/examples/1.8.x/server-nodejs/examples/databases/get-document.md index 726fe89963..7cc71cd0c3 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/get-document.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/get-document.md @@ -11,5 +11,5 @@ const result = await databases.getDocument({ databaseId: '<DATABASE_ID>', collectionId: '<COLLECTION_ID>', documentId: '<DOCUMENT_ID>', - queries: [] + queries: [] // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/increment-document-attribute.md b/docs/examples/1.8.x/server-nodejs/examples/databases/increment-document-attribute.md index 72aeae3960..2b47f5a75d 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/increment-document-attribute.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/increment-document-attribute.md @@ -12,6 +12,6 @@ const result = await databases.incrementDocumentAttribute({ collectionId: '<COLLECTION_ID>', documentId: '<DOCUMENT_ID>', attribute: '', - value: null, - max: null + value: null, // optional + max: null // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/list-attributes.md b/docs/examples/1.8.x/server-nodejs/examples/databases/list-attributes.md index eb7cf13184..a69800c4d7 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/list-attributes.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/list-attributes.md @@ -10,5 +10,5 @@ const databases = new sdk.Databases(client); const result = await databases.listAttributes({ databaseId: '<DATABASE_ID>', collectionId: '<COLLECTION_ID>', - queries: [] + queries: [] // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/list-collections.md b/docs/examples/1.8.x/server-nodejs/examples/databases/list-collections.md index 22b809aec5..933b53ce83 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/list-collections.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/list-collections.md @@ -9,6 +9,6 @@ const databases = new sdk.Databases(client); const result = await databases.listCollections({ databaseId: '<DATABASE_ID>', - queries: [], - search: '<SEARCH>' + queries: [], // optional + search: '<SEARCH>' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/list-documents.md b/docs/examples/1.8.x/server-nodejs/examples/databases/list-documents.md index 1a922c7c1a..148bf83c8f 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/list-documents.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/list-documents.md @@ -10,5 +10,5 @@ const databases = new sdk.Databases(client); const result = await databases.listDocuments({ databaseId: '<DATABASE_ID>', collectionId: '<COLLECTION_ID>', - queries: [] + queries: [] // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/list-indexes.md b/docs/examples/1.8.x/server-nodejs/examples/databases/list-indexes.md index 888b64c77e..f48112fccf 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/list-indexes.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/list-indexes.md @@ -10,5 +10,5 @@ const databases = new sdk.Databases(client); const result = await databases.listIndexes({ databaseId: '<DATABASE_ID>', collectionId: '<COLLECTION_ID>', - queries: [] + queries: [] // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/list.md b/docs/examples/1.8.x/server-nodejs/examples/databases/list.md index 344ab6192f..4ac7e47d46 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/list.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/list.md @@ -8,6 +8,6 @@ const client = new sdk.Client() const databases = new sdk.Databases(client); const result = await databases.list({ - queries: [], - search: '<SEARCH>' + queries: [], // optional + search: '<SEARCH>' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/update-boolean-attribute.md b/docs/examples/1.8.x/server-nodejs/examples/databases/update-boolean-attribute.md index fec665e382..224fc8e6f9 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/update-boolean-attribute.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/update-boolean-attribute.md @@ -13,5 +13,5 @@ const result = await databases.updateBooleanAttribute({ key: '', required: false, default: false, - newKey: '' + newKey: '' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/update-collection.md b/docs/examples/1.8.x/server-nodejs/examples/databases/update-collection.md index 5fc204a925..d0d25b74d6 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/update-collection.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/update-collection.md @@ -11,7 +11,7 @@ const result = await databases.updateCollection({ databaseId: '<DATABASE_ID>', collectionId: '<COLLECTION_ID>', name: '<NAME>', - permissions: ["read("any")"], - documentSecurity: false, - enabled: false + permissions: ["read("any")"], // optional + documentSecurity: false, // optional + enabled: false // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/update-datetime-attribute.md b/docs/examples/1.8.x/server-nodejs/examples/databases/update-datetime-attribute.md index 7b8251ab13..20034486fe 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/update-datetime-attribute.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/update-datetime-attribute.md @@ -13,5 +13,5 @@ const result = await databases.updateDatetimeAttribute({ key: '', required: false, default: '', - newKey: '' + newKey: '' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/update-document.md b/docs/examples/1.8.x/server-nodejs/examples/databases/update-document.md index dd994b9ab2..8a9a6856b4 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/update-document.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/update-document.md @@ -11,6 +11,6 @@ const result = await databases.updateDocument({ databaseId: '<DATABASE_ID>', collectionId: '<COLLECTION_ID>', documentId: '<DOCUMENT_ID>', - data: {}, - permissions: ["read("any")"] + data: {}, // optional + permissions: ["read("any")"] // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/update-documents.md b/docs/examples/1.8.x/server-nodejs/examples/databases/update-documents.md index 936e38dd1d..2cfb8c7800 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/update-documents.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/update-documents.md @@ -10,6 +10,6 @@ const databases = new sdk.Databases(client); const result = await databases.updateDocuments({ databaseId: '<DATABASE_ID>', collectionId: '<COLLECTION_ID>', - data: {}, - queries: [] + data: {}, // optional + queries: [] // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/update-email-attribute.md b/docs/examples/1.8.x/server-nodejs/examples/databases/update-email-attribute.md index 9a15d8152e..738c533c33 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/update-email-attribute.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/update-email-attribute.md @@ -13,5 +13,5 @@ const result = await databases.updateEmailAttribute({ key: '', required: false, default: 'email@example.com', - newKey: '' + newKey: '' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/update-enum-attribute.md b/docs/examples/1.8.x/server-nodejs/examples/databases/update-enum-attribute.md index 0994def748..f240cb0565 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/update-enum-attribute.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/update-enum-attribute.md @@ -14,5 +14,5 @@ const result = await databases.updateEnumAttribute({ elements: [], required: false, default: '<DEFAULT>', - newKey: '' + newKey: '' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/update-float-attribute.md b/docs/examples/1.8.x/server-nodejs/examples/databases/update-float-attribute.md index 15ea7c0545..877cad18bf 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/update-float-attribute.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/update-float-attribute.md @@ -13,7 +13,7 @@ const result = await databases.updateFloatAttribute({ key: '', required: false, default: null, - min: null, - max: null, - newKey: '' + min: null, // optional + max: null, // optional + newKey: '' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/update-integer-attribute.md b/docs/examples/1.8.x/server-nodejs/examples/databases/update-integer-attribute.md index 6958b5e7c1..cf7101e5f5 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/update-integer-attribute.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/update-integer-attribute.md @@ -13,7 +13,7 @@ const result = await databases.updateIntegerAttribute({ key: '', required: false, default: null, - min: null, - max: null, - newKey: '' + min: null, // optional + max: null, // optional + newKey: '' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/update-ip-attribute.md b/docs/examples/1.8.x/server-nodejs/examples/databases/update-ip-attribute.md index 76bef95e35..d41bb85060 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/update-ip-attribute.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/update-ip-attribute.md @@ -13,5 +13,5 @@ const result = await databases.updateIpAttribute({ key: '', required: false, default: '', - newKey: '' + newKey: '' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/update-relationship-attribute.md b/docs/examples/1.8.x/server-nodejs/examples/databases/update-relationship-attribute.md index bd6b681a17..aa476c4160 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/update-relationship-attribute.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/update-relationship-attribute.md @@ -11,6 +11,6 @@ const result = await databases.updateRelationshipAttribute({ databaseId: '<DATABASE_ID>', collectionId: '<COLLECTION_ID>', key: '', - onDelete: sdk.RelationMutate.Cascade, - newKey: '' + onDelete: sdk.RelationMutate.Cascade, // optional + newKey: '' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/update-string-attribute.md b/docs/examples/1.8.x/server-nodejs/examples/databases/update-string-attribute.md index 2ca12a058d..b0d7bea52e 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/update-string-attribute.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/update-string-attribute.md @@ -13,6 +13,6 @@ const result = await databases.updateStringAttribute({ key: '', required: false, default: '<DEFAULT>', - size: 1, - newKey: '' + size: 1, // optional + newKey: '' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/update-url-attribute.md b/docs/examples/1.8.x/server-nodejs/examples/databases/update-url-attribute.md index 56d9970915..48d928151b 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/update-url-attribute.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/update-url-attribute.md @@ -13,5 +13,5 @@ const result = await databases.updateUrlAttribute({ key: '', required: false, default: 'https://example.com', - newKey: '' + newKey: '' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/update.md b/docs/examples/1.8.x/server-nodejs/examples/databases/update.md index 8304d178c6..9a0dbd2eb1 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/update.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/update.md @@ -10,5 +10,5 @@ const databases = new sdk.Databases(client); const result = await databases.update({ databaseId: '<DATABASE_ID>', name: '<NAME>', - enabled: false + enabled: false // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/databases/upsert-document.md b/docs/examples/1.8.x/server-nodejs/examples/databases/upsert-document.md index 359cd01948..5ec3e0541e 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/databases/upsert-document.md +++ b/docs/examples/1.8.x/server-nodejs/examples/databases/upsert-document.md @@ -12,5 +12,5 @@ const result = await databases.upsertDocument({ collectionId: '<COLLECTION_ID>', documentId: '<DOCUMENT_ID>', data: {}, - permissions: ["read("any")"] + permissions: ["read("any")"] // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/functions/create-deployment.md b/docs/examples/1.8.x/server-nodejs/examples/functions/create-deployment.md index ee60723aef..77946a7084 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/functions/create-deployment.md +++ b/docs/examples/1.8.x/server-nodejs/examples/functions/create-deployment.md @@ -12,6 +12,6 @@ const result = await functions.createDeployment({ functionId: '<FUNCTION_ID>', code: InputFile.fromPath('/path/to/file', 'filename'), activate: false, - entrypoint: '<ENTRYPOINT>', - commands: '<COMMANDS>' + entrypoint: '<ENTRYPOINT>', // optional + commands: '<COMMANDS>' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/functions/create-duplicate-deployment.md b/docs/examples/1.8.x/server-nodejs/examples/functions/create-duplicate-deployment.md index b4cae144b9..03c68e7491 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/functions/create-duplicate-deployment.md +++ b/docs/examples/1.8.x/server-nodejs/examples/functions/create-duplicate-deployment.md @@ -10,5 +10,5 @@ const functions = new sdk.Functions(client); const result = await functions.createDuplicateDeployment({ functionId: '<FUNCTION_ID>', deploymentId: '<DEPLOYMENT_ID>', - buildId: '<BUILD_ID>' + buildId: '<BUILD_ID>' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/functions/create-execution.md b/docs/examples/1.8.x/server-nodejs/examples/functions/create-execution.md index d8f0c5e82f..5b2c18cc86 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/functions/create-execution.md +++ b/docs/examples/1.8.x/server-nodejs/examples/functions/create-execution.md @@ -9,10 +9,10 @@ const functions = new sdk.Functions(client); const result = await functions.createExecution({ functionId: '<FUNCTION_ID>', - body: '<BODY>', - async: false, - path: '<PATH>', - method: sdk.ExecutionMethod.GET, - headers: {}, - scheduledAt: '<SCHEDULED_AT>' + body: '<BODY>', // optional + async: false, // optional + path: '<PATH>', // optional + method: sdk.ExecutionMethod.GET, // optional + headers: {}, // optional + scheduledAt: '<SCHEDULED_AT>' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/functions/create-template-deployment.md b/docs/examples/1.8.x/server-nodejs/examples/functions/create-template-deployment.md index dc636fdb80..8f6395f8fb 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/functions/create-template-deployment.md +++ b/docs/examples/1.8.x/server-nodejs/examples/functions/create-template-deployment.md @@ -13,5 +13,5 @@ const result = await functions.createTemplateDeployment({ owner: '<OWNER>', rootDirectory: '<ROOT_DIRECTORY>', version: '<VERSION>', - activate: false + activate: false // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/functions/create-variable.md b/docs/examples/1.8.x/server-nodejs/examples/functions/create-variable.md index 015d98fa6c..45928395bd 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/functions/create-variable.md +++ b/docs/examples/1.8.x/server-nodejs/examples/functions/create-variable.md @@ -11,5 +11,5 @@ const result = await functions.createVariable({ functionId: '<FUNCTION_ID>', key: '<KEY>', value: '<VALUE>', - secret: false + secret: false // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/functions/create-vcs-deployment.md b/docs/examples/1.8.x/server-nodejs/examples/functions/create-vcs-deployment.md index b8c957e2f9..0aabfcff8a 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/functions/create-vcs-deployment.md +++ b/docs/examples/1.8.x/server-nodejs/examples/functions/create-vcs-deployment.md @@ -11,5 +11,5 @@ const result = await functions.createVcsDeployment({ functionId: '<FUNCTION_ID>', type: sdk.VCSDeploymentType.Branch, reference: '<REFERENCE>', - activate: false + activate: false // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/functions/create.md b/docs/examples/1.8.x/server-nodejs/examples/functions/create.md index a3c9d418bb..d9f21ff796 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/functions/create.md +++ b/docs/examples/1.8.x/server-nodejs/examples/functions/create.md @@ -11,19 +11,19 @@ const result = await functions.create({ functionId: '<FUNCTION_ID>', name: '<NAME>', runtime: sdk..Node145, - execute: ["any"], - events: [], - schedule: '', - timeout: 1, - enabled: false, - logging: false, - entrypoint: '<ENTRYPOINT>', - commands: '<COMMANDS>', - scopes: [], - installationId: '<INSTALLATION_ID>', - providerRepositoryId: '<PROVIDER_REPOSITORY_ID>', - providerBranch: '<PROVIDER_BRANCH>', - providerSilentMode: false, - providerRootDirectory: '<PROVIDER_ROOT_DIRECTORY>', - specification: '' + execute: ["any"], // optional + events: [], // optional + schedule: '', // optional + timeout: 1, // optional + enabled: false, // optional + logging: false, // optional + entrypoint: '<ENTRYPOINT>', // optional + commands: '<COMMANDS>', // optional + scopes: [], // optional + installationId: '<INSTALLATION_ID>', // optional + providerRepositoryId: '<PROVIDER_REPOSITORY_ID>', // optional + providerBranch: '<PROVIDER_BRANCH>', // optional + providerSilentMode: false, // optional + providerRootDirectory: '<PROVIDER_ROOT_DIRECTORY>', // optional + specification: '' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/functions/get-deployment-download.md b/docs/examples/1.8.x/server-nodejs/examples/functions/get-deployment-download.md index f00c1ce593..9e82998594 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/functions/get-deployment-download.md +++ b/docs/examples/1.8.x/server-nodejs/examples/functions/get-deployment-download.md @@ -10,5 +10,5 @@ const functions = new sdk.Functions(client); const result = await functions.getDeploymentDownload({ functionId: '<FUNCTION_ID>', deploymentId: '<DEPLOYMENT_ID>', - type: sdk.DeploymentDownloadType.Source + type: sdk.DeploymentDownloadType.Source // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/functions/list-deployments.md b/docs/examples/1.8.x/server-nodejs/examples/functions/list-deployments.md index 9faf2018f8..e14c6d0441 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/functions/list-deployments.md +++ b/docs/examples/1.8.x/server-nodejs/examples/functions/list-deployments.md @@ -9,6 +9,6 @@ const functions = new sdk.Functions(client); const result = await functions.listDeployments({ functionId: '<FUNCTION_ID>', - queries: [], - search: '<SEARCH>' + queries: [], // optional + search: '<SEARCH>' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/functions/list-executions.md b/docs/examples/1.8.x/server-nodejs/examples/functions/list-executions.md index d77a66c485..0d1ceb7223 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/functions/list-executions.md +++ b/docs/examples/1.8.x/server-nodejs/examples/functions/list-executions.md @@ -9,5 +9,5 @@ const functions = new sdk.Functions(client); const result = await functions.listExecutions({ functionId: '<FUNCTION_ID>', - queries: [] + queries: [] // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/functions/list.md b/docs/examples/1.8.x/server-nodejs/examples/functions/list.md index a3126b6407..847c34531a 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/functions/list.md +++ b/docs/examples/1.8.x/server-nodejs/examples/functions/list.md @@ -8,6 +8,6 @@ const client = new sdk.Client() const functions = new sdk.Functions(client); const result = await functions.list({ - queries: [], - search: '<SEARCH>' + queries: [], // optional + search: '<SEARCH>' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/functions/update-variable.md b/docs/examples/1.8.x/server-nodejs/examples/functions/update-variable.md index b7f3b1dc46..73ae49fbf2 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/functions/update-variable.md +++ b/docs/examples/1.8.x/server-nodejs/examples/functions/update-variable.md @@ -11,6 +11,6 @@ const result = await functions.updateVariable({ functionId: '<FUNCTION_ID>', variableId: '<VARIABLE_ID>', key: '<KEY>', - value: '<VALUE>', - secret: false + value: '<VALUE>', // optional + secret: false // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/functions/update.md b/docs/examples/1.8.x/server-nodejs/examples/functions/update.md index dbbd1cdf51..8ed2828f56 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/functions/update.md +++ b/docs/examples/1.8.x/server-nodejs/examples/functions/update.md @@ -10,20 +10,20 @@ const functions = new sdk.Functions(client); const result = await functions.update({ functionId: '<FUNCTION_ID>', name: '<NAME>', - runtime: sdk..Node145, - execute: ["any"], - events: [], - schedule: '', - timeout: 1, - enabled: false, - logging: false, - entrypoint: '<ENTRYPOINT>', - commands: '<COMMANDS>', - scopes: [], - installationId: '<INSTALLATION_ID>', - providerRepositoryId: '<PROVIDER_REPOSITORY_ID>', - providerBranch: '<PROVIDER_BRANCH>', - providerSilentMode: false, - providerRootDirectory: '<PROVIDER_ROOT_DIRECTORY>', - specification: '' + runtime: sdk..Node145, // optional + execute: ["any"], // optional + events: [], // optional + schedule: '', // optional + timeout: 1, // optional + enabled: false, // optional + logging: false, // optional + entrypoint: '<ENTRYPOINT>', // optional + commands: '<COMMANDS>', // optional + scopes: [], // optional + installationId: '<INSTALLATION_ID>', // optional + providerRepositoryId: '<PROVIDER_REPOSITORY_ID>', // optional + providerBranch: '<PROVIDER_BRANCH>', // optional + providerSilentMode: false, // optional + providerRootDirectory: '<PROVIDER_ROOT_DIRECTORY>', // optional + specification: '' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-boolean-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-boolean-column.md deleted file mode 100644 index dae3f30840..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/create-boolean-column.md +++ /dev/null @@ -1,17 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.createBooleanColumn( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '', // key - false, // required - false, // default (optional) - false // array (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-database.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-database.md deleted file mode 100644 index 720c0d6f23..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/create-database.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.createDatabase( - '<DATABASE_ID>', // databaseId - '<NAME>', // name - false // enabled (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-datetime-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-datetime-column.md deleted file mode 100644 index d2b5c7e00f..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/create-datetime-column.md +++ /dev/null @@ -1,17 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.createDatetimeColumn( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '', // key - false, // required - '', // default (optional) - false // array (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-email-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-email-column.md deleted file mode 100644 index ce56e96d85..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/create-email-column.md +++ /dev/null @@ -1,17 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.createEmailColumn( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '', // key - false, // required - 'email@example.com', // default (optional) - false // array (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-enum-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-enum-column.md deleted file mode 100644 index 653b1ed75c..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/create-enum-column.md +++ /dev/null @@ -1,18 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.createEnumColumn( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '', // key - [], // elements - false, // required - '<DEFAULT>', // default (optional) - false // array (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-float-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-float-column.md deleted file mode 100644 index dc6aee4805..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/create-float-column.md +++ /dev/null @@ -1,19 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.createFloatColumn( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '', // key - false, // required - null, // min (optional) - null, // max (optional) - null, // default (optional) - false // array (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-index.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-index.md deleted file mode 100644 index 975fa3047e..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/create-index.md +++ /dev/null @@ -1,18 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.createIndex( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '', // key - sdk.IndexType.Key, // type - [], // columns - [], // orders (optional) - [] // lengths (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-integer-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-integer-column.md deleted file mode 100644 index 3444f82b58..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/create-integer-column.md +++ /dev/null @@ -1,19 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.createIntegerColumn( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '', // key - false, // required - null, // min (optional) - null, // max (optional) - null, // default (optional) - false // array (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-ip-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-ip-column.md deleted file mode 100644 index 52a9e8fbeb..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/create-ip-column.md +++ /dev/null @@ -1,17 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.createIpColumn( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '', // key - false, // required - '', // default (optional) - false // array (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-relationship-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-relationship-column.md deleted file mode 100644 index c0270dab85..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/create-relationship-column.md +++ /dev/null @@ -1,19 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.createRelationshipColumn( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '<RELATED_TABLE_ID>', // relatedTableId - sdk.RelationshipType.OneToOne, // type - false, // twoWay (optional) - '', // key (optional) - '', // twoWayKey (optional) - sdk.RelationMutate.Cascade // onDelete (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-row.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-row.md deleted file mode 100644 index a8495c4b94..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/create-row.md +++ /dev/null @@ -1,16 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setSession(''); // The user session to authenticate with - -const grids = new sdk.Grids(client); - -const result = await grids.createRow( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '<ROW_ID>', // rowId - {}, // data - ["read("any")"] // permissions (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-rows.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-rows.md deleted file mode 100644 index c9400a4edf..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/create-rows.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.createRows( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - [] // rows -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-string-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-string-column.md deleted file mode 100644 index f72d042dfb..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/create-string-column.md +++ /dev/null @@ -1,19 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.createStringColumn( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '', // key - 1, // size - false, // required - '<DEFAULT>', // default (optional) - false, // array (optional) - false // encrypt (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-table.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-table.md deleted file mode 100644 index d022de372f..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/create-table.md +++ /dev/null @@ -1,17 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.createTable( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '<NAME>', // name - ["read("any")"], // permissions (optional) - false, // rowSecurity (optional) - false // enabled (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/create-url-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/create-url-column.md deleted file mode 100644 index 83c6d5a01b..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/create-url-column.md +++ /dev/null @@ -1,17 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.createUrlColumn( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '', // key - false, // required - 'https://example.com', // default (optional) - false // array (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/decrement-row-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/decrement-row-column.md deleted file mode 100644 index a166a1bfc0..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/decrement-row-column.md +++ /dev/null @@ -1,17 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.decrementRowColumn( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '<ROW_ID>', // rowId - '', // column - null, // value (optional) - null // min (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/delete-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/delete-column.md deleted file mode 100644 index 7130f48cae..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/delete-column.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.deleteColumn( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '' // key -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/delete-database.md b/docs/examples/1.8.x/server-nodejs/examples/grids/delete-database.md deleted file mode 100644 index 4a31d091b7..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/delete-database.md +++ /dev/null @@ -1,12 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.deleteDatabase( - '<DATABASE_ID>' // databaseId -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/delete-index.md b/docs/examples/1.8.x/server-nodejs/examples/grids/delete-index.md deleted file mode 100644 index b266062053..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/delete-index.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.deleteIndex( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '' // key -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/delete-row.md b/docs/examples/1.8.x/server-nodejs/examples/grids/delete-row.md deleted file mode 100644 index cf202374a0..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/delete-row.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setSession(''); // The user session to authenticate with - -const grids = new sdk.Grids(client); - -const result = await grids.deleteRow( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '<ROW_ID>' // rowId -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/delete-rows.md b/docs/examples/1.8.x/server-nodejs/examples/grids/delete-rows.md deleted file mode 100644 index aa36bacbda..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/delete-rows.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.deleteRows( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - [] // queries (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/delete-table.md b/docs/examples/1.8.x/server-nodejs/examples/grids/delete-table.md deleted file mode 100644 index d3bb221e0d..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/delete-table.md +++ /dev/null @@ -1,13 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.deleteTable( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>' // tableId -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/get-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/get-column.md deleted file mode 100644 index d3b08936d2..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/get-column.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.getColumn( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '' // key -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/get-database.md b/docs/examples/1.8.x/server-nodejs/examples/grids/get-database.md deleted file mode 100644 index 7d27bbca94..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/get-database.md +++ /dev/null @@ -1,12 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.getDatabase( - '<DATABASE_ID>' // databaseId -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/get-index.md b/docs/examples/1.8.x/server-nodejs/examples/grids/get-index.md deleted file mode 100644 index e47b942df9..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/get-index.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.getIndex( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '' // key -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/get-row.md b/docs/examples/1.8.x/server-nodejs/examples/grids/get-row.md deleted file mode 100644 index 15c753000a..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/get-row.md +++ /dev/null @@ -1,15 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setSession(''); // The user session to authenticate with - -const grids = new sdk.Grids(client); - -const result = await grids.getRow( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '<ROW_ID>', // rowId - [] // queries (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/get-table.md b/docs/examples/1.8.x/server-nodejs/examples/grids/get-table.md deleted file mode 100644 index f7b28eb191..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/get-table.md +++ /dev/null @@ -1,13 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.getTable( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>' // tableId -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/increment-row-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/increment-row-column.md deleted file mode 100644 index ac5257f658..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/increment-row-column.md +++ /dev/null @@ -1,17 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.incrementRowColumn( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '<ROW_ID>', // rowId - '', // column - null, // value (optional) - null // max (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/list-columns.md b/docs/examples/1.8.x/server-nodejs/examples/grids/list-columns.md deleted file mode 100644 index dbfaac0262..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/list-columns.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.listColumns( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - [] // queries (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/list-databases.md b/docs/examples/1.8.x/server-nodejs/examples/grids/list-databases.md deleted file mode 100644 index 8a20b2ac88..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/list-databases.md +++ /dev/null @@ -1,13 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.listDatabases( - [], // queries (optional) - '<SEARCH>' // search (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/list-indexes.md b/docs/examples/1.8.x/server-nodejs/examples/grids/list-indexes.md deleted file mode 100644 index 8a102996a6..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/list-indexes.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.listIndexes( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - [] // queries (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/list-rows.md b/docs/examples/1.8.x/server-nodejs/examples/grids/list-rows.md deleted file mode 100644 index 9f9bb3bc33..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/list-rows.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setSession(''); // The user session to authenticate with - -const grids = new sdk.Grids(client); - -const result = await grids.listRows( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - [] // queries (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/list-tables.md b/docs/examples/1.8.x/server-nodejs/examples/grids/list-tables.md deleted file mode 100644 index e020b883e0..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/list-tables.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.listTables( - '<DATABASE_ID>', // databaseId - [], // queries (optional) - '<SEARCH>' // search (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/update-boolean-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-boolean-column.md deleted file mode 100644 index b695e2d194..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/update-boolean-column.md +++ /dev/null @@ -1,17 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.updateBooleanColumn( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '', // key - false, // required - false, // default - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/update-database.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-database.md deleted file mode 100644 index 689c38f605..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/update-database.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.updateDatabase( - '<DATABASE_ID>', // databaseId - '<NAME>', // name - false // enabled (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/update-datetime-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-datetime-column.md deleted file mode 100644 index 8ec6f1cda7..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/update-datetime-column.md +++ /dev/null @@ -1,17 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.updateDatetimeColumn( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '', // key - false, // required - '', // default - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/update-email-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-email-column.md deleted file mode 100644 index f8e0918819..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/update-email-column.md +++ /dev/null @@ -1,17 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.updateEmailColumn( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '', // key - false, // required - 'email@example.com', // default - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/update-enum-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-enum-column.md deleted file mode 100644 index bda1aad53a..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/update-enum-column.md +++ /dev/null @@ -1,18 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.updateEnumColumn( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '', // key - [], // elements - false, // required - '<DEFAULT>', // default - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/update-float-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-float-column.md deleted file mode 100644 index ae3d5ceb4b..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/update-float-column.md +++ /dev/null @@ -1,19 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.updateFloatColumn( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '', // key - false, // required - null, // default - null, // min (optional) - null, // max (optional) - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/update-integer-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-integer-column.md deleted file mode 100644 index a3e28bc406..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/update-integer-column.md +++ /dev/null @@ -1,19 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.updateIntegerColumn( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '', // key - false, // required - null, // default - null, // min (optional) - null, // max (optional) - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/update-ip-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-ip-column.md deleted file mode 100644 index ff8692f81e..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/update-ip-column.md +++ /dev/null @@ -1,17 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.updateIpColumn( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '', // key - false, // required - '', // default - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/update-relationship-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-relationship-column.md deleted file mode 100644 index 19f957f67a..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/update-relationship-column.md +++ /dev/null @@ -1,16 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.updateRelationshipColumn( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '', // key - sdk.RelationMutate.Cascade, // onDelete (optional) - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/update-row.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-row.md deleted file mode 100644 index 79c845f558..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/update-row.md +++ /dev/null @@ -1,16 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setSession(''); // The user session to authenticate with - -const grids = new sdk.Grids(client); - -const result = await grids.updateRow( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '<ROW_ID>', // rowId - {}, // data (optional) - ["read("any")"] // permissions (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/update-rows.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-rows.md deleted file mode 100644 index 65c8f63cbd..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/update-rows.md +++ /dev/null @@ -1,15 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.updateRows( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - {}, // data (optional) - [] // queries (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/update-string-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-string-column.md deleted file mode 100644 index b04f38bd5d..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/update-string-column.md +++ /dev/null @@ -1,18 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.updateStringColumn( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '', // key - false, // required - '<DEFAULT>', // default - 1, // size (optional) - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/update-table.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-table.md deleted file mode 100644 index 3d80666600..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/update-table.md +++ /dev/null @@ -1,17 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.updateTable( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '<NAME>', // name - ["read("any")"], // permissions (optional) - false, // rowSecurity (optional) - false // enabled (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/update-url-column.md b/docs/examples/1.8.x/server-nodejs/examples/grids/update-url-column.md deleted file mode 100644 index aa368bfcc0..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/update-url-column.md +++ /dev/null @@ -1,17 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.updateUrlColumn( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '', // key - false, // required - 'https://example.com', // default - '' // newKey (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/upsert-row.md b/docs/examples/1.8.x/server-nodejs/examples/grids/upsert-row.md deleted file mode 100644 index 03476fc311..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/upsert-row.md +++ /dev/null @@ -1,16 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setSession(''); // The user session to authenticate with - -const grids = new sdk.Grids(client); - -const result = await grids.upsertRow( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - '<ROW_ID>', // rowId - {}, // data (optional) - ["read("any")"] // permissions (optional) -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/grids/upsert-rows.md b/docs/examples/1.8.x/server-nodejs/examples/grids/upsert-rows.md deleted file mode 100644 index 19f2ce1a90..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/grids/upsert-rows.md +++ /dev/null @@ -1,14 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const grids = new sdk.Grids(client); - -const result = await grids.upsertRows( - '<DATABASE_ID>', // databaseId - '<TABLE_ID>', // tableId - [] // rows -); diff --git a/docs/examples/1.8.x/server-nodejs/examples/health/get-certificate.md b/docs/examples/1.8.x/server-nodejs/examples/health/get-certificate.md index cc9e7c1e9c..ccb880078c 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/health/get-certificate.md +++ b/docs/examples/1.8.x/server-nodejs/examples/health/get-certificate.md @@ -8,5 +8,5 @@ const client = new sdk.Client() const health = new sdk.Health(client); const result = await health.getCertificate({ - domain: '' + domain: '' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/health/get-d-b.md b/docs/examples/1.8.x/server-nodejs/examples/health/get-db.md similarity index 100% rename from docs/examples/1.8.x/server-nodejs/examples/health/get-d-b.md rename to docs/examples/1.8.x/server-nodejs/examples/health/get-db.md diff --git a/docs/examples/1.8.x/server-nodejs/examples/health/get-failed-jobs.md b/docs/examples/1.8.x/server-nodejs/examples/health/get-failed-jobs.md index 2e4c8b01d0..bf77aa26d8 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/health/get-failed-jobs.md +++ b/docs/examples/1.8.x/server-nodejs/examples/health/get-failed-jobs.md @@ -9,5 +9,5 @@ const health = new sdk.Health(client); const result = await health.getFailedJobs({ name: sdk..V1Database, - threshold: null + threshold: null // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/health/get-queue-builds.md b/docs/examples/1.8.x/server-nodejs/examples/health/get-queue-builds.md index 3e1f143dbc..8e28054718 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/health/get-queue-builds.md +++ b/docs/examples/1.8.x/server-nodejs/examples/health/get-queue-builds.md @@ -8,5 +8,5 @@ const client = new sdk.Client() const health = new sdk.Health(client); const result = await health.getQueueBuilds({ - threshold: null + threshold: null // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/health/get-queue-certificates.md b/docs/examples/1.8.x/server-nodejs/examples/health/get-queue-certificates.md index 682fe0d324..89383ede8c 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/health/get-queue-certificates.md +++ b/docs/examples/1.8.x/server-nodejs/examples/health/get-queue-certificates.md @@ -8,5 +8,5 @@ const client = new sdk.Client() const health = new sdk.Health(client); const result = await health.getQueueCertificates({ - threshold: null + threshold: null // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/health/get-queue-databases.md b/docs/examples/1.8.x/server-nodejs/examples/health/get-queue-databases.md index 3c8b84189a..784525573c 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/health/get-queue-databases.md +++ b/docs/examples/1.8.x/server-nodejs/examples/health/get-queue-databases.md @@ -8,6 +8,6 @@ const client = new sdk.Client() const health = new sdk.Health(client); const result = await health.getQueueDatabases({ - name: '<NAME>', - threshold: null + name: '<NAME>', // optional + threshold: null // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/health/get-queue-deletes.md b/docs/examples/1.8.x/server-nodejs/examples/health/get-queue-deletes.md index 0b39bd9187..8248b5c41f 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/health/get-queue-deletes.md +++ b/docs/examples/1.8.x/server-nodejs/examples/health/get-queue-deletes.md @@ -8,5 +8,5 @@ const client = new sdk.Client() const health = new sdk.Health(client); const result = await health.getQueueDeletes({ - threshold: null + threshold: null // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/health/get-queue-functions.md b/docs/examples/1.8.x/server-nodejs/examples/health/get-queue-functions.md index 1d0492ff91..5832a27439 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/health/get-queue-functions.md +++ b/docs/examples/1.8.x/server-nodejs/examples/health/get-queue-functions.md @@ -8,5 +8,5 @@ const client = new sdk.Client() const health = new sdk.Health(client); const result = await health.getQueueFunctions({ - threshold: null + threshold: null // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/health/get-queue-logs.md b/docs/examples/1.8.x/server-nodejs/examples/health/get-queue-logs.md index dfcb3016b4..055c525be4 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/health/get-queue-logs.md +++ b/docs/examples/1.8.x/server-nodejs/examples/health/get-queue-logs.md @@ -8,5 +8,5 @@ const client = new sdk.Client() const health = new sdk.Health(client); const result = await health.getQueueLogs({ - threshold: null + threshold: null // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/health/get-queue-mails.md b/docs/examples/1.8.x/server-nodejs/examples/health/get-queue-mails.md index 6fd020ddcc..fb29d0813d 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/health/get-queue-mails.md +++ b/docs/examples/1.8.x/server-nodejs/examples/health/get-queue-mails.md @@ -8,5 +8,5 @@ const client = new sdk.Client() const health = new sdk.Health(client); const result = await health.getQueueMails({ - threshold: null + threshold: null // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/health/get-queue-messaging.md b/docs/examples/1.8.x/server-nodejs/examples/health/get-queue-messaging.md index 3100baaf03..cc8eb4be0a 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/health/get-queue-messaging.md +++ b/docs/examples/1.8.x/server-nodejs/examples/health/get-queue-messaging.md @@ -8,5 +8,5 @@ const client = new sdk.Client() const health = new sdk.Health(client); const result = await health.getQueueMessaging({ - threshold: null + threshold: null // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/health/get-queue-migrations.md b/docs/examples/1.8.x/server-nodejs/examples/health/get-queue-migrations.md index aa143041ab..ddc7f517c5 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/health/get-queue-migrations.md +++ b/docs/examples/1.8.x/server-nodejs/examples/health/get-queue-migrations.md @@ -8,5 +8,5 @@ const client = new sdk.Client() const health = new sdk.Health(client); const result = await health.getQueueMigrations({ - threshold: null + threshold: null // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/health/get-queue-stats-resources.md b/docs/examples/1.8.x/server-nodejs/examples/health/get-queue-stats-resources.md index 8c0e02f2db..dacf04c35a 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/health/get-queue-stats-resources.md +++ b/docs/examples/1.8.x/server-nodejs/examples/health/get-queue-stats-resources.md @@ -8,5 +8,5 @@ const client = new sdk.Client() const health = new sdk.Health(client); const result = await health.getQueueStatsResources({ - threshold: null + threshold: null // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/health/get-queue-usage.md b/docs/examples/1.8.x/server-nodejs/examples/health/get-queue-usage.md index 85fe61ce22..5d06a7ce5b 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/health/get-queue-usage.md +++ b/docs/examples/1.8.x/server-nodejs/examples/health/get-queue-usage.md @@ -8,5 +8,5 @@ const client = new sdk.Client() const health = new sdk.Health(client); const result = await health.getQueueUsage({ - threshold: null + threshold: null // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/health/get-queue-webhooks.md b/docs/examples/1.8.x/server-nodejs/examples/health/get-queue-webhooks.md index d82a5f6c93..f4d0af8a1e 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/health/get-queue-webhooks.md +++ b/docs/examples/1.8.x/server-nodejs/examples/health/get-queue-webhooks.md @@ -8,5 +8,5 @@ const client = new sdk.Client() const health = new sdk.Health(client); const result = await health.getQueueWebhooks({ - threshold: null + threshold: null // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/locale/list-countries-e-u.md b/docs/examples/1.8.x/server-nodejs/examples/locale/list-countries-eu.md similarity index 100% rename from docs/examples/1.8.x/server-nodejs/examples/locale/list-countries-e-u.md rename to docs/examples/1.8.x/server-nodejs/examples/locale/list-countries-eu.md diff --git a/docs/examples/1.8.x/server-nodejs/examples/messaging/create-a-p-n-s-provider.md b/docs/examples/1.8.x/server-nodejs/examples/messaging/create-a-p-n-s-provider.md deleted file mode 100644 index a613b0b70e..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/messaging/create-a-p-n-s-provider.md +++ /dev/null @@ -1,19 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const messaging = new sdk.Messaging(client); - -const result = await messaging.createAPNSProvider({ - providerId: '<PROVIDER_ID>', - name: '<NAME>', - authKey: '<AUTH_KEY>', - authKeyId: '<AUTH_KEY_ID>', - teamId: '<TEAM_ID>', - bundleId: '<BUNDLE_ID>', - sandbox: false, - enabled: false -}); diff --git a/docs/examples/1.8.x/server-nodejs/examples/messaging/create-apns-provider.md b/docs/examples/1.8.x/server-nodejs/examples/messaging/create-apns-provider.md index 208ecdaa56..cd1a53b365 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/messaging/create-apns-provider.md +++ b/docs/examples/1.8.x/server-nodejs/examples/messaging/create-apns-provider.md @@ -7,13 +7,13 @@ const client = new sdk.Client() const messaging = new sdk.Messaging(client); -const result = await messaging.createApnsProvider({ +const result = await messaging.createAPNSProvider({ providerId: '<PROVIDER_ID>', name: '<NAME>', - authKey: '<AUTH_KEY>', - authKeyId: '<AUTH_KEY_ID>', - teamId: '<TEAM_ID>', - bundleId: '<BUNDLE_ID>', - sandbox: false, - enabled: false + authKey: '<AUTH_KEY>', // optional + authKeyId: '<AUTH_KEY_ID>', // optional + teamId: '<TEAM_ID>', // optional + bundleId: '<BUNDLE_ID>', // optional + sandbox: false, // optional + enabled: false // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/messaging/create-email.md b/docs/examples/1.8.x/server-nodejs/examples/messaging/create-email.md index 9ef5fc4b15..93fb2ef3b8 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/messaging/create-email.md +++ b/docs/examples/1.8.x/server-nodejs/examples/messaging/create-email.md @@ -11,13 +11,13 @@ const result = await messaging.createEmail({ messageId: '<MESSAGE_ID>', subject: '<SUBJECT>', content: '<CONTENT>', - topics: [], - users: [], - targets: [], - cc: [], - bcc: [], - attachments: [], - draft: false, - html: false, - scheduledAt: '' + topics: [], // optional + users: [], // optional + targets: [], // optional + cc: [], // optional + bcc: [], // optional + attachments: [], // optional + draft: false, // optional + html: false, // optional + scheduledAt: '' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/messaging/create-f-c-m-provider.md b/docs/examples/1.8.x/server-nodejs/examples/messaging/create-f-c-m-provider.md deleted file mode 100644 index 8ae3cd919d..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/messaging/create-f-c-m-provider.md +++ /dev/null @@ -1,15 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const messaging = new sdk.Messaging(client); - -const result = await messaging.createFCMProvider({ - providerId: '<PROVIDER_ID>', - name: '<NAME>', - serviceAccountJSON: {}, - enabled: false -}); diff --git a/docs/examples/1.8.x/server-nodejs/examples/messaging/create-fcm-provider.md b/docs/examples/1.8.x/server-nodejs/examples/messaging/create-fcm-provider.md index 7e4b213f91..8041e7f2a8 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/messaging/create-fcm-provider.md +++ b/docs/examples/1.8.x/server-nodejs/examples/messaging/create-fcm-provider.md @@ -7,9 +7,9 @@ const client = new sdk.Client() const messaging = new sdk.Messaging(client); -const result = await messaging.createFcmProvider({ +const result = await messaging.createFCMProvider({ providerId: '<PROVIDER_ID>', name: '<NAME>', - serviceAccountJSON: {}, - enabled: false + serviceAccountJSON: {}, // optional + enabled: false // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/messaging/create-mailgun-provider.md b/docs/examples/1.8.x/server-nodejs/examples/messaging/create-mailgun-provider.md index 45093c7d22..dd8a0f6ad3 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/messaging/create-mailgun-provider.md +++ b/docs/examples/1.8.x/server-nodejs/examples/messaging/create-mailgun-provider.md @@ -10,12 +10,12 @@ const messaging = new sdk.Messaging(client); const result = await messaging.createMailgunProvider({ providerId: '<PROVIDER_ID>', name: '<NAME>', - apiKey: '<API_KEY>', - domain: '<DOMAIN>', - isEuRegion: false, - fromName: '<FROM_NAME>', - fromEmail: 'email@example.com', - replyToName: '<REPLY_TO_NAME>', - replyToEmail: 'email@example.com', - enabled: false + apiKey: '<API_KEY>', // optional + domain: '<DOMAIN>', // optional + isEuRegion: false, // optional + fromName: '<FROM_NAME>', // optional + fromEmail: 'email@example.com', // optional + replyToName: '<REPLY_TO_NAME>', // optional + replyToEmail: 'email@example.com', // optional + enabled: false // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/messaging/create-msg91provider.md b/docs/examples/1.8.x/server-nodejs/examples/messaging/create-msg-91-provider.md similarity index 72% rename from docs/examples/1.8.x/server-nodejs/examples/messaging/create-msg91provider.md rename to docs/examples/1.8.x/server-nodejs/examples/messaging/create-msg-91-provider.md index 0c1f18f052..7168e8bba6 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/messaging/create-msg91provider.md +++ b/docs/examples/1.8.x/server-nodejs/examples/messaging/create-msg-91-provider.md @@ -10,8 +10,8 @@ const messaging = new sdk.Messaging(client); const result = await messaging.createMsg91Provider({ providerId: '<PROVIDER_ID>', name: '<NAME>', - templateId: '<TEMPLATE_ID>', - senderId: '<SENDER_ID>', - authKey: '<AUTH_KEY>', - enabled: false + templateId: '<TEMPLATE_ID>', // optional + senderId: '<SENDER_ID>', // optional + authKey: '<AUTH_KEY>', // optional + enabled: false // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/messaging/create-push.md b/docs/examples/1.8.x/server-nodejs/examples/messaging/create-push.md index f6bc726a46..c0a7f4713f 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/messaging/create-push.md +++ b/docs/examples/1.8.x/server-nodejs/examples/messaging/create-push.md @@ -9,22 +9,22 @@ const messaging = new sdk.Messaging(client); const result = await messaging.createPush({ messageId: '<MESSAGE_ID>', - title: '<TITLE>', - body: '<BODY>', - topics: [], - users: [], - targets: [], - data: {}, - action: '<ACTION>', - image: '[ID1:ID2]', - icon: '<ICON>', - sound: '<SOUND>', - color: '<COLOR>', - tag: '<TAG>', - badge: null, - draft: false, - scheduledAt: '', - contentAvailable: false, - critical: false, - priority: sdk.MessagePriority.Normal + title: '<TITLE>', // optional + body: '<BODY>', // optional + topics: [], // optional + users: [], // optional + targets: [], // optional + data: {}, // optional + action: '<ACTION>', // optional + image: '[ID1:ID2]', // optional + icon: '<ICON>', // optional + sound: '<SOUND>', // optional + color: '<COLOR>', // optional + tag: '<TAG>', // optional + badge: null, // optional + draft: false, // optional + scheduledAt: '', // optional + contentAvailable: false, // optional + critical: false, // optional + priority: sdk.MessagePriority.Normal // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/messaging/create-s-m-s.md b/docs/examples/1.8.x/server-nodejs/examples/messaging/create-s-m-s.md deleted file mode 100644 index 1180073ae3..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/messaging/create-s-m-s.md +++ /dev/null @@ -1,18 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const messaging = new sdk.Messaging(client); - -const result = await messaging.createSMS({ - messageId: '<MESSAGE_ID>', - content: '<CONTENT>', - topics: [], - users: [], - targets: [], - draft: false, - scheduledAt: '' -}); diff --git a/docs/examples/1.8.x/server-nodejs/examples/messaging/create-s-m-t-p-provider.md b/docs/examples/1.8.x/server-nodejs/examples/messaging/create-s-m-t-p-provider.md deleted file mode 100644 index 9a0094b579..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/messaging/create-s-m-t-p-provider.md +++ /dev/null @@ -1,25 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const messaging = new sdk.Messaging(client); - -const result = await messaging.createSMTPProvider({ - providerId: '<PROVIDER_ID>', - name: '<NAME>', - host: '<HOST>', - port: 1, - username: '<USERNAME>', - password: '<PASSWORD>', - encryption: sdk.SmtpEncryption.None, - autoTLS: false, - mailer: '<MAILER>', - fromName: '<FROM_NAME>', - fromEmail: 'email@example.com', - replyToName: '<REPLY_TO_NAME>', - replyToEmail: 'email@example.com', - enabled: false -}); diff --git a/docs/examples/1.8.x/server-nodejs/examples/messaging/create-sendgrid-provider.md b/docs/examples/1.8.x/server-nodejs/examples/messaging/create-sendgrid-provider.md index 3600e11085..8b26b2f3f6 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/messaging/create-sendgrid-provider.md +++ b/docs/examples/1.8.x/server-nodejs/examples/messaging/create-sendgrid-provider.md @@ -10,10 +10,10 @@ const messaging = new sdk.Messaging(client); const result = await messaging.createSendgridProvider({ providerId: '<PROVIDER_ID>', name: '<NAME>', - apiKey: '<API_KEY>', - fromName: '<FROM_NAME>', - fromEmail: 'email@example.com', - replyToName: '<REPLY_TO_NAME>', - replyToEmail: 'email@example.com', - enabled: false + apiKey: '<API_KEY>', // optional + fromName: '<FROM_NAME>', // optional + fromEmail: 'email@example.com', // optional + replyToName: '<REPLY_TO_NAME>', // optional + replyToEmail: 'email@example.com', // optional + enabled: false // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/messaging/create-sms.md b/docs/examples/1.8.x/server-nodejs/examples/messaging/create-sms.md index 59d150f162..c477643b4b 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/messaging/create-sms.md +++ b/docs/examples/1.8.x/server-nodejs/examples/messaging/create-sms.md @@ -7,12 +7,12 @@ const client = new sdk.Client() const messaging = new sdk.Messaging(client); -const result = await messaging.createSms({ +const result = await messaging.createSMS({ messageId: '<MESSAGE_ID>', content: '<CONTENT>', - topics: [], - users: [], - targets: [], - draft: false, - scheduledAt: '' + topics: [], // optional + users: [], // optional + targets: [], // optional + draft: false, // optional + scheduledAt: '' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/messaging/create-smtp-provider.md b/docs/examples/1.8.x/server-nodejs/examples/messaging/create-smtp-provider.md index 9aba10ac45..241a0f0969 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/messaging/create-smtp-provider.md +++ b/docs/examples/1.8.x/server-nodejs/examples/messaging/create-smtp-provider.md @@ -7,19 +7,19 @@ const client = new sdk.Client() const messaging = new sdk.Messaging(client); -const result = await messaging.createSmtpProvider({ +const result = await messaging.createSMTPProvider({ providerId: '<PROVIDER_ID>', name: '<NAME>', host: '<HOST>', - port: 1, - username: '<USERNAME>', - password: '<PASSWORD>', - encryption: sdk.SmtpEncryption.None, - autoTLS: false, - mailer: '<MAILER>', - fromName: '<FROM_NAME>', - fromEmail: 'email@example.com', - replyToName: '<REPLY_TO_NAME>', - replyToEmail: 'email@example.com', - enabled: false + port: 1, // optional + username: '<USERNAME>', // optional + password: '<PASSWORD>', // optional + encryption: sdk.SmtpEncryption.None, // optional + autoTLS: false, // optional + mailer: '<MAILER>', // optional + fromName: '<FROM_NAME>', // optional + fromEmail: 'email@example.com', // optional + replyToName: '<REPLY_TO_NAME>', // optional + replyToEmail: 'email@example.com', // optional + enabled: false // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/messaging/create-telesign-provider.md b/docs/examples/1.8.x/server-nodejs/examples/messaging/create-telesign-provider.md index b1bf20c6be..b558fbd210 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/messaging/create-telesign-provider.md +++ b/docs/examples/1.8.x/server-nodejs/examples/messaging/create-telesign-provider.md @@ -10,8 +10,8 @@ const messaging = new sdk.Messaging(client); const result = await messaging.createTelesignProvider({ providerId: '<PROVIDER_ID>', name: '<NAME>', - from: '+12065550100', - customerId: '<CUSTOMER_ID>', - apiKey: '<API_KEY>', - enabled: false + from: '+12065550100', // optional + customerId: '<CUSTOMER_ID>', // optional + apiKey: '<API_KEY>', // optional + enabled: false // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/messaging/create-textmagic-provider.md b/docs/examples/1.8.x/server-nodejs/examples/messaging/create-textmagic-provider.md index 0c9f741d75..82141aeab8 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/messaging/create-textmagic-provider.md +++ b/docs/examples/1.8.x/server-nodejs/examples/messaging/create-textmagic-provider.md @@ -10,8 +10,8 @@ const messaging = new sdk.Messaging(client); const result = await messaging.createTextmagicProvider({ providerId: '<PROVIDER_ID>', name: '<NAME>', - from: '+12065550100', - username: '<USERNAME>', - apiKey: '<API_KEY>', - enabled: false + from: '+12065550100', // optional + username: '<USERNAME>', // optional + apiKey: '<API_KEY>', // optional + enabled: false // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/messaging/create-topic.md b/docs/examples/1.8.x/server-nodejs/examples/messaging/create-topic.md index 8393e9406f..ce91b54279 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/messaging/create-topic.md +++ b/docs/examples/1.8.x/server-nodejs/examples/messaging/create-topic.md @@ -10,5 +10,5 @@ const messaging = new sdk.Messaging(client); const result = await messaging.createTopic({ topicId: '<TOPIC_ID>', name: '<NAME>', - subscribe: ["any"] + subscribe: ["any"] // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/messaging/create-twilio-provider.md b/docs/examples/1.8.x/server-nodejs/examples/messaging/create-twilio-provider.md index 5d583f6915..b3d9ba6bfb 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/messaging/create-twilio-provider.md +++ b/docs/examples/1.8.x/server-nodejs/examples/messaging/create-twilio-provider.md @@ -10,8 +10,8 @@ const messaging = new sdk.Messaging(client); const result = await messaging.createTwilioProvider({ providerId: '<PROVIDER_ID>', name: '<NAME>', - from: '+12065550100', - accountSid: '<ACCOUNT_SID>', - authToken: '<AUTH_TOKEN>', - enabled: false + from: '+12065550100', // optional + accountSid: '<ACCOUNT_SID>', // optional + authToken: '<AUTH_TOKEN>', // optional + enabled: false // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/messaging/create-vonage-provider.md b/docs/examples/1.8.x/server-nodejs/examples/messaging/create-vonage-provider.md index 2d3425f7eb..b7a94ff527 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/messaging/create-vonage-provider.md +++ b/docs/examples/1.8.x/server-nodejs/examples/messaging/create-vonage-provider.md @@ -10,8 +10,8 @@ const messaging = new sdk.Messaging(client); const result = await messaging.createVonageProvider({ providerId: '<PROVIDER_ID>', name: '<NAME>', - from: '+12065550100', - apiKey: '<API_KEY>', - apiSecret: '<API_SECRET>', - enabled: false + from: '+12065550100', // optional + apiKey: '<API_KEY>', // optional + apiSecret: '<API_SECRET>', // optional + enabled: false // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/messaging/list-message-logs.md b/docs/examples/1.8.x/server-nodejs/examples/messaging/list-message-logs.md index 04180c1ec1..c2d32f014b 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/messaging/list-message-logs.md +++ b/docs/examples/1.8.x/server-nodejs/examples/messaging/list-message-logs.md @@ -9,5 +9,5 @@ const messaging = new sdk.Messaging(client); const result = await messaging.listMessageLogs({ messageId: '<MESSAGE_ID>', - queries: [] + queries: [] // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/messaging/list-messages.md b/docs/examples/1.8.x/server-nodejs/examples/messaging/list-messages.md index 907f7c03a5..2edc75f689 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/messaging/list-messages.md +++ b/docs/examples/1.8.x/server-nodejs/examples/messaging/list-messages.md @@ -8,6 +8,6 @@ const client = new sdk.Client() const messaging = new sdk.Messaging(client); const result = await messaging.listMessages({ - queries: [], - search: '<SEARCH>' + queries: [], // optional + search: '<SEARCH>' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/messaging/list-provider-logs.md b/docs/examples/1.8.x/server-nodejs/examples/messaging/list-provider-logs.md index 30cc2a406a..35fd2cf9b0 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/messaging/list-provider-logs.md +++ b/docs/examples/1.8.x/server-nodejs/examples/messaging/list-provider-logs.md @@ -9,5 +9,5 @@ const messaging = new sdk.Messaging(client); const result = await messaging.listProviderLogs({ providerId: '<PROVIDER_ID>', - queries: [] + queries: [] // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/messaging/list-providers.md b/docs/examples/1.8.x/server-nodejs/examples/messaging/list-providers.md index 870cafb628..2445597f3e 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/messaging/list-providers.md +++ b/docs/examples/1.8.x/server-nodejs/examples/messaging/list-providers.md @@ -8,6 +8,6 @@ const client = new sdk.Client() const messaging = new sdk.Messaging(client); const result = await messaging.listProviders({ - queries: [], - search: '<SEARCH>' + queries: [], // optional + search: '<SEARCH>' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/messaging/list-subscriber-logs.md b/docs/examples/1.8.x/server-nodejs/examples/messaging/list-subscriber-logs.md index 84b93513e5..1da2c3bc27 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/messaging/list-subscriber-logs.md +++ b/docs/examples/1.8.x/server-nodejs/examples/messaging/list-subscriber-logs.md @@ -9,5 +9,5 @@ const messaging = new sdk.Messaging(client); const result = await messaging.listSubscriberLogs({ subscriberId: '<SUBSCRIBER_ID>', - queries: [] + queries: [] // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/messaging/list-subscribers.md b/docs/examples/1.8.x/server-nodejs/examples/messaging/list-subscribers.md index 9cccda0e13..c2b594e4b2 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/messaging/list-subscribers.md +++ b/docs/examples/1.8.x/server-nodejs/examples/messaging/list-subscribers.md @@ -9,6 +9,6 @@ const messaging = new sdk.Messaging(client); const result = await messaging.listSubscribers({ topicId: '<TOPIC_ID>', - queries: [], - search: '<SEARCH>' + queries: [], // optional + search: '<SEARCH>' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/messaging/list-targets.md b/docs/examples/1.8.x/server-nodejs/examples/messaging/list-targets.md index 2431104d59..75a4aa60f6 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/messaging/list-targets.md +++ b/docs/examples/1.8.x/server-nodejs/examples/messaging/list-targets.md @@ -9,5 +9,5 @@ const messaging = new sdk.Messaging(client); const result = await messaging.listTargets({ messageId: '<MESSAGE_ID>', - queries: [] + queries: [] // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/messaging/list-topic-logs.md b/docs/examples/1.8.x/server-nodejs/examples/messaging/list-topic-logs.md index 719ab1a9c5..eacf4822b7 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/messaging/list-topic-logs.md +++ b/docs/examples/1.8.x/server-nodejs/examples/messaging/list-topic-logs.md @@ -9,5 +9,5 @@ const messaging = new sdk.Messaging(client); const result = await messaging.listTopicLogs({ topicId: '<TOPIC_ID>', - queries: [] + queries: [] // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/messaging/list-topics.md b/docs/examples/1.8.x/server-nodejs/examples/messaging/list-topics.md index 2a07f75206..3ff5538949 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/messaging/list-topics.md +++ b/docs/examples/1.8.x/server-nodejs/examples/messaging/list-topics.md @@ -8,6 +8,6 @@ const client = new sdk.Client() const messaging = new sdk.Messaging(client); const result = await messaging.listTopics({ - queries: [], - search: '<SEARCH>' + queries: [], // optional + search: '<SEARCH>' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/messaging/update-a-p-n-s-provider.md b/docs/examples/1.8.x/server-nodejs/examples/messaging/update-a-p-n-s-provider.md deleted file mode 100644 index 47a83557db..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/messaging/update-a-p-n-s-provider.md +++ /dev/null @@ -1,19 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const messaging = new sdk.Messaging(client); - -const result = await messaging.updateAPNSProvider({ - providerId: '<PROVIDER_ID>', - name: '<NAME>', - enabled: false, - authKey: '<AUTH_KEY>', - authKeyId: '<AUTH_KEY_ID>', - teamId: '<TEAM_ID>', - bundleId: '<BUNDLE_ID>', - sandbox: false -}); diff --git a/docs/examples/1.8.x/server-nodejs/examples/messaging/update-apns-provider.md b/docs/examples/1.8.x/server-nodejs/examples/messaging/update-apns-provider.md index a2c560fd52..f57fe6aba5 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/messaging/update-apns-provider.md +++ b/docs/examples/1.8.x/server-nodejs/examples/messaging/update-apns-provider.md @@ -7,13 +7,13 @@ const client = new sdk.Client() const messaging = new sdk.Messaging(client); -const result = await messaging.updateApnsProvider({ +const result = await messaging.updateAPNSProvider({ providerId: '<PROVIDER_ID>', - name: '<NAME>', - enabled: false, - authKey: '<AUTH_KEY>', - authKeyId: '<AUTH_KEY_ID>', - teamId: '<TEAM_ID>', - bundleId: '<BUNDLE_ID>', - sandbox: false + name: '<NAME>', // optional + enabled: false, // optional + authKey: '<AUTH_KEY>', // optional + authKeyId: '<AUTH_KEY_ID>', // optional + teamId: '<TEAM_ID>', // optional + bundleId: '<BUNDLE_ID>', // optional + sandbox: false // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/messaging/update-email.md b/docs/examples/1.8.x/server-nodejs/examples/messaging/update-email.md index 945ca3b325..575b463545 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/messaging/update-email.md +++ b/docs/examples/1.8.x/server-nodejs/examples/messaging/update-email.md @@ -9,15 +9,15 @@ const messaging = new sdk.Messaging(client); const result = await messaging.updateEmail({ messageId: '<MESSAGE_ID>', - topics: [], - users: [], - targets: [], - subject: '<SUBJECT>', - content: '<CONTENT>', - draft: false, - html: false, - cc: [], - bcc: [], - scheduledAt: '', - attachments: [] + topics: [], // optional + users: [], // optional + targets: [], // optional + subject: '<SUBJECT>', // optional + content: '<CONTENT>', // optional + draft: false, // optional + html: false, // optional + cc: [], // optional + bcc: [], // optional + scheduledAt: '', // optional + attachments: [] // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/messaging/update-f-c-m-provider.md b/docs/examples/1.8.x/server-nodejs/examples/messaging/update-f-c-m-provider.md deleted file mode 100644 index 60e26b67ad..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/messaging/update-f-c-m-provider.md +++ /dev/null @@ -1,15 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const messaging = new sdk.Messaging(client); - -const result = await messaging.updateFCMProvider({ - providerId: '<PROVIDER_ID>', - name: '<NAME>', - enabled: false, - serviceAccountJSON: {} -}); diff --git a/docs/examples/1.8.x/server-nodejs/examples/messaging/update-fcm-provider.md b/docs/examples/1.8.x/server-nodejs/examples/messaging/update-fcm-provider.md index 11b6c77769..0a3134a91a 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/messaging/update-fcm-provider.md +++ b/docs/examples/1.8.x/server-nodejs/examples/messaging/update-fcm-provider.md @@ -7,9 +7,9 @@ const client = new sdk.Client() const messaging = new sdk.Messaging(client); -const result = await messaging.updateFcmProvider({ +const result = await messaging.updateFCMProvider({ providerId: '<PROVIDER_ID>', - name: '<NAME>', - enabled: false, - serviceAccountJSON: {} + name: '<NAME>', // optional + enabled: false, // optional + serviceAccountJSON: {} // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/messaging/update-mailgun-provider.md b/docs/examples/1.8.x/server-nodejs/examples/messaging/update-mailgun-provider.md index f7c39ee5ad..fbe2d076f7 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/messaging/update-mailgun-provider.md +++ b/docs/examples/1.8.x/server-nodejs/examples/messaging/update-mailgun-provider.md @@ -9,13 +9,13 @@ const messaging = new sdk.Messaging(client); const result = await messaging.updateMailgunProvider({ providerId: '<PROVIDER_ID>', - name: '<NAME>', - apiKey: '<API_KEY>', - domain: '<DOMAIN>', - isEuRegion: false, - enabled: false, - fromName: '<FROM_NAME>', - fromEmail: 'email@example.com', - replyToName: '<REPLY_TO_NAME>', - replyToEmail: '<REPLY_TO_EMAIL>' + name: '<NAME>', // optional + apiKey: '<API_KEY>', // optional + domain: '<DOMAIN>', // optional + isEuRegion: false, // optional + enabled: false, // optional + fromName: '<FROM_NAME>', // optional + fromEmail: 'email@example.com', // optional + replyToName: '<REPLY_TO_NAME>', // optional + replyToEmail: '<REPLY_TO_EMAIL>' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/messaging/update-msg91provider.md b/docs/examples/1.8.x/server-nodejs/examples/messaging/update-msg-91-provider.md similarity index 67% rename from docs/examples/1.8.x/server-nodejs/examples/messaging/update-msg91provider.md rename to docs/examples/1.8.x/server-nodejs/examples/messaging/update-msg-91-provider.md index 4bb4baadce..7ecb3f031b 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/messaging/update-msg91provider.md +++ b/docs/examples/1.8.x/server-nodejs/examples/messaging/update-msg-91-provider.md @@ -9,9 +9,9 @@ const messaging = new sdk.Messaging(client); const result = await messaging.updateMsg91Provider({ providerId: '<PROVIDER_ID>', - name: '<NAME>', - enabled: false, - templateId: '<TEMPLATE_ID>', - senderId: '<SENDER_ID>', - authKey: '<AUTH_KEY>' + name: '<NAME>', // optional + enabled: false, // optional + templateId: '<TEMPLATE_ID>', // optional + senderId: '<SENDER_ID>', // optional + authKey: '<AUTH_KEY>' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/messaging/update-push.md b/docs/examples/1.8.x/server-nodejs/examples/messaging/update-push.md index c8a75d4c0d..5e857f1ff6 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/messaging/update-push.md +++ b/docs/examples/1.8.x/server-nodejs/examples/messaging/update-push.md @@ -9,22 +9,22 @@ const messaging = new sdk.Messaging(client); const result = await messaging.updatePush({ messageId: '<MESSAGE_ID>', - topics: [], - users: [], - targets: [], - title: '<TITLE>', - body: '<BODY>', - data: {}, - action: '<ACTION>', - image: '[ID1:ID2]', - icon: '<ICON>', - sound: '<SOUND>', - color: '<COLOR>', - tag: '<TAG>', - badge: null, - draft: false, - scheduledAt: '', - contentAvailable: false, - critical: false, - priority: sdk.MessagePriority.Normal + topics: [], // optional + users: [], // optional + targets: [], // optional + title: '<TITLE>', // optional + body: '<BODY>', // optional + data: {}, // optional + action: '<ACTION>', // optional + image: '[ID1:ID2]', // optional + icon: '<ICON>', // optional + sound: '<SOUND>', // optional + color: '<COLOR>', // optional + tag: '<TAG>', // optional + badge: null, // optional + draft: false, // optional + scheduledAt: '', // optional + contentAvailable: false, // optional + critical: false, // optional + priority: sdk.MessagePriority.Normal // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/messaging/update-s-m-s.md b/docs/examples/1.8.x/server-nodejs/examples/messaging/update-s-m-s.md deleted file mode 100644 index fe9a52487d..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/messaging/update-s-m-s.md +++ /dev/null @@ -1,18 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const messaging = new sdk.Messaging(client); - -const result = await messaging.updateSMS({ - messageId: '<MESSAGE_ID>', - topics: [], - users: [], - targets: [], - content: '<CONTENT>', - draft: false, - scheduledAt: '' -}); diff --git a/docs/examples/1.8.x/server-nodejs/examples/messaging/update-s-m-t-p-provider.md b/docs/examples/1.8.x/server-nodejs/examples/messaging/update-s-m-t-p-provider.md deleted file mode 100644 index 254ef19d4e..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/messaging/update-s-m-t-p-provider.md +++ /dev/null @@ -1,25 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const messaging = new sdk.Messaging(client); - -const result = await messaging.updateSMTPProvider({ - providerId: '<PROVIDER_ID>', - name: '<NAME>', - host: '<HOST>', - port: 1, - username: '<USERNAME>', - password: '<PASSWORD>', - encryption: sdk.SmtpEncryption.None, - autoTLS: false, - mailer: '<MAILER>', - fromName: '<FROM_NAME>', - fromEmail: 'email@example.com', - replyToName: '<REPLY_TO_NAME>', - replyToEmail: '<REPLY_TO_EMAIL>', - enabled: false -}); diff --git a/docs/examples/1.8.x/server-nodejs/examples/messaging/update-sendgrid-provider.md b/docs/examples/1.8.x/server-nodejs/examples/messaging/update-sendgrid-provider.md index c328423632..340f275884 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/messaging/update-sendgrid-provider.md +++ b/docs/examples/1.8.x/server-nodejs/examples/messaging/update-sendgrid-provider.md @@ -9,11 +9,11 @@ const messaging = new sdk.Messaging(client); const result = await messaging.updateSendgridProvider({ providerId: '<PROVIDER_ID>', - name: '<NAME>', - enabled: false, - apiKey: '<API_KEY>', - fromName: '<FROM_NAME>', - fromEmail: 'email@example.com', - replyToName: '<REPLY_TO_NAME>', - replyToEmail: '<REPLY_TO_EMAIL>' + name: '<NAME>', // optional + enabled: false, // optional + apiKey: '<API_KEY>', // optional + fromName: '<FROM_NAME>', // optional + fromEmail: 'email@example.com', // optional + replyToName: '<REPLY_TO_NAME>', // optional + replyToEmail: '<REPLY_TO_EMAIL>' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/messaging/update-sms.md b/docs/examples/1.8.x/server-nodejs/examples/messaging/update-sms.md index 6abf0ff9e2..a325b5afb3 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/messaging/update-sms.md +++ b/docs/examples/1.8.x/server-nodejs/examples/messaging/update-sms.md @@ -7,12 +7,12 @@ const client = new sdk.Client() const messaging = new sdk.Messaging(client); -const result = await messaging.updateSms({ +const result = await messaging.updateSMS({ messageId: '<MESSAGE_ID>', - topics: [], - users: [], - targets: [], - content: '<CONTENT>', - draft: false, - scheduledAt: '' + topics: [], // optional + users: [], // optional + targets: [], // optional + content: '<CONTENT>', // optional + draft: false, // optional + scheduledAt: '' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/messaging/update-smtp-provider.md b/docs/examples/1.8.x/server-nodejs/examples/messaging/update-smtp-provider.md index 8c4444d12e..7b2a81164b 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/messaging/update-smtp-provider.md +++ b/docs/examples/1.8.x/server-nodejs/examples/messaging/update-smtp-provider.md @@ -7,19 +7,19 @@ const client = new sdk.Client() const messaging = new sdk.Messaging(client); -const result = await messaging.updateSmtpProvider({ +const result = await messaging.updateSMTPProvider({ providerId: '<PROVIDER_ID>', - name: '<NAME>', - host: '<HOST>', - port: 1, - username: '<USERNAME>', - password: '<PASSWORD>', - encryption: sdk.SmtpEncryption.None, - autoTLS: false, - mailer: '<MAILER>', - fromName: '<FROM_NAME>', - fromEmail: 'email@example.com', - replyToName: '<REPLY_TO_NAME>', - replyToEmail: '<REPLY_TO_EMAIL>', - enabled: false + name: '<NAME>', // optional + host: '<HOST>', // optional + port: 1, // optional + username: '<USERNAME>', // optional + password: '<PASSWORD>', // optional + encryption: sdk.SmtpEncryption.None, // optional + autoTLS: false, // optional + mailer: '<MAILER>', // optional + fromName: '<FROM_NAME>', // optional + fromEmail: 'email@example.com', // optional + replyToName: '<REPLY_TO_NAME>', // optional + replyToEmail: '<REPLY_TO_EMAIL>', // optional + enabled: false // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/messaging/update-telesign-provider.md b/docs/examples/1.8.x/server-nodejs/examples/messaging/update-telesign-provider.md index ff338fa446..8e1e2364c1 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/messaging/update-telesign-provider.md +++ b/docs/examples/1.8.x/server-nodejs/examples/messaging/update-telesign-provider.md @@ -9,9 +9,9 @@ const messaging = new sdk.Messaging(client); const result = await messaging.updateTelesignProvider({ providerId: '<PROVIDER_ID>', - name: '<NAME>', - enabled: false, - customerId: '<CUSTOMER_ID>', - apiKey: '<API_KEY>', - from: '<FROM>' + name: '<NAME>', // optional + enabled: false, // optional + customerId: '<CUSTOMER_ID>', // optional + apiKey: '<API_KEY>', // optional + from: '<FROM>' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/messaging/update-textmagic-provider.md b/docs/examples/1.8.x/server-nodejs/examples/messaging/update-textmagic-provider.md index 0632b6872e..8656723d14 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/messaging/update-textmagic-provider.md +++ b/docs/examples/1.8.x/server-nodejs/examples/messaging/update-textmagic-provider.md @@ -9,9 +9,9 @@ const messaging = new sdk.Messaging(client); const result = await messaging.updateTextmagicProvider({ providerId: '<PROVIDER_ID>', - name: '<NAME>', - enabled: false, - username: '<USERNAME>', - apiKey: '<API_KEY>', - from: '<FROM>' + name: '<NAME>', // optional + enabled: false, // optional + username: '<USERNAME>', // optional + apiKey: '<API_KEY>', // optional + from: '<FROM>' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/messaging/update-topic.md b/docs/examples/1.8.x/server-nodejs/examples/messaging/update-topic.md index d6d6482da8..cf34080fea 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/messaging/update-topic.md +++ b/docs/examples/1.8.x/server-nodejs/examples/messaging/update-topic.md @@ -9,6 +9,6 @@ const messaging = new sdk.Messaging(client); const result = await messaging.updateTopic({ topicId: '<TOPIC_ID>', - name: '<NAME>', - subscribe: ["any"] + name: '<NAME>', // optional + subscribe: ["any"] // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/messaging/update-twilio-provider.md b/docs/examples/1.8.x/server-nodejs/examples/messaging/update-twilio-provider.md index 37f817b17d..6a201415fe 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/messaging/update-twilio-provider.md +++ b/docs/examples/1.8.x/server-nodejs/examples/messaging/update-twilio-provider.md @@ -9,9 +9,9 @@ const messaging = new sdk.Messaging(client); const result = await messaging.updateTwilioProvider({ providerId: '<PROVIDER_ID>', - name: '<NAME>', - enabled: false, - accountSid: '<ACCOUNT_SID>', - authToken: '<AUTH_TOKEN>', - from: '<FROM>' + name: '<NAME>', // optional + enabled: false, // optional + accountSid: '<ACCOUNT_SID>', // optional + authToken: '<AUTH_TOKEN>', // optional + from: '<FROM>' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/messaging/update-vonage-provider.md b/docs/examples/1.8.x/server-nodejs/examples/messaging/update-vonage-provider.md index 57beebec7b..d99c07621c 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/messaging/update-vonage-provider.md +++ b/docs/examples/1.8.x/server-nodejs/examples/messaging/update-vonage-provider.md @@ -9,9 +9,9 @@ const messaging = new sdk.Messaging(client); const result = await messaging.updateVonageProvider({ providerId: '<PROVIDER_ID>', - name: '<NAME>', - enabled: false, - apiKey: '<API_KEY>', - apiSecret: '<API_SECRET>', - from: '<FROM>' + name: '<NAME>', // optional + enabled: false, // optional + apiKey: '<API_KEY>', // optional + apiSecret: '<API_SECRET>', // optional + from: '<FROM>' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/sites/create-deployment.md b/docs/examples/1.8.x/server-nodejs/examples/sites/create-deployment.md index 7244927b42..dbd78e094e 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/sites/create-deployment.md +++ b/docs/examples/1.8.x/server-nodejs/examples/sites/create-deployment.md @@ -12,7 +12,7 @@ const result = await sites.createDeployment({ siteId: '<SITE_ID>', code: InputFile.fromPath('/path/to/file', 'filename'), activate: false, - installCommand: '<INSTALL_COMMAND>', - buildCommand: '<BUILD_COMMAND>', - outputDirectory: '<OUTPUT_DIRECTORY>' + installCommand: '<INSTALL_COMMAND>', // optional + buildCommand: '<BUILD_COMMAND>', // optional + outputDirectory: '<OUTPUT_DIRECTORY>' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/sites/create-template-deployment.md b/docs/examples/1.8.x/server-nodejs/examples/sites/create-template-deployment.md index b496e4d2dd..7dfb4370e6 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/sites/create-template-deployment.md +++ b/docs/examples/1.8.x/server-nodejs/examples/sites/create-template-deployment.md @@ -13,5 +13,5 @@ const result = await sites.createTemplateDeployment({ owner: '<OWNER>', rootDirectory: '<ROOT_DIRECTORY>', version: '<VERSION>', - activate: false + activate: false // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/sites/create-variable.md b/docs/examples/1.8.x/server-nodejs/examples/sites/create-variable.md index de86b94db6..2ec774c70b 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/sites/create-variable.md +++ b/docs/examples/1.8.x/server-nodejs/examples/sites/create-variable.md @@ -11,5 +11,5 @@ const result = await sites.createVariable({ siteId: '<SITE_ID>', key: '<KEY>', value: '<VALUE>', - secret: false + secret: false // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/sites/create-vcs-deployment.md b/docs/examples/1.8.x/server-nodejs/examples/sites/create-vcs-deployment.md index 9faa3cabfe..7f7c2196ba 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/sites/create-vcs-deployment.md +++ b/docs/examples/1.8.x/server-nodejs/examples/sites/create-vcs-deployment.md @@ -11,5 +11,5 @@ const result = await sites.createVcsDeployment({ siteId: '<SITE_ID>', type: sdk.VCSDeploymentType.Branch, reference: '<REFERENCE>', - activate: false + activate: false // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/sites/create.md b/docs/examples/1.8.x/server-nodejs/examples/sites/create.md index b2c9f31e70..25c6715748 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/sites/create.md +++ b/docs/examples/1.8.x/server-nodejs/examples/sites/create.md @@ -12,18 +12,18 @@ const result = await sites.create({ name: '<NAME>', framework: sdk..Analog, buildRuntime: sdk..Node145, - enabled: false, - logging: false, - timeout: 1, - installCommand: '<INSTALL_COMMAND>', - buildCommand: '<BUILD_COMMAND>', - outputDirectory: '<OUTPUT_DIRECTORY>', - adapter: sdk..Static, - installationId: '<INSTALLATION_ID>', - fallbackFile: '<FALLBACK_FILE>', - providerRepositoryId: '<PROVIDER_REPOSITORY_ID>', - providerBranch: '<PROVIDER_BRANCH>', - providerSilentMode: false, - providerRootDirectory: '<PROVIDER_ROOT_DIRECTORY>', - specification: '' + enabled: false, // optional + logging: false, // optional + timeout: 1, // optional + installCommand: '<INSTALL_COMMAND>', // optional + buildCommand: '<BUILD_COMMAND>', // optional + outputDirectory: '<OUTPUT_DIRECTORY>', // optional + adapter: sdk..Static, // optional + installationId: '<INSTALLATION_ID>', // optional + fallbackFile: '<FALLBACK_FILE>', // optional + providerRepositoryId: '<PROVIDER_REPOSITORY_ID>', // optional + providerBranch: '<PROVIDER_BRANCH>', // optional + providerSilentMode: false, // optional + providerRootDirectory: '<PROVIDER_ROOT_DIRECTORY>', // optional + specification: '' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/sites/get-deployment-download.md b/docs/examples/1.8.x/server-nodejs/examples/sites/get-deployment-download.md index c3c5950afd..05e87058bc 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/sites/get-deployment-download.md +++ b/docs/examples/1.8.x/server-nodejs/examples/sites/get-deployment-download.md @@ -10,5 +10,5 @@ const sites = new sdk.Sites(client); const result = await sites.getDeploymentDownload({ siteId: '<SITE_ID>', deploymentId: '<DEPLOYMENT_ID>', - type: sdk.DeploymentDownloadType.Source + type: sdk.DeploymentDownloadType.Source // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/sites/list-deployments.md b/docs/examples/1.8.x/server-nodejs/examples/sites/list-deployments.md index 6df5298399..53a900ee77 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/sites/list-deployments.md +++ b/docs/examples/1.8.x/server-nodejs/examples/sites/list-deployments.md @@ -9,6 +9,6 @@ const sites = new sdk.Sites(client); const result = await sites.listDeployments({ siteId: '<SITE_ID>', - queries: [], - search: '<SEARCH>' + queries: [], // optional + search: '<SEARCH>' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/sites/list-logs.md b/docs/examples/1.8.x/server-nodejs/examples/sites/list-logs.md index d5a61bc769..17428d71f1 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/sites/list-logs.md +++ b/docs/examples/1.8.x/server-nodejs/examples/sites/list-logs.md @@ -9,5 +9,5 @@ const sites = new sdk.Sites(client); const result = await sites.listLogs({ siteId: '<SITE_ID>', - queries: [] + queries: [] // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/sites/list.md b/docs/examples/1.8.x/server-nodejs/examples/sites/list.md index a4ab688f90..2f2f884989 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/sites/list.md +++ b/docs/examples/1.8.x/server-nodejs/examples/sites/list.md @@ -8,6 +8,6 @@ const client = new sdk.Client() const sites = new sdk.Sites(client); const result = await sites.list({ - queries: [], - search: '<SEARCH>' + queries: [], // optional + search: '<SEARCH>' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/sites/update-variable.md b/docs/examples/1.8.x/server-nodejs/examples/sites/update-variable.md index 01be41fece..a7e3f6a1ca 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/sites/update-variable.md +++ b/docs/examples/1.8.x/server-nodejs/examples/sites/update-variable.md @@ -11,6 +11,6 @@ const result = await sites.updateVariable({ siteId: '<SITE_ID>', variableId: '<VARIABLE_ID>', key: '<KEY>', - value: '<VALUE>', - secret: false + value: '<VALUE>', // optional + secret: false // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/sites/update.md b/docs/examples/1.8.x/server-nodejs/examples/sites/update.md index 25e7c4ad07..5cb52f7a3c 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/sites/update.md +++ b/docs/examples/1.8.x/server-nodejs/examples/sites/update.md @@ -11,19 +11,19 @@ const result = await sites.update({ siteId: '<SITE_ID>', name: '<NAME>', framework: sdk..Analog, - enabled: false, - logging: false, - timeout: 1, - installCommand: '<INSTALL_COMMAND>', - buildCommand: '<BUILD_COMMAND>', - outputDirectory: '<OUTPUT_DIRECTORY>', - buildRuntime: sdk..Node145, - adapter: sdk..Static, - fallbackFile: '<FALLBACK_FILE>', - installationId: '<INSTALLATION_ID>', - providerRepositoryId: '<PROVIDER_REPOSITORY_ID>', - providerBranch: '<PROVIDER_BRANCH>', - providerSilentMode: false, - providerRootDirectory: '<PROVIDER_ROOT_DIRECTORY>', - specification: '' + enabled: false, // optional + logging: false, // optional + timeout: 1, // optional + installCommand: '<INSTALL_COMMAND>', // optional + buildCommand: '<BUILD_COMMAND>', // optional + outputDirectory: '<OUTPUT_DIRECTORY>', // optional + buildRuntime: sdk..Node145, // optional + adapter: sdk..Static, // optional + fallbackFile: '<FALLBACK_FILE>', // optional + installationId: '<INSTALLATION_ID>', // optional + providerRepositoryId: '<PROVIDER_REPOSITORY_ID>', // optional + providerBranch: '<PROVIDER_BRANCH>', // optional + providerSilentMode: false, // optional + providerRootDirectory: '<PROVIDER_ROOT_DIRECTORY>', // optional + specification: '' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/storage/create-bucket.md b/docs/examples/1.8.x/server-nodejs/examples/storage/create-bucket.md index 0730a29078..f1f029491a 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/storage/create-bucket.md +++ b/docs/examples/1.8.x/server-nodejs/examples/storage/create-bucket.md @@ -10,12 +10,12 @@ const storage = new sdk.Storage(client); const result = await storage.createBucket({ bucketId: '<BUCKET_ID>', name: '<NAME>', - permissions: ["read("any")"], - fileSecurity: false, - enabled: false, - maximumFileSize: 1, - allowedFileExtensions: [], - compression: sdk..None, - encryption: false, - antivirus: false + permissions: ["read("any")"], // optional + fileSecurity: false, // optional + enabled: false, // optional + maximumFileSize: 1, // optional + allowedFileExtensions: [], // optional + compression: sdk..None, // optional + encryption: false, // optional + antivirus: false // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/storage/create-file.md b/docs/examples/1.8.x/server-nodejs/examples/storage/create-file.md index 8a2329cdaa..628faf7249 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/storage/create-file.md +++ b/docs/examples/1.8.x/server-nodejs/examples/storage/create-file.md @@ -12,5 +12,5 @@ const result = await storage.createFile({ bucketId: '<BUCKET_ID>', fileId: '<FILE_ID>', file: InputFile.fromPath('/path/to/file', 'filename'), - permissions: ["read("any")"] + permissions: ["read("any")"] // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/storage/get-file-download.md b/docs/examples/1.8.x/server-nodejs/examples/storage/get-file-download.md index cedcd7c195..253e63851b 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/storage/get-file-download.md +++ b/docs/examples/1.8.x/server-nodejs/examples/storage/get-file-download.md @@ -10,5 +10,5 @@ const storage = new sdk.Storage(client); const result = await storage.getFileDownload({ bucketId: '<BUCKET_ID>', fileId: '<FILE_ID>', - token: '<TOKEN>' + token: '<TOKEN>' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/storage/get-file-preview.md b/docs/examples/1.8.x/server-nodejs/examples/storage/get-file-preview.md index 077e7f9905..d188e0d8ae 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/storage/get-file-preview.md +++ b/docs/examples/1.8.x/server-nodejs/examples/storage/get-file-preview.md @@ -10,16 +10,16 @@ const storage = new sdk.Storage(client); const result = await storage.getFilePreview({ bucketId: '<BUCKET_ID>', fileId: '<FILE_ID>', - width: 0, - height: 0, - gravity: sdk.ImageGravity.Center, - quality: -1, - borderWidth: 0, - borderColor: '', - borderRadius: 0, - opacity: 0, - rotation: -360, - background: '', - output: sdk.ImageFormat.Jpg, - token: '<TOKEN>' + width: 0, // optional + height: 0, // optional + gravity: sdk.ImageGravity.Center, // optional + quality: -1, // optional + borderWidth: 0, // optional + borderColor: '', // optional + borderRadius: 0, // optional + opacity: 0, // optional + rotation: -360, // optional + background: '', // optional + output: sdk.ImageFormat.Jpg, // optional + token: '<TOKEN>' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/storage/get-file-view.md b/docs/examples/1.8.x/server-nodejs/examples/storage/get-file-view.md index def181170a..35c6ba2284 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/storage/get-file-view.md +++ b/docs/examples/1.8.x/server-nodejs/examples/storage/get-file-view.md @@ -10,5 +10,5 @@ const storage = new sdk.Storage(client); const result = await storage.getFileView({ bucketId: '<BUCKET_ID>', fileId: '<FILE_ID>', - token: '<TOKEN>' + token: '<TOKEN>' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/storage/list-buckets.md b/docs/examples/1.8.x/server-nodejs/examples/storage/list-buckets.md index d93de623a6..a6dcf4004a 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/storage/list-buckets.md +++ b/docs/examples/1.8.x/server-nodejs/examples/storage/list-buckets.md @@ -8,6 +8,6 @@ const client = new sdk.Client() const storage = new sdk.Storage(client); const result = await storage.listBuckets({ - queries: [], - search: '<SEARCH>' + queries: [], // optional + search: '<SEARCH>' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/storage/list-files.md b/docs/examples/1.8.x/server-nodejs/examples/storage/list-files.md index 27fae7a82b..b22c1c1047 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/storage/list-files.md +++ b/docs/examples/1.8.x/server-nodejs/examples/storage/list-files.md @@ -9,6 +9,6 @@ const storage = new sdk.Storage(client); const result = await storage.listFiles({ bucketId: '<BUCKET_ID>', - queries: [], - search: '<SEARCH>' + queries: [], // optional + search: '<SEARCH>' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/storage/update-bucket.md b/docs/examples/1.8.x/server-nodejs/examples/storage/update-bucket.md index 4d77c1e598..136ebafe1b 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/storage/update-bucket.md +++ b/docs/examples/1.8.x/server-nodejs/examples/storage/update-bucket.md @@ -10,12 +10,12 @@ const storage = new sdk.Storage(client); const result = await storage.updateBucket({ bucketId: '<BUCKET_ID>', name: '<NAME>', - permissions: ["read("any")"], - fileSecurity: false, - enabled: false, - maximumFileSize: 1, - allowedFileExtensions: [], - compression: sdk..None, - encryption: false, - antivirus: false + permissions: ["read("any")"], // optional + fileSecurity: false, // optional + enabled: false, // optional + maximumFileSize: 1, // optional + allowedFileExtensions: [], // optional + compression: sdk..None, // optional + encryption: false, // optional + antivirus: false // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/storage/update-file.md b/docs/examples/1.8.x/server-nodejs/examples/storage/update-file.md index 6cacb7a581..2d78d5fb91 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/storage/update-file.md +++ b/docs/examples/1.8.x/server-nodejs/examples/storage/update-file.md @@ -10,6 +10,6 @@ const storage = new sdk.Storage(client); const result = await storage.updateFile({ bucketId: '<BUCKET_ID>', fileId: '<FILE_ID>', - name: '<NAME>', - permissions: ["read("any")"] + name: '<NAME>', // optional + permissions: ["read("any")"] // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-boolean-column.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-boolean-column.md index c82083c4c7..129e646ae6 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-boolean-column.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-boolean-column.md @@ -12,6 +12,6 @@ const result = await tablesDB.createBooleanColumn({ tableId: '<TABLE_ID>', key: '', required: false, - default: false, - array: false + default: false, // optional + array: false // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-datetime-column.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-datetime-column.md index ed83c6c3f4..dcc6c1ed2d 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-datetime-column.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-datetime-column.md @@ -12,6 +12,6 @@ const result = await tablesDB.createDatetimeColumn({ tableId: '<TABLE_ID>', key: '', required: false, - default: '', - array: false + default: '', // optional + array: false // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-email-column.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-email-column.md index 0732b1bcc7..a250d4a908 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-email-column.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-email-column.md @@ -12,6 +12,6 @@ const result = await tablesDB.createEmailColumn({ tableId: '<TABLE_ID>', key: '', required: false, - default: 'email@example.com', - array: false + default: 'email@example.com', // optional + array: false // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-enum-column.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-enum-column.md index bd11c1ff48..f1e183088d 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-enum-column.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-enum-column.md @@ -13,6 +13,6 @@ const result = await tablesDB.createEnumColumn({ key: '', elements: [], required: false, - default: '<DEFAULT>', - array: false + default: '<DEFAULT>', // optional + array: false // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-float-column.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-float-column.md index 119bfd1f49..6dd4dfcf87 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-float-column.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-float-column.md @@ -12,8 +12,8 @@ const result = await tablesDB.createFloatColumn({ tableId: '<TABLE_ID>', key: '', required: false, - min: null, - max: null, - default: null, - array: false + min: null, // optional + max: null, // optional + default: null, // optional + array: false // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-index.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-index.md index ee678b7fa7..ec84b060a0 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-index.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-index.md @@ -13,6 +13,6 @@ const result = await tablesDB.createIndex({ key: '', type: sdk.IndexType.Key, columns: [], - orders: [], - lengths: [] + orders: [], // optional + lengths: [] // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-integer-column.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-integer-column.md index fca25cde89..b682db47eb 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-integer-column.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-integer-column.md @@ -12,8 +12,8 @@ const result = await tablesDB.createIntegerColumn({ tableId: '<TABLE_ID>', key: '', required: false, - min: null, - max: null, - default: null, - array: false + min: null, // optional + max: null, // optional + default: null, // optional + array: false // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-ip-column.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-ip-column.md index f0e540ca47..eaeb64aa86 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-ip-column.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-ip-column.md @@ -12,6 +12,6 @@ const result = await tablesDB.createIpColumn({ tableId: '<TABLE_ID>', key: '', required: false, - default: '', - array: false + default: '', // optional + array: false // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-relationship-column.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-relationship-column.md index 56c6666fbd..09ebd96e2b 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-relationship-column.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-relationship-column.md @@ -12,8 +12,8 @@ const result = await tablesDB.createRelationshipColumn({ tableId: '<TABLE_ID>', relatedTableId: '<RELATED_TABLE_ID>', type: sdk.RelationshipType.OneToOne, - twoWay: false, - key: '', - twoWayKey: '', - onDelete: sdk.RelationMutate.Cascade + twoWay: false, // optional + key: '', // optional + twoWayKey: '', // optional + onDelete: sdk.RelationMutate.Cascade // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-row.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-row.md index c67399232a..aa9242301e 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-row.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-row.md @@ -12,5 +12,5 @@ const result = await tablesDB.createRow({ tableId: '<TABLE_ID>', rowId: '<ROW_ID>', data: {}, - permissions: ["read("any")"] + permissions: ["read("any")"] // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-string-column.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-string-column.md index 2007f88d12..dbe06329c1 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-string-column.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-string-column.md @@ -13,7 +13,7 @@ const result = await tablesDB.createStringColumn({ key: '', size: 1, required: false, - default: '<DEFAULT>', - array: false, - encrypt: false + default: '<DEFAULT>', // optional + array: false, // optional + encrypt: false // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-table.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-table.md index 2820043e8b..1b252f1484 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-table.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-table.md @@ -11,7 +11,7 @@ const result = await tablesDB.createTable({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', name: '<NAME>', - permissions: ["read("any")"], - rowSecurity: false, - enabled: false + permissions: ["read("any")"], // optional + rowSecurity: false, // optional + enabled: false // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-url-column.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-url-column.md index fbe4191d42..a37424e718 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-url-column.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create-url-column.md @@ -12,6 +12,6 @@ const result = await tablesDB.createUrlColumn({ tableId: '<TABLE_ID>', key: '', required: false, - default: 'https://example.com', - array: false + default: 'https://example.com', // optional + array: false // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create.md index 75f8fb926a..a16191d4db 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/create.md @@ -10,5 +10,5 @@ const tablesDB = new sdk.TablesDB(client); const result = await tablesDB.create({ databaseId: '<DATABASE_ID>', name: '<NAME>', - enabled: false + enabled: false // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/decrement-row-column.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/decrement-row-column.md index dea448433e..e3b13a887e 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/decrement-row-column.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/decrement-row-column.md @@ -12,6 +12,6 @@ const result = await tablesDB.decrementRowColumn({ tableId: '<TABLE_ID>', rowId: '<ROW_ID>', column: '', - value: null, - min: null + value: null, // optional + min: null // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/delete-rows.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/delete-rows.md index 09e17fd742..6f4d7cd68b 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/delete-rows.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/delete-rows.md @@ -10,5 +10,5 @@ const tablesDB = new sdk.TablesDB(client); const result = await tablesDB.deleteRows({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', - queries: [] + queries: [] // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/get-row.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/get-row.md index 16006234ac..7ea3d1fca2 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/get-row.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/get-row.md @@ -11,5 +11,5 @@ const result = await tablesDB.getRow({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', rowId: '<ROW_ID>', - queries: [] + queries: [] // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/increment-row-column.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/increment-row-column.md index 748ef2bc04..f5cac2ebaa 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/increment-row-column.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/increment-row-column.md @@ -12,6 +12,6 @@ const result = await tablesDB.incrementRowColumn({ tableId: '<TABLE_ID>', rowId: '<ROW_ID>', column: '', - value: null, - max: null + value: null, // optional + max: null // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/list-columns.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/list-columns.md index ff2b85ce07..b756a3d0bb 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/list-columns.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/list-columns.md @@ -10,5 +10,5 @@ const tablesDB = new sdk.TablesDB(client); const result = await tablesDB.listColumns({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', - queries: [] + queries: [] // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/list-indexes.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/list-indexes.md index 44ff3b8c1c..1c99bf935a 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/list-indexes.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/list-indexes.md @@ -10,5 +10,5 @@ const tablesDB = new sdk.TablesDB(client); const result = await tablesDB.listIndexes({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', - queries: [] + queries: [] // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/list-rows.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/list-rows.md index 5f64243660..6d3b883bd4 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/list-rows.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/list-rows.md @@ -10,5 +10,5 @@ const tablesDB = new sdk.TablesDB(client); const result = await tablesDB.listRows({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', - queries: [] + queries: [] // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/list-tables.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/list-tables.md index df14aa4c69..f6d6608c1a 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/list-tables.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/list-tables.md @@ -9,6 +9,6 @@ const tablesDB = new sdk.TablesDB(client); const result = await tablesDB.listTables({ databaseId: '<DATABASE_ID>', - queries: [], - search: '<SEARCH>' + queries: [], // optional + search: '<SEARCH>' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/list.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/list.md index 16348c12ac..6648ea789c 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/list.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/list.md @@ -8,6 +8,6 @@ const client = new sdk.Client() const tablesDB = new sdk.TablesDB(client); const result = await tablesDB.list({ - queries: [], - search: '<SEARCH>' + queries: [], // optional + search: '<SEARCH>' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-boolean-column.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-boolean-column.md index f73740af6c..aa1d5239ca 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-boolean-column.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-boolean-column.md @@ -13,5 +13,5 @@ const result = await tablesDB.updateBooleanColumn({ key: '', required: false, default: false, - newKey: '' + newKey: '' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-datetime-column.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-datetime-column.md index 58ffe87316..10badccd9b 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-datetime-column.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-datetime-column.md @@ -13,5 +13,5 @@ const result = await tablesDB.updateDatetimeColumn({ key: '', required: false, default: '', - newKey: '' + newKey: '' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-email-column.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-email-column.md index a56adef66f..ff40472234 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-email-column.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-email-column.md @@ -13,5 +13,5 @@ const result = await tablesDB.updateEmailColumn({ key: '', required: false, default: 'email@example.com', - newKey: '' + newKey: '' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-enum-column.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-enum-column.md index 97d9b8e1a6..ccc70b113d 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-enum-column.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-enum-column.md @@ -14,5 +14,5 @@ const result = await tablesDB.updateEnumColumn({ elements: [], required: false, default: '<DEFAULT>', - newKey: '' + newKey: '' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-float-column.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-float-column.md index c7259810b0..73add7d522 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-float-column.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-float-column.md @@ -13,7 +13,7 @@ const result = await tablesDB.updateFloatColumn({ key: '', required: false, default: null, - min: null, - max: null, - newKey: '' + min: null, // optional + max: null, // optional + newKey: '' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-integer-column.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-integer-column.md index ee3a37a010..18cceb056a 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-integer-column.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-integer-column.md @@ -13,7 +13,7 @@ const result = await tablesDB.updateIntegerColumn({ key: '', required: false, default: null, - min: null, - max: null, - newKey: '' + min: null, // optional + max: null, // optional + newKey: '' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-ip-column.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-ip-column.md index 87d31f0861..c0313d126c 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-ip-column.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-ip-column.md @@ -13,5 +13,5 @@ const result = await tablesDB.updateIpColumn({ key: '', required: false, default: '', - newKey: '' + newKey: '' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-relationship-column.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-relationship-column.md index 848b1c3133..a91b47986c 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-relationship-column.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-relationship-column.md @@ -11,6 +11,6 @@ const result = await tablesDB.updateRelationshipColumn({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', key: '', - onDelete: sdk.RelationMutate.Cascade, - newKey: '' + onDelete: sdk.RelationMutate.Cascade, // optional + newKey: '' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-row.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-row.md index 9b0c7ee1cf..1c7f0af197 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-row.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-row.md @@ -11,6 +11,6 @@ const result = await tablesDB.updateRow({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', rowId: '<ROW_ID>', - data: {}, - permissions: ["read("any")"] + data: {}, // optional + permissions: ["read("any")"] // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-rows.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-rows.md index 67f483150f..31628d7150 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-rows.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-rows.md @@ -10,6 +10,6 @@ const tablesDB = new sdk.TablesDB(client); const result = await tablesDB.updateRows({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', - data: {}, - queries: [] + data: {}, // optional + queries: [] // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-string-column.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-string-column.md index fc73468009..f30614e80c 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-string-column.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-string-column.md @@ -13,6 +13,6 @@ const result = await tablesDB.updateStringColumn({ key: '', required: false, default: '<DEFAULT>', - size: 1, - newKey: '' + size: 1, // optional + newKey: '' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-table.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-table.md index f4de8a5ada..b61fd6ac4e 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-table.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-table.md @@ -11,7 +11,7 @@ const result = await tablesDB.updateTable({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', name: '<NAME>', - permissions: ["read("any")"], - rowSecurity: false, - enabled: false + permissions: ["read("any")"], // optional + rowSecurity: false, // optional + enabled: false // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-url-column.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-url-column.md index 41eade2f56..cb2440a9d0 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-url-column.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update-url-column.md @@ -13,5 +13,5 @@ const result = await tablesDB.updateUrlColumn({ key: '', required: false, default: 'https://example.com', - newKey: '' + newKey: '' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update.md index d4f17c3e8c..85f98ee112 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/update.md @@ -10,5 +10,5 @@ const tablesDB = new sdk.TablesDB(client); const result = await tablesDB.update({ databaseId: '<DATABASE_ID>', name: '<NAME>', - enabled: false + enabled: false // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/upsert-row.md b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/upsert-row.md index 20f33eff48..9963bb6ced 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tablesdb/upsert-row.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tablesdb/upsert-row.md @@ -11,6 +11,6 @@ const result = await tablesDB.upsertRow({ databaseId: '<DATABASE_ID>', tableId: '<TABLE_ID>', rowId: '<ROW_ID>', - data: {}, - permissions: ["read("any")"] + data: {}, // optional + permissions: ["read("any")"] // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/teams/create-membership.md b/docs/examples/1.8.x/server-nodejs/examples/teams/create-membership.md index 0725432d2e..28cb901ca2 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/teams/create-membership.md +++ b/docs/examples/1.8.x/server-nodejs/examples/teams/create-membership.md @@ -10,9 +10,9 @@ const teams = new sdk.Teams(client); const result = await teams.createMembership({ teamId: '<TEAM_ID>', roles: [], - email: 'email@example.com', - userId: '<USER_ID>', - phone: '+12065550100', - url: 'https://example.com', - name: '<NAME>' + email: 'email@example.com', // optional + userId: '<USER_ID>', // optional + phone: '+12065550100', // optional + url: 'https://example.com', // optional + name: '<NAME>' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/teams/create.md b/docs/examples/1.8.x/server-nodejs/examples/teams/create.md index 9427e84f36..8b1bd1d71f 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/teams/create.md +++ b/docs/examples/1.8.x/server-nodejs/examples/teams/create.md @@ -10,5 +10,5 @@ const teams = new sdk.Teams(client); const result = await teams.create({ teamId: '<TEAM_ID>', name: '<NAME>', - roles: [] + roles: [] // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/teams/list-memberships.md b/docs/examples/1.8.x/server-nodejs/examples/teams/list-memberships.md index 7e63a2c722..3a18bbb001 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/teams/list-memberships.md +++ b/docs/examples/1.8.x/server-nodejs/examples/teams/list-memberships.md @@ -9,6 +9,6 @@ const teams = new sdk.Teams(client); const result = await teams.listMemberships({ teamId: '<TEAM_ID>', - queries: [], - search: '<SEARCH>' + queries: [], // optional + search: '<SEARCH>' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/teams/list.md b/docs/examples/1.8.x/server-nodejs/examples/teams/list.md index 6940173321..ef4ab51954 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/teams/list.md +++ b/docs/examples/1.8.x/server-nodejs/examples/teams/list.md @@ -8,6 +8,6 @@ const client = new sdk.Client() const teams = new sdk.Teams(client); const result = await teams.list({ - queries: [], - search: '<SEARCH>' + queries: [], // optional + search: '<SEARCH>' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tokens/create-file-token.md b/docs/examples/1.8.x/server-nodejs/examples/tokens/create-file-token.md index 32fb68b9e2..2353720627 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tokens/create-file-token.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tokens/create-file-token.md @@ -10,5 +10,5 @@ const tokens = new sdk.Tokens(client); const result = await tokens.createFileToken({ bucketId: '<BUCKET_ID>', fileId: '<FILE_ID>', - expire: '' + expire: '' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tokens/list.md b/docs/examples/1.8.x/server-nodejs/examples/tokens/list.md index f4a49b6094..41833b80e7 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tokens/list.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tokens/list.md @@ -10,5 +10,5 @@ const tokens = new sdk.Tokens(client); const result = await tokens.list({ bucketId: '<BUCKET_ID>', fileId: '<FILE_ID>', - queries: [] + queries: [] // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/tokens/update.md b/docs/examples/1.8.x/server-nodejs/examples/tokens/update.md index d16c5e9e25..8178dd0519 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/tokens/update.md +++ b/docs/examples/1.8.x/server-nodejs/examples/tokens/update.md @@ -9,5 +9,5 @@ const tokens = new sdk.Tokens(client); const result = await tokens.update({ tokenId: '<TOKEN_ID>', - expire: '' + expire: '' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/users/create-argon2user.md b/docs/examples/1.8.x/server-nodejs/examples/users/create-argon-2-user.md similarity index 93% rename from docs/examples/1.8.x/server-nodejs/examples/users/create-argon2user.md rename to docs/examples/1.8.x/server-nodejs/examples/users/create-argon-2-user.md index 81811e5829..46badb7ab8 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/users/create-argon2user.md +++ b/docs/examples/1.8.x/server-nodejs/examples/users/create-argon-2-user.md @@ -11,5 +11,5 @@ const result = await users.createArgon2User({ userId: '<USER_ID>', email: 'email@example.com', password: 'password', - name: '<NAME>' + name: '<NAME>' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/users/create-bcrypt-user.md b/docs/examples/1.8.x/server-nodejs/examples/users/create-bcrypt-user.md index 0e24a1aad0..9c9463289b 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/users/create-bcrypt-user.md +++ b/docs/examples/1.8.x/server-nodejs/examples/users/create-bcrypt-user.md @@ -11,5 +11,5 @@ const result = await users.createBcryptUser({ userId: '<USER_ID>', email: 'email@example.com', password: 'password', - name: '<NAME>' + name: '<NAME>' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/users/create-j-w-t.md b/docs/examples/1.8.x/server-nodejs/examples/users/create-jwt.md similarity index 83% rename from docs/examples/1.8.x/server-nodejs/examples/users/create-j-w-t.md rename to docs/examples/1.8.x/server-nodejs/examples/users/create-jwt.md index b44b513a13..d46b9c6ace 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/users/create-j-w-t.md +++ b/docs/examples/1.8.x/server-nodejs/examples/users/create-jwt.md @@ -9,6 +9,6 @@ const users = new sdk.Users(client); const result = await users.createJWT({ userId: '<USER_ID>', - sessionId: '<SESSION_ID>', - duration: 0 + sessionId: '<SESSION_ID>', // optional + duration: 0 // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/users/create-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-nodejs/examples/users/create-m-f-a-recovery-codes.md deleted file mode 100644 index 5ebb6ac252..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/users/create-m-f-a-recovery-codes.md +++ /dev/null @@ -1,12 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const users = new sdk.Users(client); - -const result = await users.createMFARecoveryCodes({ - userId: '<USER_ID>' -}); diff --git a/docs/examples/1.8.x/server-nodejs/examples/users/create-m-d5user.md b/docs/examples/1.8.x/server-nodejs/examples/users/create-md-5-user.md similarity index 93% rename from docs/examples/1.8.x/server-nodejs/examples/users/create-m-d5user.md rename to docs/examples/1.8.x/server-nodejs/examples/users/create-md-5-user.md index cf588a8bc1..c92227489d 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/users/create-m-d5user.md +++ b/docs/examples/1.8.x/server-nodejs/examples/users/create-md-5-user.md @@ -11,5 +11,5 @@ const result = await users.createMD5User({ userId: '<USER_ID>', email: 'email@example.com', password: 'password', - name: '<NAME>' + name: '<NAME>' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.8.x/server-nodejs/examples/users/create-mfa-recovery-codes.md index 9835100520..5ebb6ac252 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-nodejs/examples/users/create-mfa-recovery-codes.md @@ -7,6 +7,6 @@ const client = new sdk.Client() const users = new sdk.Users(client); -const result = await users.createMfaRecoveryCodes({ +const result = await users.createMFARecoveryCodes({ userId: '<USER_ID>' }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/users/create-p-h-pass-user.md b/docs/examples/1.8.x/server-nodejs/examples/users/create-ph-pass-user.md similarity index 93% rename from docs/examples/1.8.x/server-nodejs/examples/users/create-p-h-pass-user.md rename to docs/examples/1.8.x/server-nodejs/examples/users/create-ph-pass-user.md index 1e4d63fa00..0a2207fc8a 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/users/create-p-h-pass-user.md +++ b/docs/examples/1.8.x/server-nodejs/examples/users/create-ph-pass-user.md @@ -11,5 +11,5 @@ const result = await users.createPHPassUser({ userId: '<USER_ID>', email: 'email@example.com', password: 'password', - name: '<NAME>' + name: '<NAME>' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/users/create-scrypt-modified-user.md b/docs/examples/1.8.x/server-nodejs/examples/users/create-scrypt-modified-user.md index 4bb7813a4d..bd30b25c0b 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/users/create-scrypt-modified-user.md +++ b/docs/examples/1.8.x/server-nodejs/examples/users/create-scrypt-modified-user.md @@ -14,5 +14,5 @@ const result = await users.createScryptModifiedUser({ passwordSalt: '<PASSWORD_SALT>', passwordSaltSeparator: '<PASSWORD_SALT_SEPARATOR>', passwordSignerKey: '<PASSWORD_SIGNER_KEY>', - name: '<NAME>' + name: '<NAME>' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/users/create-scrypt-user.md b/docs/examples/1.8.x/server-nodejs/examples/users/create-scrypt-user.md index e3eeaef0e4..76f9e2fa12 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/users/create-scrypt-user.md +++ b/docs/examples/1.8.x/server-nodejs/examples/users/create-scrypt-user.md @@ -16,5 +16,5 @@ const result = await users.createScryptUser({ passwordMemory: null, passwordParallel: null, passwordLength: null, - name: '<NAME>' + name: '<NAME>' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/users/create-s-h-a-user.md b/docs/examples/1.8.x/server-nodejs/examples/users/create-sha-user.md similarity index 83% rename from docs/examples/1.8.x/server-nodejs/examples/users/create-s-h-a-user.md rename to docs/examples/1.8.x/server-nodejs/examples/users/create-sha-user.md index 6c3f421dc5..bb940be6b1 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/users/create-s-h-a-user.md +++ b/docs/examples/1.8.x/server-nodejs/examples/users/create-sha-user.md @@ -11,6 +11,6 @@ const result = await users.createSHAUser({ userId: '<USER_ID>', email: 'email@example.com', password: 'password', - passwordVersion: sdk.PasswordHash.Sha1, - name: '<NAME>' + passwordVersion: sdk.PasswordHash.Sha1, // optional + name: '<NAME>' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/users/create-target.md b/docs/examples/1.8.x/server-nodejs/examples/users/create-target.md index 4d7af44fcb..d856f3f92b 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/users/create-target.md +++ b/docs/examples/1.8.x/server-nodejs/examples/users/create-target.md @@ -12,6 +12,6 @@ const result = await users.createTarget({ targetId: '<TARGET_ID>', providerType: sdk.MessagingProviderType.Email, identifier: '<IDENTIFIER>', - providerId: '<PROVIDER_ID>', - name: '<NAME>' + providerId: '<PROVIDER_ID>', // optional + name: '<NAME>' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/users/create-token.md b/docs/examples/1.8.x/server-nodejs/examples/users/create-token.md index 4390d3f16b..9f116920ed 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/users/create-token.md +++ b/docs/examples/1.8.x/server-nodejs/examples/users/create-token.md @@ -9,6 +9,6 @@ const users = new sdk.Users(client); const result = await users.createToken({ userId: '<USER_ID>', - length: 4, - expire: 60 + length: 4, // optional + expire: 60 // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/users/create.md b/docs/examples/1.8.x/server-nodejs/examples/users/create.md index fdbef9b5ec..3095dd1b20 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/users/create.md +++ b/docs/examples/1.8.x/server-nodejs/examples/users/create.md @@ -9,8 +9,8 @@ const users = new sdk.Users(client); const result = await users.create({ userId: '<USER_ID>', - email: 'email@example.com', - phone: '+12065550100', - password: '', - name: '<NAME>' + email: 'email@example.com', // optional + phone: '+12065550100', // optional + password: '', // optional + name: '<NAME>' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/users/delete-m-f-a-authenticator.md b/docs/examples/1.8.x/server-nodejs/examples/users/delete-m-f-a-authenticator.md deleted file mode 100644 index 16061c7aaa..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/users/delete-m-f-a-authenticator.md +++ /dev/null @@ -1,13 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const users = new sdk.Users(client); - -const result = await users.deleteMFAAuthenticator({ - userId: '<USER_ID>', - type: sdk.AuthenticatorType.Totp -}); diff --git a/docs/examples/1.8.x/server-nodejs/examples/users/delete-mfa-authenticator.md b/docs/examples/1.8.x/server-nodejs/examples/users/delete-mfa-authenticator.md index 3fb97de9f1..16061c7aaa 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/1.8.x/server-nodejs/examples/users/delete-mfa-authenticator.md @@ -7,7 +7,7 @@ const client = new sdk.Client() const users = new sdk.Users(client); -const result = await users.deleteMfaAuthenticator({ +const result = await users.deleteMFAAuthenticator({ userId: '<USER_ID>', type: sdk.AuthenticatorType.Totp }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/users/get-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-nodejs/examples/users/get-m-f-a-recovery-codes.md deleted file mode 100644 index 25f4e0b34f..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/users/get-m-f-a-recovery-codes.md +++ /dev/null @@ -1,12 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const users = new sdk.Users(client); - -const result = await users.getMFARecoveryCodes({ - userId: '<USER_ID>' -}); diff --git a/docs/examples/1.8.x/server-nodejs/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.8.x/server-nodejs/examples/users/get-mfa-recovery-codes.md index 2704e439c7..25f4e0b34f 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-nodejs/examples/users/get-mfa-recovery-codes.md @@ -7,6 +7,6 @@ const client = new sdk.Client() const users = new sdk.Users(client); -const result = await users.getMfaRecoveryCodes({ +const result = await users.getMFARecoveryCodes({ userId: '<USER_ID>' }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/users/list-identities.md b/docs/examples/1.8.x/server-nodejs/examples/users/list-identities.md index c6ecf6a5fc..2ff959c36a 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/users/list-identities.md +++ b/docs/examples/1.8.x/server-nodejs/examples/users/list-identities.md @@ -8,6 +8,6 @@ const client = new sdk.Client() const users = new sdk.Users(client); const result = await users.listIdentities({ - queries: [], - search: '<SEARCH>' + queries: [], // optional + search: '<SEARCH>' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/users/list-logs.md b/docs/examples/1.8.x/server-nodejs/examples/users/list-logs.md index bfe3d246f9..345d736c9e 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/users/list-logs.md +++ b/docs/examples/1.8.x/server-nodejs/examples/users/list-logs.md @@ -9,5 +9,5 @@ const users = new sdk.Users(client); const result = await users.listLogs({ userId: '<USER_ID>', - queries: [] + queries: [] // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/users/list-m-f-a-factors.md b/docs/examples/1.8.x/server-nodejs/examples/users/list-m-f-a-factors.md deleted file mode 100644 index 79ffcff7b2..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/users/list-m-f-a-factors.md +++ /dev/null @@ -1,12 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const users = new sdk.Users(client); - -const result = await users.listMFAFactors({ - userId: '<USER_ID>' -}); diff --git a/docs/examples/1.8.x/server-nodejs/examples/users/list-memberships.md b/docs/examples/1.8.x/server-nodejs/examples/users/list-memberships.md index 5d08e3d89c..4b2cc1fede 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/users/list-memberships.md +++ b/docs/examples/1.8.x/server-nodejs/examples/users/list-memberships.md @@ -9,6 +9,6 @@ const users = new sdk.Users(client); const result = await users.listMemberships({ userId: '<USER_ID>', - queries: [], - search: '<SEARCH>' + queries: [], // optional + search: '<SEARCH>' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/users/list-mfa-factors.md b/docs/examples/1.8.x/server-nodejs/examples/users/list-mfa-factors.md index 90278a03a2..79ffcff7b2 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/users/list-mfa-factors.md +++ b/docs/examples/1.8.x/server-nodejs/examples/users/list-mfa-factors.md @@ -7,6 +7,6 @@ const client = new sdk.Client() const users = new sdk.Users(client); -const result = await users.listMfaFactors({ +const result = await users.listMFAFactors({ userId: '<USER_ID>' }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/users/list-targets.md b/docs/examples/1.8.x/server-nodejs/examples/users/list-targets.md index 7810b653db..ded1bbe9cc 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/users/list-targets.md +++ b/docs/examples/1.8.x/server-nodejs/examples/users/list-targets.md @@ -9,5 +9,5 @@ const users = new sdk.Users(client); const result = await users.listTargets({ userId: '<USER_ID>', - queries: [] + queries: [] // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/users/list.md b/docs/examples/1.8.x/server-nodejs/examples/users/list.md index bccd2c48ee..74e72f5473 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/users/list.md +++ b/docs/examples/1.8.x/server-nodejs/examples/users/list.md @@ -8,6 +8,6 @@ const client = new sdk.Client() const users = new sdk.Users(client); const result = await users.list({ - queries: [], - search: '<SEARCH>' + queries: [], // optional + search: '<SEARCH>' // optional }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/users/update-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-nodejs/examples/users/update-m-f-a-recovery-codes.md deleted file mode 100644 index 66513ae499..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/users/update-m-f-a-recovery-codes.md +++ /dev/null @@ -1,12 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const users = new sdk.Users(client); - -const result = await users.updateMFARecoveryCodes({ - userId: '<USER_ID>' -}); diff --git a/docs/examples/1.8.x/server-nodejs/examples/users/update-m-f-a.md b/docs/examples/1.8.x/server-nodejs/examples/users/update-m-f-a.md deleted file mode 100644 index f867b0691b..0000000000 --- a/docs/examples/1.8.x/server-nodejs/examples/users/update-m-f-a.md +++ /dev/null @@ -1,13 +0,0 @@ -const sdk = require('node-appwrite'); - -const client = new sdk.Client() - .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - .setProject('<YOUR_PROJECT_ID>') // Your project ID - .setKey('<YOUR_API_KEY>'); // Your secret API key - -const users = new sdk.Users(client); - -const result = await users.updateMFA({ - userId: '<USER_ID>', - mfa: false -}); diff --git a/docs/examples/1.8.x/server-nodejs/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.8.x/server-nodejs/examples/users/update-mfa-recovery-codes.md index 03846d0785..66513ae499 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-nodejs/examples/users/update-mfa-recovery-codes.md @@ -7,6 +7,6 @@ const client = new sdk.Client() const users = new sdk.Users(client); -const result = await users.updateMfaRecoveryCodes({ +const result = await users.updateMFARecoveryCodes({ userId: '<USER_ID>' }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/users/update-mfa.md b/docs/examples/1.8.x/server-nodejs/examples/users/update-mfa.md index f4fc223ab7..f867b0691b 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/users/update-mfa.md +++ b/docs/examples/1.8.x/server-nodejs/examples/users/update-mfa.md @@ -7,7 +7,7 @@ const client = new sdk.Client() const users = new sdk.Users(client); -const result = await users.updateMfa({ +const result = await users.updateMFA({ userId: '<USER_ID>', mfa: false }); diff --git a/docs/examples/1.8.x/server-nodejs/examples/users/update-target.md b/docs/examples/1.8.x/server-nodejs/examples/users/update-target.md index bdf1a47fda..e77dbb5d0a 100644 --- a/docs/examples/1.8.x/server-nodejs/examples/users/update-target.md +++ b/docs/examples/1.8.x/server-nodejs/examples/users/update-target.md @@ -10,7 +10,7 @@ const users = new sdk.Users(client); const result = await users.updateTarget({ userId: '<USER_ID>', targetId: '<TARGET_ID>', - identifier: '<IDENTIFIER>', - providerId: '<PROVIDER_ID>', - name: '<NAME>' + identifier: '<IDENTIFIER>', // optional + providerId: '<PROVIDER_ID>', // optional + name: '<NAME>' // optional }); diff --git a/docs/examples/1.8.x/server-php/examples/account/create-j-w-t.md b/docs/examples/1.8.x/server-php/examples/account/create-jwt.md similarity index 100% rename from docs/examples/1.8.x/server-php/examples/account/create-j-w-t.md rename to docs/examples/1.8.x/server-php/examples/account/create-jwt.md diff --git a/docs/examples/1.8.x/server-php/examples/account/create-m-f-a-authenticator.md b/docs/examples/1.8.x/server-php/examples/account/create-m-f-a-authenticator.md deleted file mode 100644 index 2eb50c3f00..0000000000 --- a/docs/examples/1.8.x/server-php/examples/account/create-m-f-a-authenticator.md +++ /dev/null @@ -1,16 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Account; -use Appwrite\Enums\AuthenticatorType; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setSession(''); // The user session to authenticate with - -$account = new Account($client); - -$result = $account->createMFAAuthenticator( - type: AuthenticatorType::TOTP() -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/account/create-m-f-a-challenge.md b/docs/examples/1.8.x/server-php/examples/account/create-m-f-a-challenge.md deleted file mode 100644 index 64471ef7e6..0000000000 --- a/docs/examples/1.8.x/server-php/examples/account/create-m-f-a-challenge.md +++ /dev/null @@ -1,15 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Account; -use Appwrite\Enums\AuthenticationFactor; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>'); // Your project ID - -$account = new Account($client); - -$result = $account->createMFAChallenge( - factor: AuthenticationFactor::EMAIL() -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/account/create-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-php/examples/account/create-m-f-a-recovery-codes.md deleted file mode 100644 index 031bc4dfa0..0000000000 --- a/docs/examples/1.8.x/server-php/examples/account/create-m-f-a-recovery-codes.md +++ /dev/null @@ -1,13 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Account; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setSession(''); // The user session to authenticate with - -$account = new Account($client); - -$result = $account->createMFARecoveryCodes(); diff --git a/docs/examples/1.8.x/server-php/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.8.x/server-php/examples/account/create-magic-url-token.md similarity index 100% rename from docs/examples/1.8.x/server-php/examples/account/create-magic-u-r-l-token.md rename to docs/examples/1.8.x/server-php/examples/account/create-magic-url-token.md diff --git a/docs/examples/1.8.x/server-php/examples/account/create-mfa-authenticator.md b/docs/examples/1.8.x/server-php/examples/account/create-mfa-authenticator.md index da3b4634e0..2eb50c3f00 100644 --- a/docs/examples/1.8.x/server-php/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.8.x/server-php/examples/account/create-mfa-authenticator.md @@ -11,6 +11,6 @@ $client = (new Client()) $account = new Account($client); -$result = $account->createMfaAuthenticator( +$result = $account->createMFAAuthenticator( type: AuthenticatorType::TOTP() ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/account/create-mfa-challenge.md b/docs/examples/1.8.x/server-php/examples/account/create-mfa-challenge.md index faa679fdf1..64471ef7e6 100644 --- a/docs/examples/1.8.x/server-php/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.8.x/server-php/examples/account/create-mfa-challenge.md @@ -10,6 +10,6 @@ $client = (new Client()) $account = new Account($client); -$result = $account->createMfaChallenge( +$result = $account->createMFAChallenge( factor: AuthenticationFactor::EMAIL() ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.8.x/server-php/examples/account/create-mfa-recovery-codes.md index 223c95be97..031bc4dfa0 100644 --- a/docs/examples/1.8.x/server-php/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-php/examples/account/create-mfa-recovery-codes.md @@ -10,4 +10,4 @@ $client = (new Client()) $account = new Account($client); -$result = $account->createMfaRecoveryCodes(); +$result = $account->createMFARecoveryCodes(); diff --git a/docs/examples/1.8.x/server-php/examples/account/create-o-auth2token.md b/docs/examples/1.8.x/server-php/examples/account/create-o-auth-2-token.md similarity index 100% rename from docs/examples/1.8.x/server-php/examples/account/create-o-auth2token.md rename to docs/examples/1.8.x/server-php/examples/account/create-o-auth-2-token.md diff --git a/docs/examples/1.8.x/server-php/examples/account/delete-m-f-a-authenticator.md b/docs/examples/1.8.x/server-php/examples/account/delete-m-f-a-authenticator.md deleted file mode 100644 index 524b9b3ea5..0000000000 --- a/docs/examples/1.8.x/server-php/examples/account/delete-m-f-a-authenticator.md +++ /dev/null @@ -1,16 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Account; -use Appwrite\Enums\AuthenticatorType; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setSession(''); // The user session to authenticate with - -$account = new Account($client); - -$result = $account->deleteMFAAuthenticator( - type: AuthenticatorType::TOTP() -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/account/delete-mfa-authenticator.md b/docs/examples/1.8.x/server-php/examples/account/delete-mfa-authenticator.md index 42806f8358..524b9b3ea5 100644 --- a/docs/examples/1.8.x/server-php/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.8.x/server-php/examples/account/delete-mfa-authenticator.md @@ -11,6 +11,6 @@ $client = (new Client()) $account = new Account($client); -$result = $account->deleteMfaAuthenticator( +$result = $account->deleteMFAAuthenticator( type: AuthenticatorType::TOTP() ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/account/get-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-php/examples/account/get-m-f-a-recovery-codes.md deleted file mode 100644 index fc5aef27b5..0000000000 --- a/docs/examples/1.8.x/server-php/examples/account/get-m-f-a-recovery-codes.md +++ /dev/null @@ -1,13 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Account; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setSession(''); // The user session to authenticate with - -$account = new Account($client); - -$result = $account->getMFARecoveryCodes(); diff --git a/docs/examples/1.8.x/server-php/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.8.x/server-php/examples/account/get-mfa-recovery-codes.md index bafd6d8520..fc5aef27b5 100644 --- a/docs/examples/1.8.x/server-php/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-php/examples/account/get-mfa-recovery-codes.md @@ -10,4 +10,4 @@ $client = (new Client()) $account = new Account($client); -$result = $account->getMfaRecoveryCodes(); +$result = $account->getMFARecoveryCodes(); diff --git a/docs/examples/1.8.x/server-php/examples/account/list-m-f-a-factors.md b/docs/examples/1.8.x/server-php/examples/account/list-m-f-a-factors.md deleted file mode 100644 index f7b6e2620d..0000000000 --- a/docs/examples/1.8.x/server-php/examples/account/list-m-f-a-factors.md +++ /dev/null @@ -1,13 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Account; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setSession(''); // The user session to authenticate with - -$account = new Account($client); - -$result = $account->listMFAFactors(); diff --git a/docs/examples/1.8.x/server-php/examples/account/list-mfa-factors.md b/docs/examples/1.8.x/server-php/examples/account/list-mfa-factors.md index 6756573cdb..f7b6e2620d 100644 --- a/docs/examples/1.8.x/server-php/examples/account/list-mfa-factors.md +++ b/docs/examples/1.8.x/server-php/examples/account/list-mfa-factors.md @@ -10,4 +10,4 @@ $client = (new Client()) $account = new Account($client); -$result = $account->listMfaFactors(); +$result = $account->listMFAFactors(); diff --git a/docs/examples/1.8.x/server-php/examples/account/update-m-f-a-authenticator.md b/docs/examples/1.8.x/server-php/examples/account/update-m-f-a-authenticator.md deleted file mode 100644 index 8486e88cdd..0000000000 --- a/docs/examples/1.8.x/server-php/examples/account/update-m-f-a-authenticator.md +++ /dev/null @@ -1,17 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Account; -use Appwrite\Enums\AuthenticatorType; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setSession(''); // The user session to authenticate with - -$account = new Account($client); - -$result = $account->updateMFAAuthenticator( - type: AuthenticatorType::TOTP(), - otp: '<OTP>' -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/account/update-m-f-a-challenge.md b/docs/examples/1.8.x/server-php/examples/account/update-m-f-a-challenge.md deleted file mode 100644 index e5821e55be..0000000000 --- a/docs/examples/1.8.x/server-php/examples/account/update-m-f-a-challenge.md +++ /dev/null @@ -1,16 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Account; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setSession(''); // The user session to authenticate with - -$account = new Account($client); - -$result = $account->updateMFAChallenge( - challengeId: '<CHALLENGE_ID>', - otp: '<OTP>' -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/account/update-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-php/examples/account/update-m-f-a-recovery-codes.md deleted file mode 100644 index f57e490f3f..0000000000 --- a/docs/examples/1.8.x/server-php/examples/account/update-m-f-a-recovery-codes.md +++ /dev/null @@ -1,13 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Account; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setSession(''); // The user session to authenticate with - -$account = new Account($client); - -$result = $account->updateMFARecoveryCodes(); diff --git a/docs/examples/1.8.x/server-php/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.8.x/server-php/examples/account/update-magic-url-session.md similarity index 100% rename from docs/examples/1.8.x/server-php/examples/account/update-magic-u-r-l-session.md rename to docs/examples/1.8.x/server-php/examples/account/update-magic-url-session.md diff --git a/docs/examples/1.8.x/server-php/examples/account/update-mfa-authenticator.md b/docs/examples/1.8.x/server-php/examples/account/update-mfa-authenticator.md index 6a09d95a10..8486e88cdd 100644 --- a/docs/examples/1.8.x/server-php/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.8.x/server-php/examples/account/update-mfa-authenticator.md @@ -11,7 +11,7 @@ $client = (new Client()) $account = new Account($client); -$result = $account->updateMfaAuthenticator( +$result = $account->updateMFAAuthenticator( type: AuthenticatorType::TOTP(), otp: '<OTP>' ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/account/update-mfa-challenge.md b/docs/examples/1.8.x/server-php/examples/account/update-mfa-challenge.md index 03ace31144..e5821e55be 100644 --- a/docs/examples/1.8.x/server-php/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.8.x/server-php/examples/account/update-mfa-challenge.md @@ -10,7 +10,7 @@ $client = (new Client()) $account = new Account($client); -$result = $account->updateMfaChallenge( +$result = $account->updateMFAChallenge( challengeId: '<CHALLENGE_ID>', otp: '<OTP>' ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.8.x/server-php/examples/account/update-mfa-recovery-codes.md index c7ec6cb2b2..f57e490f3f 100644 --- a/docs/examples/1.8.x/server-php/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-php/examples/account/update-mfa-recovery-codes.md @@ -10,4 +10,4 @@ $client = (new Client()) $account = new Account($client); -$result = $account->updateMfaRecoveryCodes(); +$result = $account->updateMFARecoveryCodes(); diff --git a/docs/examples/1.8.x/server-php/examples/account/update-m-f-a.md b/docs/examples/1.8.x/server-php/examples/account/update-mfa.md similarity index 100% rename from docs/examples/1.8.x/server-php/examples/account/update-m-f-a.md rename to docs/examples/1.8.x/server-php/examples/account/update-mfa.md diff --git a/docs/examples/1.8.x/server-php/examples/avatars/get-q-r.md b/docs/examples/1.8.x/server-php/examples/avatars/get-qr.md similarity index 100% rename from docs/examples/1.8.x/server-php/examples/avatars/get-q-r.md rename to docs/examples/1.8.x/server-php/examples/avatars/get-qr.md diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-boolean-column.md b/docs/examples/1.8.x/server-php/examples/grids/create-boolean-column.md deleted file mode 100644 index 22e7cf8058..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/create-boolean-column.md +++ /dev/null @@ -1,20 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Grids; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setKey('<YOUR_API_KEY>'); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->createBooleanColumn( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - key: '', - required: false, - default: false, // optional - array: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-database.md b/docs/examples/1.8.x/server-php/examples/grids/create-database.md deleted file mode 100644 index ff7c3f73fb..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/create-database.md +++ /dev/null @@ -1,17 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Grids; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setKey('<YOUR_API_KEY>'); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->createDatabase( - databaseId: '<DATABASE_ID>', - name: '<NAME>', - enabled: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-datetime-column.md b/docs/examples/1.8.x/server-php/examples/grids/create-datetime-column.md deleted file mode 100644 index afb847fd30..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/create-datetime-column.md +++ /dev/null @@ -1,20 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Grids; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setKey('<YOUR_API_KEY>'); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->createDatetimeColumn( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - key: '', - required: false, - default: '', // optional - array: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-email-column.md b/docs/examples/1.8.x/server-php/examples/grids/create-email-column.md deleted file mode 100644 index 7516614820..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/create-email-column.md +++ /dev/null @@ -1,20 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Grids; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setKey('<YOUR_API_KEY>'); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->createEmailColumn( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - key: '', - required: false, - default: 'email@example.com', // optional - array: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-enum-column.md b/docs/examples/1.8.x/server-php/examples/grids/create-enum-column.md deleted file mode 100644 index f4a9ff2e5d..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/create-enum-column.md +++ /dev/null @@ -1,21 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Grids; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setKey('<YOUR_API_KEY>'); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->createEnumColumn( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - key: '', - elements: [], - required: false, - default: '<DEFAULT>', // optional - array: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-float-column.md b/docs/examples/1.8.x/server-php/examples/grids/create-float-column.md deleted file mode 100644 index 7a02a1790b..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/create-float-column.md +++ /dev/null @@ -1,22 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Grids; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setKey('<YOUR_API_KEY>'); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->createFloatColumn( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - key: '', - required: false, - min: null, // optional - max: null, // optional - default: null, // optional - array: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-index.md b/docs/examples/1.8.x/server-php/examples/grids/create-index.md deleted file mode 100644 index 31bfdc2754..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/create-index.md +++ /dev/null @@ -1,22 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Grids; -use Appwrite\Enums\IndexType; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setKey('<YOUR_API_KEY>'); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->createIndex( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - key: '', - type: IndexType::KEY(), - columns: [], - orders: [], // optional - lengths: [] // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-integer-column.md b/docs/examples/1.8.x/server-php/examples/grids/create-integer-column.md deleted file mode 100644 index 6495fc6309..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/create-integer-column.md +++ /dev/null @@ -1,22 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Grids; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setKey('<YOUR_API_KEY>'); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->createIntegerColumn( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - key: '', - required: false, - min: null, // optional - max: null, // optional - default: null, // optional - array: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-ip-column.md b/docs/examples/1.8.x/server-php/examples/grids/create-ip-column.md deleted file mode 100644 index 65379a2f94..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/create-ip-column.md +++ /dev/null @@ -1,20 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Grids; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setKey('<YOUR_API_KEY>'); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->createIpColumn( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - key: '', - required: false, - default: '', // optional - array: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-relationship-column.md b/docs/examples/1.8.x/server-php/examples/grids/create-relationship-column.md deleted file mode 100644 index cde72569ad..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/create-relationship-column.md +++ /dev/null @@ -1,23 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Grids; -use Appwrite\Enums\RelationshipType; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setKey('<YOUR_API_KEY>'); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->createRelationshipColumn( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - relatedTableId: '<RELATED_TABLE_ID>', - type: RelationshipType::ONETOONE(), - twoWay: false, // optional - key: '', // optional - twoWayKey: '', // optional - onDelete: RelationMutate::CASCADE() // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-row.md b/docs/examples/1.8.x/server-php/examples/grids/create-row.md deleted file mode 100644 index 58f678c6c3..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/create-row.md +++ /dev/null @@ -1,19 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Grids; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setSession(''); // The user session to authenticate with - -$grids = new Grids($client); - -$result = $grids->createRow( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - rowId: '<ROW_ID>', - data: [], - permissions: ["read("any")"] // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-rows.md b/docs/examples/1.8.x/server-php/examples/grids/create-rows.md deleted file mode 100644 index 531ebaf846..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/create-rows.md +++ /dev/null @@ -1,17 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Grids; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setKey('<YOUR_API_KEY>'); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->createRows( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - rows: [] -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-string-column.md b/docs/examples/1.8.x/server-php/examples/grids/create-string-column.md deleted file mode 100644 index a5acf25859..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/create-string-column.md +++ /dev/null @@ -1,22 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Grids; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setKey('<YOUR_API_KEY>'); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->createStringColumn( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - key: '', - size: 1, - required: false, - default: '<DEFAULT>', // optional - array: false, // optional - encrypt: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-table.md b/docs/examples/1.8.x/server-php/examples/grids/create-table.md deleted file mode 100644 index ca6e017375..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/create-table.md +++ /dev/null @@ -1,20 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Grids; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setKey('<YOUR_API_KEY>'); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->createTable( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - name: '<NAME>', - permissions: ["read("any")"], // optional - rowSecurity: false, // optional - enabled: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/create-url-column.md b/docs/examples/1.8.x/server-php/examples/grids/create-url-column.md deleted file mode 100644 index b0149f279b..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/create-url-column.md +++ /dev/null @@ -1,20 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Grids; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setKey('<YOUR_API_KEY>'); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->createUrlColumn( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - key: '', - required: false, - default: 'https://example.com', // optional - array: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/decrement-row-column.md b/docs/examples/1.8.x/server-php/examples/grids/decrement-row-column.md deleted file mode 100644 index d7db09ed30..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/decrement-row-column.md +++ /dev/null @@ -1,20 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Grids; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setKey('<YOUR_API_KEY>'); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->decrementRowColumn( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - rowId: '<ROW_ID>', - column: '', - value: null, // optional - min: null // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/delete-column.md b/docs/examples/1.8.x/server-php/examples/grids/delete-column.md deleted file mode 100644 index 3862ecbde9..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/delete-column.md +++ /dev/null @@ -1,17 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Grids; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setKey('<YOUR_API_KEY>'); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->deleteColumn( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - key: '' -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/delete-database.md b/docs/examples/1.8.x/server-php/examples/grids/delete-database.md deleted file mode 100644 index 761406ba9b..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/delete-database.md +++ /dev/null @@ -1,15 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Grids; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setKey('<YOUR_API_KEY>'); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->deleteDatabase( - databaseId: '<DATABASE_ID>' -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/delete-index.md b/docs/examples/1.8.x/server-php/examples/grids/delete-index.md deleted file mode 100644 index 913091455b..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/delete-index.md +++ /dev/null @@ -1,17 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Grids; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setKey('<YOUR_API_KEY>'); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->deleteIndex( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - key: '' -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/delete-row.md b/docs/examples/1.8.x/server-php/examples/grids/delete-row.md deleted file mode 100644 index 14b72e6e56..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/delete-row.md +++ /dev/null @@ -1,17 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Grids; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setSession(''); // The user session to authenticate with - -$grids = new Grids($client); - -$result = $grids->deleteRow( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - rowId: '<ROW_ID>' -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/delete-rows.md b/docs/examples/1.8.x/server-php/examples/grids/delete-rows.md deleted file mode 100644 index 567b497f04..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/delete-rows.md +++ /dev/null @@ -1,17 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Grids; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setKey('<YOUR_API_KEY>'); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->deleteRows( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - queries: [] // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/delete-table.md b/docs/examples/1.8.x/server-php/examples/grids/delete-table.md deleted file mode 100644 index ea0eeda80f..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/delete-table.md +++ /dev/null @@ -1,16 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Grids; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setKey('<YOUR_API_KEY>'); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->deleteTable( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>' -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/get-column.md b/docs/examples/1.8.x/server-php/examples/grids/get-column.md deleted file mode 100644 index ac2c9bb0c4..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/get-column.md +++ /dev/null @@ -1,17 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Grids; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setKey('<YOUR_API_KEY>'); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->getColumn( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - key: '' -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/get-database.md b/docs/examples/1.8.x/server-php/examples/grids/get-database.md deleted file mode 100644 index c3e9f896c2..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/get-database.md +++ /dev/null @@ -1,15 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Grids; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setKey('<YOUR_API_KEY>'); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->getDatabase( - databaseId: '<DATABASE_ID>' -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/get-index.md b/docs/examples/1.8.x/server-php/examples/grids/get-index.md deleted file mode 100644 index 2434fd933b..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/get-index.md +++ /dev/null @@ -1,17 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Grids; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setKey('<YOUR_API_KEY>'); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->getIndex( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - key: '' -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/get-row.md b/docs/examples/1.8.x/server-php/examples/grids/get-row.md deleted file mode 100644 index e13ea67209..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/get-row.md +++ /dev/null @@ -1,18 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Grids; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setSession(''); // The user session to authenticate with - -$grids = new Grids($client); - -$result = $grids->getRow( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - rowId: '<ROW_ID>', - queries: [] // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/get-table.md b/docs/examples/1.8.x/server-php/examples/grids/get-table.md deleted file mode 100644 index 1c9721f1c7..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/get-table.md +++ /dev/null @@ -1,16 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Grids; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setKey('<YOUR_API_KEY>'); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->getTable( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>' -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/increment-row-column.md b/docs/examples/1.8.x/server-php/examples/grids/increment-row-column.md deleted file mode 100644 index fc9ee9a9eb..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/increment-row-column.md +++ /dev/null @@ -1,20 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Grids; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setKey('<YOUR_API_KEY>'); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->incrementRowColumn( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - rowId: '<ROW_ID>', - column: '', - value: null, // optional - max: null // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/list-columns.md b/docs/examples/1.8.x/server-php/examples/grids/list-columns.md deleted file mode 100644 index 7be7581a28..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/list-columns.md +++ /dev/null @@ -1,17 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Grids; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setKey('<YOUR_API_KEY>'); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->listColumns( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - queries: [] // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/list-databases.md b/docs/examples/1.8.x/server-php/examples/grids/list-databases.md deleted file mode 100644 index f5fec16a25..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/list-databases.md +++ /dev/null @@ -1,16 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Grids; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setKey('<YOUR_API_KEY>'); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->listDatabases( - queries: [], // optional - search: '<SEARCH>' // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/list-indexes.md b/docs/examples/1.8.x/server-php/examples/grids/list-indexes.md deleted file mode 100644 index d23248e5d4..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/list-indexes.md +++ /dev/null @@ -1,17 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Grids; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setKey('<YOUR_API_KEY>'); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->listIndexes( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - queries: [] // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/list-rows.md b/docs/examples/1.8.x/server-php/examples/grids/list-rows.md deleted file mode 100644 index c8537651c6..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/list-rows.md +++ /dev/null @@ -1,17 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Grids; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setSession(''); // The user session to authenticate with - -$grids = new Grids($client); - -$result = $grids->listRows( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - queries: [] // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/list-tables.md b/docs/examples/1.8.x/server-php/examples/grids/list-tables.md deleted file mode 100644 index 95f4f7b65d..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/list-tables.md +++ /dev/null @@ -1,17 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Grids; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setKey('<YOUR_API_KEY>'); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->listTables( - databaseId: '<DATABASE_ID>', - queries: [], // optional - search: '<SEARCH>' // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/update-boolean-column.md b/docs/examples/1.8.x/server-php/examples/grids/update-boolean-column.md deleted file mode 100644 index bc7405d35d..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/update-boolean-column.md +++ /dev/null @@ -1,20 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Grids; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setKey('<YOUR_API_KEY>'); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->updateBooleanColumn( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - key: '', - required: false, - default: false, - newKey: '' // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/update-database.md b/docs/examples/1.8.x/server-php/examples/grids/update-database.md deleted file mode 100644 index 9d71e5e043..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/update-database.md +++ /dev/null @@ -1,17 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Grids; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setKey('<YOUR_API_KEY>'); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->updateDatabase( - databaseId: '<DATABASE_ID>', - name: '<NAME>', - enabled: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/update-datetime-column.md b/docs/examples/1.8.x/server-php/examples/grids/update-datetime-column.md deleted file mode 100644 index 6850a6d373..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/update-datetime-column.md +++ /dev/null @@ -1,20 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Grids; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setKey('<YOUR_API_KEY>'); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->updateDatetimeColumn( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - key: '', - required: false, - default: '', - newKey: '' // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/update-email-column.md b/docs/examples/1.8.x/server-php/examples/grids/update-email-column.md deleted file mode 100644 index 6fe7f82477..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/update-email-column.md +++ /dev/null @@ -1,20 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Grids; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setKey('<YOUR_API_KEY>'); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->updateEmailColumn( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - key: '', - required: false, - default: 'email@example.com', - newKey: '' // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/update-enum-column.md b/docs/examples/1.8.x/server-php/examples/grids/update-enum-column.md deleted file mode 100644 index 4a18d02488..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/update-enum-column.md +++ /dev/null @@ -1,21 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Grids; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setKey('<YOUR_API_KEY>'); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->updateEnumColumn( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - key: '', - elements: [], - required: false, - default: '<DEFAULT>', - newKey: '' // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/update-float-column.md b/docs/examples/1.8.x/server-php/examples/grids/update-float-column.md deleted file mode 100644 index 5e58f8efaf..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/update-float-column.md +++ /dev/null @@ -1,22 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Grids; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setKey('<YOUR_API_KEY>'); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->updateFloatColumn( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - key: '', - required: false, - default: null, - min: null, // optional - max: null, // optional - newKey: '' // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/update-integer-column.md b/docs/examples/1.8.x/server-php/examples/grids/update-integer-column.md deleted file mode 100644 index c097b7e286..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/update-integer-column.md +++ /dev/null @@ -1,22 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Grids; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setKey('<YOUR_API_KEY>'); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->updateIntegerColumn( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - key: '', - required: false, - default: null, - min: null, // optional - max: null, // optional - newKey: '' // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/update-ip-column.md b/docs/examples/1.8.x/server-php/examples/grids/update-ip-column.md deleted file mode 100644 index 9ce131b8e1..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/update-ip-column.md +++ /dev/null @@ -1,20 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Grids; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setKey('<YOUR_API_KEY>'); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->updateIpColumn( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - key: '', - required: false, - default: '', - newKey: '' // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/update-relationship-column.md b/docs/examples/1.8.x/server-php/examples/grids/update-relationship-column.md deleted file mode 100644 index a0241afb06..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/update-relationship-column.md +++ /dev/null @@ -1,19 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Grids; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setKey('<YOUR_API_KEY>'); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->updateRelationshipColumn( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - key: '', - onDelete: RelationMutate::CASCADE(), // optional - newKey: '' // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/update-row.md b/docs/examples/1.8.x/server-php/examples/grids/update-row.md deleted file mode 100644 index a0aae15730..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/update-row.md +++ /dev/null @@ -1,19 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Grids; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setSession(''); // The user session to authenticate with - -$grids = new Grids($client); - -$result = $grids->updateRow( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - rowId: '<ROW_ID>', - data: [], // optional - permissions: ["read("any")"] // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/update-rows.md b/docs/examples/1.8.x/server-php/examples/grids/update-rows.md deleted file mode 100644 index 270489f44e..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/update-rows.md +++ /dev/null @@ -1,18 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Grids; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setKey('<YOUR_API_KEY>'); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->updateRows( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - data: [], // optional - queries: [] // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/update-string-column.md b/docs/examples/1.8.x/server-php/examples/grids/update-string-column.md deleted file mode 100644 index 6213deb7aa..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/update-string-column.md +++ /dev/null @@ -1,21 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Grids; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setKey('<YOUR_API_KEY>'); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->updateStringColumn( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - key: '', - required: false, - default: '<DEFAULT>', - size: 1, // optional - newKey: '' // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/update-table.md b/docs/examples/1.8.x/server-php/examples/grids/update-table.md deleted file mode 100644 index 1483eee2a9..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/update-table.md +++ /dev/null @@ -1,20 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Grids; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setKey('<YOUR_API_KEY>'); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->updateTable( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - name: '<NAME>', - permissions: ["read("any")"], // optional - rowSecurity: false, // optional - enabled: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/update-url-column.md b/docs/examples/1.8.x/server-php/examples/grids/update-url-column.md deleted file mode 100644 index 7f7916c81a..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/update-url-column.md +++ /dev/null @@ -1,20 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Grids; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setKey('<YOUR_API_KEY>'); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->updateUrlColumn( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - key: '', - required: false, - default: 'https://example.com', - newKey: '' // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/upsert-row.md b/docs/examples/1.8.x/server-php/examples/grids/upsert-row.md deleted file mode 100644 index a07cbe976f..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/upsert-row.md +++ /dev/null @@ -1,19 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Grids; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setSession(''); // The user session to authenticate with - -$grids = new Grids($client); - -$result = $grids->upsertRow( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - rowId: '<ROW_ID>', - data: [], // optional - permissions: ["read("any")"] // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/grids/upsert-rows.md b/docs/examples/1.8.x/server-php/examples/grids/upsert-rows.md deleted file mode 100644 index 5d31648e02..0000000000 --- a/docs/examples/1.8.x/server-php/examples/grids/upsert-rows.md +++ /dev/null @@ -1,17 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Grids; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setKey('<YOUR_API_KEY>'); // Your secret API key - -$grids = new Grids($client); - -$result = $grids->upsertRows( - databaseId: '<DATABASE_ID>', - tableId: '<TABLE_ID>', - rows: [] -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/health/get-d-b.md b/docs/examples/1.8.x/server-php/examples/health/get-db.md similarity index 100% rename from docs/examples/1.8.x/server-php/examples/health/get-d-b.md rename to docs/examples/1.8.x/server-php/examples/health/get-db.md diff --git a/docs/examples/1.8.x/server-php/examples/locale/list-countries-e-u.md b/docs/examples/1.8.x/server-php/examples/locale/list-countries-eu.md similarity index 100% rename from docs/examples/1.8.x/server-php/examples/locale/list-countries-e-u.md rename to docs/examples/1.8.x/server-php/examples/locale/list-countries-eu.md diff --git a/docs/examples/1.8.x/server-php/examples/messaging/create-a-p-n-s-provider.md b/docs/examples/1.8.x/server-php/examples/messaging/create-a-p-n-s-provider.md deleted file mode 100644 index 2ce4b7f95b..0000000000 --- a/docs/examples/1.8.x/server-php/examples/messaging/create-a-p-n-s-provider.md +++ /dev/null @@ -1,22 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Messaging; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setKey('<YOUR_API_KEY>'); // Your secret API key - -$messaging = new Messaging($client); - -$result = $messaging->createAPNSProvider( - providerId: '<PROVIDER_ID>', - name: '<NAME>', - authKey: '<AUTH_KEY>', // optional - authKeyId: '<AUTH_KEY_ID>', // optional - teamId: '<TEAM_ID>', // optional - bundleId: '<BUNDLE_ID>', // optional - sandbox: false, // optional - enabled: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/messaging/create-apns-provider.md b/docs/examples/1.8.x/server-php/examples/messaging/create-apns-provider.md index da13d17231..2ce4b7f95b 100644 --- a/docs/examples/1.8.x/server-php/examples/messaging/create-apns-provider.md +++ b/docs/examples/1.8.x/server-php/examples/messaging/create-apns-provider.md @@ -10,7 +10,7 @@ $client = (new Client()) $messaging = new Messaging($client); -$result = $messaging->createApnsProvider( +$result = $messaging->createAPNSProvider( providerId: '<PROVIDER_ID>', name: '<NAME>', authKey: '<AUTH_KEY>', // optional diff --git a/docs/examples/1.8.x/server-php/examples/messaging/create-f-c-m-provider.md b/docs/examples/1.8.x/server-php/examples/messaging/create-f-c-m-provider.md deleted file mode 100644 index 8037c23197..0000000000 --- a/docs/examples/1.8.x/server-php/examples/messaging/create-f-c-m-provider.md +++ /dev/null @@ -1,18 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Messaging; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setKey('<YOUR_API_KEY>'); // Your secret API key - -$messaging = new Messaging($client); - -$result = $messaging->createFCMProvider( - providerId: '<PROVIDER_ID>', - name: '<NAME>', - serviceAccountJSON: [], // optional - enabled: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/messaging/create-fcm-provider.md b/docs/examples/1.8.x/server-php/examples/messaging/create-fcm-provider.md index baf72a1df4..8037c23197 100644 --- a/docs/examples/1.8.x/server-php/examples/messaging/create-fcm-provider.md +++ b/docs/examples/1.8.x/server-php/examples/messaging/create-fcm-provider.md @@ -10,7 +10,7 @@ $client = (new Client()) $messaging = new Messaging($client); -$result = $messaging->createFcmProvider( +$result = $messaging->createFCMProvider( providerId: '<PROVIDER_ID>', name: '<NAME>', serviceAccountJSON: [], // optional diff --git a/docs/examples/1.8.x/server-php/examples/messaging/create-msg91provider.md b/docs/examples/1.8.x/server-php/examples/messaging/create-msg-91-provider.md similarity index 100% rename from docs/examples/1.8.x/server-php/examples/messaging/create-msg91provider.md rename to docs/examples/1.8.x/server-php/examples/messaging/create-msg-91-provider.md diff --git a/docs/examples/1.8.x/server-php/examples/messaging/create-s-m-s.md b/docs/examples/1.8.x/server-php/examples/messaging/create-s-m-s.md deleted file mode 100644 index 50623b5b63..0000000000 --- a/docs/examples/1.8.x/server-php/examples/messaging/create-s-m-s.md +++ /dev/null @@ -1,21 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Messaging; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setKey('<YOUR_API_KEY>'); // Your secret API key - -$messaging = new Messaging($client); - -$result = $messaging->createSMS( - messageId: '<MESSAGE_ID>', - content: '<CONTENT>', - topics: [], // optional - users: [], // optional - targets: [], // optional - draft: false, // optional - scheduledAt: '' // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/messaging/create-s-m-t-p-provider.md b/docs/examples/1.8.x/server-php/examples/messaging/create-s-m-t-p-provider.md deleted file mode 100644 index 017f20cc15..0000000000 --- a/docs/examples/1.8.x/server-php/examples/messaging/create-s-m-t-p-provider.md +++ /dev/null @@ -1,28 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Messaging; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setKey('<YOUR_API_KEY>'); // Your secret API key - -$messaging = new Messaging($client); - -$result = $messaging->createSMTPProvider( - providerId: '<PROVIDER_ID>', - name: '<NAME>', - host: '<HOST>', - port: 1, // optional - username: '<USERNAME>', // optional - password: '<PASSWORD>', // optional - encryption: SmtpEncryption::NONE(), // optional - autoTLS: false, // optional - mailer: '<MAILER>', // optional - fromName: '<FROM_NAME>', // optional - fromEmail: 'email@example.com', // optional - replyToName: '<REPLY_TO_NAME>', // optional - replyToEmail: 'email@example.com', // optional - enabled: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/messaging/create-sms.md b/docs/examples/1.8.x/server-php/examples/messaging/create-sms.md index 1e2d9ac765..50623b5b63 100644 --- a/docs/examples/1.8.x/server-php/examples/messaging/create-sms.md +++ b/docs/examples/1.8.x/server-php/examples/messaging/create-sms.md @@ -10,7 +10,7 @@ $client = (new Client()) $messaging = new Messaging($client); -$result = $messaging->createSms( +$result = $messaging->createSMS( messageId: '<MESSAGE_ID>', content: '<CONTENT>', topics: [], // optional diff --git a/docs/examples/1.8.x/server-php/examples/messaging/create-smtp-provider.md b/docs/examples/1.8.x/server-php/examples/messaging/create-smtp-provider.md index 4dcfb3a088..017f20cc15 100644 --- a/docs/examples/1.8.x/server-php/examples/messaging/create-smtp-provider.md +++ b/docs/examples/1.8.x/server-php/examples/messaging/create-smtp-provider.md @@ -10,7 +10,7 @@ $client = (new Client()) $messaging = new Messaging($client); -$result = $messaging->createSmtpProvider( +$result = $messaging->createSMTPProvider( providerId: '<PROVIDER_ID>', name: '<NAME>', host: '<HOST>', diff --git a/docs/examples/1.8.x/server-php/examples/messaging/update-a-p-n-s-provider.md b/docs/examples/1.8.x/server-php/examples/messaging/update-a-p-n-s-provider.md deleted file mode 100644 index 161a148563..0000000000 --- a/docs/examples/1.8.x/server-php/examples/messaging/update-a-p-n-s-provider.md +++ /dev/null @@ -1,22 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Messaging; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setKey('<YOUR_API_KEY>'); // Your secret API key - -$messaging = new Messaging($client); - -$result = $messaging->updateAPNSProvider( - providerId: '<PROVIDER_ID>', - name: '<NAME>', // optional - enabled: false, // optional - authKey: '<AUTH_KEY>', // optional - authKeyId: '<AUTH_KEY_ID>', // optional - teamId: '<TEAM_ID>', // optional - bundleId: '<BUNDLE_ID>', // optional - sandbox: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/messaging/update-apns-provider.md b/docs/examples/1.8.x/server-php/examples/messaging/update-apns-provider.md index 724453b9b1..161a148563 100644 --- a/docs/examples/1.8.x/server-php/examples/messaging/update-apns-provider.md +++ b/docs/examples/1.8.x/server-php/examples/messaging/update-apns-provider.md @@ -10,7 +10,7 @@ $client = (new Client()) $messaging = new Messaging($client); -$result = $messaging->updateApnsProvider( +$result = $messaging->updateAPNSProvider( providerId: '<PROVIDER_ID>', name: '<NAME>', // optional enabled: false, // optional diff --git a/docs/examples/1.8.x/server-php/examples/messaging/update-f-c-m-provider.md b/docs/examples/1.8.x/server-php/examples/messaging/update-f-c-m-provider.md deleted file mode 100644 index 0df2b93af6..0000000000 --- a/docs/examples/1.8.x/server-php/examples/messaging/update-f-c-m-provider.md +++ /dev/null @@ -1,18 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Messaging; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setKey('<YOUR_API_KEY>'); // Your secret API key - -$messaging = new Messaging($client); - -$result = $messaging->updateFCMProvider( - providerId: '<PROVIDER_ID>', - name: '<NAME>', // optional - enabled: false, // optional - serviceAccountJSON: [] // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/messaging/update-fcm-provider.md b/docs/examples/1.8.x/server-php/examples/messaging/update-fcm-provider.md index 36672f4b65..0df2b93af6 100644 --- a/docs/examples/1.8.x/server-php/examples/messaging/update-fcm-provider.md +++ b/docs/examples/1.8.x/server-php/examples/messaging/update-fcm-provider.md @@ -10,7 +10,7 @@ $client = (new Client()) $messaging = new Messaging($client); -$result = $messaging->updateFcmProvider( +$result = $messaging->updateFCMProvider( providerId: '<PROVIDER_ID>', name: '<NAME>', // optional enabled: false, // optional diff --git a/docs/examples/1.8.x/server-php/examples/messaging/update-msg91provider.md b/docs/examples/1.8.x/server-php/examples/messaging/update-msg-91-provider.md similarity index 100% rename from docs/examples/1.8.x/server-php/examples/messaging/update-msg91provider.md rename to docs/examples/1.8.x/server-php/examples/messaging/update-msg-91-provider.md diff --git a/docs/examples/1.8.x/server-php/examples/messaging/update-s-m-s.md b/docs/examples/1.8.x/server-php/examples/messaging/update-s-m-s.md deleted file mode 100644 index 92d3ebbed7..0000000000 --- a/docs/examples/1.8.x/server-php/examples/messaging/update-s-m-s.md +++ /dev/null @@ -1,21 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Messaging; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setKey('<YOUR_API_KEY>'); // Your secret API key - -$messaging = new Messaging($client); - -$result = $messaging->updateSMS( - messageId: '<MESSAGE_ID>', - topics: [], // optional - users: [], // optional - targets: [], // optional - content: '<CONTENT>', // optional - draft: false, // optional - scheduledAt: '' // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/messaging/update-s-m-t-p-provider.md b/docs/examples/1.8.x/server-php/examples/messaging/update-s-m-t-p-provider.md deleted file mode 100644 index 3bc80d2789..0000000000 --- a/docs/examples/1.8.x/server-php/examples/messaging/update-s-m-t-p-provider.md +++ /dev/null @@ -1,28 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Messaging; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setKey('<YOUR_API_KEY>'); // Your secret API key - -$messaging = new Messaging($client); - -$result = $messaging->updateSMTPProvider( - providerId: '<PROVIDER_ID>', - name: '<NAME>', // optional - host: '<HOST>', // optional - port: 1, // optional - username: '<USERNAME>', // optional - password: '<PASSWORD>', // optional - encryption: SmtpEncryption::NONE(), // optional - autoTLS: false, // optional - mailer: '<MAILER>', // optional - fromName: '<FROM_NAME>', // optional - fromEmail: 'email@example.com', // optional - replyToName: '<REPLY_TO_NAME>', // optional - replyToEmail: '<REPLY_TO_EMAIL>', // optional - enabled: false // optional -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/messaging/update-sms.md b/docs/examples/1.8.x/server-php/examples/messaging/update-sms.md index 730da4178a..92d3ebbed7 100644 --- a/docs/examples/1.8.x/server-php/examples/messaging/update-sms.md +++ b/docs/examples/1.8.x/server-php/examples/messaging/update-sms.md @@ -10,7 +10,7 @@ $client = (new Client()) $messaging = new Messaging($client); -$result = $messaging->updateSms( +$result = $messaging->updateSMS( messageId: '<MESSAGE_ID>', topics: [], // optional users: [], // optional diff --git a/docs/examples/1.8.x/server-php/examples/messaging/update-smtp-provider.md b/docs/examples/1.8.x/server-php/examples/messaging/update-smtp-provider.md index a16a630283..3bc80d2789 100644 --- a/docs/examples/1.8.x/server-php/examples/messaging/update-smtp-provider.md +++ b/docs/examples/1.8.x/server-php/examples/messaging/update-smtp-provider.md @@ -10,7 +10,7 @@ $client = (new Client()) $messaging = new Messaging($client); -$result = $messaging->updateSmtpProvider( +$result = $messaging->updateSMTPProvider( providerId: '<PROVIDER_ID>', name: '<NAME>', // optional host: '<HOST>', // optional diff --git a/docs/examples/1.8.x/server-php/examples/users/create-argon2user.md b/docs/examples/1.8.x/server-php/examples/users/create-argon-2-user.md similarity index 100% rename from docs/examples/1.8.x/server-php/examples/users/create-argon2user.md rename to docs/examples/1.8.x/server-php/examples/users/create-argon-2-user.md diff --git a/docs/examples/1.8.x/server-php/examples/users/create-j-w-t.md b/docs/examples/1.8.x/server-php/examples/users/create-jwt.md similarity index 100% rename from docs/examples/1.8.x/server-php/examples/users/create-j-w-t.md rename to docs/examples/1.8.x/server-php/examples/users/create-jwt.md diff --git a/docs/examples/1.8.x/server-php/examples/users/create-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-php/examples/users/create-m-f-a-recovery-codes.md deleted file mode 100644 index ee96d2e277..0000000000 --- a/docs/examples/1.8.x/server-php/examples/users/create-m-f-a-recovery-codes.md +++ /dev/null @@ -1,15 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Users; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setKey('<YOUR_API_KEY>'); // Your secret API key - -$users = new Users($client); - -$result = $users->createMFARecoveryCodes( - userId: '<USER_ID>' -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/users/create-m-d5user.md b/docs/examples/1.8.x/server-php/examples/users/create-md-5-user.md similarity index 100% rename from docs/examples/1.8.x/server-php/examples/users/create-m-d5user.md rename to docs/examples/1.8.x/server-php/examples/users/create-md-5-user.md diff --git a/docs/examples/1.8.x/server-php/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.8.x/server-php/examples/users/create-mfa-recovery-codes.md index 372fb1bc6a..ee96d2e277 100644 --- a/docs/examples/1.8.x/server-php/examples/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-php/examples/users/create-mfa-recovery-codes.md @@ -10,6 +10,6 @@ $client = (new Client()) $users = new Users($client); -$result = $users->createMfaRecoveryCodes( +$result = $users->createMFARecoveryCodes( userId: '<USER_ID>' ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/users/create-p-h-pass-user.md b/docs/examples/1.8.x/server-php/examples/users/create-ph-pass-user.md similarity index 100% rename from docs/examples/1.8.x/server-php/examples/users/create-p-h-pass-user.md rename to docs/examples/1.8.x/server-php/examples/users/create-ph-pass-user.md diff --git a/docs/examples/1.8.x/server-php/examples/users/create-s-h-a-user.md b/docs/examples/1.8.x/server-php/examples/users/create-sha-user.md similarity index 100% rename from docs/examples/1.8.x/server-php/examples/users/create-s-h-a-user.md rename to docs/examples/1.8.x/server-php/examples/users/create-sha-user.md diff --git a/docs/examples/1.8.x/server-php/examples/users/delete-m-f-a-authenticator.md b/docs/examples/1.8.x/server-php/examples/users/delete-m-f-a-authenticator.md deleted file mode 100644 index f2f08ec172..0000000000 --- a/docs/examples/1.8.x/server-php/examples/users/delete-m-f-a-authenticator.md +++ /dev/null @@ -1,17 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Users; -use Appwrite\Enums\AuthenticatorType; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setKey('<YOUR_API_KEY>'); // Your secret API key - -$users = new Users($client); - -$result = $users->deleteMFAAuthenticator( - userId: '<USER_ID>', - type: AuthenticatorType::TOTP() -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/users/delete-mfa-authenticator.md b/docs/examples/1.8.x/server-php/examples/users/delete-mfa-authenticator.md index 8ef1279589..f2f08ec172 100644 --- a/docs/examples/1.8.x/server-php/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/1.8.x/server-php/examples/users/delete-mfa-authenticator.md @@ -11,7 +11,7 @@ $client = (new Client()) $users = new Users($client); -$result = $users->deleteMfaAuthenticator( +$result = $users->deleteMFAAuthenticator( userId: '<USER_ID>', type: AuthenticatorType::TOTP() ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/users/get-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-php/examples/users/get-m-f-a-recovery-codes.md deleted file mode 100644 index 7937e6ad4b..0000000000 --- a/docs/examples/1.8.x/server-php/examples/users/get-m-f-a-recovery-codes.md +++ /dev/null @@ -1,15 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Users; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setKey('<YOUR_API_KEY>'); // Your secret API key - -$users = new Users($client); - -$result = $users->getMFARecoveryCodes( - userId: '<USER_ID>' -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.8.x/server-php/examples/users/get-mfa-recovery-codes.md index db090fb245..7937e6ad4b 100644 --- a/docs/examples/1.8.x/server-php/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-php/examples/users/get-mfa-recovery-codes.md @@ -10,6 +10,6 @@ $client = (new Client()) $users = new Users($client); -$result = $users->getMfaRecoveryCodes( +$result = $users->getMFARecoveryCodes( userId: '<USER_ID>' ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/users/list-m-f-a-factors.md b/docs/examples/1.8.x/server-php/examples/users/list-m-f-a-factors.md deleted file mode 100644 index 5dae790c94..0000000000 --- a/docs/examples/1.8.x/server-php/examples/users/list-m-f-a-factors.md +++ /dev/null @@ -1,15 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Users; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setKey('<YOUR_API_KEY>'); // Your secret API key - -$users = new Users($client); - -$result = $users->listMFAFactors( - userId: '<USER_ID>' -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/users/list-mfa-factors.md b/docs/examples/1.8.x/server-php/examples/users/list-mfa-factors.md index 6a0088c9bd..5dae790c94 100644 --- a/docs/examples/1.8.x/server-php/examples/users/list-mfa-factors.md +++ b/docs/examples/1.8.x/server-php/examples/users/list-mfa-factors.md @@ -10,6 +10,6 @@ $client = (new Client()) $users = new Users($client); -$result = $users->listMfaFactors( +$result = $users->listMFAFactors( userId: '<USER_ID>' ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/users/update-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-php/examples/users/update-m-f-a-recovery-codes.md deleted file mode 100644 index 8474755fd3..0000000000 --- a/docs/examples/1.8.x/server-php/examples/users/update-m-f-a-recovery-codes.md +++ /dev/null @@ -1,15 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Users; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setKey('<YOUR_API_KEY>'); // Your secret API key - -$users = new Users($client); - -$result = $users->updateMFARecoveryCodes( - userId: '<USER_ID>' -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/users/update-m-f-a.md b/docs/examples/1.8.x/server-php/examples/users/update-m-f-a.md deleted file mode 100644 index c24916a680..0000000000 --- a/docs/examples/1.8.x/server-php/examples/users/update-m-f-a.md +++ /dev/null @@ -1,16 +0,0 @@ -<?php - -use Appwrite\Client; -use Appwrite\Services\Users; - -$client = (new Client()) - ->setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint - ->setProject('<YOUR_PROJECT_ID>') // Your project ID - ->setKey('<YOUR_API_KEY>'); // Your secret API key - -$users = new Users($client); - -$result = $users->updateMFA( - userId: '<USER_ID>', - mfa: false -); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.8.x/server-php/examples/users/update-mfa-recovery-codes.md index 75214de880..8474755fd3 100644 --- a/docs/examples/1.8.x/server-php/examples/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-php/examples/users/update-mfa-recovery-codes.md @@ -10,6 +10,6 @@ $client = (new Client()) $users = new Users($client); -$result = $users->updateMfaRecoveryCodes( +$result = $users->updateMFARecoveryCodes( userId: '<USER_ID>' ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-php/examples/users/update-mfa.md b/docs/examples/1.8.x/server-php/examples/users/update-mfa.md index 3eda496f1f..c24916a680 100644 --- a/docs/examples/1.8.x/server-php/examples/users/update-mfa.md +++ b/docs/examples/1.8.x/server-php/examples/users/update-mfa.md @@ -10,7 +10,7 @@ $client = (new Client()) $users = new Users($client); -$result = $users->updateMfa( +$result = $users->updateMFA( userId: '<USER_ID>', mfa: false ); \ No newline at end of file diff --git a/docs/examples/1.8.x/server-python/examples/account/create-j-w-t.md b/docs/examples/1.8.x/server-python/examples/account/create-jwt.md similarity index 100% rename from docs/examples/1.8.x/server-python/examples/account/create-j-w-t.md rename to docs/examples/1.8.x/server-python/examples/account/create-jwt.md diff --git a/docs/examples/1.8.x/server-python/examples/account/create-m-f-a-authenticator.md b/docs/examples/1.8.x/server-python/examples/account/create-m-f-a-authenticator.md deleted file mode 100644 index 70cee1d60c..0000000000 --- a/docs/examples/1.8.x/server-python/examples/account/create-m-f-a-authenticator.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.account import Account -from appwrite.enums import AuthenticatorType - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_session('') # The user session to authenticate with - -account = Account(client) - -result = account.create_mfa_authenticator( - type = AuthenticatorType.TOTP -) diff --git a/docs/examples/1.8.x/server-python/examples/account/create-m-f-a-challenge.md b/docs/examples/1.8.x/server-python/examples/account/create-m-f-a-challenge.md deleted file mode 100644 index abd746c605..0000000000 --- a/docs/examples/1.8.x/server-python/examples/account/create-m-f-a-challenge.md +++ /dev/null @@ -1,13 +0,0 @@ -from appwrite.client import Client -from appwrite.services.account import Account -from appwrite.enums import AuthenticationFactor - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID - -account = Account(client) - -result = account.create_mfa_challenge( - factor = AuthenticationFactor.EMAIL -) diff --git a/docs/examples/1.8.x/server-python/examples/account/create-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-python/examples/account/create-m-f-a-recovery-codes.md deleted file mode 100644 index 69aaa6091f..0000000000 --- a/docs/examples/1.8.x/server-python/examples/account/create-m-f-a-recovery-codes.md +++ /dev/null @@ -1,11 +0,0 @@ -from appwrite.client import Client -from appwrite.services.account import Account - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_session('') # The user session to authenticate with - -account = Account(client) - -result = account.create_mfa_recovery_codes() diff --git a/docs/examples/1.8.x/server-python/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.8.x/server-python/examples/account/create-magic-url-token.md similarity index 100% rename from docs/examples/1.8.x/server-python/examples/account/create-magic-u-r-l-token.md rename to docs/examples/1.8.x/server-python/examples/account/create-magic-url-token.md diff --git a/docs/examples/1.8.x/server-python/examples/account/create-o-auth2token.md b/docs/examples/1.8.x/server-python/examples/account/create-o-auth-2-token.md similarity index 100% rename from docs/examples/1.8.x/server-python/examples/account/create-o-auth2token.md rename to docs/examples/1.8.x/server-python/examples/account/create-o-auth-2-token.md diff --git a/docs/examples/1.8.x/server-python/examples/account/delete-m-f-a-authenticator.md b/docs/examples/1.8.x/server-python/examples/account/delete-m-f-a-authenticator.md deleted file mode 100644 index 83709c7aff..0000000000 --- a/docs/examples/1.8.x/server-python/examples/account/delete-m-f-a-authenticator.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.account import Account -from appwrite.enums import AuthenticatorType - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_session('') # The user session to authenticate with - -account = Account(client) - -result = account.delete_mfa_authenticator( - type = AuthenticatorType.TOTP -) diff --git a/docs/examples/1.8.x/server-python/examples/account/get-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-python/examples/account/get-m-f-a-recovery-codes.md deleted file mode 100644 index c8fe494d0f..0000000000 --- a/docs/examples/1.8.x/server-python/examples/account/get-m-f-a-recovery-codes.md +++ /dev/null @@ -1,11 +0,0 @@ -from appwrite.client import Client -from appwrite.services.account import Account - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_session('') # The user session to authenticate with - -account = Account(client) - -result = account.get_mfa_recovery_codes() diff --git a/docs/examples/1.8.x/server-python/examples/account/list-m-f-a-factors.md b/docs/examples/1.8.x/server-python/examples/account/list-m-f-a-factors.md deleted file mode 100644 index 72a392465a..0000000000 --- a/docs/examples/1.8.x/server-python/examples/account/list-m-f-a-factors.md +++ /dev/null @@ -1,11 +0,0 @@ -from appwrite.client import Client -from appwrite.services.account import Account - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_session('') # The user session to authenticate with - -account = Account(client) - -result = account.list_mfa_factors() diff --git a/docs/examples/1.8.x/server-python/examples/account/update-m-f-a-authenticator.md b/docs/examples/1.8.x/server-python/examples/account/update-m-f-a-authenticator.md deleted file mode 100644 index d53607fe10..0000000000 --- a/docs/examples/1.8.x/server-python/examples/account/update-m-f-a-authenticator.md +++ /dev/null @@ -1,15 +0,0 @@ -from appwrite.client import Client -from appwrite.services.account import Account -from appwrite.enums import AuthenticatorType - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_session('') # The user session to authenticate with - -account = Account(client) - -result = account.update_mfa_authenticator( - type = AuthenticatorType.TOTP, - otp = '<OTP>' -) diff --git a/docs/examples/1.8.x/server-python/examples/account/update-m-f-a-challenge.md b/docs/examples/1.8.x/server-python/examples/account/update-m-f-a-challenge.md deleted file mode 100644 index cfc58c58a2..0000000000 --- a/docs/examples/1.8.x/server-python/examples/account/update-m-f-a-challenge.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.account import Account - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_session('') # The user session to authenticate with - -account = Account(client) - -result = account.update_mfa_challenge( - challenge_id = '<CHALLENGE_ID>', - otp = '<OTP>' -) diff --git a/docs/examples/1.8.x/server-python/examples/account/update-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-python/examples/account/update-m-f-a-recovery-codes.md deleted file mode 100644 index 51718eb03a..0000000000 --- a/docs/examples/1.8.x/server-python/examples/account/update-m-f-a-recovery-codes.md +++ /dev/null @@ -1,11 +0,0 @@ -from appwrite.client import Client -from appwrite.services.account import Account - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_session('') # The user session to authenticate with - -account = Account(client) - -result = account.update_mfa_recovery_codes() diff --git a/docs/examples/1.8.x/server-python/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.8.x/server-python/examples/account/update-magic-url-session.md similarity index 100% rename from docs/examples/1.8.x/server-python/examples/account/update-magic-u-r-l-session.md rename to docs/examples/1.8.x/server-python/examples/account/update-magic-url-session.md diff --git a/docs/examples/1.8.x/server-python/examples/account/update-m-f-a.md b/docs/examples/1.8.x/server-python/examples/account/update-mfa.md similarity index 100% rename from docs/examples/1.8.x/server-python/examples/account/update-m-f-a.md rename to docs/examples/1.8.x/server-python/examples/account/update-mfa.md diff --git a/docs/examples/1.8.x/server-python/examples/avatars/get-q-r.md b/docs/examples/1.8.x/server-python/examples/avatars/get-qr.md similarity index 100% rename from docs/examples/1.8.x/server-python/examples/avatars/get-q-r.md rename to docs/examples/1.8.x/server-python/examples/avatars/get-qr.md diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-boolean-column.md b/docs/examples/1.8.x/server-python/examples/grids/create-boolean-column.md deleted file mode 100644 index 73d8323533..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/create-boolean-column.md +++ /dev/null @@ -1,18 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids(client) - -result = grids.create_boolean_column( - database_id = '<DATABASE_ID>', - table_id = '<TABLE_ID>', - key = '', - required = False, - default = False, # optional - array = False # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-database.md b/docs/examples/1.8.x/server-python/examples/grids/create-database.md deleted file mode 100644 index a7749e4903..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/create-database.md +++ /dev/null @@ -1,15 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids(client) - -result = grids.create_database( - database_id = '<DATABASE_ID>', - name = '<NAME>', - enabled = False # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-datetime-column.md b/docs/examples/1.8.x/server-python/examples/grids/create-datetime-column.md deleted file mode 100644 index a98024c16c..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/create-datetime-column.md +++ /dev/null @@ -1,18 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids(client) - -result = grids.create_datetime_column( - database_id = '<DATABASE_ID>', - table_id = '<TABLE_ID>', - key = '', - required = False, - default = '', # optional - array = False # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-email-column.md b/docs/examples/1.8.x/server-python/examples/grids/create-email-column.md deleted file mode 100644 index 372cbafce3..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/create-email-column.md +++ /dev/null @@ -1,18 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids(client) - -result = grids.create_email_column( - database_id = '<DATABASE_ID>', - table_id = '<TABLE_ID>', - key = '', - required = False, - default = 'email@example.com', # optional - array = False # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-enum-column.md b/docs/examples/1.8.x/server-python/examples/grids/create-enum-column.md deleted file mode 100644 index d7b47c80cb..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/create-enum-column.md +++ /dev/null @@ -1,19 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids(client) - -result = grids.create_enum_column( - database_id = '<DATABASE_ID>', - table_id = '<TABLE_ID>', - key = '', - elements = [], - required = False, - default = '<DEFAULT>', # optional - array = False # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-float-column.md b/docs/examples/1.8.x/server-python/examples/grids/create-float-column.md deleted file mode 100644 index 5a52128ac1..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/create-float-column.md +++ /dev/null @@ -1,20 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids(client) - -result = grids.create_float_column( - database_id = '<DATABASE_ID>', - table_id = '<TABLE_ID>', - key = '', - required = False, - min = None, # optional - max = None, # optional - default = None, # optional - array = False # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-index.md b/docs/examples/1.8.x/server-python/examples/grids/create-index.md deleted file mode 100644 index 1d67b8abc0..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/create-index.md +++ /dev/null @@ -1,20 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids -from appwrite.enums import IndexType - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids(client) - -result = grids.create_index( - database_id = '<DATABASE_ID>', - table_id = '<TABLE_ID>', - key = '', - type = IndexType.KEY, - columns = [], - orders = [], # optional - lengths = [] # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-integer-column.md b/docs/examples/1.8.x/server-python/examples/grids/create-integer-column.md deleted file mode 100644 index aed49578aa..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/create-integer-column.md +++ /dev/null @@ -1,20 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids(client) - -result = grids.create_integer_column( - database_id = '<DATABASE_ID>', - table_id = '<TABLE_ID>', - key = '', - required = False, - min = None, # optional - max = None, # optional - default = None, # optional - array = False # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-ip-column.md b/docs/examples/1.8.x/server-python/examples/grids/create-ip-column.md deleted file mode 100644 index af873c91a1..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/create-ip-column.md +++ /dev/null @@ -1,18 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids(client) - -result = grids.create_ip_column( - database_id = '<DATABASE_ID>', - table_id = '<TABLE_ID>', - key = '', - required = False, - default = '', # optional - array = False # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-relationship-column.md b/docs/examples/1.8.x/server-python/examples/grids/create-relationship-column.md deleted file mode 100644 index 3cb858d260..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/create-relationship-column.md +++ /dev/null @@ -1,21 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids -from appwrite.enums import RelationshipType - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids(client) - -result = grids.create_relationship_column( - database_id = '<DATABASE_ID>', - table_id = '<TABLE_ID>', - related_table_id = '<RELATED_TABLE_ID>', - type = RelationshipType.ONETOONE, - two_way = False, # optional - key = '', # optional - two_way_key = '', # optional - on_delete = RelationMutate.CASCADE # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-row.md b/docs/examples/1.8.x/server-python/examples/grids/create-row.md deleted file mode 100644 index 5645f0bd23..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/create-row.md +++ /dev/null @@ -1,17 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_session('') # The user session to authenticate with - -grids = Grids(client) - -result = grids.create_row( - database_id = '<DATABASE_ID>', - table_id = '<TABLE_ID>', - row_id = '<ROW_ID>', - data = {}, - permissions = ["read("any")"] # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-rows.md b/docs/examples/1.8.x/server-python/examples/grids/create-rows.md deleted file mode 100644 index 3274c48a10..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/create-rows.md +++ /dev/null @@ -1,15 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids(client) - -result = grids.create_rows( - database_id = '<DATABASE_ID>', - table_id = '<TABLE_ID>', - rows = [] -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-string-column.md b/docs/examples/1.8.x/server-python/examples/grids/create-string-column.md deleted file mode 100644 index 3771a070ba..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/create-string-column.md +++ /dev/null @@ -1,20 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids(client) - -result = grids.create_string_column( - database_id = '<DATABASE_ID>', - table_id = '<TABLE_ID>', - key = '', - size = 1, - required = False, - default = '<DEFAULT>', # optional - array = False, # optional - encrypt = False # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-table.md b/docs/examples/1.8.x/server-python/examples/grids/create-table.md deleted file mode 100644 index 64c1b50d69..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/create-table.md +++ /dev/null @@ -1,18 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids(client) - -result = grids.create_table( - database_id = '<DATABASE_ID>', - table_id = '<TABLE_ID>', - name = '<NAME>', - permissions = ["read("any")"], # optional - row_security = False, # optional - enabled = False # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/create-url-column.md b/docs/examples/1.8.x/server-python/examples/grids/create-url-column.md deleted file mode 100644 index 45c1a2d82e..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/create-url-column.md +++ /dev/null @@ -1,18 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids(client) - -result = grids.create_url_column( - database_id = '<DATABASE_ID>', - table_id = '<TABLE_ID>', - key = '', - required = False, - default = 'https://example.com', # optional - array = False # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/decrement-row-column.md b/docs/examples/1.8.x/server-python/examples/grids/decrement-row-column.md deleted file mode 100644 index 9608337398..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/decrement-row-column.md +++ /dev/null @@ -1,18 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids(client) - -result = grids.decrement_row_column( - database_id = '<DATABASE_ID>', - table_id = '<TABLE_ID>', - row_id = '<ROW_ID>', - column = '', - value = None, # optional - min = None # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/delete-column.md b/docs/examples/1.8.x/server-python/examples/grids/delete-column.md deleted file mode 100644 index 650a1c3578..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/delete-column.md +++ /dev/null @@ -1,15 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids(client) - -result = grids.delete_column( - database_id = '<DATABASE_ID>', - table_id = '<TABLE_ID>', - key = '' -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/delete-database.md b/docs/examples/1.8.x/server-python/examples/grids/delete-database.md deleted file mode 100644 index 9898c07bc8..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/delete-database.md +++ /dev/null @@ -1,13 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids(client) - -result = grids.delete_database( - database_id = '<DATABASE_ID>' -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/delete-index.md b/docs/examples/1.8.x/server-python/examples/grids/delete-index.md deleted file mode 100644 index fed36f1d9c..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/delete-index.md +++ /dev/null @@ -1,15 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids(client) - -result = grids.delete_index( - database_id = '<DATABASE_ID>', - table_id = '<TABLE_ID>', - key = '' -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/delete-row.md b/docs/examples/1.8.x/server-python/examples/grids/delete-row.md deleted file mode 100644 index eb1e661738..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/delete-row.md +++ /dev/null @@ -1,15 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_session('') # The user session to authenticate with - -grids = Grids(client) - -result = grids.delete_row( - database_id = '<DATABASE_ID>', - table_id = '<TABLE_ID>', - row_id = '<ROW_ID>' -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/delete-rows.md b/docs/examples/1.8.x/server-python/examples/grids/delete-rows.md deleted file mode 100644 index 31503cdee1..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/delete-rows.md +++ /dev/null @@ -1,15 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids(client) - -result = grids.delete_rows( - database_id = '<DATABASE_ID>', - table_id = '<TABLE_ID>', - queries = [] # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/delete-table.md b/docs/examples/1.8.x/server-python/examples/grids/delete-table.md deleted file mode 100644 index d170c31d20..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/delete-table.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids(client) - -result = grids.delete_table( - database_id = '<DATABASE_ID>', - table_id = '<TABLE_ID>' -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/get-column.md b/docs/examples/1.8.x/server-python/examples/grids/get-column.md deleted file mode 100644 index a724e07b0a..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/get-column.md +++ /dev/null @@ -1,15 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids(client) - -result = grids.get_column( - database_id = '<DATABASE_ID>', - table_id = '<TABLE_ID>', - key = '' -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/get-database.md b/docs/examples/1.8.x/server-python/examples/grids/get-database.md deleted file mode 100644 index e393d7587b..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/get-database.md +++ /dev/null @@ -1,13 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids(client) - -result = grids.get_database( - database_id = '<DATABASE_ID>' -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/get-index.md b/docs/examples/1.8.x/server-python/examples/grids/get-index.md deleted file mode 100644 index 6e3753dea5..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/get-index.md +++ /dev/null @@ -1,15 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids(client) - -result = grids.get_index( - database_id = '<DATABASE_ID>', - table_id = '<TABLE_ID>', - key = '' -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/get-row.md b/docs/examples/1.8.x/server-python/examples/grids/get-row.md deleted file mode 100644 index 939a992868..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/get-row.md +++ /dev/null @@ -1,16 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_session('') # The user session to authenticate with - -grids = Grids(client) - -result = grids.get_row( - database_id = '<DATABASE_ID>', - table_id = '<TABLE_ID>', - row_id = '<ROW_ID>', - queries = [] # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/get-table.md b/docs/examples/1.8.x/server-python/examples/grids/get-table.md deleted file mode 100644 index afe24bd0f2..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/get-table.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids(client) - -result = grids.get_table( - database_id = '<DATABASE_ID>', - table_id = '<TABLE_ID>' -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/increment-row-column.md b/docs/examples/1.8.x/server-python/examples/grids/increment-row-column.md deleted file mode 100644 index 598cf58874..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/increment-row-column.md +++ /dev/null @@ -1,18 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids(client) - -result = grids.increment_row_column( - database_id = '<DATABASE_ID>', - table_id = '<TABLE_ID>', - row_id = '<ROW_ID>', - column = '', - value = None, # optional - max = None # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/list-columns.md b/docs/examples/1.8.x/server-python/examples/grids/list-columns.md deleted file mode 100644 index b78327182c..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/list-columns.md +++ /dev/null @@ -1,15 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids(client) - -result = grids.list_columns( - database_id = '<DATABASE_ID>', - table_id = '<TABLE_ID>', - queries = [] # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/list-databases.md b/docs/examples/1.8.x/server-python/examples/grids/list-databases.md deleted file mode 100644 index 78c5cb4bd7..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/list-databases.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids(client) - -result = grids.list_databases( - queries = [], # optional - search = '<SEARCH>' # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/list-indexes.md b/docs/examples/1.8.x/server-python/examples/grids/list-indexes.md deleted file mode 100644 index a6b52416c6..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/list-indexes.md +++ /dev/null @@ -1,15 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids(client) - -result = grids.list_indexes( - database_id = '<DATABASE_ID>', - table_id = '<TABLE_ID>', - queries = [] # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/list-rows.md b/docs/examples/1.8.x/server-python/examples/grids/list-rows.md deleted file mode 100644 index 975f88f763..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/list-rows.md +++ /dev/null @@ -1,15 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_session('') # The user session to authenticate with - -grids = Grids(client) - -result = grids.list_rows( - database_id = '<DATABASE_ID>', - table_id = '<TABLE_ID>', - queries = [] # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/list-tables.md b/docs/examples/1.8.x/server-python/examples/grids/list-tables.md deleted file mode 100644 index 3e2e5508bc..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/list-tables.md +++ /dev/null @@ -1,15 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids(client) - -result = grids.list_tables( - database_id = '<DATABASE_ID>', - queries = [], # optional - search = '<SEARCH>' # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/update-boolean-column.md b/docs/examples/1.8.x/server-python/examples/grids/update-boolean-column.md deleted file mode 100644 index 6bcbf27355..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/update-boolean-column.md +++ /dev/null @@ -1,18 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids(client) - -result = grids.update_boolean_column( - database_id = '<DATABASE_ID>', - table_id = '<TABLE_ID>', - key = '', - required = False, - default = False, - new_key = '' # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/update-database.md b/docs/examples/1.8.x/server-python/examples/grids/update-database.md deleted file mode 100644 index 2df676bcbc..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/update-database.md +++ /dev/null @@ -1,15 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids(client) - -result = grids.update_database( - database_id = '<DATABASE_ID>', - name = '<NAME>', - enabled = False # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/update-datetime-column.md b/docs/examples/1.8.x/server-python/examples/grids/update-datetime-column.md deleted file mode 100644 index 6ae0e4dea5..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/update-datetime-column.md +++ /dev/null @@ -1,18 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids(client) - -result = grids.update_datetime_column( - database_id = '<DATABASE_ID>', - table_id = '<TABLE_ID>', - key = '', - required = False, - default = '', - new_key = '' # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/update-email-column.md b/docs/examples/1.8.x/server-python/examples/grids/update-email-column.md deleted file mode 100644 index c1ff1d0637..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/update-email-column.md +++ /dev/null @@ -1,18 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids(client) - -result = grids.update_email_column( - database_id = '<DATABASE_ID>', - table_id = '<TABLE_ID>', - key = '', - required = False, - default = 'email@example.com', - new_key = '' # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/update-enum-column.md b/docs/examples/1.8.x/server-python/examples/grids/update-enum-column.md deleted file mode 100644 index 6da49cfb81..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/update-enum-column.md +++ /dev/null @@ -1,19 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids(client) - -result = grids.update_enum_column( - database_id = '<DATABASE_ID>', - table_id = '<TABLE_ID>', - key = '', - elements = [], - required = False, - default = '<DEFAULT>', - new_key = '' # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/update-float-column.md b/docs/examples/1.8.x/server-python/examples/grids/update-float-column.md deleted file mode 100644 index 8d3d9edb5f..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/update-float-column.md +++ /dev/null @@ -1,20 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids(client) - -result = grids.update_float_column( - database_id = '<DATABASE_ID>', - table_id = '<TABLE_ID>', - key = '', - required = False, - default = None, - min = None, # optional - max = None, # optional - new_key = '' # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/update-integer-column.md b/docs/examples/1.8.x/server-python/examples/grids/update-integer-column.md deleted file mode 100644 index 966f7b6805..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/update-integer-column.md +++ /dev/null @@ -1,20 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids(client) - -result = grids.update_integer_column( - database_id = '<DATABASE_ID>', - table_id = '<TABLE_ID>', - key = '', - required = False, - default = None, - min = None, # optional - max = None, # optional - new_key = '' # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/update-ip-column.md b/docs/examples/1.8.x/server-python/examples/grids/update-ip-column.md deleted file mode 100644 index e5fccac320..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/update-ip-column.md +++ /dev/null @@ -1,18 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids(client) - -result = grids.update_ip_column( - database_id = '<DATABASE_ID>', - table_id = '<TABLE_ID>', - key = '', - required = False, - default = '', - new_key = '' # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/update-relationship-column.md b/docs/examples/1.8.x/server-python/examples/grids/update-relationship-column.md deleted file mode 100644 index fcff4591fd..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/update-relationship-column.md +++ /dev/null @@ -1,17 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids(client) - -result = grids.update_relationship_column( - database_id = '<DATABASE_ID>', - table_id = '<TABLE_ID>', - key = '', - on_delete = RelationMutate.CASCADE, # optional - new_key = '' # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/update-row.md b/docs/examples/1.8.x/server-python/examples/grids/update-row.md deleted file mode 100644 index e379697ce4..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/update-row.md +++ /dev/null @@ -1,17 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_session('') # The user session to authenticate with - -grids = Grids(client) - -result = grids.update_row( - database_id = '<DATABASE_ID>', - table_id = '<TABLE_ID>', - row_id = '<ROW_ID>', - data = {}, # optional - permissions = ["read("any")"] # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/update-rows.md b/docs/examples/1.8.x/server-python/examples/grids/update-rows.md deleted file mode 100644 index 344bb5904b..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/update-rows.md +++ /dev/null @@ -1,16 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids(client) - -result = grids.update_rows( - database_id = '<DATABASE_ID>', - table_id = '<TABLE_ID>', - data = {}, # optional - queries = [] # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/update-string-column.md b/docs/examples/1.8.x/server-python/examples/grids/update-string-column.md deleted file mode 100644 index f303189b80..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/update-string-column.md +++ /dev/null @@ -1,19 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids(client) - -result = grids.update_string_column( - database_id = '<DATABASE_ID>', - table_id = '<TABLE_ID>', - key = '', - required = False, - default = '<DEFAULT>', - size = 1, # optional - new_key = '' # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/update-table.md b/docs/examples/1.8.x/server-python/examples/grids/update-table.md deleted file mode 100644 index cfd5b4d92e..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/update-table.md +++ /dev/null @@ -1,18 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids(client) - -result = grids.update_table( - database_id = '<DATABASE_ID>', - table_id = '<TABLE_ID>', - name = '<NAME>', - permissions = ["read("any")"], # optional - row_security = False, # optional - enabled = False # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/update-url-column.md b/docs/examples/1.8.x/server-python/examples/grids/update-url-column.md deleted file mode 100644 index ea6dc386ed..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/update-url-column.md +++ /dev/null @@ -1,18 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids(client) - -result = grids.update_url_column( - database_id = '<DATABASE_ID>', - table_id = '<TABLE_ID>', - key = '', - required = False, - default = 'https://example.com', - new_key = '' # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/upsert-row.md b/docs/examples/1.8.x/server-python/examples/grids/upsert-row.md deleted file mode 100644 index 79528818e0..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/upsert-row.md +++ /dev/null @@ -1,17 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_session('') # The user session to authenticate with - -grids = Grids(client) - -result = grids.upsert_row( - database_id = '<DATABASE_ID>', - table_id = '<TABLE_ID>', - row_id = '<ROW_ID>', - data = {}, # optional - permissions = ["read("any")"] # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/grids/upsert-rows.md b/docs/examples/1.8.x/server-python/examples/grids/upsert-rows.md deleted file mode 100644 index b7573d4794..0000000000 --- a/docs/examples/1.8.x/server-python/examples/grids/upsert-rows.md +++ /dev/null @@ -1,15 +0,0 @@ -from appwrite.client import Client -from appwrite.services.grids import Grids - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids(client) - -result = grids.upsert_rows( - database_id = '<DATABASE_ID>', - table_id = '<TABLE_ID>', - rows = [] -) diff --git a/docs/examples/1.8.x/server-python/examples/health/get-d-b.md b/docs/examples/1.8.x/server-python/examples/health/get-db.md similarity index 100% rename from docs/examples/1.8.x/server-python/examples/health/get-d-b.md rename to docs/examples/1.8.x/server-python/examples/health/get-db.md diff --git a/docs/examples/1.8.x/server-python/examples/locale/list-countries-e-u.md b/docs/examples/1.8.x/server-python/examples/locale/list-countries-eu.md similarity index 100% rename from docs/examples/1.8.x/server-python/examples/locale/list-countries-e-u.md rename to docs/examples/1.8.x/server-python/examples/locale/list-countries-eu.md diff --git a/docs/examples/1.8.x/server-python/examples/messaging/create-a-p-n-s-provider.md b/docs/examples/1.8.x/server-python/examples/messaging/create-a-p-n-s-provider.md deleted file mode 100644 index b57fa00f23..0000000000 --- a/docs/examples/1.8.x/server-python/examples/messaging/create-a-p-n-s-provider.md +++ /dev/null @@ -1,20 +0,0 @@ -from appwrite.client import Client -from appwrite.services.messaging import Messaging - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_key('<YOUR_API_KEY>') # Your secret API key - -messaging = Messaging(client) - -result = messaging.create_apns_provider( - provider_id = '<PROVIDER_ID>', - name = '<NAME>', - auth_key = '<AUTH_KEY>', # optional - auth_key_id = '<AUTH_KEY_ID>', # optional - team_id = '<TEAM_ID>', # optional - bundle_id = '<BUNDLE_ID>', # optional - sandbox = False, # optional - enabled = False # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/messaging/create-f-c-m-provider.md b/docs/examples/1.8.x/server-python/examples/messaging/create-f-c-m-provider.md deleted file mode 100644 index 9c40eb7828..0000000000 --- a/docs/examples/1.8.x/server-python/examples/messaging/create-f-c-m-provider.md +++ /dev/null @@ -1,16 +0,0 @@ -from appwrite.client import Client -from appwrite.services.messaging import Messaging - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_key('<YOUR_API_KEY>') # Your secret API key - -messaging = Messaging(client) - -result = messaging.create_fcm_provider( - provider_id = '<PROVIDER_ID>', - name = '<NAME>', - service_account_json = {}, # optional - enabled = False # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/messaging/create-msg91provider.md b/docs/examples/1.8.x/server-python/examples/messaging/create-msg-91-provider.md similarity index 100% rename from docs/examples/1.8.x/server-python/examples/messaging/create-msg91provider.md rename to docs/examples/1.8.x/server-python/examples/messaging/create-msg-91-provider.md diff --git a/docs/examples/1.8.x/server-python/examples/messaging/create-s-m-s.md b/docs/examples/1.8.x/server-python/examples/messaging/create-s-m-s.md deleted file mode 100644 index d1c7b495b2..0000000000 --- a/docs/examples/1.8.x/server-python/examples/messaging/create-s-m-s.md +++ /dev/null @@ -1,19 +0,0 @@ -from appwrite.client import Client -from appwrite.services.messaging import Messaging - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_key('<YOUR_API_KEY>') # Your secret API key - -messaging = Messaging(client) - -result = messaging.create_sms( - message_id = '<MESSAGE_ID>', - content = '<CONTENT>', - topics = [], # optional - users = [], # optional - targets = [], # optional - draft = False, # optional - scheduled_at = '' # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/messaging/create-s-m-t-p-provider.md b/docs/examples/1.8.x/server-python/examples/messaging/create-s-m-t-p-provider.md deleted file mode 100644 index 99914f0779..0000000000 --- a/docs/examples/1.8.x/server-python/examples/messaging/create-s-m-t-p-provider.md +++ /dev/null @@ -1,26 +0,0 @@ -from appwrite.client import Client -from appwrite.services.messaging import Messaging - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_key('<YOUR_API_KEY>') # Your secret API key - -messaging = Messaging(client) - -result = messaging.create_smtp_provider( - provider_id = '<PROVIDER_ID>', - name = '<NAME>', - host = '<HOST>', - port = 1, # optional - username = '<USERNAME>', # optional - password = '<PASSWORD>', # optional - encryption = SmtpEncryption.NONE, # optional - auto_tls = False, # optional - mailer = '<MAILER>', # optional - from_name = '<FROM_NAME>', # optional - from_email = 'email@example.com', # optional - reply_to_name = '<REPLY_TO_NAME>', # optional - reply_to_email = 'email@example.com', # optional - enabled = False # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/messaging/update-a-p-n-s-provider.md b/docs/examples/1.8.x/server-python/examples/messaging/update-a-p-n-s-provider.md deleted file mode 100644 index f695b61b8c..0000000000 --- a/docs/examples/1.8.x/server-python/examples/messaging/update-a-p-n-s-provider.md +++ /dev/null @@ -1,20 +0,0 @@ -from appwrite.client import Client -from appwrite.services.messaging import Messaging - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_key('<YOUR_API_KEY>') # Your secret API key - -messaging = Messaging(client) - -result = messaging.update_apns_provider( - provider_id = '<PROVIDER_ID>', - name = '<NAME>', # optional - enabled = False, # optional - auth_key = '<AUTH_KEY>', # optional - auth_key_id = '<AUTH_KEY_ID>', # optional - team_id = '<TEAM_ID>', # optional - bundle_id = '<BUNDLE_ID>', # optional - sandbox = False # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/messaging/update-f-c-m-provider.md b/docs/examples/1.8.x/server-python/examples/messaging/update-f-c-m-provider.md deleted file mode 100644 index 0119d71b4f..0000000000 --- a/docs/examples/1.8.x/server-python/examples/messaging/update-f-c-m-provider.md +++ /dev/null @@ -1,16 +0,0 @@ -from appwrite.client import Client -from appwrite.services.messaging import Messaging - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_key('<YOUR_API_KEY>') # Your secret API key - -messaging = Messaging(client) - -result = messaging.update_fcm_provider( - provider_id = '<PROVIDER_ID>', - name = '<NAME>', # optional - enabled = False, # optional - service_account_json = {} # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/messaging/update-msg91provider.md b/docs/examples/1.8.x/server-python/examples/messaging/update-msg-91-provider.md similarity index 100% rename from docs/examples/1.8.x/server-python/examples/messaging/update-msg91provider.md rename to docs/examples/1.8.x/server-python/examples/messaging/update-msg-91-provider.md diff --git a/docs/examples/1.8.x/server-python/examples/messaging/update-s-m-s.md b/docs/examples/1.8.x/server-python/examples/messaging/update-s-m-s.md deleted file mode 100644 index 2eec4e215b..0000000000 --- a/docs/examples/1.8.x/server-python/examples/messaging/update-s-m-s.md +++ /dev/null @@ -1,19 +0,0 @@ -from appwrite.client import Client -from appwrite.services.messaging import Messaging - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_key('<YOUR_API_KEY>') # Your secret API key - -messaging = Messaging(client) - -result = messaging.update_sms( - message_id = '<MESSAGE_ID>', - topics = [], # optional - users = [], # optional - targets = [], # optional - content = '<CONTENT>', # optional - draft = False, # optional - scheduled_at = '' # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/messaging/update-s-m-t-p-provider.md b/docs/examples/1.8.x/server-python/examples/messaging/update-s-m-t-p-provider.md deleted file mode 100644 index 80019aad40..0000000000 --- a/docs/examples/1.8.x/server-python/examples/messaging/update-s-m-t-p-provider.md +++ /dev/null @@ -1,26 +0,0 @@ -from appwrite.client import Client -from appwrite.services.messaging import Messaging - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_key('<YOUR_API_KEY>') # Your secret API key - -messaging = Messaging(client) - -result = messaging.update_smtp_provider( - provider_id = '<PROVIDER_ID>', - name = '<NAME>', # optional - host = '<HOST>', # optional - port = 1, # optional - username = '<USERNAME>', # optional - password = '<PASSWORD>', # optional - encryption = SmtpEncryption.NONE, # optional - auto_tls = False, # optional - mailer = '<MAILER>', # optional - from_name = '<FROM_NAME>', # optional - from_email = 'email@example.com', # optional - reply_to_name = '<REPLY_TO_NAME>', # optional - reply_to_email = '<REPLY_TO_EMAIL>', # optional - enabled = False # optional -) diff --git a/docs/examples/1.8.x/server-python/examples/users/create-argon2user.md b/docs/examples/1.8.x/server-python/examples/users/create-argon-2-user.md similarity index 100% rename from docs/examples/1.8.x/server-python/examples/users/create-argon2user.md rename to docs/examples/1.8.x/server-python/examples/users/create-argon-2-user.md diff --git a/docs/examples/1.8.x/server-python/examples/users/create-j-w-t.md b/docs/examples/1.8.x/server-python/examples/users/create-jwt.md similarity index 100% rename from docs/examples/1.8.x/server-python/examples/users/create-j-w-t.md rename to docs/examples/1.8.x/server-python/examples/users/create-jwt.md diff --git a/docs/examples/1.8.x/server-python/examples/users/create-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-python/examples/users/create-m-f-a-recovery-codes.md deleted file mode 100644 index 64a87c05ff..0000000000 --- a/docs/examples/1.8.x/server-python/examples/users/create-m-f-a-recovery-codes.md +++ /dev/null @@ -1,13 +0,0 @@ -from appwrite.client import Client -from appwrite.services.users import Users - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_key('<YOUR_API_KEY>') # Your secret API key - -users = Users(client) - -result = users.create_mfa_recovery_codes( - user_id = '<USER_ID>' -) diff --git a/docs/examples/1.8.x/server-python/examples/users/create-m-d5user.md b/docs/examples/1.8.x/server-python/examples/users/create-md-5-user.md similarity index 100% rename from docs/examples/1.8.x/server-python/examples/users/create-m-d5user.md rename to docs/examples/1.8.x/server-python/examples/users/create-md-5-user.md diff --git a/docs/examples/1.8.x/server-python/examples/users/create-p-h-pass-user.md b/docs/examples/1.8.x/server-python/examples/users/create-ph-pass-user.md similarity index 100% rename from docs/examples/1.8.x/server-python/examples/users/create-p-h-pass-user.md rename to docs/examples/1.8.x/server-python/examples/users/create-ph-pass-user.md diff --git a/docs/examples/1.8.x/server-python/examples/users/create-s-h-a-user.md b/docs/examples/1.8.x/server-python/examples/users/create-sha-user.md similarity index 100% rename from docs/examples/1.8.x/server-python/examples/users/create-s-h-a-user.md rename to docs/examples/1.8.x/server-python/examples/users/create-sha-user.md diff --git a/docs/examples/1.8.x/server-python/examples/users/delete-m-f-a-authenticator.md b/docs/examples/1.8.x/server-python/examples/users/delete-m-f-a-authenticator.md deleted file mode 100644 index 6472498344..0000000000 --- a/docs/examples/1.8.x/server-python/examples/users/delete-m-f-a-authenticator.md +++ /dev/null @@ -1,15 +0,0 @@ -from appwrite.client import Client -from appwrite.services.users import Users -from appwrite.enums import AuthenticatorType - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_key('<YOUR_API_KEY>') # Your secret API key - -users = Users(client) - -result = users.delete_mfa_authenticator( - user_id = '<USER_ID>', - type = AuthenticatorType.TOTP -) diff --git a/docs/examples/1.8.x/server-python/examples/users/get-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-python/examples/users/get-m-f-a-recovery-codes.md deleted file mode 100644 index bca43b08ec..0000000000 --- a/docs/examples/1.8.x/server-python/examples/users/get-m-f-a-recovery-codes.md +++ /dev/null @@ -1,13 +0,0 @@ -from appwrite.client import Client -from appwrite.services.users import Users - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_key('<YOUR_API_KEY>') # Your secret API key - -users = Users(client) - -result = users.get_mfa_recovery_codes( - user_id = '<USER_ID>' -) diff --git a/docs/examples/1.8.x/server-python/examples/users/list-m-f-a-factors.md b/docs/examples/1.8.x/server-python/examples/users/list-m-f-a-factors.md deleted file mode 100644 index a2b59895e8..0000000000 --- a/docs/examples/1.8.x/server-python/examples/users/list-m-f-a-factors.md +++ /dev/null @@ -1,13 +0,0 @@ -from appwrite.client import Client -from appwrite.services.users import Users - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_key('<YOUR_API_KEY>') # Your secret API key - -users = Users(client) - -result = users.list_mfa_factors( - user_id = '<USER_ID>' -) diff --git a/docs/examples/1.8.x/server-python/examples/users/update-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-python/examples/users/update-m-f-a-recovery-codes.md deleted file mode 100644 index c0990e1ef7..0000000000 --- a/docs/examples/1.8.x/server-python/examples/users/update-m-f-a-recovery-codes.md +++ /dev/null @@ -1,13 +0,0 @@ -from appwrite.client import Client -from appwrite.services.users import Users - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_key('<YOUR_API_KEY>') # Your secret API key - -users = Users(client) - -result = users.update_mfa_recovery_codes( - user_id = '<USER_ID>' -) diff --git a/docs/examples/1.8.x/server-python/examples/users/update-m-f-a.md b/docs/examples/1.8.x/server-python/examples/users/update-m-f-a.md deleted file mode 100644 index 9b35701185..0000000000 --- a/docs/examples/1.8.x/server-python/examples/users/update-m-f-a.md +++ /dev/null @@ -1,14 +0,0 @@ -from appwrite.client import Client -from appwrite.services.users import Users - -client = Client() -client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint -client.set_project('<YOUR_PROJECT_ID>') # Your project ID -client.set_key('<YOUR_API_KEY>') # Your secret API key - -users = Users(client) - -result = users.update_mfa( - user_id = '<USER_ID>', - mfa = False -) diff --git a/docs/examples/1.8.x/server-rest/examples/account/create-j-w-t.md b/docs/examples/1.8.x/server-rest/examples/account/create-jwt.md similarity index 100% rename from docs/examples/1.8.x/server-rest/examples/account/create-j-w-t.md rename to docs/examples/1.8.x/server-rest/examples/account/create-jwt.md diff --git a/docs/examples/1.8.x/server-rest/examples/account/create-m-f-a-authenticator.md b/docs/examples/1.8.x/server-rest/examples/account/create-m-f-a-authenticator.md deleted file mode 100644 index 62a068b6cf..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/account/create-m-f-a-authenticator.md +++ /dev/null @@ -1,8 +0,0 @@ -POST /v1/account/mfa/authenticators/{type} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Session: -X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.8.x/server-rest/examples/account/create-m-f-a-challenge.md b/docs/examples/1.8.x/server-rest/examples/account/create-m-f-a-challenge.md deleted file mode 100644 index dd5ef4c731..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/account/create-m-f-a-challenge.md +++ /dev/null @@ -1,9 +0,0 @@ -POST /v1/account/mfa/challenge HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> - -{ - "factor": "email" -} diff --git a/docs/examples/1.8.x/server-rest/examples/account/create-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-rest/examples/account/create-m-f-a-recovery-codes.md deleted file mode 100644 index f09323df0b..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/account/create-m-f-a-recovery-codes.md +++ /dev/null @@ -1,8 +0,0 @@ -POST /v1/account/mfa/recovery-codes HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Session: -X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.8.x/server-rest/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.8.x/server-rest/examples/account/create-magic-url-token.md similarity index 100% rename from docs/examples/1.8.x/server-rest/examples/account/create-magic-u-r-l-token.md rename to docs/examples/1.8.x/server-rest/examples/account/create-magic-url-token.md diff --git a/docs/examples/1.8.x/server-rest/examples/account/create-o-auth2token.md b/docs/examples/1.8.x/server-rest/examples/account/create-o-auth-2-token.md similarity index 100% rename from docs/examples/1.8.x/server-rest/examples/account/create-o-auth2token.md rename to docs/examples/1.8.x/server-rest/examples/account/create-o-auth-2-token.md diff --git a/docs/examples/1.8.x/server-rest/examples/account/delete-m-f-a-authenticator.md b/docs/examples/1.8.x/server-rest/examples/account/delete-m-f-a-authenticator.md deleted file mode 100644 index a0eb5a0869..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/account/delete-m-f-a-authenticator.md +++ /dev/null @@ -1,8 +0,0 @@ -DELETE /v1/account/mfa/authenticators/{type} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Session: -X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.8.x/server-rest/examples/account/get-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-rest/examples/account/get-m-f-a-recovery-codes.md deleted file mode 100644 index 2ab10a2475..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/account/get-m-f-a-recovery-codes.md +++ /dev/null @@ -1,6 +0,0 @@ -GET /v1/account/mfa/recovery-codes HTTP/1.1 -Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Session: -X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.8.x/server-rest/examples/account/list-m-f-a-factors.md b/docs/examples/1.8.x/server-rest/examples/account/list-m-f-a-factors.md deleted file mode 100644 index c591143d4e..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/account/list-m-f-a-factors.md +++ /dev/null @@ -1,6 +0,0 @@ -GET /v1/account/mfa/factors HTTP/1.1 -Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Session: -X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.8.x/server-rest/examples/account/update-m-f-a-authenticator.md b/docs/examples/1.8.x/server-rest/examples/account/update-m-f-a-authenticator.md deleted file mode 100644 index 780472291c..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/account/update-m-f-a-authenticator.md +++ /dev/null @@ -1,11 +0,0 @@ -PUT /v1/account/mfa/authenticators/{type} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Session: -X-Appwrite-JWT: <YOUR_JWT> - -{ - "otp": "<OTP>" -} diff --git a/docs/examples/1.8.x/server-rest/examples/account/update-m-f-a-challenge.md b/docs/examples/1.8.x/server-rest/examples/account/update-m-f-a-challenge.md deleted file mode 100644 index b6a7e92b28..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/account/update-m-f-a-challenge.md +++ /dev/null @@ -1,12 +0,0 @@ -PUT /v1/account/mfa/challenge HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Session: -X-Appwrite-JWT: <YOUR_JWT> - -{ - "challengeId": "<CHALLENGE_ID>", - "otp": "<OTP>" -} diff --git a/docs/examples/1.8.x/server-rest/examples/account/update-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-rest/examples/account/update-m-f-a-recovery-codes.md deleted file mode 100644 index 74e9225f3e..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/account/update-m-f-a-recovery-codes.md +++ /dev/null @@ -1,8 +0,0 @@ -PATCH /v1/account/mfa/recovery-codes HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Session: -X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.8.x/server-rest/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.8.x/server-rest/examples/account/update-magic-url-session.md similarity index 100% rename from docs/examples/1.8.x/server-rest/examples/account/update-magic-u-r-l-session.md rename to docs/examples/1.8.x/server-rest/examples/account/update-magic-url-session.md diff --git a/docs/examples/1.8.x/server-rest/examples/account/update-m-f-a.md b/docs/examples/1.8.x/server-rest/examples/account/update-mfa.md similarity index 100% rename from docs/examples/1.8.x/server-rest/examples/account/update-m-f-a.md rename to docs/examples/1.8.x/server-rest/examples/account/update-mfa.md diff --git a/docs/examples/1.8.x/server-rest/examples/avatars/get-q-r.md b/docs/examples/1.8.x/server-rest/examples/avatars/get-qr.md similarity index 100% rename from docs/examples/1.8.x/server-rest/examples/avatars/get-q-r.md rename to docs/examples/1.8.x/server-rest/examples/avatars/get-qr.md diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-boolean-column.md b/docs/examples/1.8.x/server-rest/examples/grids/create-boolean-column.md deleted file mode 100644 index d594385572..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/create-boolean-column.md +++ /dev/null @@ -1,13 +0,0 @@ -POST /v1/databases/{databaseId}/grids/tables/{tableId}/columns/boolean HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Key: <YOUR_API_KEY> - -{ - "key": , - "required": false, - "default": false, - "array": false -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-database.md b/docs/examples/1.8.x/server-rest/examples/grids/create-database.md deleted file mode 100644 index fd1ae143fa..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/create-database.md +++ /dev/null @@ -1,12 +0,0 @@ -POST /v1/databases HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Key: <YOUR_API_KEY> - -{ - "databaseId": "<DATABASE_ID>", - "name": "<NAME>", - "enabled": false -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-datetime-column.md b/docs/examples/1.8.x/server-rest/examples/grids/create-datetime-column.md deleted file mode 100644 index 88505a8a1f..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/create-datetime-column.md +++ /dev/null @@ -1,13 +0,0 @@ -POST /v1/databases/{databaseId}/grids/tables/{tableId}/columns/datetime HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Key: <YOUR_API_KEY> - -{ - "key": , - "required": false, - "default": , - "array": false -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-email-column.md b/docs/examples/1.8.x/server-rest/examples/grids/create-email-column.md deleted file mode 100644 index 28d733dab8..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/create-email-column.md +++ /dev/null @@ -1,13 +0,0 @@ -POST /v1/databases/{databaseId}/grids/tables/{tableId}/columns/email HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Key: <YOUR_API_KEY> - -{ - "key": , - "required": false, - "default": "email@example.com", - "array": false -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-enum-column.md b/docs/examples/1.8.x/server-rest/examples/grids/create-enum-column.md deleted file mode 100644 index 35de1b5e2f..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/create-enum-column.md +++ /dev/null @@ -1,14 +0,0 @@ -POST /v1/databases/{databaseId}/grids/tables/{tableId}/columns/enum HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Key: <YOUR_API_KEY> - -{ - "key": , - "elements": [], - "required": false, - "default": "<DEFAULT>", - "array": false -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-float-column.md b/docs/examples/1.8.x/server-rest/examples/grids/create-float-column.md deleted file mode 100644 index 9c9996aced..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/create-float-column.md +++ /dev/null @@ -1,15 +0,0 @@ -POST /v1/databases/{databaseId}/grids/tables/{tableId}/columns/float HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Key: <YOUR_API_KEY> - -{ - "key": , - "required": false, - "min": 0, - "max": 0, - "default": 0, - "array": false -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-index.md b/docs/examples/1.8.x/server-rest/examples/grids/create-index.md deleted file mode 100644 index 7a7487bdae..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/create-index.md +++ /dev/null @@ -1,14 +0,0 @@ -POST /v1/databases/{databaseId}/grids/tables/{tableId}/indexes HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Key: <YOUR_API_KEY> - -{ - "key": , - "type": "key", - "columns": [], - "orders": [], - "lengths": [] -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-integer-column.md b/docs/examples/1.8.x/server-rest/examples/grids/create-integer-column.md deleted file mode 100644 index be6eb92544..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/create-integer-column.md +++ /dev/null @@ -1,15 +0,0 @@ -POST /v1/databases/{databaseId}/grids/tables/{tableId}/columns/integer HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Key: <YOUR_API_KEY> - -{ - "key": , - "required": false, - "min": 0, - "max": 0, - "default": 0, - "array": false -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-ip-column.md b/docs/examples/1.8.x/server-rest/examples/grids/create-ip-column.md deleted file mode 100644 index 30406d7025..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/create-ip-column.md +++ /dev/null @@ -1,13 +0,0 @@ -POST /v1/databases/{databaseId}/grids/tables/{tableId}/columns/ip HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Key: <YOUR_API_KEY> - -{ - "key": , - "required": false, - "default": , - "array": false -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-relationship-column.md b/docs/examples/1.8.x/server-rest/examples/grids/create-relationship-column.md deleted file mode 100644 index 75f54c9602..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/create-relationship-column.md +++ /dev/null @@ -1,15 +0,0 @@ -POST /v1/databases/{databaseId}/grids/tables/{tableId}/columns/relationship HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Key: <YOUR_API_KEY> - -{ - "relatedTableId": "<RELATED_TABLE_ID>", - "type": "oneToOne", - "twoWay": false, - "key": , - "twoWayKey": , - "onDelete": "cascade" -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-row.md b/docs/examples/1.8.x/server-rest/examples/grids/create-row.md deleted file mode 100644 index 443b4e30c9..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/create-row.md +++ /dev/null @@ -1,14 +0,0 @@ -POST /v1/databases/{databaseId}/grids/tables/{tableId}/rows HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Session: -X-Appwrite-Key: <YOUR_API_KEY> -X-Appwrite-JWT: <YOUR_JWT> - -{ - "rowId": "<ROW_ID>", - "data": {}, - "permissions": ["read(\"any\")"] -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-rows.md b/docs/examples/1.8.x/server-rest/examples/grids/create-rows.md deleted file mode 100644 index 32578d87de..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/create-rows.md +++ /dev/null @@ -1,12 +0,0 @@ -POST /v1/databases/{databaseId}/grids/tables/{tableId}/rows HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Session: -X-Appwrite-Key: <YOUR_API_KEY> -X-Appwrite-JWT: <YOUR_JWT> - -{ - "rows": [] -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-string-column.md b/docs/examples/1.8.x/server-rest/examples/grids/create-string-column.md deleted file mode 100644 index 2a0b0dc372..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/create-string-column.md +++ /dev/null @@ -1,15 +0,0 @@ -POST /v1/databases/{databaseId}/grids/tables/{tableId}/columns/string HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Key: <YOUR_API_KEY> - -{ - "key": , - "size": 1, - "required": false, - "default": "<DEFAULT>", - "array": false, - "encrypt": false -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-table.md b/docs/examples/1.8.x/server-rest/examples/grids/create-table.md deleted file mode 100644 index 7c22e81e7c..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/create-table.md +++ /dev/null @@ -1,14 +0,0 @@ -POST /v1/databases/{databaseId}/grids/tables HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Key: <YOUR_API_KEY> - -{ - "tableId": "<TABLE_ID>", - "name": "<NAME>", - "permissions": ["read(\"any\")"], - "rowSecurity": false, - "enabled": false -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/create-url-column.md b/docs/examples/1.8.x/server-rest/examples/grids/create-url-column.md deleted file mode 100644 index 5dada907a0..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/create-url-column.md +++ /dev/null @@ -1,13 +0,0 @@ -POST /v1/databases/{databaseId}/grids/tables/{tableId}/columns/url HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Key: <YOUR_API_KEY> - -{ - "key": , - "required": false, - "default": "https://example.com", - "array": false -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/decrement-row-column.md b/docs/examples/1.8.x/server-rest/examples/grids/decrement-row-column.md deleted file mode 100644 index 6548a58273..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/decrement-row-column.md +++ /dev/null @@ -1,11 +0,0 @@ -PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/rows/{rowId}/{column}/decrement HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Key: <YOUR_API_KEY> - -{ - "value": 0, - "min": 0 -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/delete-column.md b/docs/examples/1.8.x/server-rest/examples/grids/delete-column.md deleted file mode 100644 index 2680bcf03a..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/delete-column.md +++ /dev/null @@ -1,7 +0,0 @@ -DELETE /v1/databases/{databaseId}/grids/tables/{tableId}/columns/{key} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.8.x/server-rest/examples/grids/delete-database.md b/docs/examples/1.8.x/server-rest/examples/grids/delete-database.md deleted file mode 100644 index 85d5f7bb0e..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/delete-database.md +++ /dev/null @@ -1,7 +0,0 @@ -DELETE /v1/databases/{databaseId} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.8.x/server-rest/examples/grids/delete-index.md b/docs/examples/1.8.x/server-rest/examples/grids/delete-index.md deleted file mode 100644 index ca7d67a1b4..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/delete-index.md +++ /dev/null @@ -1,7 +0,0 @@ -DELETE /v1/databases/{databaseId}/grids/tables/{tableId}/indexes/{key} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.8.x/server-rest/examples/grids/delete-row.md b/docs/examples/1.8.x/server-rest/examples/grids/delete-row.md deleted file mode 100644 index 8fd3f6ee7d..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/delete-row.md +++ /dev/null @@ -1,9 +0,0 @@ -DELETE /v1/databases/{databaseId}/grids/tables/{tableId}/rows/{rowId} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Session: -X-Appwrite-Key: <YOUR_API_KEY> -X-Appwrite-JWT: <YOUR_JWT> - diff --git a/docs/examples/1.8.x/server-rest/examples/grids/delete-rows.md b/docs/examples/1.8.x/server-rest/examples/grids/delete-rows.md deleted file mode 100644 index af1fabdb7a..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/delete-rows.md +++ /dev/null @@ -1,10 +0,0 @@ -DELETE /v1/databases/{databaseId}/grids/tables/{tableId}/rows HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Key: <YOUR_API_KEY> - -{ - "queries": [] -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/delete-table.md b/docs/examples/1.8.x/server-rest/examples/grids/delete-table.md deleted file mode 100644 index e068291849..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/delete-table.md +++ /dev/null @@ -1,7 +0,0 @@ -DELETE /v1/databases/{databaseId}/grids/tables/{tableId} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.8.x/server-rest/examples/grids/get-column.md b/docs/examples/1.8.x/server-rest/examples/grids/get-column.md deleted file mode 100644 index 0888fb7273..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/get-column.md +++ /dev/null @@ -1,5 +0,0 @@ -GET /v1/databases/{databaseId}/grids/tables/{tableId}/columns/{key} HTTP/1.1 -Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.8.x/server-rest/examples/grids/get-database.md b/docs/examples/1.8.x/server-rest/examples/grids/get-database.md deleted file mode 100644 index 644f251f56..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/get-database.md +++ /dev/null @@ -1,5 +0,0 @@ -GET /v1/databases/{databaseId} HTTP/1.1 -Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.8.x/server-rest/examples/grids/get-index.md b/docs/examples/1.8.x/server-rest/examples/grids/get-index.md deleted file mode 100644 index 3a9c1ae705..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/get-index.md +++ /dev/null @@ -1,5 +0,0 @@ -GET /v1/databases/{databaseId}/grids/tables/{tableId}/indexes/{key} HTTP/1.1 -Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.8.x/server-rest/examples/grids/get-row.md b/docs/examples/1.8.x/server-rest/examples/grids/get-row.md deleted file mode 100644 index ba3b87bee0..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/get-row.md +++ /dev/null @@ -1,7 +0,0 @@ -GET /v1/databases/{databaseId}/grids/tables/{tableId}/rows/{rowId} HTTP/1.1 -Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Session: -X-Appwrite-Key: <YOUR_API_KEY> -X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.8.x/server-rest/examples/grids/get-table.md b/docs/examples/1.8.x/server-rest/examples/grids/get-table.md deleted file mode 100644 index e562f5c763..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/get-table.md +++ /dev/null @@ -1,5 +0,0 @@ -GET /v1/databases/{databaseId}/grids/tables/{tableId} HTTP/1.1 -Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.8.x/server-rest/examples/grids/increment-row-column.md b/docs/examples/1.8.x/server-rest/examples/grids/increment-row-column.md deleted file mode 100644 index 4501951530..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/increment-row-column.md +++ /dev/null @@ -1,11 +0,0 @@ -PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/rows/{rowId}/{column}/increment HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Key: <YOUR_API_KEY> - -{ - "value": 0, - "max": 0 -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/list-columns.md b/docs/examples/1.8.x/server-rest/examples/grids/list-columns.md deleted file mode 100644 index 82859eaabd..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/list-columns.md +++ /dev/null @@ -1,5 +0,0 @@ -GET /v1/databases/{databaseId}/grids/tables/{tableId}/columns HTTP/1.1 -Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.8.x/server-rest/examples/grids/list-databases.md b/docs/examples/1.8.x/server-rest/examples/grids/list-databases.md deleted file mode 100644 index 3b9530eec4..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/list-databases.md +++ /dev/null @@ -1,5 +0,0 @@ -GET /v1/databases HTTP/1.1 -Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.8.x/server-rest/examples/grids/list-indexes.md b/docs/examples/1.8.x/server-rest/examples/grids/list-indexes.md deleted file mode 100644 index 847b2342fe..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/list-indexes.md +++ /dev/null @@ -1,5 +0,0 @@ -GET /v1/databases/{databaseId}/grids/tables/{tableId}/indexes HTTP/1.1 -Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.8.x/server-rest/examples/grids/list-rows.md b/docs/examples/1.8.x/server-rest/examples/grids/list-rows.md deleted file mode 100644 index d22624083f..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/list-rows.md +++ /dev/null @@ -1,7 +0,0 @@ -GET /v1/databases/{databaseId}/grids/tables/{tableId}/rows HTTP/1.1 -Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Session: -X-Appwrite-Key: <YOUR_API_KEY> -X-Appwrite-JWT: <YOUR_JWT> diff --git a/docs/examples/1.8.x/server-rest/examples/grids/list-tables.md b/docs/examples/1.8.x/server-rest/examples/grids/list-tables.md deleted file mode 100644 index d3a4230165..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/list-tables.md +++ /dev/null @@ -1,5 +0,0 @@ -GET /v1/databases/{databaseId}/grids/tables HTTP/1.1 -Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.8.x/server-rest/examples/grids/update-boolean-column.md b/docs/examples/1.8.x/server-rest/examples/grids/update-boolean-column.md deleted file mode 100644 index 4327743a81..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/update-boolean-column.md +++ /dev/null @@ -1,12 +0,0 @@ -PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/columns/boolean/{key} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Key: <YOUR_API_KEY> - -{ - "required": false, - "default": false, - "newKey": -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/update-database.md b/docs/examples/1.8.x/server-rest/examples/grids/update-database.md deleted file mode 100644 index d57ad48927..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/update-database.md +++ /dev/null @@ -1,11 +0,0 @@ -PUT /v1/databases/{databaseId} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Key: <YOUR_API_KEY> - -{ - "name": "<NAME>", - "enabled": false -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/update-datetime-column.md b/docs/examples/1.8.x/server-rest/examples/grids/update-datetime-column.md deleted file mode 100644 index bbdc0c3bc4..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/update-datetime-column.md +++ /dev/null @@ -1,12 +0,0 @@ -PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/columns/datetime/{key} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Key: <YOUR_API_KEY> - -{ - "required": false, - "default": , - "newKey": -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/update-email-column.md b/docs/examples/1.8.x/server-rest/examples/grids/update-email-column.md deleted file mode 100644 index b9145a1c33..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/update-email-column.md +++ /dev/null @@ -1,12 +0,0 @@ -PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/columns/email/{key} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Key: <YOUR_API_KEY> - -{ - "required": false, - "default": "email@example.com", - "newKey": -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/update-enum-column.md b/docs/examples/1.8.x/server-rest/examples/grids/update-enum-column.md deleted file mode 100644 index 8d3d6c359f..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/update-enum-column.md +++ /dev/null @@ -1,13 +0,0 @@ -PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/columns/enum/{key} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Key: <YOUR_API_KEY> - -{ - "elements": [], - "required": false, - "default": "<DEFAULT>", - "newKey": -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/update-float-column.md b/docs/examples/1.8.x/server-rest/examples/grids/update-float-column.md deleted file mode 100644 index 5e1a67c6a1..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/update-float-column.md +++ /dev/null @@ -1,14 +0,0 @@ -PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/columns/float/{key} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Key: <YOUR_API_KEY> - -{ - "required": false, - "min": 0, - "max": 0, - "default": 0, - "newKey": -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/update-integer-column.md b/docs/examples/1.8.x/server-rest/examples/grids/update-integer-column.md deleted file mode 100644 index f45fbf278f..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/update-integer-column.md +++ /dev/null @@ -1,14 +0,0 @@ -PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/columns/integer/{key} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Key: <YOUR_API_KEY> - -{ - "required": false, - "min": 0, - "max": 0, - "default": 0, - "newKey": -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/update-ip-column.md b/docs/examples/1.8.x/server-rest/examples/grids/update-ip-column.md deleted file mode 100644 index 5080aaab25..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/update-ip-column.md +++ /dev/null @@ -1,12 +0,0 @@ -PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/columns/ip/{key} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Key: <YOUR_API_KEY> - -{ - "required": false, - "default": , - "newKey": -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/update-relationship-column.md b/docs/examples/1.8.x/server-rest/examples/grids/update-relationship-column.md deleted file mode 100644 index d5d188ced4..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/update-relationship-column.md +++ /dev/null @@ -1,11 +0,0 @@ -PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/columns/{key}/relationship HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Key: <YOUR_API_KEY> - -{ - "onDelete": "cascade", - "newKey": -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/update-row.md b/docs/examples/1.8.x/server-rest/examples/grids/update-row.md deleted file mode 100644 index 015fa8faf1..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/update-row.md +++ /dev/null @@ -1,13 +0,0 @@ -PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/rows/{rowId} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Session: -X-Appwrite-Key: <YOUR_API_KEY> -X-Appwrite-JWT: <YOUR_JWT> - -{ - "data": {}, - "permissions": ["read(\"any\")"] -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/update-rows.md b/docs/examples/1.8.x/server-rest/examples/grids/update-rows.md deleted file mode 100644 index eb5b77bb31..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/update-rows.md +++ /dev/null @@ -1,11 +0,0 @@ -PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/rows HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Key: <YOUR_API_KEY> - -{ - "data": {}, - "queries": [] -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/update-string-column.md b/docs/examples/1.8.x/server-rest/examples/grids/update-string-column.md deleted file mode 100644 index eda416a4d9..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/update-string-column.md +++ /dev/null @@ -1,13 +0,0 @@ -PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/columns/string/{key} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Key: <YOUR_API_KEY> - -{ - "required": false, - "default": "<DEFAULT>", - "size": 1, - "newKey": -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/update-table.md b/docs/examples/1.8.x/server-rest/examples/grids/update-table.md deleted file mode 100644 index 02d68944f9..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/update-table.md +++ /dev/null @@ -1,13 +0,0 @@ -PUT /v1/databases/{databaseId}/grids/tables/{tableId} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Key: <YOUR_API_KEY> - -{ - "name": "<NAME>", - "permissions": ["read(\"any\")"], - "rowSecurity": false, - "enabled": false -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/update-url-column.md b/docs/examples/1.8.x/server-rest/examples/grids/update-url-column.md deleted file mode 100644 index 4e0796887a..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/update-url-column.md +++ /dev/null @@ -1,12 +0,0 @@ -PATCH /v1/databases/{databaseId}/grids/tables/{tableId}/columns/url/{key} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Key: <YOUR_API_KEY> - -{ - "required": false, - "default": "https://example.com", - "newKey": -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/upsert-row.md b/docs/examples/1.8.x/server-rest/examples/grids/upsert-row.md deleted file mode 100644 index c461d7c981..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/upsert-row.md +++ /dev/null @@ -1,13 +0,0 @@ -PUT /v1/databases/{databaseId}/grids/tables/{tableId}/rows/{rowId} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Session: -X-Appwrite-Key: <YOUR_API_KEY> -X-Appwrite-JWT: <YOUR_JWT> - -{ - "data": {}, - "permissions": ["read(\"any\")"] -} diff --git a/docs/examples/1.8.x/server-rest/examples/grids/upsert-rows.md b/docs/examples/1.8.x/server-rest/examples/grids/upsert-rows.md deleted file mode 100644 index 5d9446550f..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/grids/upsert-rows.md +++ /dev/null @@ -1,10 +0,0 @@ -PUT /v1/databases/{databaseId}/grids/tables/{tableId}/rows HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Key: <YOUR_API_KEY> - -{ - "rows": [] -} diff --git a/docs/examples/1.8.x/server-rest/examples/health/get-d-b.md b/docs/examples/1.8.x/server-rest/examples/health/get-db.md similarity index 100% rename from docs/examples/1.8.x/server-rest/examples/health/get-d-b.md rename to docs/examples/1.8.x/server-rest/examples/health/get-db.md diff --git a/docs/examples/1.8.x/server-rest/examples/locale/list-countries-e-u.md b/docs/examples/1.8.x/server-rest/examples/locale/list-countries-eu.md similarity index 100% rename from docs/examples/1.8.x/server-rest/examples/locale/list-countries-e-u.md rename to docs/examples/1.8.x/server-rest/examples/locale/list-countries-eu.md diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-a-p-n-s-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-a-p-n-s-provider.md deleted file mode 100644 index 47d3b98615..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/messaging/create-a-p-n-s-provider.md +++ /dev/null @@ -1,17 +0,0 @@ -POST /v1/messaging/providers/apns HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Key: <YOUR_API_KEY> - -{ - "providerId": "<PROVIDER_ID>", - "name": "<NAME>", - "authKey": "<AUTH_KEY>", - "authKeyId": "<AUTH_KEY_ID>", - "teamId": "<TEAM_ID>", - "bundleId": "<BUNDLE_ID>", - "sandbox": false, - "enabled": false -} diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-f-c-m-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-f-c-m-provider.md deleted file mode 100644 index f234c80e6e..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/messaging/create-f-c-m-provider.md +++ /dev/null @@ -1,13 +0,0 @@ -POST /v1/messaging/providers/fcm HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Key: <YOUR_API_KEY> - -{ - "providerId": "<PROVIDER_ID>", - "name": "<NAME>", - "serviceAccountJSON": {}, - "enabled": false -} diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-msg91provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-msg-91-provider.md similarity index 100% rename from docs/examples/1.8.x/server-rest/examples/messaging/create-msg91provider.md rename to docs/examples/1.8.x/server-rest/examples/messaging/create-msg-91-provider.md diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-s-m-s.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-s-m-s.md deleted file mode 100644 index 82926e2a82..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/messaging/create-s-m-s.md +++ /dev/null @@ -1,16 +0,0 @@ -POST /v1/messaging/messages/sms HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Key: <YOUR_API_KEY> - -{ - "messageId": "<MESSAGE_ID>", - "content": "<CONTENT>", - "topics": [], - "users": [], - "targets": [], - "draft": false, - "scheduledAt": -} diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/create-s-m-t-p-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/create-s-m-t-p-provider.md deleted file mode 100644 index 5963ee474c..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/messaging/create-s-m-t-p-provider.md +++ /dev/null @@ -1,23 +0,0 @@ -POST /v1/messaging/providers/smtp HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Key: <YOUR_API_KEY> - -{ - "providerId": "<PROVIDER_ID>", - "name": "<NAME>", - "host": "<HOST>", - "port": 1, - "username": "<USERNAME>", - "password": "<PASSWORD>", - "encryption": "none", - "autoTLS": false, - "mailer": "<MAILER>", - "fromName": "<FROM_NAME>", - "fromEmail": "email@example.com", - "replyToName": "<REPLY_TO_NAME>", - "replyToEmail": "email@example.com", - "enabled": false -} diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/update-a-p-n-s-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/update-a-p-n-s-provider.md deleted file mode 100644 index a55c593039..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/messaging/update-a-p-n-s-provider.md +++ /dev/null @@ -1,16 +0,0 @@ -PATCH /v1/messaging/providers/apns/{providerId} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Key: <YOUR_API_KEY> - -{ - "name": "<NAME>", - "enabled": false, - "authKey": "<AUTH_KEY>", - "authKeyId": "<AUTH_KEY_ID>", - "teamId": "<TEAM_ID>", - "bundleId": "<BUNDLE_ID>", - "sandbox": false -} diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/update-f-c-m-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/update-f-c-m-provider.md deleted file mode 100644 index d485981c5b..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/messaging/update-f-c-m-provider.md +++ /dev/null @@ -1,12 +0,0 @@ -PATCH /v1/messaging/providers/fcm/{providerId} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Key: <YOUR_API_KEY> - -{ - "name": "<NAME>", - "enabled": false, - "serviceAccountJSON": {} -} diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/update-msg91provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/update-msg-91-provider.md similarity index 100% rename from docs/examples/1.8.x/server-rest/examples/messaging/update-msg91provider.md rename to docs/examples/1.8.x/server-rest/examples/messaging/update-msg-91-provider.md diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/update-s-m-s.md b/docs/examples/1.8.x/server-rest/examples/messaging/update-s-m-s.md deleted file mode 100644 index a917e270f7..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/messaging/update-s-m-s.md +++ /dev/null @@ -1,15 +0,0 @@ -PATCH /v1/messaging/messages/sms/{messageId} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Key: <YOUR_API_KEY> - -{ - "topics": [], - "users": [], - "targets": [], - "content": "<CONTENT>", - "draft": false, - "scheduledAt": -} diff --git a/docs/examples/1.8.x/server-rest/examples/messaging/update-s-m-t-p-provider.md b/docs/examples/1.8.x/server-rest/examples/messaging/update-s-m-t-p-provider.md deleted file mode 100644 index 9fc45d6726..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/messaging/update-s-m-t-p-provider.md +++ /dev/null @@ -1,22 +0,0 @@ -PATCH /v1/messaging/providers/smtp/{providerId} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Key: <YOUR_API_KEY> - -{ - "name": "<NAME>", - "host": "<HOST>", - "port": 1, - "username": "<USERNAME>", - "password": "<PASSWORD>", - "encryption": "none", - "autoTLS": false, - "mailer": "<MAILER>", - "fromName": "<FROM_NAME>", - "fromEmail": "email@example.com", - "replyToName": "<REPLY_TO_NAME>", - "replyToEmail": "<REPLY_TO_EMAIL>", - "enabled": false -} diff --git a/docs/examples/1.8.x/server-rest/examples/users/create-argon2user.md b/docs/examples/1.8.x/server-rest/examples/users/create-argon-2-user.md similarity index 100% rename from docs/examples/1.8.x/server-rest/examples/users/create-argon2user.md rename to docs/examples/1.8.x/server-rest/examples/users/create-argon-2-user.md diff --git a/docs/examples/1.8.x/server-rest/examples/users/create-j-w-t.md b/docs/examples/1.8.x/server-rest/examples/users/create-jwt.md similarity index 100% rename from docs/examples/1.8.x/server-rest/examples/users/create-j-w-t.md rename to docs/examples/1.8.x/server-rest/examples/users/create-jwt.md diff --git a/docs/examples/1.8.x/server-rest/examples/users/create-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-rest/examples/users/create-m-f-a-recovery-codes.md deleted file mode 100644 index bef314b585..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/users/create-m-f-a-recovery-codes.md +++ /dev/null @@ -1,7 +0,0 @@ -PATCH /v1/users/{userId}/mfa/recovery-codes HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.8.x/server-rest/examples/users/create-m-d5user.md b/docs/examples/1.8.x/server-rest/examples/users/create-md-5-user.md similarity index 100% rename from docs/examples/1.8.x/server-rest/examples/users/create-m-d5user.md rename to docs/examples/1.8.x/server-rest/examples/users/create-md-5-user.md diff --git a/docs/examples/1.8.x/server-rest/examples/users/create-p-h-pass-user.md b/docs/examples/1.8.x/server-rest/examples/users/create-ph-pass-user.md similarity index 100% rename from docs/examples/1.8.x/server-rest/examples/users/create-p-h-pass-user.md rename to docs/examples/1.8.x/server-rest/examples/users/create-ph-pass-user.md diff --git a/docs/examples/1.8.x/server-rest/examples/users/create-s-h-a-user.md b/docs/examples/1.8.x/server-rest/examples/users/create-sha-user.md similarity index 100% rename from docs/examples/1.8.x/server-rest/examples/users/create-s-h-a-user.md rename to docs/examples/1.8.x/server-rest/examples/users/create-sha-user.md diff --git a/docs/examples/1.8.x/server-rest/examples/users/delete-m-f-a-authenticator.md b/docs/examples/1.8.x/server-rest/examples/users/delete-m-f-a-authenticator.md deleted file mode 100644 index 92d51fefb5..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/users/delete-m-f-a-authenticator.md +++ /dev/null @@ -1,7 +0,0 @@ -DELETE /v1/users/{userId}/mfa/authenticators/{type} HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.8.x/server-rest/examples/users/get-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-rest/examples/users/get-m-f-a-recovery-codes.md deleted file mode 100644 index 1f561f02ad..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/users/get-m-f-a-recovery-codes.md +++ /dev/null @@ -1,5 +0,0 @@ -GET /v1/users/{userId}/mfa/recovery-codes HTTP/1.1 -Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.8.x/server-rest/examples/users/list-m-f-a-factors.md b/docs/examples/1.8.x/server-rest/examples/users/list-m-f-a-factors.md deleted file mode 100644 index eb2d3691de..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/users/list-m-f-a-factors.md +++ /dev/null @@ -1,5 +0,0 @@ -GET /v1/users/{userId}/mfa/factors HTTP/1.1 -Host: cloud.appwrite.io -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Key: <YOUR_API_KEY> diff --git a/docs/examples/1.8.x/server-rest/examples/users/update-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-rest/examples/users/update-m-f-a-recovery-codes.md deleted file mode 100644 index 91e657aec7..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/users/update-m-f-a-recovery-codes.md +++ /dev/null @@ -1,7 +0,0 @@ -PUT /v1/users/{userId}/mfa/recovery-codes HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Key: <YOUR_API_KEY> - diff --git a/docs/examples/1.8.x/server-rest/examples/users/update-m-f-a.md b/docs/examples/1.8.x/server-rest/examples/users/update-m-f-a.md deleted file mode 100644 index 8a5d1f5052..0000000000 --- a/docs/examples/1.8.x/server-rest/examples/users/update-m-f-a.md +++ /dev/null @@ -1,10 +0,0 @@ -PATCH /v1/users/{userId}/mfa HTTP/1.1 -Host: cloud.appwrite.io -Content-Type: application/json -X-Appwrite-Response-Format: 1.8.0 -X-Appwrite-Project: <YOUR_PROJECT_ID> -X-Appwrite-Key: <YOUR_API_KEY> - -{ - "mfa": false -} diff --git a/docs/examples/1.8.x/server-ruby/examples/account/create-j-w-t.md b/docs/examples/1.8.x/server-ruby/examples/account/create-jwt.md similarity index 100% rename from docs/examples/1.8.x/server-ruby/examples/account/create-j-w-t.md rename to docs/examples/1.8.x/server-ruby/examples/account/create-jwt.md diff --git a/docs/examples/1.8.x/server-ruby/examples/account/create-m-f-a-authenticator.md b/docs/examples/1.8.x/server-ruby/examples/account/create-m-f-a-authenticator.md deleted file mode 100644 index a3cc71cd8a..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/account/create-m-f-a-authenticator.md +++ /dev/null @@ -1,15 +0,0 @@ -require 'appwrite' - -include Appwrite -include Appwrite::Enums - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_session('') # The user session to authenticate with - -account = Account.new(client) - -result = account.create_mfa_authenticator( - type: AuthenticatorType::TOTP -) diff --git a/docs/examples/1.8.x/server-ruby/examples/account/create-m-f-a-challenge.md b/docs/examples/1.8.x/server-ruby/examples/account/create-m-f-a-challenge.md deleted file mode 100644 index ba34779ad2..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/account/create-m-f-a-challenge.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -include Appwrite -include Appwrite::Enums - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - -account = Account.new(client) - -result = account.create_mfa_challenge( - factor: AuthenticationFactor::EMAIL -) diff --git a/docs/examples/1.8.x/server-ruby/examples/account/create-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-ruby/examples/account/create-m-f-a-recovery-codes.md deleted file mode 100644 index db91cf533d..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/account/create-m-f-a-recovery-codes.md +++ /dev/null @@ -1,12 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_session('') # The user session to authenticate with - -account = Account.new(client) - -result = account.create_mfa_recovery_codes() diff --git a/docs/examples/1.8.x/server-ruby/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.8.x/server-ruby/examples/account/create-magic-url-token.md similarity index 100% rename from docs/examples/1.8.x/server-ruby/examples/account/create-magic-u-r-l-token.md rename to docs/examples/1.8.x/server-ruby/examples/account/create-magic-url-token.md diff --git a/docs/examples/1.8.x/server-ruby/examples/account/create-o-auth2token.md b/docs/examples/1.8.x/server-ruby/examples/account/create-o-auth-2-token.md similarity index 100% rename from docs/examples/1.8.x/server-ruby/examples/account/create-o-auth2token.md rename to docs/examples/1.8.x/server-ruby/examples/account/create-o-auth-2-token.md diff --git a/docs/examples/1.8.x/server-ruby/examples/account/delete-m-f-a-authenticator.md b/docs/examples/1.8.x/server-ruby/examples/account/delete-m-f-a-authenticator.md deleted file mode 100644 index 832ff6ae13..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/account/delete-m-f-a-authenticator.md +++ /dev/null @@ -1,15 +0,0 @@ -require 'appwrite' - -include Appwrite -include Appwrite::Enums - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_session('') # The user session to authenticate with - -account = Account.new(client) - -result = account.delete_mfa_authenticator( - type: AuthenticatorType::TOTP -) diff --git a/docs/examples/1.8.x/server-ruby/examples/account/get-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-ruby/examples/account/get-m-f-a-recovery-codes.md deleted file mode 100644 index 26ffa9d61d..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/account/get-m-f-a-recovery-codes.md +++ /dev/null @@ -1,12 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_session('') # The user session to authenticate with - -account = Account.new(client) - -result = account.get_mfa_recovery_codes() diff --git a/docs/examples/1.8.x/server-ruby/examples/account/list-m-f-a-factors.md b/docs/examples/1.8.x/server-ruby/examples/account/list-m-f-a-factors.md deleted file mode 100644 index 460ac87ac1..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/account/list-m-f-a-factors.md +++ /dev/null @@ -1,12 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_session('') # The user session to authenticate with - -account = Account.new(client) - -result = account.list_mfa_factors() diff --git a/docs/examples/1.8.x/server-ruby/examples/account/update-m-f-a-authenticator.md b/docs/examples/1.8.x/server-ruby/examples/account/update-m-f-a-authenticator.md deleted file mode 100644 index 5ff2adcbdc..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/account/update-m-f-a-authenticator.md +++ /dev/null @@ -1,16 +0,0 @@ -require 'appwrite' - -include Appwrite -include Appwrite::Enums - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_session('') # The user session to authenticate with - -account = Account.new(client) - -result = account.update_mfa_authenticator( - type: AuthenticatorType::TOTP, - otp: '<OTP>' -) diff --git a/docs/examples/1.8.x/server-ruby/examples/account/update-m-f-a-challenge.md b/docs/examples/1.8.x/server-ruby/examples/account/update-m-f-a-challenge.md deleted file mode 100644 index 2f4b61d581..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/account/update-m-f-a-challenge.md +++ /dev/null @@ -1,15 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_session('') # The user session to authenticate with - -account = Account.new(client) - -result = account.update_mfa_challenge( - challenge_id: '<CHALLENGE_ID>', - otp: '<OTP>' -) diff --git a/docs/examples/1.8.x/server-ruby/examples/account/update-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-ruby/examples/account/update-m-f-a-recovery-codes.md deleted file mode 100644 index ad1f2e5f0e..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/account/update-m-f-a-recovery-codes.md +++ /dev/null @@ -1,12 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_session('') # The user session to authenticate with - -account = Account.new(client) - -result = account.update_mfa_recovery_codes() diff --git a/docs/examples/1.8.x/server-ruby/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.8.x/server-ruby/examples/account/update-magic-url-session.md similarity index 100% rename from docs/examples/1.8.x/server-ruby/examples/account/update-magic-u-r-l-session.md rename to docs/examples/1.8.x/server-ruby/examples/account/update-magic-url-session.md diff --git a/docs/examples/1.8.x/server-ruby/examples/account/update-m-f-a.md b/docs/examples/1.8.x/server-ruby/examples/account/update-mfa.md similarity index 100% rename from docs/examples/1.8.x/server-ruby/examples/account/update-m-f-a.md rename to docs/examples/1.8.x/server-ruby/examples/account/update-mfa.md diff --git a/docs/examples/1.8.x/server-ruby/examples/avatars/get-q-r.md b/docs/examples/1.8.x/server-ruby/examples/avatars/get-qr.md similarity index 100% rename from docs/examples/1.8.x/server-ruby/examples/avatars/get-q-r.md rename to docs/examples/1.8.x/server-ruby/examples/avatars/get-qr.md diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-boolean-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-boolean-column.md deleted file mode 100644 index 592f6028aa..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/create-boolean-column.md +++ /dev/null @@ -1,19 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids.new(client) - -result = grids.create_boolean_column( - database_id: '<DATABASE_ID>', - table_id: '<TABLE_ID>', - key: '', - required: false, - default: false, # optional - array: false # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-database.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-database.md deleted file mode 100644 index db94d2386e..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/create-database.md +++ /dev/null @@ -1,16 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids.new(client) - -result = grids.create_database( - database_id: '<DATABASE_ID>', - name: '<NAME>', - enabled: false # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-datetime-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-datetime-column.md deleted file mode 100644 index 4bc97b94ae..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/create-datetime-column.md +++ /dev/null @@ -1,19 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids.new(client) - -result = grids.create_datetime_column( - database_id: '<DATABASE_ID>', - table_id: '<TABLE_ID>', - key: '', - required: false, - default: '', # optional - array: false # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-email-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-email-column.md deleted file mode 100644 index 4a1687d405..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/create-email-column.md +++ /dev/null @@ -1,19 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids.new(client) - -result = grids.create_email_column( - database_id: '<DATABASE_ID>', - table_id: '<TABLE_ID>', - key: '', - required: false, - default: 'email@example.com', # optional - array: false # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-enum-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-enum-column.md deleted file mode 100644 index 2a9b6de5de..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/create-enum-column.md +++ /dev/null @@ -1,20 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids.new(client) - -result = grids.create_enum_column( - database_id: '<DATABASE_ID>', - table_id: '<TABLE_ID>', - key: '', - elements: [], - required: false, - default: '<DEFAULT>', # optional - array: false # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-float-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-float-column.md deleted file mode 100644 index 0cd3bee568..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/create-float-column.md +++ /dev/null @@ -1,21 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids.new(client) - -result = grids.create_float_column( - database_id: '<DATABASE_ID>', - table_id: '<TABLE_ID>', - key: '', - required: false, - min: null, # optional - max: null, # optional - default: null, # optional - array: false # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-index.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-index.md deleted file mode 100644 index 7ef4c2c790..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/create-index.md +++ /dev/null @@ -1,21 +0,0 @@ -require 'appwrite' - -include Appwrite -include Appwrite::Enums - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids.new(client) - -result = grids.create_index( - database_id: '<DATABASE_ID>', - table_id: '<TABLE_ID>', - key: '', - type: IndexType::KEY, - columns: [], - orders: [], # optional - lengths: [] # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-integer-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-integer-column.md deleted file mode 100644 index ae7c416965..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/create-integer-column.md +++ /dev/null @@ -1,21 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids.new(client) - -result = grids.create_integer_column( - database_id: '<DATABASE_ID>', - table_id: '<TABLE_ID>', - key: '', - required: false, - min: null, # optional - max: null, # optional - default: null, # optional - array: false # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-ip-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-ip-column.md deleted file mode 100644 index e407abaee8..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/create-ip-column.md +++ /dev/null @@ -1,19 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids.new(client) - -result = grids.create_ip_column( - database_id: '<DATABASE_ID>', - table_id: '<TABLE_ID>', - key: '', - required: false, - default: '', # optional - array: false # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-relationship-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-relationship-column.md deleted file mode 100644 index 3aecd5757d..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/create-relationship-column.md +++ /dev/null @@ -1,22 +0,0 @@ -require 'appwrite' - -include Appwrite -include Appwrite::Enums - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids.new(client) - -result = grids.create_relationship_column( - database_id: '<DATABASE_ID>', - table_id: '<TABLE_ID>', - related_table_id: '<RELATED_TABLE_ID>', - type: RelationshipType::ONETOONE, - two_way: false, # optional - key: '', # optional - two_way_key: '', # optional - on_delete: RelationMutate::CASCADE # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-row.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-row.md deleted file mode 100644 index 4c4433bd10..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/create-row.md +++ /dev/null @@ -1,18 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_session('') # The user session to authenticate with - -grids = Grids.new(client) - -result = grids.create_row( - database_id: '<DATABASE_ID>', - table_id: '<TABLE_ID>', - row_id: '<ROW_ID>', - data: {}, - permissions: ["read("any")"] # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-rows.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-rows.md deleted file mode 100644 index 1e619d25ce..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/create-rows.md +++ /dev/null @@ -1,16 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids.new(client) - -result = grids.create_rows( - database_id: '<DATABASE_ID>', - table_id: '<TABLE_ID>', - rows: [] -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-string-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-string-column.md deleted file mode 100644 index 7808c6cfa2..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/create-string-column.md +++ /dev/null @@ -1,21 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids.new(client) - -result = grids.create_string_column( - database_id: '<DATABASE_ID>', - table_id: '<TABLE_ID>', - key: '', - size: 1, - required: false, - default: '<DEFAULT>', # optional - array: false, # optional - encrypt: false # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-table.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-table.md deleted file mode 100644 index ef3bc4b5cf..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/create-table.md +++ /dev/null @@ -1,19 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids.new(client) - -result = grids.create_table( - database_id: '<DATABASE_ID>', - table_id: '<TABLE_ID>', - name: '<NAME>', - permissions: ["read("any")"], # optional - row_security: false, # optional - enabled: false # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/create-url-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/create-url-column.md deleted file mode 100644 index 55ff12a1c0..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/create-url-column.md +++ /dev/null @@ -1,19 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids.new(client) - -result = grids.create_url_column( - database_id: '<DATABASE_ID>', - table_id: '<TABLE_ID>', - key: '', - required: false, - default: 'https://example.com', # optional - array: false # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/decrement-row-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/decrement-row-column.md deleted file mode 100644 index fcbc6efedc..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/decrement-row-column.md +++ /dev/null @@ -1,19 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids.new(client) - -result = grids.decrement_row_column( - database_id: '<DATABASE_ID>', - table_id: '<TABLE_ID>', - row_id: '<ROW_ID>', - column: '', - value: null, # optional - min: null # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/delete-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/delete-column.md deleted file mode 100644 index 79cf84f3fd..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/delete-column.md +++ /dev/null @@ -1,16 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids.new(client) - -result = grids.delete_column( - database_id: '<DATABASE_ID>', - table_id: '<TABLE_ID>', - key: '' -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/delete-database.md b/docs/examples/1.8.x/server-ruby/examples/grids/delete-database.md deleted file mode 100644 index 54d3660b9f..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/delete-database.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids.new(client) - -result = grids.delete_database( - database_id: '<DATABASE_ID>' -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/delete-index.md b/docs/examples/1.8.x/server-ruby/examples/grids/delete-index.md deleted file mode 100644 index 3968cfb675..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/delete-index.md +++ /dev/null @@ -1,16 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids.new(client) - -result = grids.delete_index( - database_id: '<DATABASE_ID>', - table_id: '<TABLE_ID>', - key: '' -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/delete-row.md b/docs/examples/1.8.x/server-ruby/examples/grids/delete-row.md deleted file mode 100644 index 183f02c5d3..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/delete-row.md +++ /dev/null @@ -1,16 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_session('') # The user session to authenticate with - -grids = Grids.new(client) - -result = grids.delete_row( - database_id: '<DATABASE_ID>', - table_id: '<TABLE_ID>', - row_id: '<ROW_ID>' -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/delete-rows.md b/docs/examples/1.8.x/server-ruby/examples/grids/delete-rows.md deleted file mode 100644 index 560d63b033..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/delete-rows.md +++ /dev/null @@ -1,16 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids.new(client) - -result = grids.delete_rows( - database_id: '<DATABASE_ID>', - table_id: '<TABLE_ID>', - queries: [] # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/delete-table.md b/docs/examples/1.8.x/server-ruby/examples/grids/delete-table.md deleted file mode 100644 index d0c15da17c..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/delete-table.md +++ /dev/null @@ -1,15 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids.new(client) - -result = grids.delete_table( - database_id: '<DATABASE_ID>', - table_id: '<TABLE_ID>' -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/get-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/get-column.md deleted file mode 100644 index 6288772e65..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/get-column.md +++ /dev/null @@ -1,16 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids.new(client) - -result = grids.get_column( - database_id: '<DATABASE_ID>', - table_id: '<TABLE_ID>', - key: '' -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/get-database.md b/docs/examples/1.8.x/server-ruby/examples/grids/get-database.md deleted file mode 100644 index 49a5cde300..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/get-database.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids.new(client) - -result = grids.get_database( - database_id: '<DATABASE_ID>' -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/get-index.md b/docs/examples/1.8.x/server-ruby/examples/grids/get-index.md deleted file mode 100644 index 78a923c0ff..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/get-index.md +++ /dev/null @@ -1,16 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids.new(client) - -result = grids.get_index( - database_id: '<DATABASE_ID>', - table_id: '<TABLE_ID>', - key: '' -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/get-row.md b/docs/examples/1.8.x/server-ruby/examples/grids/get-row.md deleted file mode 100644 index e8dc2cb6b1..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/get-row.md +++ /dev/null @@ -1,17 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_session('') # The user session to authenticate with - -grids = Grids.new(client) - -result = grids.get_row( - database_id: '<DATABASE_ID>', - table_id: '<TABLE_ID>', - row_id: '<ROW_ID>', - queries: [] # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/get-table.md b/docs/examples/1.8.x/server-ruby/examples/grids/get-table.md deleted file mode 100644 index bafdfe1140..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/get-table.md +++ /dev/null @@ -1,15 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids.new(client) - -result = grids.get_table( - database_id: '<DATABASE_ID>', - table_id: '<TABLE_ID>' -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/increment-row-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/increment-row-column.md deleted file mode 100644 index d09f72080c..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/increment-row-column.md +++ /dev/null @@ -1,19 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids.new(client) - -result = grids.increment_row_column( - database_id: '<DATABASE_ID>', - table_id: '<TABLE_ID>', - row_id: '<ROW_ID>', - column: '', - value: null, # optional - max: null # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/list-columns.md b/docs/examples/1.8.x/server-ruby/examples/grids/list-columns.md deleted file mode 100644 index 343775300b..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/list-columns.md +++ /dev/null @@ -1,16 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids.new(client) - -result = grids.list_columns( - database_id: '<DATABASE_ID>', - table_id: '<TABLE_ID>', - queries: [] # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/list-databases.md b/docs/examples/1.8.x/server-ruby/examples/grids/list-databases.md deleted file mode 100644 index 21e54951ee..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/list-databases.md +++ /dev/null @@ -1,15 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids.new(client) - -result = grids.list_databases( - queries: [], # optional - search: '<SEARCH>' # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/list-indexes.md b/docs/examples/1.8.x/server-ruby/examples/grids/list-indexes.md deleted file mode 100644 index 2229c87249..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/list-indexes.md +++ /dev/null @@ -1,16 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids.new(client) - -result = grids.list_indexes( - database_id: '<DATABASE_ID>', - table_id: '<TABLE_ID>', - queries: [] # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/list-rows.md b/docs/examples/1.8.x/server-ruby/examples/grids/list-rows.md deleted file mode 100644 index 40b7be88a7..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/list-rows.md +++ /dev/null @@ -1,16 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_session('') # The user session to authenticate with - -grids = Grids.new(client) - -result = grids.list_rows( - database_id: '<DATABASE_ID>', - table_id: '<TABLE_ID>', - queries: [] # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/list-tables.md b/docs/examples/1.8.x/server-ruby/examples/grids/list-tables.md deleted file mode 100644 index 69b213d3f3..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/list-tables.md +++ /dev/null @@ -1,16 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids.new(client) - -result = grids.list_tables( - database_id: '<DATABASE_ID>', - queries: [], # optional - search: '<SEARCH>' # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/update-boolean-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-boolean-column.md deleted file mode 100644 index 78055c777f..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/update-boolean-column.md +++ /dev/null @@ -1,19 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids.new(client) - -result = grids.update_boolean_column( - database_id: '<DATABASE_ID>', - table_id: '<TABLE_ID>', - key: '', - required: false, - default: false, - new_key: '' # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/update-database.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-database.md deleted file mode 100644 index 79216c3fd3..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/update-database.md +++ /dev/null @@ -1,16 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids.new(client) - -result = grids.update_database( - database_id: '<DATABASE_ID>', - name: '<NAME>', - enabled: false # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/update-datetime-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-datetime-column.md deleted file mode 100644 index 1737c5a020..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/update-datetime-column.md +++ /dev/null @@ -1,19 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids.new(client) - -result = grids.update_datetime_column( - database_id: '<DATABASE_ID>', - table_id: '<TABLE_ID>', - key: '', - required: false, - default: '', - new_key: '' # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/update-email-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-email-column.md deleted file mode 100644 index bc1f4cd7b6..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/update-email-column.md +++ /dev/null @@ -1,19 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids.new(client) - -result = grids.update_email_column( - database_id: '<DATABASE_ID>', - table_id: '<TABLE_ID>', - key: '', - required: false, - default: 'email@example.com', - new_key: '' # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/update-enum-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-enum-column.md deleted file mode 100644 index 5012002e29..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/update-enum-column.md +++ /dev/null @@ -1,20 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids.new(client) - -result = grids.update_enum_column( - database_id: '<DATABASE_ID>', - table_id: '<TABLE_ID>', - key: '', - elements: [], - required: false, - default: '<DEFAULT>', - new_key: '' # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/update-float-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-float-column.md deleted file mode 100644 index e05037f10c..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/update-float-column.md +++ /dev/null @@ -1,21 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids.new(client) - -result = grids.update_float_column( - database_id: '<DATABASE_ID>', - table_id: '<TABLE_ID>', - key: '', - required: false, - default: null, - min: null, # optional - max: null, # optional - new_key: '' # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/update-integer-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-integer-column.md deleted file mode 100644 index 3ec34bd2f2..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/update-integer-column.md +++ /dev/null @@ -1,21 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids.new(client) - -result = grids.update_integer_column( - database_id: '<DATABASE_ID>', - table_id: '<TABLE_ID>', - key: '', - required: false, - default: null, - min: null, # optional - max: null, # optional - new_key: '' # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/update-ip-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-ip-column.md deleted file mode 100644 index 5394075ae5..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/update-ip-column.md +++ /dev/null @@ -1,19 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids.new(client) - -result = grids.update_ip_column( - database_id: '<DATABASE_ID>', - table_id: '<TABLE_ID>', - key: '', - required: false, - default: '', - new_key: '' # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/update-relationship-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-relationship-column.md deleted file mode 100644 index 2c730048de..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/update-relationship-column.md +++ /dev/null @@ -1,18 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids.new(client) - -result = grids.update_relationship_column( - database_id: '<DATABASE_ID>', - table_id: '<TABLE_ID>', - key: '', - on_delete: RelationMutate::CASCADE, # optional - new_key: '' # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/update-row.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-row.md deleted file mode 100644 index 57dd5cd381..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/update-row.md +++ /dev/null @@ -1,18 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_session('') # The user session to authenticate with - -grids = Grids.new(client) - -result = grids.update_row( - database_id: '<DATABASE_ID>', - table_id: '<TABLE_ID>', - row_id: '<ROW_ID>', - data: {}, # optional - permissions: ["read("any")"] # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/update-rows.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-rows.md deleted file mode 100644 index 602670d67f..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/update-rows.md +++ /dev/null @@ -1,17 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids.new(client) - -result = grids.update_rows( - database_id: '<DATABASE_ID>', - table_id: '<TABLE_ID>', - data: {}, # optional - queries: [] # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/update-string-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-string-column.md deleted file mode 100644 index 09de9ba697..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/update-string-column.md +++ /dev/null @@ -1,20 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids.new(client) - -result = grids.update_string_column( - database_id: '<DATABASE_ID>', - table_id: '<TABLE_ID>', - key: '', - required: false, - default: '<DEFAULT>', - size: 1, # optional - new_key: '' # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/update-table.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-table.md deleted file mode 100644 index 742a0c9829..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/update-table.md +++ /dev/null @@ -1,19 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids.new(client) - -result = grids.update_table( - database_id: '<DATABASE_ID>', - table_id: '<TABLE_ID>', - name: '<NAME>', - permissions: ["read("any")"], # optional - row_security: false, # optional - enabled: false # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/update-url-column.md b/docs/examples/1.8.x/server-ruby/examples/grids/update-url-column.md deleted file mode 100644 index fc3f055708..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/update-url-column.md +++ /dev/null @@ -1,19 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids.new(client) - -result = grids.update_url_column( - database_id: '<DATABASE_ID>', - table_id: '<TABLE_ID>', - key: '', - required: false, - default: 'https://example.com', - new_key: '' # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/upsert-row.md b/docs/examples/1.8.x/server-ruby/examples/grids/upsert-row.md deleted file mode 100644 index 2cf50d92d9..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/upsert-row.md +++ /dev/null @@ -1,18 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_session('') # The user session to authenticate with - -grids = Grids.new(client) - -result = grids.upsert_row( - database_id: '<DATABASE_ID>', - table_id: '<TABLE_ID>', - row_id: '<ROW_ID>', - data: {}, # optional - permissions: ["read("any")"] # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/grids/upsert-rows.md b/docs/examples/1.8.x/server-ruby/examples/grids/upsert-rows.md deleted file mode 100644 index af3a7e1dbf..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/grids/upsert-rows.md +++ /dev/null @@ -1,16 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_key('<YOUR_API_KEY>') # Your secret API key - -grids = Grids.new(client) - -result = grids.upsert_rows( - database_id: '<DATABASE_ID>', - table_id: '<TABLE_ID>', - rows: [] -) diff --git a/docs/examples/1.8.x/server-ruby/examples/health/get-d-b.md b/docs/examples/1.8.x/server-ruby/examples/health/get-db.md similarity index 100% rename from docs/examples/1.8.x/server-ruby/examples/health/get-d-b.md rename to docs/examples/1.8.x/server-ruby/examples/health/get-db.md diff --git a/docs/examples/1.8.x/server-ruby/examples/locale/list-countries-e-u.md b/docs/examples/1.8.x/server-ruby/examples/locale/list-countries-eu.md similarity index 100% rename from docs/examples/1.8.x/server-ruby/examples/locale/list-countries-e-u.md rename to docs/examples/1.8.x/server-ruby/examples/locale/list-countries-eu.md diff --git a/docs/examples/1.8.x/server-ruby/examples/messaging/create-a-p-n-s-provider.md b/docs/examples/1.8.x/server-ruby/examples/messaging/create-a-p-n-s-provider.md deleted file mode 100644 index a280340847..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/messaging/create-a-p-n-s-provider.md +++ /dev/null @@ -1,21 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_key('<YOUR_API_KEY>') # Your secret API key - -messaging = Messaging.new(client) - -result = messaging.create_apns_provider( - provider_id: '<PROVIDER_ID>', - name: '<NAME>', - auth_key: '<AUTH_KEY>', # optional - auth_key_id: '<AUTH_KEY_ID>', # optional - team_id: '<TEAM_ID>', # optional - bundle_id: '<BUNDLE_ID>', # optional - sandbox: false, # optional - enabled: false # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/messaging/create-f-c-m-provider.md b/docs/examples/1.8.x/server-ruby/examples/messaging/create-f-c-m-provider.md deleted file mode 100644 index a1e8b67b51..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/messaging/create-f-c-m-provider.md +++ /dev/null @@ -1,17 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_key('<YOUR_API_KEY>') # Your secret API key - -messaging = Messaging.new(client) - -result = messaging.create_fcm_provider( - provider_id: '<PROVIDER_ID>', - name: '<NAME>', - service_account_json: {}, # optional - enabled: false # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/messaging/create-msg91provider.md b/docs/examples/1.8.x/server-ruby/examples/messaging/create-msg-91-provider.md similarity index 100% rename from docs/examples/1.8.x/server-ruby/examples/messaging/create-msg91provider.md rename to docs/examples/1.8.x/server-ruby/examples/messaging/create-msg-91-provider.md diff --git a/docs/examples/1.8.x/server-ruby/examples/messaging/create-s-m-s.md b/docs/examples/1.8.x/server-ruby/examples/messaging/create-s-m-s.md deleted file mode 100644 index 901ec40c05..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/messaging/create-s-m-s.md +++ /dev/null @@ -1,20 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_key('<YOUR_API_KEY>') # Your secret API key - -messaging = Messaging.new(client) - -result = messaging.create_sms( - message_id: '<MESSAGE_ID>', - content: '<CONTENT>', - topics: [], # optional - users: [], # optional - targets: [], # optional - draft: false, # optional - scheduled_at: '' # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/messaging/create-s-m-t-p-provider.md b/docs/examples/1.8.x/server-ruby/examples/messaging/create-s-m-t-p-provider.md deleted file mode 100644 index b062e574b4..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/messaging/create-s-m-t-p-provider.md +++ /dev/null @@ -1,27 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_key('<YOUR_API_KEY>') # Your secret API key - -messaging = Messaging.new(client) - -result = messaging.create_smtp_provider( - provider_id: '<PROVIDER_ID>', - name: '<NAME>', - host: '<HOST>', - port: 1, # optional - username: '<USERNAME>', # optional - password: '<PASSWORD>', # optional - encryption: SmtpEncryption::NONE, # optional - auto_tls: false, # optional - mailer: '<MAILER>', # optional - from_name: '<FROM_NAME>', # optional - from_email: 'email@example.com', # optional - reply_to_name: '<REPLY_TO_NAME>', # optional - reply_to_email: 'email@example.com', # optional - enabled: false # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/messaging/update-a-p-n-s-provider.md b/docs/examples/1.8.x/server-ruby/examples/messaging/update-a-p-n-s-provider.md deleted file mode 100644 index b19704aaed..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/messaging/update-a-p-n-s-provider.md +++ /dev/null @@ -1,21 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_key('<YOUR_API_KEY>') # Your secret API key - -messaging = Messaging.new(client) - -result = messaging.update_apns_provider( - provider_id: '<PROVIDER_ID>', - name: '<NAME>', # optional - enabled: false, # optional - auth_key: '<AUTH_KEY>', # optional - auth_key_id: '<AUTH_KEY_ID>', # optional - team_id: '<TEAM_ID>', # optional - bundle_id: '<BUNDLE_ID>', # optional - sandbox: false # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/messaging/update-f-c-m-provider.md b/docs/examples/1.8.x/server-ruby/examples/messaging/update-f-c-m-provider.md deleted file mode 100644 index 44ea0d28de..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/messaging/update-f-c-m-provider.md +++ /dev/null @@ -1,17 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_key('<YOUR_API_KEY>') # Your secret API key - -messaging = Messaging.new(client) - -result = messaging.update_fcm_provider( - provider_id: '<PROVIDER_ID>', - name: '<NAME>', # optional - enabled: false, # optional - service_account_json: {} # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/messaging/update-msg91provider.md b/docs/examples/1.8.x/server-ruby/examples/messaging/update-msg-91-provider.md similarity index 100% rename from docs/examples/1.8.x/server-ruby/examples/messaging/update-msg91provider.md rename to docs/examples/1.8.x/server-ruby/examples/messaging/update-msg-91-provider.md diff --git a/docs/examples/1.8.x/server-ruby/examples/messaging/update-s-m-s.md b/docs/examples/1.8.x/server-ruby/examples/messaging/update-s-m-s.md deleted file mode 100644 index b31480c1a0..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/messaging/update-s-m-s.md +++ /dev/null @@ -1,20 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_key('<YOUR_API_KEY>') # Your secret API key - -messaging = Messaging.new(client) - -result = messaging.update_sms( - message_id: '<MESSAGE_ID>', - topics: [], # optional - users: [], # optional - targets: [], # optional - content: '<CONTENT>', # optional - draft: false, # optional - scheduled_at: '' # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/messaging/update-s-m-t-p-provider.md b/docs/examples/1.8.x/server-ruby/examples/messaging/update-s-m-t-p-provider.md deleted file mode 100644 index bbaebf3c32..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/messaging/update-s-m-t-p-provider.md +++ /dev/null @@ -1,27 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_key('<YOUR_API_KEY>') # Your secret API key - -messaging = Messaging.new(client) - -result = messaging.update_smtp_provider( - provider_id: '<PROVIDER_ID>', - name: '<NAME>', # optional - host: '<HOST>', # optional - port: 1, # optional - username: '<USERNAME>', # optional - password: '<PASSWORD>', # optional - encryption: SmtpEncryption::NONE, # optional - auto_tls: false, # optional - mailer: '<MAILER>', # optional - from_name: '<FROM_NAME>', # optional - from_email: 'email@example.com', # optional - reply_to_name: '<REPLY_TO_NAME>', # optional - reply_to_email: '<REPLY_TO_EMAIL>', # optional - enabled: false # optional -) diff --git a/docs/examples/1.8.x/server-ruby/examples/users/create-argon2user.md b/docs/examples/1.8.x/server-ruby/examples/users/create-argon-2-user.md similarity index 100% rename from docs/examples/1.8.x/server-ruby/examples/users/create-argon2user.md rename to docs/examples/1.8.x/server-ruby/examples/users/create-argon-2-user.md diff --git a/docs/examples/1.8.x/server-ruby/examples/users/create-j-w-t.md b/docs/examples/1.8.x/server-ruby/examples/users/create-jwt.md similarity index 100% rename from docs/examples/1.8.x/server-ruby/examples/users/create-j-w-t.md rename to docs/examples/1.8.x/server-ruby/examples/users/create-jwt.md diff --git a/docs/examples/1.8.x/server-ruby/examples/users/create-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-ruby/examples/users/create-m-f-a-recovery-codes.md deleted file mode 100644 index 0cdea46af3..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/users/create-m-f-a-recovery-codes.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_key('<YOUR_API_KEY>') # Your secret API key - -users = Users.new(client) - -result = users.create_mfa_recovery_codes( - user_id: '<USER_ID>' -) diff --git a/docs/examples/1.8.x/server-ruby/examples/users/create-m-d5user.md b/docs/examples/1.8.x/server-ruby/examples/users/create-md-5-user.md similarity index 100% rename from docs/examples/1.8.x/server-ruby/examples/users/create-m-d5user.md rename to docs/examples/1.8.x/server-ruby/examples/users/create-md-5-user.md diff --git a/docs/examples/1.8.x/server-ruby/examples/users/create-p-h-pass-user.md b/docs/examples/1.8.x/server-ruby/examples/users/create-ph-pass-user.md similarity index 100% rename from docs/examples/1.8.x/server-ruby/examples/users/create-p-h-pass-user.md rename to docs/examples/1.8.x/server-ruby/examples/users/create-ph-pass-user.md diff --git a/docs/examples/1.8.x/server-ruby/examples/users/create-s-h-a-user.md b/docs/examples/1.8.x/server-ruby/examples/users/create-sha-user.md similarity index 100% rename from docs/examples/1.8.x/server-ruby/examples/users/create-s-h-a-user.md rename to docs/examples/1.8.x/server-ruby/examples/users/create-sha-user.md diff --git a/docs/examples/1.8.x/server-ruby/examples/users/delete-m-f-a-authenticator.md b/docs/examples/1.8.x/server-ruby/examples/users/delete-m-f-a-authenticator.md deleted file mode 100644 index 50fcb0fa0d..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/users/delete-m-f-a-authenticator.md +++ /dev/null @@ -1,16 +0,0 @@ -require 'appwrite' - -include Appwrite -include Appwrite::Enums - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_key('<YOUR_API_KEY>') # Your secret API key - -users = Users.new(client) - -result = users.delete_mfa_authenticator( - user_id: '<USER_ID>', - type: AuthenticatorType::TOTP -) diff --git a/docs/examples/1.8.x/server-ruby/examples/users/get-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-ruby/examples/users/get-m-f-a-recovery-codes.md deleted file mode 100644 index f984517d26..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/users/get-m-f-a-recovery-codes.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_key('<YOUR_API_KEY>') # Your secret API key - -users = Users.new(client) - -result = users.get_mfa_recovery_codes( - user_id: '<USER_ID>' -) diff --git a/docs/examples/1.8.x/server-ruby/examples/users/list-m-f-a-factors.md b/docs/examples/1.8.x/server-ruby/examples/users/list-m-f-a-factors.md deleted file mode 100644 index ca1e2b2b96..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/users/list-m-f-a-factors.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_key('<YOUR_API_KEY>') # Your secret API key - -users = Users.new(client) - -result = users.list_mfa_factors( - user_id: '<USER_ID>' -) diff --git a/docs/examples/1.8.x/server-ruby/examples/users/update-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-ruby/examples/users/update-m-f-a-recovery-codes.md deleted file mode 100644 index aaf5ba16c0..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/users/update-m-f-a-recovery-codes.md +++ /dev/null @@ -1,14 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_key('<YOUR_API_KEY>') # Your secret API key - -users = Users.new(client) - -result = users.update_mfa_recovery_codes( - user_id: '<USER_ID>' -) diff --git a/docs/examples/1.8.x/server-ruby/examples/users/update-m-f-a.md b/docs/examples/1.8.x/server-ruby/examples/users/update-m-f-a.md deleted file mode 100644 index 3ebfb96116..0000000000 --- a/docs/examples/1.8.x/server-ruby/examples/users/update-m-f-a.md +++ /dev/null @@ -1,15 +0,0 @@ -require 'appwrite' - -include Appwrite - -client = Client.new - .set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint - .set_project('<YOUR_PROJECT_ID>') # Your project ID - .set_key('<YOUR_API_KEY>') # Your secret API key - -users = Users.new(client) - -result = users.update_mfa( - user_id: '<USER_ID>', - mfa: false -) diff --git a/docs/examples/1.8.x/server-swift/examples/account/create-j-w-t.md b/docs/examples/1.8.x/server-swift/examples/account/create-jwt.md similarity index 100% rename from docs/examples/1.8.x/server-swift/examples/account/create-j-w-t.md rename to docs/examples/1.8.x/server-swift/examples/account/create-jwt.md diff --git a/docs/examples/1.8.x/server-swift/examples/account/create-m-f-a-authenticator.md b/docs/examples/1.8.x/server-swift/examples/account/create-m-f-a-authenticator.md deleted file mode 100644 index dd3a7d1201..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/account/create-m-f-a-authenticator.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite -import AppwriteEnums - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setSession("") // The user session to authenticate with - -let account = Account(client) - -let mfaType = try await account.createMFAAuthenticator( - type: .totp -) - diff --git a/docs/examples/1.8.x/server-swift/examples/account/create-m-f-a-challenge.md b/docs/examples/1.8.x/server-swift/examples/account/create-m-f-a-challenge.md deleted file mode 100644 index 27f1bc1784..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/account/create-m-f-a-challenge.md +++ /dev/null @@ -1,13 +0,0 @@ -import Appwrite -import AppwriteEnums - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - -let account = Account(client) - -let mfaChallenge = try await account.createMFAChallenge( - factor: .email -) - diff --git a/docs/examples/1.8.x/server-swift/examples/account/create-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-swift/examples/account/create-m-f-a-recovery-codes.md deleted file mode 100644 index 3595cdae31..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/account/create-m-f-a-recovery-codes.md +++ /dev/null @@ -1,11 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setSession("") // The user session to authenticate with - -let account = Account(client) - -let mfaRecoveryCodes = try await account.createMFARecoveryCodes() - diff --git a/docs/examples/1.8.x/server-swift/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.8.x/server-swift/examples/account/create-magic-url-token.md similarity index 100% rename from docs/examples/1.8.x/server-swift/examples/account/create-magic-u-r-l-token.md rename to docs/examples/1.8.x/server-swift/examples/account/create-magic-url-token.md diff --git a/docs/examples/1.8.x/server-swift/examples/account/create-mfa-authenticator.md b/docs/examples/1.8.x/server-swift/examples/account/create-mfa-authenticator.md index 4dd91d84dd..dd3a7d1201 100644 --- a/docs/examples/1.8.x/server-swift/examples/account/create-mfa-authenticator.md +++ b/docs/examples/1.8.x/server-swift/examples/account/create-mfa-authenticator.md @@ -8,7 +8,7 @@ let client = Client() let account = Account(client) -let mfaType = try await account.createMfaAuthenticator( +let mfaType = try await account.createMFAAuthenticator( type: .totp ) diff --git a/docs/examples/1.8.x/server-swift/examples/account/create-mfa-challenge.md b/docs/examples/1.8.x/server-swift/examples/account/create-mfa-challenge.md index 0b5d385999..27f1bc1784 100644 --- a/docs/examples/1.8.x/server-swift/examples/account/create-mfa-challenge.md +++ b/docs/examples/1.8.x/server-swift/examples/account/create-mfa-challenge.md @@ -7,7 +7,7 @@ let client = Client() let account = Account(client) -let mfaChallenge = try await account.createMfaChallenge( +let mfaChallenge = try await account.createMFAChallenge( factor: .email ) diff --git a/docs/examples/1.8.x/server-swift/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.8.x/server-swift/examples/account/create-mfa-recovery-codes.md index a73e4f6024..3595cdae31 100644 --- a/docs/examples/1.8.x/server-swift/examples/account/create-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-swift/examples/account/create-mfa-recovery-codes.md @@ -7,5 +7,5 @@ let client = Client() let account = Account(client) -let mfaRecoveryCodes = try await account.createMfaRecoveryCodes() +let mfaRecoveryCodes = try await account.createMFARecoveryCodes() diff --git a/docs/examples/1.8.x/server-swift/examples/account/create-o-auth2token.md b/docs/examples/1.8.x/server-swift/examples/account/create-o-auth-2-token.md similarity index 100% rename from docs/examples/1.8.x/server-swift/examples/account/create-o-auth2token.md rename to docs/examples/1.8.x/server-swift/examples/account/create-o-auth-2-token.md diff --git a/docs/examples/1.8.x/server-swift/examples/account/delete-m-f-a-authenticator.md b/docs/examples/1.8.x/server-swift/examples/account/delete-m-f-a-authenticator.md deleted file mode 100644 index 5a85cdcad5..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/account/delete-m-f-a-authenticator.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite -import AppwriteEnums - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setSession("") // The user session to authenticate with - -let account = Account(client) - -let result = try await account.deleteMFAAuthenticator( - type: .totp -) - diff --git a/docs/examples/1.8.x/server-swift/examples/account/delete-mfa-authenticator.md b/docs/examples/1.8.x/server-swift/examples/account/delete-mfa-authenticator.md index e4209a2550..5a85cdcad5 100644 --- a/docs/examples/1.8.x/server-swift/examples/account/delete-mfa-authenticator.md +++ b/docs/examples/1.8.x/server-swift/examples/account/delete-mfa-authenticator.md @@ -8,7 +8,7 @@ let client = Client() let account = Account(client) -let result = try await account.deleteMfaAuthenticator( +let result = try await account.deleteMFAAuthenticator( type: .totp ) diff --git a/docs/examples/1.8.x/server-swift/examples/account/get-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-swift/examples/account/get-m-f-a-recovery-codes.md deleted file mode 100644 index 86c435d2cb..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/account/get-m-f-a-recovery-codes.md +++ /dev/null @@ -1,11 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setSession("") // The user session to authenticate with - -let account = Account(client) - -let mfaRecoveryCodes = try await account.getMFARecoveryCodes() - diff --git a/docs/examples/1.8.x/server-swift/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.8.x/server-swift/examples/account/get-mfa-recovery-codes.md index 69455f4acd..86c435d2cb 100644 --- a/docs/examples/1.8.x/server-swift/examples/account/get-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-swift/examples/account/get-mfa-recovery-codes.md @@ -7,5 +7,5 @@ let client = Client() let account = Account(client) -let mfaRecoveryCodes = try await account.getMfaRecoveryCodes() +let mfaRecoveryCodes = try await account.getMFARecoveryCodes() diff --git a/docs/examples/1.8.x/server-swift/examples/account/list-m-f-a-factors.md b/docs/examples/1.8.x/server-swift/examples/account/list-m-f-a-factors.md deleted file mode 100644 index be41b2b2ff..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/account/list-m-f-a-factors.md +++ /dev/null @@ -1,11 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setSession("") // The user session to authenticate with - -let account = Account(client) - -let mfaFactors = try await account.listMFAFactors() - diff --git a/docs/examples/1.8.x/server-swift/examples/account/list-mfa-factors.md b/docs/examples/1.8.x/server-swift/examples/account/list-mfa-factors.md index a63d4d0f82..be41b2b2ff 100644 --- a/docs/examples/1.8.x/server-swift/examples/account/list-mfa-factors.md +++ b/docs/examples/1.8.x/server-swift/examples/account/list-mfa-factors.md @@ -7,5 +7,5 @@ let client = Client() let account = Account(client) -let mfaFactors = try await account.listMfaFactors() +let mfaFactors = try await account.listMFAFactors() diff --git a/docs/examples/1.8.x/server-swift/examples/account/update-m-f-a-authenticator.md b/docs/examples/1.8.x/server-swift/examples/account/update-m-f-a-authenticator.md deleted file mode 100644 index 79f408e1d4..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/account/update-m-f-a-authenticator.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite -import AppwriteEnums - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setSession("") // The user session to authenticate with - -let account = Account(client) - -let user = try await account.updateMFAAuthenticator( - type: .totp, - otp: "<OTP>" -) - diff --git a/docs/examples/1.8.x/server-swift/examples/account/update-m-f-a-challenge.md b/docs/examples/1.8.x/server-swift/examples/account/update-m-f-a-challenge.md deleted file mode 100644 index c595f1ebc0..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/account/update-m-f-a-challenge.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setSession("") // The user session to authenticate with - -let account = Account(client) - -let session = try await account.updateMFAChallenge( - challengeId: "<CHALLENGE_ID>", - otp: "<OTP>" -) - diff --git a/docs/examples/1.8.x/server-swift/examples/account/update-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-swift/examples/account/update-m-f-a-recovery-codes.md deleted file mode 100644 index ee6f9acb39..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/account/update-m-f-a-recovery-codes.md +++ /dev/null @@ -1,11 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setSession("") // The user session to authenticate with - -let account = Account(client) - -let mfaRecoveryCodes = try await account.updateMFARecoveryCodes() - diff --git a/docs/examples/1.8.x/server-swift/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.8.x/server-swift/examples/account/update-magic-url-session.md similarity index 100% rename from docs/examples/1.8.x/server-swift/examples/account/update-magic-u-r-l-session.md rename to docs/examples/1.8.x/server-swift/examples/account/update-magic-url-session.md diff --git a/docs/examples/1.8.x/server-swift/examples/account/update-mfa-authenticator.md b/docs/examples/1.8.x/server-swift/examples/account/update-mfa-authenticator.md index fedbc954af..79f408e1d4 100644 --- a/docs/examples/1.8.x/server-swift/examples/account/update-mfa-authenticator.md +++ b/docs/examples/1.8.x/server-swift/examples/account/update-mfa-authenticator.md @@ -8,7 +8,7 @@ let client = Client() let account = Account(client) -let user = try await account.updateMfaAuthenticator( +let user = try await account.updateMFAAuthenticator( type: .totp, otp: "<OTP>" ) diff --git a/docs/examples/1.8.x/server-swift/examples/account/update-mfa-challenge.md b/docs/examples/1.8.x/server-swift/examples/account/update-mfa-challenge.md index 4edb1fbbc3..c595f1ebc0 100644 --- a/docs/examples/1.8.x/server-swift/examples/account/update-mfa-challenge.md +++ b/docs/examples/1.8.x/server-swift/examples/account/update-mfa-challenge.md @@ -7,7 +7,7 @@ let client = Client() let account = Account(client) -let session = try await account.updateMfaChallenge( +let session = try await account.updateMFAChallenge( challengeId: "<CHALLENGE_ID>", otp: "<OTP>" ) diff --git a/docs/examples/1.8.x/server-swift/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.8.x/server-swift/examples/account/update-mfa-recovery-codes.md index d0a2b8c686..ee6f9acb39 100644 --- a/docs/examples/1.8.x/server-swift/examples/account/update-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-swift/examples/account/update-mfa-recovery-codes.md @@ -7,5 +7,5 @@ let client = Client() let account = Account(client) -let mfaRecoveryCodes = try await account.updateMfaRecoveryCodes() +let mfaRecoveryCodes = try await account.updateMFARecoveryCodes() diff --git a/docs/examples/1.8.x/server-swift/examples/account/update-m-f-a.md b/docs/examples/1.8.x/server-swift/examples/account/update-mfa.md similarity index 100% rename from docs/examples/1.8.x/server-swift/examples/account/update-m-f-a.md rename to docs/examples/1.8.x/server-swift/examples/account/update-mfa.md diff --git a/docs/examples/1.8.x/server-swift/examples/avatars/get-q-r.md b/docs/examples/1.8.x/server-swift/examples/avatars/get-qr.md similarity index 100% rename from docs/examples/1.8.x/server-swift/examples/avatars/get-q-r.md rename to docs/examples/1.8.x/server-swift/examples/avatars/get-qr.md diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-boolean-column.md b/docs/examples/1.8.x/server-swift/examples/grids/create-boolean-column.md deleted file mode 100644 index 4d0a226eb2..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/create-boolean-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -let grids = Grids(client) - -let columnBoolean = try await grids.createBooleanColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - required: false, - default: false, // optional - array: false // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-database.md b/docs/examples/1.8.x/server-swift/examples/grids/create-database.md deleted file mode 100644 index 75ec62df4b..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/create-database.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -let grids = Grids(client) - -let database = try await grids.createDatabase( - databaseId: "<DATABASE_ID>", - name: "<NAME>", - enabled: false // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-datetime-column.md b/docs/examples/1.8.x/server-swift/examples/grids/create-datetime-column.md deleted file mode 100644 index 8271b44c9f..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/create-datetime-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -let grids = Grids(client) - -let columnDatetime = try await grids.createDatetimeColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - required: false, - default: "", // optional - array: false // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-email-column.md b/docs/examples/1.8.x/server-swift/examples/grids/create-email-column.md deleted file mode 100644 index ca99534c78..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/create-email-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -let grids = Grids(client) - -let columnEmail = try await grids.createEmailColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - required: false, - default: "email@example.com", // optional - array: false // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-enum-column.md b/docs/examples/1.8.x/server-swift/examples/grids/create-enum-column.md deleted file mode 100644 index 3d52e94a96..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/create-enum-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -let grids = Grids(client) - -let columnEnum = try await grids.createEnumColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - elements: [], - required: false, - default: "<DEFAULT>", // optional - array: false // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-float-column.md b/docs/examples/1.8.x/server-swift/examples/grids/create-float-column.md deleted file mode 100644 index f0abdc7b9f..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/create-float-column.md +++ /dev/null @@ -1,20 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -let grids = Grids(client) - -let columnFloat = try await grids.createFloatColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - required: false, - min: 0, // optional - max: 0, // optional - default: 0, // optional - array: false // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-index.md b/docs/examples/1.8.x/server-swift/examples/grids/create-index.md deleted file mode 100644 index 2d0c1272b2..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/create-index.md +++ /dev/null @@ -1,20 +0,0 @@ -import Appwrite -import AppwriteEnums - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -let grids = Grids(client) - -let columnIndex = try await grids.createIndex( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - type: .key, - columns: [], - orders: [], // optional - lengths: [] // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-integer-column.md b/docs/examples/1.8.x/server-swift/examples/grids/create-integer-column.md deleted file mode 100644 index dca7968bfb..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/create-integer-column.md +++ /dev/null @@ -1,20 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -let grids = Grids(client) - -let columnInteger = try await grids.createIntegerColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - required: false, - min: 0, // optional - max: 0, // optional - default: 0, // optional - array: false // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-ip-column.md b/docs/examples/1.8.x/server-swift/examples/grids/create-ip-column.md deleted file mode 100644 index 9517ed960f..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/create-ip-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -let grids = Grids(client) - -let columnIp = try await grids.createIpColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - required: false, - default: "", // optional - array: false // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-relationship-column.md b/docs/examples/1.8.x/server-swift/examples/grids/create-relationship-column.md deleted file mode 100644 index 1ead20f97d..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/create-relationship-column.md +++ /dev/null @@ -1,21 +0,0 @@ -import Appwrite -import AppwriteEnums - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -let grids = Grids(client) - -let columnRelationship = try await grids.createRelationshipColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - relatedTableId: "<RELATED_TABLE_ID>", - type: .oneToOne, - twoWay: false, // optional - key: "", // optional - twoWayKey: "", // optional - onDelete: .cascade // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-row.md b/docs/examples/1.8.x/server-swift/examples/grids/create-row.md deleted file mode 100644 index 9d042b4034..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/create-row.md +++ /dev/null @@ -1,17 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setSession("") // The user session to authenticate with - -let grids = Grids(client) - -let row = try await grids.createRow( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - rowId: "<ROW_ID>", - data: [:], - permissions: ["read("any")"] // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-rows.md b/docs/examples/1.8.x/server-swift/examples/grids/create-rows.md deleted file mode 100644 index 3e1aced6e7..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/create-rows.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -let grids = Grids(client) - -let rowList = try await grids.createRows( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - rows: [] -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-string-column.md b/docs/examples/1.8.x/server-swift/examples/grids/create-string-column.md deleted file mode 100644 index 74eea86fe4..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/create-string-column.md +++ /dev/null @@ -1,20 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -let grids = Grids(client) - -let columnString = try await grids.createStringColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - size: 1, - required: false, - default: "<DEFAULT>", // optional - array: false, // optional - encrypt: false // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-table.md b/docs/examples/1.8.x/server-swift/examples/grids/create-table.md deleted file mode 100644 index 3792c0aee4..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/create-table.md +++ /dev/null @@ -1,18 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -let grids = Grids(client) - -let table = try await grids.createTable( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - name: "<NAME>", - permissions: ["read("any")"], // optional - rowSecurity: false, // optional - enabled: false // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/create-url-column.md b/docs/examples/1.8.x/server-swift/examples/grids/create-url-column.md deleted file mode 100644 index 7ea729aa1a..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/create-url-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -let grids = Grids(client) - -let columnUrl = try await grids.createUrlColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - required: false, - default: "https://example.com", // optional - array: false // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/decrement-row-column.md b/docs/examples/1.8.x/server-swift/examples/grids/decrement-row-column.md deleted file mode 100644 index 9445843d71..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/decrement-row-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -let grids = Grids(client) - -let row = try await grids.decrementRowColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - rowId: "<ROW_ID>", - column: "", - value: 0, // optional - min: 0 // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/delete-column.md b/docs/examples/1.8.x/server-swift/examples/grids/delete-column.md deleted file mode 100644 index b58a4d0890..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/delete-column.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -let grids = Grids(client) - -let result = try await grids.deleteColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "" -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/delete-database.md b/docs/examples/1.8.x/server-swift/examples/grids/delete-database.md deleted file mode 100644 index e7600d7726..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/delete-database.md +++ /dev/null @@ -1,13 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -let grids = Grids(client) - -let result = try await grids.deleteDatabase( - databaseId: "<DATABASE_ID>" -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/delete-index.md b/docs/examples/1.8.x/server-swift/examples/grids/delete-index.md deleted file mode 100644 index d83cd551da..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/delete-index.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -let grids = Grids(client) - -let result = try await grids.deleteIndex( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "" -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/delete-row.md b/docs/examples/1.8.x/server-swift/examples/grids/delete-row.md deleted file mode 100644 index d2d77234a3..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/delete-row.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setSession("") // The user session to authenticate with - -let grids = Grids(client) - -let result = try await grids.deleteRow( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - rowId: "<ROW_ID>" -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/delete-rows.md b/docs/examples/1.8.x/server-swift/examples/grids/delete-rows.md deleted file mode 100644 index 6a3f145526..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/delete-rows.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -let grids = Grids(client) - -let rowList = try await grids.deleteRows( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - queries: [] // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/delete-table.md b/docs/examples/1.8.x/server-swift/examples/grids/delete-table.md deleted file mode 100644 index 8abdfcae2d..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/delete-table.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -let grids = Grids(client) - -let result = try await grids.deleteTable( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>" -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/get-column.md b/docs/examples/1.8.x/server-swift/examples/grids/get-column.md deleted file mode 100644 index 68c0d3933d..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/get-column.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -let grids = Grids(client) - -let result = try await grids.getColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "" -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/get-database.md b/docs/examples/1.8.x/server-swift/examples/grids/get-database.md deleted file mode 100644 index f3936ae4ba..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/get-database.md +++ /dev/null @@ -1,13 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -let grids = Grids(client) - -let database = try await grids.getDatabase( - databaseId: "<DATABASE_ID>" -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/get-index.md b/docs/examples/1.8.x/server-swift/examples/grids/get-index.md deleted file mode 100644 index 24c3be9e27..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/get-index.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -let grids = Grids(client) - -let columnIndex = try await grids.getIndex( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "" -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/get-row.md b/docs/examples/1.8.x/server-swift/examples/grids/get-row.md deleted file mode 100644 index 4d3e53cba6..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/get-row.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setSession("") // The user session to authenticate with - -let grids = Grids(client) - -let row = try await grids.getRow( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - rowId: "<ROW_ID>", - queries: [] // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/get-table.md b/docs/examples/1.8.x/server-swift/examples/grids/get-table.md deleted file mode 100644 index 9ad5e0c202..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/get-table.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -let grids = Grids(client) - -let table = try await grids.getTable( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>" -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/increment-row-column.md b/docs/examples/1.8.x/server-swift/examples/grids/increment-row-column.md deleted file mode 100644 index 00d9663c22..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/increment-row-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -let grids = Grids(client) - -let row = try await grids.incrementRowColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - rowId: "<ROW_ID>", - column: "", - value: 0, // optional - max: 0 // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/list-columns.md b/docs/examples/1.8.x/server-swift/examples/grids/list-columns.md deleted file mode 100644 index facf87f9a3..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/list-columns.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -let grids = Grids(client) - -let columnList = try await grids.listColumns( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - queries: [] // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/list-databases.md b/docs/examples/1.8.x/server-swift/examples/grids/list-databases.md deleted file mode 100644 index 26d50a24b1..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/list-databases.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -let grids = Grids(client) - -let databaseList = try await grids.listDatabases( - queries: [], // optional - search: "<SEARCH>" // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/list-indexes.md b/docs/examples/1.8.x/server-swift/examples/grids/list-indexes.md deleted file mode 100644 index c31f162d5d..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/list-indexes.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -let grids = Grids(client) - -let columnIndexList = try await grids.listIndexes( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - queries: [] // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/list-rows.md b/docs/examples/1.8.x/server-swift/examples/grids/list-rows.md deleted file mode 100644 index 01dd6637fc..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/list-rows.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setSession("") // The user session to authenticate with - -let grids = Grids(client) - -let rowList = try await grids.listRows( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - queries: [] // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/list-tables.md b/docs/examples/1.8.x/server-swift/examples/grids/list-tables.md deleted file mode 100644 index af8cdd1264..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/list-tables.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -let grids = Grids(client) - -let tableList = try await grids.listTables( - databaseId: "<DATABASE_ID>", - queries: [], // optional - search: "<SEARCH>" // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/update-boolean-column.md b/docs/examples/1.8.x/server-swift/examples/grids/update-boolean-column.md deleted file mode 100644 index 8994b79e7c..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/update-boolean-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -let grids = Grids(client) - -let columnBoolean = try await grids.updateBooleanColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - required: false, - default: false, - newKey: "" // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/update-database.md b/docs/examples/1.8.x/server-swift/examples/grids/update-database.md deleted file mode 100644 index 827245bd97..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/update-database.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -let grids = Grids(client) - -let database = try await grids.updateDatabase( - databaseId: "<DATABASE_ID>", - name: "<NAME>", - enabled: false // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/update-datetime-column.md b/docs/examples/1.8.x/server-swift/examples/grids/update-datetime-column.md deleted file mode 100644 index 7a59cd1ef1..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/update-datetime-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -let grids = Grids(client) - -let columnDatetime = try await grids.updateDatetimeColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - required: false, - default: "", - newKey: "" // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/update-email-column.md b/docs/examples/1.8.x/server-swift/examples/grids/update-email-column.md deleted file mode 100644 index 3704401fa5..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/update-email-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -let grids = Grids(client) - -let columnEmail = try await grids.updateEmailColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - required: false, - default: "email@example.com", - newKey: "" // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/update-enum-column.md b/docs/examples/1.8.x/server-swift/examples/grids/update-enum-column.md deleted file mode 100644 index 946804a88c..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/update-enum-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -let grids = Grids(client) - -let columnEnum = try await grids.updateEnumColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - elements: [], - required: false, - default: "<DEFAULT>", - newKey: "" // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/update-float-column.md b/docs/examples/1.8.x/server-swift/examples/grids/update-float-column.md deleted file mode 100644 index 10f0babb2c..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/update-float-column.md +++ /dev/null @@ -1,20 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -let grids = Grids(client) - -let columnFloat = try await grids.updateFloatColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - required: false, - default: 0, - min: 0, // optional - max: 0, // optional - newKey: "" // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/update-integer-column.md b/docs/examples/1.8.x/server-swift/examples/grids/update-integer-column.md deleted file mode 100644 index 60e145e3b0..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/update-integer-column.md +++ /dev/null @@ -1,20 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -let grids = Grids(client) - -let columnInteger = try await grids.updateIntegerColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - required: false, - default: 0, - min: 0, // optional - max: 0, // optional - newKey: "" // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/update-ip-column.md b/docs/examples/1.8.x/server-swift/examples/grids/update-ip-column.md deleted file mode 100644 index 17f490d644..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/update-ip-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -let grids = Grids(client) - -let columnIp = try await grids.updateIpColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - required: false, - default: "", - newKey: "" // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/update-relationship-column.md b/docs/examples/1.8.x/server-swift/examples/grids/update-relationship-column.md deleted file mode 100644 index 994feefa92..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/update-relationship-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import Appwrite -import AppwriteEnums - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -let grids = Grids(client) - -let columnRelationship = try await grids.updateRelationshipColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - onDelete: .cascade, // optional - newKey: "" // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/update-row.md b/docs/examples/1.8.x/server-swift/examples/grids/update-row.md deleted file mode 100644 index 3e4408f700..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/update-row.md +++ /dev/null @@ -1,17 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setSession("") // The user session to authenticate with - -let grids = Grids(client) - -let row = try await grids.updateRow( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - rowId: "<ROW_ID>", - data: [:], // optional - permissions: ["read("any")"] // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/update-rows.md b/docs/examples/1.8.x/server-swift/examples/grids/update-rows.md deleted file mode 100644 index c57463cc8a..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/update-rows.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -let grids = Grids(client) - -let rowList = try await grids.updateRows( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - data: [:], // optional - queries: [] // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/update-string-column.md b/docs/examples/1.8.x/server-swift/examples/grids/update-string-column.md deleted file mode 100644 index e9e2d71c62..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/update-string-column.md +++ /dev/null @@ -1,19 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -let grids = Grids(client) - -let columnString = try await grids.updateStringColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - required: false, - default: "<DEFAULT>", - size: 1, // optional - newKey: "" // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/update-table.md b/docs/examples/1.8.x/server-swift/examples/grids/update-table.md deleted file mode 100644 index 8b3fa5e12e..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/update-table.md +++ /dev/null @@ -1,18 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -let grids = Grids(client) - -let table = try await grids.updateTable( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - name: "<NAME>", - permissions: ["read("any")"], // optional - rowSecurity: false, // optional - enabled: false // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/update-url-column.md b/docs/examples/1.8.x/server-swift/examples/grids/update-url-column.md deleted file mode 100644 index b72666e240..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/update-url-column.md +++ /dev/null @@ -1,18 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -let grids = Grids(client) - -let columnUrl = try await grids.updateUrlColumn( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - key: "", - required: false, - default: "https://example.com", - newKey: "" // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/upsert-row.md b/docs/examples/1.8.x/server-swift/examples/grids/upsert-row.md deleted file mode 100644 index 1d09e7b767..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/upsert-row.md +++ /dev/null @@ -1,17 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setSession("") // The user session to authenticate with - -let grids = Grids(client) - -let row = try await grids.upsertRow( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - rowId: "<ROW_ID>", - data: [:], // optional - permissions: ["read("any")"] // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/grids/upsert-rows.md b/docs/examples/1.8.x/server-swift/examples/grids/upsert-rows.md deleted file mode 100644 index 84173c9c0f..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/grids/upsert-rows.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -let grids = Grids(client) - -let rowList = try await grids.upsertRows( - databaseId: "<DATABASE_ID>", - tableId: "<TABLE_ID>", - rows: [] -) - diff --git a/docs/examples/1.8.x/server-swift/examples/health/get-d-b.md b/docs/examples/1.8.x/server-swift/examples/health/get-db.md similarity index 100% rename from docs/examples/1.8.x/server-swift/examples/health/get-d-b.md rename to docs/examples/1.8.x/server-swift/examples/health/get-db.md diff --git a/docs/examples/1.8.x/server-swift/examples/locale/list-countries-e-u.md b/docs/examples/1.8.x/server-swift/examples/locale/list-countries-eu.md similarity index 100% rename from docs/examples/1.8.x/server-swift/examples/locale/list-countries-e-u.md rename to docs/examples/1.8.x/server-swift/examples/locale/list-countries-eu.md diff --git a/docs/examples/1.8.x/server-swift/examples/messaging/create-a-p-n-s-provider.md b/docs/examples/1.8.x/server-swift/examples/messaging/create-a-p-n-s-provider.md deleted file mode 100644 index 772084dc44..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/messaging/create-a-p-n-s-provider.md +++ /dev/null @@ -1,20 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -let messaging = Messaging(client) - -let provider = try await messaging.createAPNSProvider( - providerId: "<PROVIDER_ID>", - name: "<NAME>", - authKey: "<AUTH_KEY>", // optional - authKeyId: "<AUTH_KEY_ID>", // optional - teamId: "<TEAM_ID>", // optional - bundleId: "<BUNDLE_ID>", // optional - sandbox: false, // optional - enabled: false // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/messaging/create-apns-provider.md b/docs/examples/1.8.x/server-swift/examples/messaging/create-apns-provider.md index 5e20018fef..772084dc44 100644 --- a/docs/examples/1.8.x/server-swift/examples/messaging/create-apns-provider.md +++ b/docs/examples/1.8.x/server-swift/examples/messaging/create-apns-provider.md @@ -7,7 +7,7 @@ let client = Client() let messaging = Messaging(client) -let provider = try await messaging.createApnsProvider( +let provider = try await messaging.createAPNSProvider( providerId: "<PROVIDER_ID>", name: "<NAME>", authKey: "<AUTH_KEY>", // optional diff --git a/docs/examples/1.8.x/server-swift/examples/messaging/create-f-c-m-provider.md b/docs/examples/1.8.x/server-swift/examples/messaging/create-f-c-m-provider.md deleted file mode 100644 index 2b004507b6..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/messaging/create-f-c-m-provider.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -let messaging = Messaging(client) - -let provider = try await messaging.createFCMProvider( - providerId: "<PROVIDER_ID>", - name: "<NAME>", - serviceAccountJSON: [:], // optional - enabled: false // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/messaging/create-fcm-provider.md b/docs/examples/1.8.x/server-swift/examples/messaging/create-fcm-provider.md index 0071e477f1..2b004507b6 100644 --- a/docs/examples/1.8.x/server-swift/examples/messaging/create-fcm-provider.md +++ b/docs/examples/1.8.x/server-swift/examples/messaging/create-fcm-provider.md @@ -7,7 +7,7 @@ let client = Client() let messaging = Messaging(client) -let provider = try await messaging.createFcmProvider( +let provider = try await messaging.createFCMProvider( providerId: "<PROVIDER_ID>", name: "<NAME>", serviceAccountJSON: [:], // optional diff --git a/docs/examples/1.8.x/server-swift/examples/messaging/create-msg91provider.md b/docs/examples/1.8.x/server-swift/examples/messaging/create-msg-91-provider.md similarity index 100% rename from docs/examples/1.8.x/server-swift/examples/messaging/create-msg91provider.md rename to docs/examples/1.8.x/server-swift/examples/messaging/create-msg-91-provider.md diff --git a/docs/examples/1.8.x/server-swift/examples/messaging/create-s-m-s.md b/docs/examples/1.8.x/server-swift/examples/messaging/create-s-m-s.md deleted file mode 100644 index 28a6ba7a63..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/messaging/create-s-m-s.md +++ /dev/null @@ -1,19 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -let messaging = Messaging(client) - -let message = try await messaging.createSMS( - messageId: "<MESSAGE_ID>", - content: "<CONTENT>", - topics: [], // optional - users: [], // optional - targets: [], // optional - draft: false, // optional - scheduledAt: "" // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/messaging/create-s-m-t-p-provider.md b/docs/examples/1.8.x/server-swift/examples/messaging/create-s-m-t-p-provider.md deleted file mode 100644 index ec9b92c8e1..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/messaging/create-s-m-t-p-provider.md +++ /dev/null @@ -1,27 +0,0 @@ -import Appwrite -import AppwriteEnums - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -let messaging = Messaging(client) - -let provider = try await messaging.createSMTPProvider( - providerId: "<PROVIDER_ID>", - name: "<NAME>", - host: "<HOST>", - port: 1, // optional - username: "<USERNAME>", // optional - password: "<PASSWORD>", // optional - encryption: .none, // optional - autoTLS: false, // optional - mailer: "<MAILER>", // optional - fromName: "<FROM_NAME>", // optional - fromEmail: "email@example.com", // optional - replyToName: "<REPLY_TO_NAME>", // optional - replyToEmail: "email@example.com", // optional - enabled: false // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/messaging/create-sms.md b/docs/examples/1.8.x/server-swift/examples/messaging/create-sms.md index 4f579312a9..28a6ba7a63 100644 --- a/docs/examples/1.8.x/server-swift/examples/messaging/create-sms.md +++ b/docs/examples/1.8.x/server-swift/examples/messaging/create-sms.md @@ -7,7 +7,7 @@ let client = Client() let messaging = Messaging(client) -let message = try await messaging.createSms( +let message = try await messaging.createSMS( messageId: "<MESSAGE_ID>", content: "<CONTENT>", topics: [], // optional diff --git a/docs/examples/1.8.x/server-swift/examples/messaging/create-smtp-provider.md b/docs/examples/1.8.x/server-swift/examples/messaging/create-smtp-provider.md index 18d25df738..ec9b92c8e1 100644 --- a/docs/examples/1.8.x/server-swift/examples/messaging/create-smtp-provider.md +++ b/docs/examples/1.8.x/server-swift/examples/messaging/create-smtp-provider.md @@ -8,7 +8,7 @@ let client = Client() let messaging = Messaging(client) -let provider = try await messaging.createSmtpProvider( +let provider = try await messaging.createSMTPProvider( providerId: "<PROVIDER_ID>", name: "<NAME>", host: "<HOST>", diff --git a/docs/examples/1.8.x/server-swift/examples/messaging/update-a-p-n-s-provider.md b/docs/examples/1.8.x/server-swift/examples/messaging/update-a-p-n-s-provider.md deleted file mode 100644 index bed92ba11c..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/messaging/update-a-p-n-s-provider.md +++ /dev/null @@ -1,20 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -let messaging = Messaging(client) - -let provider = try await messaging.updateAPNSProvider( - providerId: "<PROVIDER_ID>", - name: "<NAME>", // optional - enabled: false, // optional - authKey: "<AUTH_KEY>", // optional - authKeyId: "<AUTH_KEY_ID>", // optional - teamId: "<TEAM_ID>", // optional - bundleId: "<BUNDLE_ID>", // optional - sandbox: false // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/messaging/update-apns-provider.md b/docs/examples/1.8.x/server-swift/examples/messaging/update-apns-provider.md index 03afe5555b..bed92ba11c 100644 --- a/docs/examples/1.8.x/server-swift/examples/messaging/update-apns-provider.md +++ b/docs/examples/1.8.x/server-swift/examples/messaging/update-apns-provider.md @@ -7,7 +7,7 @@ let client = Client() let messaging = Messaging(client) -let provider = try await messaging.updateApnsProvider( +let provider = try await messaging.updateAPNSProvider( providerId: "<PROVIDER_ID>", name: "<NAME>", // optional enabled: false, // optional diff --git a/docs/examples/1.8.x/server-swift/examples/messaging/update-f-c-m-provider.md b/docs/examples/1.8.x/server-swift/examples/messaging/update-f-c-m-provider.md deleted file mode 100644 index efd7e1fb9d..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/messaging/update-f-c-m-provider.md +++ /dev/null @@ -1,16 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -let messaging = Messaging(client) - -let provider = try await messaging.updateFCMProvider( - providerId: "<PROVIDER_ID>", - name: "<NAME>", // optional - enabled: false, // optional - serviceAccountJSON: [:] // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/messaging/update-fcm-provider.md b/docs/examples/1.8.x/server-swift/examples/messaging/update-fcm-provider.md index c4548f6549..efd7e1fb9d 100644 --- a/docs/examples/1.8.x/server-swift/examples/messaging/update-fcm-provider.md +++ b/docs/examples/1.8.x/server-swift/examples/messaging/update-fcm-provider.md @@ -7,7 +7,7 @@ let client = Client() let messaging = Messaging(client) -let provider = try await messaging.updateFcmProvider( +let provider = try await messaging.updateFCMProvider( providerId: "<PROVIDER_ID>", name: "<NAME>", // optional enabled: false, // optional diff --git a/docs/examples/1.8.x/server-swift/examples/messaging/update-msg91provider.md b/docs/examples/1.8.x/server-swift/examples/messaging/update-msg-91-provider.md similarity index 100% rename from docs/examples/1.8.x/server-swift/examples/messaging/update-msg91provider.md rename to docs/examples/1.8.x/server-swift/examples/messaging/update-msg-91-provider.md diff --git a/docs/examples/1.8.x/server-swift/examples/messaging/update-s-m-s.md b/docs/examples/1.8.x/server-swift/examples/messaging/update-s-m-s.md deleted file mode 100644 index d6dc207b02..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/messaging/update-s-m-s.md +++ /dev/null @@ -1,19 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -let messaging = Messaging(client) - -let message = try await messaging.updateSMS( - messageId: "<MESSAGE_ID>", - topics: [], // optional - users: [], // optional - targets: [], // optional - content: "<CONTENT>", // optional - draft: false, // optional - scheduledAt: "" // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/messaging/update-s-m-t-p-provider.md b/docs/examples/1.8.x/server-swift/examples/messaging/update-s-m-t-p-provider.md deleted file mode 100644 index 402c2675d2..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/messaging/update-s-m-t-p-provider.md +++ /dev/null @@ -1,27 +0,0 @@ -import Appwrite -import AppwriteEnums - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -let messaging = Messaging(client) - -let provider = try await messaging.updateSMTPProvider( - providerId: "<PROVIDER_ID>", - name: "<NAME>", // optional - host: "<HOST>", // optional - port: 1, // optional - username: "<USERNAME>", // optional - password: "<PASSWORD>", // optional - encryption: .none, // optional - autoTLS: false, // optional - mailer: "<MAILER>", // optional - fromName: "<FROM_NAME>", // optional - fromEmail: "email@example.com", // optional - replyToName: "<REPLY_TO_NAME>", // optional - replyToEmail: "<REPLY_TO_EMAIL>", // optional - enabled: false // optional -) - diff --git a/docs/examples/1.8.x/server-swift/examples/messaging/update-sms.md b/docs/examples/1.8.x/server-swift/examples/messaging/update-sms.md index 46b225fce0..d6dc207b02 100644 --- a/docs/examples/1.8.x/server-swift/examples/messaging/update-sms.md +++ b/docs/examples/1.8.x/server-swift/examples/messaging/update-sms.md @@ -7,7 +7,7 @@ let client = Client() let messaging = Messaging(client) -let message = try await messaging.updateSms( +let message = try await messaging.updateSMS( messageId: "<MESSAGE_ID>", topics: [], // optional users: [], // optional diff --git a/docs/examples/1.8.x/server-swift/examples/messaging/update-smtp-provider.md b/docs/examples/1.8.x/server-swift/examples/messaging/update-smtp-provider.md index 7ef8f2e760..402c2675d2 100644 --- a/docs/examples/1.8.x/server-swift/examples/messaging/update-smtp-provider.md +++ b/docs/examples/1.8.x/server-swift/examples/messaging/update-smtp-provider.md @@ -8,7 +8,7 @@ let client = Client() let messaging = Messaging(client) -let provider = try await messaging.updateSmtpProvider( +let provider = try await messaging.updateSMTPProvider( providerId: "<PROVIDER_ID>", name: "<NAME>", // optional host: "<HOST>", // optional diff --git a/docs/examples/1.8.x/server-swift/examples/users/create-argon2user.md b/docs/examples/1.8.x/server-swift/examples/users/create-argon-2-user.md similarity index 100% rename from docs/examples/1.8.x/server-swift/examples/users/create-argon2user.md rename to docs/examples/1.8.x/server-swift/examples/users/create-argon-2-user.md diff --git a/docs/examples/1.8.x/server-swift/examples/users/create-j-w-t.md b/docs/examples/1.8.x/server-swift/examples/users/create-jwt.md similarity index 100% rename from docs/examples/1.8.x/server-swift/examples/users/create-j-w-t.md rename to docs/examples/1.8.x/server-swift/examples/users/create-jwt.md diff --git a/docs/examples/1.8.x/server-swift/examples/users/create-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-swift/examples/users/create-m-f-a-recovery-codes.md deleted file mode 100644 index 5f073d10e6..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/users/create-m-f-a-recovery-codes.md +++ /dev/null @@ -1,13 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -let users = Users(client) - -let mfaRecoveryCodes = try await users.createMFARecoveryCodes( - userId: "<USER_ID>" -) - diff --git a/docs/examples/1.8.x/server-swift/examples/users/create-m-d5user.md b/docs/examples/1.8.x/server-swift/examples/users/create-md-5-user.md similarity index 100% rename from docs/examples/1.8.x/server-swift/examples/users/create-m-d5user.md rename to docs/examples/1.8.x/server-swift/examples/users/create-md-5-user.md diff --git a/docs/examples/1.8.x/server-swift/examples/users/create-mfa-recovery-codes.md b/docs/examples/1.8.x/server-swift/examples/users/create-mfa-recovery-codes.md index 577a533fcb..5f073d10e6 100644 --- a/docs/examples/1.8.x/server-swift/examples/users/create-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-swift/examples/users/create-mfa-recovery-codes.md @@ -7,7 +7,7 @@ let client = Client() let users = Users(client) -let mfaRecoveryCodes = try await users.createMfaRecoveryCodes( +let mfaRecoveryCodes = try await users.createMFARecoveryCodes( userId: "<USER_ID>" ) diff --git a/docs/examples/1.8.x/server-swift/examples/users/create-p-h-pass-user.md b/docs/examples/1.8.x/server-swift/examples/users/create-ph-pass-user.md similarity index 100% rename from docs/examples/1.8.x/server-swift/examples/users/create-p-h-pass-user.md rename to docs/examples/1.8.x/server-swift/examples/users/create-ph-pass-user.md diff --git a/docs/examples/1.8.x/server-swift/examples/users/create-s-h-a-user.md b/docs/examples/1.8.x/server-swift/examples/users/create-sha-user.md similarity index 100% rename from docs/examples/1.8.x/server-swift/examples/users/create-s-h-a-user.md rename to docs/examples/1.8.x/server-swift/examples/users/create-sha-user.md diff --git a/docs/examples/1.8.x/server-swift/examples/users/delete-m-f-a-authenticator.md b/docs/examples/1.8.x/server-swift/examples/users/delete-m-f-a-authenticator.md deleted file mode 100644 index be9f39529e..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/users/delete-m-f-a-authenticator.md +++ /dev/null @@ -1,15 +0,0 @@ -import Appwrite -import AppwriteEnums - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -let users = Users(client) - -let result = try await users.deleteMFAAuthenticator( - userId: "<USER_ID>", - type: .totp -) - diff --git a/docs/examples/1.8.x/server-swift/examples/users/delete-mfa-authenticator.md b/docs/examples/1.8.x/server-swift/examples/users/delete-mfa-authenticator.md index da2b8e091a..be9f39529e 100644 --- a/docs/examples/1.8.x/server-swift/examples/users/delete-mfa-authenticator.md +++ b/docs/examples/1.8.x/server-swift/examples/users/delete-mfa-authenticator.md @@ -8,7 +8,7 @@ let client = Client() let users = Users(client) -let result = try await users.deleteMfaAuthenticator( +let result = try await users.deleteMFAAuthenticator( userId: "<USER_ID>", type: .totp ) diff --git a/docs/examples/1.8.x/server-swift/examples/users/get-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-swift/examples/users/get-m-f-a-recovery-codes.md deleted file mode 100644 index 874076c6ac..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/users/get-m-f-a-recovery-codes.md +++ /dev/null @@ -1,13 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -let users = Users(client) - -let mfaRecoveryCodes = try await users.getMFARecoveryCodes( - userId: "<USER_ID>" -) - diff --git a/docs/examples/1.8.x/server-swift/examples/users/get-mfa-recovery-codes.md b/docs/examples/1.8.x/server-swift/examples/users/get-mfa-recovery-codes.md index 1ae285142f..874076c6ac 100644 --- a/docs/examples/1.8.x/server-swift/examples/users/get-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-swift/examples/users/get-mfa-recovery-codes.md @@ -7,7 +7,7 @@ let client = Client() let users = Users(client) -let mfaRecoveryCodes = try await users.getMfaRecoveryCodes( +let mfaRecoveryCodes = try await users.getMFARecoveryCodes( userId: "<USER_ID>" ) diff --git a/docs/examples/1.8.x/server-swift/examples/users/list-m-f-a-factors.md b/docs/examples/1.8.x/server-swift/examples/users/list-m-f-a-factors.md deleted file mode 100644 index 4a58a07147..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/users/list-m-f-a-factors.md +++ /dev/null @@ -1,13 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -let users = Users(client) - -let mfaFactors = try await users.listMFAFactors( - userId: "<USER_ID>" -) - diff --git a/docs/examples/1.8.x/server-swift/examples/users/list-mfa-factors.md b/docs/examples/1.8.x/server-swift/examples/users/list-mfa-factors.md index a5b5e38e12..4a58a07147 100644 --- a/docs/examples/1.8.x/server-swift/examples/users/list-mfa-factors.md +++ b/docs/examples/1.8.x/server-swift/examples/users/list-mfa-factors.md @@ -7,7 +7,7 @@ let client = Client() let users = Users(client) -let mfaFactors = try await users.listMfaFactors( +let mfaFactors = try await users.listMFAFactors( userId: "<USER_ID>" ) diff --git a/docs/examples/1.8.x/server-swift/examples/users/update-m-f-a-recovery-codes.md b/docs/examples/1.8.x/server-swift/examples/users/update-m-f-a-recovery-codes.md deleted file mode 100644 index 7ebb34efcb..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/users/update-m-f-a-recovery-codes.md +++ /dev/null @@ -1,13 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -let users = Users(client) - -let mfaRecoveryCodes = try await users.updateMFARecoveryCodes( - userId: "<USER_ID>" -) - diff --git a/docs/examples/1.8.x/server-swift/examples/users/update-m-f-a.md b/docs/examples/1.8.x/server-swift/examples/users/update-m-f-a.md deleted file mode 100644 index ca442b3a3b..0000000000 --- a/docs/examples/1.8.x/server-swift/examples/users/update-m-f-a.md +++ /dev/null @@ -1,14 +0,0 @@ -import Appwrite - -let client = Client() - .setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint - .setProject("<YOUR_PROJECT_ID>") // Your project ID - .setKey("<YOUR_API_KEY>") // Your secret API key - -let users = Users(client) - -let user = try await users.updateMFA( - userId: "<USER_ID>", - mfa: false -) - diff --git a/docs/examples/1.8.x/server-swift/examples/users/update-mfa-recovery-codes.md b/docs/examples/1.8.x/server-swift/examples/users/update-mfa-recovery-codes.md index a6169a782c..7ebb34efcb 100644 --- a/docs/examples/1.8.x/server-swift/examples/users/update-mfa-recovery-codes.md +++ b/docs/examples/1.8.x/server-swift/examples/users/update-mfa-recovery-codes.md @@ -7,7 +7,7 @@ let client = Client() let users = Users(client) -let mfaRecoveryCodes = try await users.updateMfaRecoveryCodes( +let mfaRecoveryCodes = try await users.updateMFARecoveryCodes( userId: "<USER_ID>" ) diff --git a/docs/examples/1.8.x/server-swift/examples/users/update-mfa.md b/docs/examples/1.8.x/server-swift/examples/users/update-mfa.md index ad010f36b8..ca442b3a3b 100644 --- a/docs/examples/1.8.x/server-swift/examples/users/update-mfa.md +++ b/docs/examples/1.8.x/server-swift/examples/users/update-mfa.md @@ -7,7 +7,7 @@ let client = Client() let users = Users(client) -let user = try await users.updateMfa( +let user = try await users.updateMFA( userId: "<USER_ID>", mfa: false )