diff --git a/app/config/platforms.php b/app/config/platforms.php index f2b7802fde..06bdf43c8f 100644 --- a/app/config/platforms.php +++ b/app/config/platforms.php @@ -135,24 +135,6 @@ return [ 'Java' => 'java', ], ], - [ - 'key' => 'react-native', - 'name' => 'React Native', - 'version' => '0.3.0', - 'url' => 'https://github.com/appwrite/sdk-for-react-native', - 'package' => 'https://npmjs.com/package/react-native-appwrite', - 'enabled' => true, - 'beta' => true, - 'dev' => false, - 'hidden' => false, - 'family' => APP_PLATFORM_CLIENT, - 'prism' => 'javascript', - 'source' => \realpath(__DIR__ . '/../sdks/client-react-native'), - 'gitUrl' => 'git@github.com:appwrite/sdk-for-react-native.git', - 'gitRepoName' => 'sdk-for-react-native', - 'gitUserName' => 'appwrite', - 'gitBranch' => 'dev', - ], [ 'key' => 'graphql', 'name' => 'GraphQL', diff --git a/docs/examples/1.5.x/client-react-native/examples/account/create-anonymous-session.md b/docs/examples/1.5.x/client-react-native/examples/account/create-anonymous-session.md deleted file mode 100644 index 1c807bdc96..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/account/create-anonymous-session.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('5df5acd0d48c2'); // Your project ID - -const account = new Account(client); - -const result = await account.createAnonymousSession(); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/create-email-password-session.md b/docs/examples/1.5.x/client-react-native/examples/account/create-email-password-session.md deleted file mode 100644 index d338cbe233..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/account/create-email-password-session.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('5df5acd0d48c2'); // Your project ID - -const account = new Account(client); - -const result = await account.createEmailPasswordSession( - 'email@example.com', // email - 'password' // password -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/create-email-token.md b/docs/examples/1.5.x/client-react-native/examples/account/create-email-token.md deleted file mode 100644 index cb2a31145b..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/account/create-email-token.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Account } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const account = new Account(client); - -const result = await account.createEmailToken( - '', // userId - 'email@example.com', // email - false // phrase (optional) -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/create-j-w-t.md b/docs/examples/1.5.x/client-react-native/examples/account/create-j-w-t.md deleted file mode 100644 index 88ea31c5a3..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/account/create-j-w-t.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('5df5acd0d48c2'); // Your project ID - -const account = new Account(client); - -const result = await account.createJWT(); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/create-magic-u-r-l-token.md b/docs/examples/1.5.x/client-react-native/examples/account/create-magic-u-r-l-token.md deleted file mode 100644 index f2e7e8faf6..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/account/create-magic-u-r-l-token.md +++ /dev/null @@ -1,16 +0,0 @@ -import { Client, Account } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const account = new Account(client); - -const result = await account.createMagicURLToken( - '', // userId - 'email@example.com', // email - 'https://example.com', // url (optional) - false // phrase (optional) -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/create-mfa-authenticator.md b/docs/examples/1.5.x/client-react-native/examples/account/create-mfa-authenticator.md deleted file mode 100644 index 88bc313a88..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/account/create-mfa-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('5df5acd0d48c2'); // Your project ID - -const account = new Account(client); - -const result = await account.createMfaAuthenticator( - AuthenticatorType.Totp // type -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/create-mfa-challenge.md b/docs/examples/1.5.x/client-react-native/examples/account/create-mfa-challenge.md deleted file mode 100644 index 119a204f0b..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/account/create-mfa-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('5df5acd0d48c2'); // Your project ID - -const account = new Account(client); - -const result = await account.createMfaChallenge( - AuthenticationFactor.Email // factor -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/create-mfa-recovery-codes.md b/docs/examples/1.5.x/client-react-native/examples/account/create-mfa-recovery-codes.md deleted file mode 100644 index 4ffd8a39a1..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/account/create-mfa-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('5df5acd0d48c2'); // Your project ID - -const account = new Account(client); - -const result = await account.createMfaRecoveryCodes(); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/create-o-auth2session.md b/docs/examples/1.5.x/client-react-native/examples/account/create-o-auth2session.md deleted file mode 100644 index 2302aaaa1e..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/account/create-o-auth2session.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Account, OAuthProvider } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const account = new Account(client); - -account.createOAuth2Session( - OAuthProvider.Amazon, // provider - 'https://example.com', // success (optional) - 'https://example.com', // failure (optional) - [] // scopes (optional) -); - diff --git a/docs/examples/1.5.x/client-react-native/examples/account/create-o-auth2token.md b/docs/examples/1.5.x/client-react-native/examples/account/create-o-auth2token.md deleted file mode 100644 index 3479924e64..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/account/create-o-auth2token.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Account, OAuthProvider } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const account = new Account(client); - -account.createOAuth2Token( - OAuthProvider.Amazon, // provider - 'https://example.com', // success (optional) - 'https://example.com', // failure (optional) - [] // scopes (optional) -); - diff --git a/docs/examples/1.5.x/client-react-native/examples/account/create-phone-token.md b/docs/examples/1.5.x/client-react-native/examples/account/create-phone-token.md deleted file mode 100644 index 93fc1b7f51..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/account/create-phone-token.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('5df5acd0d48c2'); // Your project ID - -const account = new Account(client); - -const result = await account.createPhoneToken( - '', // userId - '+12065550100' // phone -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/create-phone-verification.md b/docs/examples/1.5.x/client-react-native/examples/account/create-phone-verification.md deleted file mode 100644 index 28833c1806..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/account/create-phone-verification.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('5df5acd0d48c2'); // Your project ID - -const account = new Account(client); - -const result = await account.createPhoneVerification(); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/create-push-target.md b/docs/examples/1.5.x/client-react-native/examples/account/create-push-target.md deleted file mode 100644 index dd15821eaa..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/account/create-push-target.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Account } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const account = new Account(client); - -const result = await account.createPushTarget( - '', // targetId - '', // identifier - '' // providerId (optional) -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/create-recovery.md b/docs/examples/1.5.x/client-react-native/examples/account/create-recovery.md deleted file mode 100644 index 5d2855486b..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/account/create-recovery.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('5df5acd0d48c2'); // Your project ID - -const account = new Account(client); - -const result = await account.createRecovery( - 'email@example.com', // email - 'https://example.com' // url -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/create-session.md b/docs/examples/1.5.x/client-react-native/examples/account/create-session.md deleted file mode 100644 index f8a9f109a7..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/account/create-session.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('5df5acd0d48c2'); // Your project ID - -const account = new Account(client); - -const result = await account.createSession( - '', // userId - '' // secret -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/create-verification.md b/docs/examples/1.5.x/client-react-native/examples/account/create-verification.md deleted file mode 100644 index d072126c4e..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/account/create-verification.md +++ /dev/null @@ -1,13 +0,0 @@ -import { Client, Account } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const account = new Account(client); - -const result = await account.createVerification( - 'https://example.com' // url -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/create.md b/docs/examples/1.5.x/client-react-native/examples/account/create.md deleted file mode 100644 index 300f59b219..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/account/create.md +++ /dev/null @@ -1,16 +0,0 @@ -import { Client, Account } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const account = new Account(client); - -const result = await account.create( - '', // userId - 'email@example.com', // email - '', // password - '' // name (optional) -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/delete-identity.md b/docs/examples/1.5.x/client-react-native/examples/account/delete-identity.md deleted file mode 100644 index 9ff1bbd35d..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/account/delete-identity.md +++ /dev/null @@ -1,13 +0,0 @@ -import { Client, Account } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const account = new Account(client); - -const result = await account.deleteIdentity( - '' // identityId -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/delete-mfa-authenticator.md b/docs/examples/1.5.x/client-react-native/examples/account/delete-mfa-authenticator.md deleted file mode 100644 index c5f5695ddf..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/account/delete-mfa-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('5df5acd0d48c2'); // Your project ID - -const account = new Account(client); - -const result = await account.deleteMfaAuthenticator( - AuthenticatorType.Totp, // type - '' // otp -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/delete-push-target.md b/docs/examples/1.5.x/client-react-native/examples/account/delete-push-target.md deleted file mode 100644 index 351b933bd0..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/account/delete-push-target.md +++ /dev/null @@ -1,13 +0,0 @@ -import { Client, Account } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const account = new Account(client); - -const result = await account.deletePushTarget( - '' // targetId -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/delete-session.md b/docs/examples/1.5.x/client-react-native/examples/account/delete-session.md deleted file mode 100644 index 22966495c1..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/account/delete-session.md +++ /dev/null @@ -1,13 +0,0 @@ -import { Client, Account } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const account = new Account(client); - -const result = await account.deleteSession( - '' // sessionId -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/delete-sessions.md b/docs/examples/1.5.x/client-react-native/examples/account/delete-sessions.md deleted file mode 100644 index b0967bf019..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/account/delete-sessions.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('5df5acd0d48c2'); // Your project ID - -const account = new Account(client); - -const result = await account.deleteSessions(); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/get-mfa-recovery-codes.md b/docs/examples/1.5.x/client-react-native/examples/account/get-mfa-recovery-codes.md deleted file mode 100644 index d1c38fdde0..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/account/get-mfa-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('5df5acd0d48c2'); // Your project ID - -const account = new Account(client); - -const result = await account.getMfaRecoveryCodes(); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/get-prefs.md b/docs/examples/1.5.x/client-react-native/examples/account/get-prefs.md deleted file mode 100644 index b2502d7b19..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/account/get-prefs.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('5df5acd0d48c2'); // Your project ID - -const account = new Account(client); - -const result = await account.getPrefs(); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/get-session.md b/docs/examples/1.5.x/client-react-native/examples/account/get-session.md deleted file mode 100644 index 3ecb79feee..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/account/get-session.md +++ /dev/null @@ -1,13 +0,0 @@ -import { Client, Account } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const account = new Account(client); - -const result = await account.getSession( - '' // sessionId -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/get.md b/docs/examples/1.5.x/client-react-native/examples/account/get.md deleted file mode 100644 index 94f0779d53..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/account/get.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('5df5acd0d48c2'); // Your project ID - -const account = new Account(client); - -const result = await account.get(); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/list-identities.md b/docs/examples/1.5.x/client-react-native/examples/account/list-identities.md deleted file mode 100644 index e7ca637afe..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/account/list-identities.md +++ /dev/null @@ -1,13 +0,0 @@ -import { Client, Account } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const account = new Account(client); - -const result = await account.listIdentities( - [] // queries (optional) -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/list-logs.md b/docs/examples/1.5.x/client-react-native/examples/account/list-logs.md deleted file mode 100644 index 424f8d76af..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/account/list-logs.md +++ /dev/null @@ -1,13 +0,0 @@ -import { Client, Account } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const account = new Account(client); - -const result = await account.listLogs( - [] // queries (optional) -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/list-mfa-factors.md b/docs/examples/1.5.x/client-react-native/examples/account/list-mfa-factors.md deleted file mode 100644 index c6343a732e..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/account/list-mfa-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('5df5acd0d48c2'); // Your project ID - -const account = new Account(client); - -const result = await account.listMfaFactors(); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/list-sessions.md b/docs/examples/1.5.x/client-react-native/examples/account/list-sessions.md deleted file mode 100644 index b0840c59e3..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/account/list-sessions.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('5df5acd0d48c2'); // Your project ID - -const account = new Account(client); - -const result = await account.listSessions(); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/update-email.md b/docs/examples/1.5.x/client-react-native/examples/account/update-email.md deleted file mode 100644 index 560581e63c..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/account/update-email.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('5df5acd0d48c2'); // Your project ID - -const account = new Account(client); - -const result = await account.updateEmail( - 'email@example.com', // email - 'password' // password -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/update-m-f-a.md b/docs/examples/1.5.x/client-react-native/examples/account/update-m-f-a.md deleted file mode 100644 index 38fd716c6a..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/account/update-m-f-a.md +++ /dev/null @@ -1,13 +0,0 @@ -import { Client, Account } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const account = new Account(client); - -const result = await account.updateMFA( - false // mfa -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/update-magic-u-r-l-session.md b/docs/examples/1.5.x/client-react-native/examples/account/update-magic-u-r-l-session.md deleted file mode 100644 index bb0c000126..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/account/update-magic-u-r-l-session.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('5df5acd0d48c2'); // Your project ID - -const account = new Account(client); - -const result = await account.updateMagicURLSession( - '', // userId - '' // secret -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/update-mfa-authenticator.md b/docs/examples/1.5.x/client-react-native/examples/account/update-mfa-authenticator.md deleted file mode 100644 index d8ec7aed65..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/account/update-mfa-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('5df5acd0d48c2'); // Your project ID - -const account = new Account(client); - -const result = await account.updateMfaAuthenticator( - AuthenticatorType.Totp, // type - '' // otp -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/update-mfa-challenge.md b/docs/examples/1.5.x/client-react-native/examples/account/update-mfa-challenge.md deleted file mode 100644 index 7d87506457..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/account/update-mfa-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('5df5acd0d48c2'); // Your project ID - -const account = new Account(client); - -const result = await account.updateMfaChallenge( - '', // challengeId - '' // otp -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/update-mfa-recovery-codes.md b/docs/examples/1.5.x/client-react-native/examples/account/update-mfa-recovery-codes.md deleted file mode 100644 index cfbbf6f3c8..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/account/update-mfa-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('5df5acd0d48c2'); // Your project ID - -const account = new Account(client); - -const result = await account.updateMfaRecoveryCodes(); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/update-name.md b/docs/examples/1.5.x/client-react-native/examples/account/update-name.md deleted file mode 100644 index 8a403f2ab1..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/account/update-name.md +++ /dev/null @@ -1,13 +0,0 @@ -import { Client, Account } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const account = new Account(client); - -const result = await account.updateName( - '' // name -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/update-password.md b/docs/examples/1.5.x/client-react-native/examples/account/update-password.md deleted file mode 100644 index 09edf09182..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/account/update-password.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('5df5acd0d48c2'); // Your project ID - -const account = new Account(client); - -const result = await account.updatePassword( - '', // password - 'password' // oldPassword (optional) -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/update-phone-session.md b/docs/examples/1.5.x/client-react-native/examples/account/update-phone-session.md deleted file mode 100644 index cf026227fc..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/account/update-phone-session.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('5df5acd0d48c2'); // Your project ID - -const account = new Account(client); - -const result = await account.updatePhoneSession( - '', // userId - '' // secret -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/update-phone-verification.md b/docs/examples/1.5.x/client-react-native/examples/account/update-phone-verification.md deleted file mode 100644 index 8467309a06..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/account/update-phone-verification.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('5df5acd0d48c2'); // Your project ID - -const account = new Account(client); - -const result = await account.updatePhoneVerification( - '', // userId - '' // secret -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/update-phone.md b/docs/examples/1.5.x/client-react-native/examples/account/update-phone.md deleted file mode 100644 index 46efc14142..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/account/update-phone.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('5df5acd0d48c2'); // Your project ID - -const account = new Account(client); - -const result = await account.updatePhone( - '+12065550100', // phone - 'password' // password -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/update-prefs.md b/docs/examples/1.5.x/client-react-native/examples/account/update-prefs.md deleted file mode 100644 index a3ff8c3408..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/account/update-prefs.md +++ /dev/null @@ -1,13 +0,0 @@ -import { Client, Account } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const account = new Account(client); - -const result = await account.updatePrefs( - {} // prefs -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/update-push-target.md b/docs/examples/1.5.x/client-react-native/examples/account/update-push-target.md deleted file mode 100644 index 8096568d55..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/account/update-push-target.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('5df5acd0d48c2'); // Your project ID - -const account = new Account(client); - -const result = await account.updatePushTarget( - '', // targetId - '' // identifier -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/update-recovery.md b/docs/examples/1.5.x/client-react-native/examples/account/update-recovery.md deleted file mode 100644 index 1ee93d35f9..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/account/update-recovery.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Account } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const account = new Account(client); - -const result = await account.updateRecovery( - '', // userId - '', // secret - '' // password -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/update-session.md b/docs/examples/1.5.x/client-react-native/examples/account/update-session.md deleted file mode 100644 index 397e07edc2..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/account/update-session.md +++ /dev/null @@ -1,13 +0,0 @@ -import { Client, Account } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const account = new Account(client); - -const result = await account.updateSession( - '' // sessionId -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/update-status.md b/docs/examples/1.5.x/client-react-native/examples/account/update-status.md deleted file mode 100644 index 27ce518621..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/account/update-status.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('5df5acd0d48c2'); // Your project ID - -const account = new Account(client); - -const result = await account.updateStatus(); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/account/update-verification.md b/docs/examples/1.5.x/client-react-native/examples/account/update-verification.md deleted file mode 100644 index 0007335fa5..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/account/update-verification.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('5df5acd0d48c2'); // Your project ID - -const account = new Account(client); - -const result = await account.updateVerification( - '', // userId - '' // secret -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/avatars/get-browser.md b/docs/examples/1.5.x/client-react-native/examples/avatars/get-browser.md deleted file mode 100644 index 9ceb1a39cf..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/avatars/get-browser.md +++ /dev/null @@ -1,16 +0,0 @@ -import { Client, Avatars, Browser } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const avatars = new Avatars(client); - -const result = avatars.getBrowser( - Browser.AvantBrowser, // code - 0, // width (optional) - 0, // height (optional) - 0 // quality (optional) -); - -console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/avatars/get-credit-card.md b/docs/examples/1.5.x/client-react-native/examples/avatars/get-credit-card.md deleted file mode 100644 index 0de631974a..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/avatars/get-credit-card.md +++ /dev/null @@ -1,16 +0,0 @@ -import { Client, Avatars, CreditCard } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const avatars = new Avatars(client); - -const result = avatars.getCreditCard( - CreditCard.AmericanExpress, // code - 0, // width (optional) - 0, // height (optional) - 0 // quality (optional) -); - -console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/avatars/get-favicon.md b/docs/examples/1.5.x/client-react-native/examples/avatars/get-favicon.md deleted file mode 100644 index 6e23a774c0..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/avatars/get-favicon.md +++ /dev/null @@ -1,13 +0,0 @@ -import { Client, Avatars } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const avatars = new Avatars(client); - -const result = avatars.getFavicon( - 'https://example.com' // url -); - -console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/avatars/get-flag.md b/docs/examples/1.5.x/client-react-native/examples/avatars/get-flag.md deleted file mode 100644 index 6761052394..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/avatars/get-flag.md +++ /dev/null @@ -1,16 +0,0 @@ -import { Client, Avatars, Flag } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const avatars = new Avatars(client); - -const result = avatars.getFlag( - Flag.Afghanistan, // code - 0, // width (optional) - 0, // height (optional) - 0 // quality (optional) -); - -console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/avatars/get-image.md b/docs/examples/1.5.x/client-react-native/examples/avatars/get-image.md deleted file mode 100644 index b4956df8f1..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/avatars/get-image.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Avatars } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const avatars = new Avatars(client); - -const result = avatars.getImage( - 'https://example.com', // url - 0, // width (optional) - 0 // height (optional) -); - -console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/avatars/get-initials.md b/docs/examples/1.5.x/client-react-native/examples/avatars/get-initials.md deleted file mode 100644 index ba70a9cb03..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/avatars/get-initials.md +++ /dev/null @@ -1,16 +0,0 @@ -import { Client, Avatars } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const avatars = new Avatars(client); - -const result = avatars.getInitials( - '', // name (optional) - 0, // width (optional) - 0, // height (optional) - '' // background (optional) -); - -console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/avatars/get-q-r.md b/docs/examples/1.5.x/client-react-native/examples/avatars/get-q-r.md deleted file mode 100644 index d4f2db2df8..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/avatars/get-q-r.md +++ /dev/null @@ -1,16 +0,0 @@ -import { Client, Avatars } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const avatars = new Avatars(client); - -const result = avatars.getQR( - '', // text - 1, // size (optional) - 0, // margin (optional) - false // download (optional) -); - -console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/databases/create-document.md b/docs/examples/1.5.x/client-react-native/examples/databases/create-document.md deleted file mode 100644 index 15d1afcdc3..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/databases/create-document.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Databases } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const databases = new Databases(client); - -const result = await databases.createDocument( - '', // databaseId - '', // collectionId - '', // documentId - {}, // data - ["read("any")"] // permissions (optional) -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/databases/delete-document.md b/docs/examples/1.5.x/client-react-native/examples/databases/delete-document.md deleted file mode 100644 index f6fef3bcdf..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/databases/delete-document.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Databases } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const databases = new Databases(client); - -const result = await databases.deleteDocument( - '', // databaseId - '', // collectionId - '' // documentId -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/databases/get-document.md b/docs/examples/1.5.x/client-react-native/examples/databases/get-document.md deleted file mode 100644 index 502f2f4640..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/databases/get-document.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 - .setProject('5df5acd0d48c2'); // Your project ID - -const databases = new Databases(client); - -const result = await databases.getDocument( - '', // databaseId - '', // collectionId - '', // documentId - [] // queries (optional) -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/databases/list-documents.md b/docs/examples/1.5.x/client-react-native/examples/databases/list-documents.md deleted file mode 100644 index 90dcd6318c..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/databases/list-documents.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Databases } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const databases = new Databases(client); - -const result = await databases.listDocuments( - '', // databaseId - '', // collectionId - [] // queries (optional) -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/databases/update-document.md b/docs/examples/1.5.x/client-react-native/examples/databases/update-document.md deleted file mode 100644 index fa04f2134a..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/databases/update-document.md +++ /dev/null @@ -1,17 +0,0 @@ -import { Client, Databases } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const databases = new Databases(client); - -const result = await databases.updateDocument( - '', // databaseId - '', // collectionId - '', // documentId - {}, // data (optional) - ["read("any")"] // permissions (optional) -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/functions/create-execution.md b/docs/examples/1.5.x/client-react-native/examples/functions/create-execution.md deleted file mode 100644 index 1b4bfaa609..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/functions/create-execution.md +++ /dev/null @@ -1,18 +0,0 @@ -import { Client, Functions, ExecutionMethod } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const functions = new Functions(client); - -const result = await functions.createExecution( - '', // functionId - '', // body (optional) - false, // async (optional) - '', // path (optional) - ExecutionMethod.GET, // method (optional) - {} // headers (optional) -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/functions/get-execution.md b/docs/examples/1.5.x/client-react-native/examples/functions/get-execution.md deleted file mode 100644 index adda043543..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/functions/get-execution.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Functions } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const functions = new Functions(client); - -const result = await functions.getExecution( - '', // functionId - '' // executionId -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/functions/list-executions.md b/docs/examples/1.5.x/client-react-native/examples/functions/list-executions.md deleted file mode 100644 index b1fdd6bd6f..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/functions/list-executions.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Functions } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const functions = new Functions(client); - -const result = await functions.listExecutions( - '', // functionId - [], // queries (optional) - '' // search (optional) -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/graphql/mutation.md b/docs/examples/1.5.x/client-react-native/examples/graphql/mutation.md deleted file mode 100644 index b3c3583804..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/graphql/mutation.md +++ /dev/null @@ -1,13 +0,0 @@ -import { Client, Graphql } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const graphql = new Graphql(client); - -const result = await graphql.mutation( - {} // query -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/graphql/query.md b/docs/examples/1.5.x/client-react-native/examples/graphql/query.md deleted file mode 100644 index e15400d05d..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/graphql/query.md +++ /dev/null @@ -1,13 +0,0 @@ -import { Client, Graphql } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const graphql = new Graphql(client); - -const result = await graphql.query( - {} // query -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/locale/get.md b/docs/examples/1.5.x/client-react-native/examples/locale/get.md deleted file mode 100644 index 4af9df39bc..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/locale/get.md +++ /dev/null @@ -1,11 +0,0 @@ -import { Client, Locale } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const locale = new Locale(client); - -const result = await locale.get(); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/locale/list-codes.md b/docs/examples/1.5.x/client-react-native/examples/locale/list-codes.md deleted file mode 100644 index 8737fde873..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/locale/list-codes.md +++ /dev/null @@ -1,11 +0,0 @@ -import { Client, Locale } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const locale = new Locale(client); - -const result = await locale.listCodes(); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/locale/list-continents.md b/docs/examples/1.5.x/client-react-native/examples/locale/list-continents.md deleted file mode 100644 index e8c3920a17..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/locale/list-continents.md +++ /dev/null @@ -1,11 +0,0 @@ -import { Client, Locale } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const locale = new Locale(client); - -const result = await locale.listContinents(); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/locale/list-countries-e-u.md b/docs/examples/1.5.x/client-react-native/examples/locale/list-countries-e-u.md deleted file mode 100644 index 0a2abc53c7..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/locale/list-countries-e-u.md +++ /dev/null @@ -1,11 +0,0 @@ -import { Client, Locale } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const locale = new Locale(client); - -const result = await locale.listCountriesEU(); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/locale/list-countries-phones.md b/docs/examples/1.5.x/client-react-native/examples/locale/list-countries-phones.md deleted file mode 100644 index d4d00ae394..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/locale/list-countries-phones.md +++ /dev/null @@ -1,11 +0,0 @@ -import { Client, Locale } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const locale = new Locale(client); - -const result = await locale.listCountriesPhones(); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/locale/list-countries.md b/docs/examples/1.5.x/client-react-native/examples/locale/list-countries.md deleted file mode 100644 index 8839b6f039..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/locale/list-countries.md +++ /dev/null @@ -1,11 +0,0 @@ -import { Client, Locale } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const locale = new Locale(client); - -const result = await locale.listCountries(); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/locale/list-currencies.md b/docs/examples/1.5.x/client-react-native/examples/locale/list-currencies.md deleted file mode 100644 index 6700ef1292..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/locale/list-currencies.md +++ /dev/null @@ -1,11 +0,0 @@ -import { Client, Locale } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const locale = new Locale(client); - -const result = await locale.listCurrencies(); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/locale/list-languages.md b/docs/examples/1.5.x/client-react-native/examples/locale/list-languages.md deleted file mode 100644 index db9b17294e..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/locale/list-languages.md +++ /dev/null @@ -1,11 +0,0 @@ -import { Client, Locale } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const locale = new Locale(client); - -const result = await locale.listLanguages(); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/messaging/create-subscriber.md b/docs/examples/1.5.x/client-react-native/examples/messaging/create-subscriber.md deleted file mode 100644 index bf5a0cec1d..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/messaging/create-subscriber.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Messaging } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const messaging = new Messaging(client); - -const result = await messaging.createSubscriber( - '', // topicId - '', // subscriberId - '' // targetId -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/messaging/delete-subscriber.md b/docs/examples/1.5.x/client-react-native/examples/messaging/delete-subscriber.md deleted file mode 100644 index da995fc419..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/messaging/delete-subscriber.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Messaging } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const messaging = new Messaging(client); - -const result = await messaging.deleteSubscriber( - '', // topicId - '' // subscriberId -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/storage/create-file.md b/docs/examples/1.5.x/client-react-native/examples/storage/create-file.md deleted file mode 100644 index 73908c6de0..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/storage/create-file.md +++ /dev/null @@ -1,16 +0,0 @@ -import { Client, Storage } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const storage = new Storage(client); - -const result = await storage.createFile( - '', // bucketId - '', // fileId - await pickSingle(), // file - ["read("any")"] // permissions (optional) -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/storage/delete-file.md b/docs/examples/1.5.x/client-react-native/examples/storage/delete-file.md deleted file mode 100644 index 4373ebec04..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/storage/delete-file.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Storage } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const storage = new Storage(client); - -const result = await storage.deleteFile( - '', // bucketId - '' // fileId -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/storage/get-file-download.md b/docs/examples/1.5.x/client-react-native/examples/storage/get-file-download.md deleted file mode 100644 index 943bf9dd76..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/storage/get-file-download.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Storage } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const storage = new Storage(client); - -const result = storage.getFileDownload( - '', // bucketId - '' // fileId -); - -console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/storage/get-file-preview.md b/docs/examples/1.5.x/client-react-native/examples/storage/get-file-preview.md deleted file mode 100644 index 76713c8694..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/storage/get-file-preview.md +++ /dev/null @@ -1,25 +0,0 @@ -import { Client, Storage, ImageGravity, ImageFormat } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const storage = new Storage(client); - -const result = storage.getFilePreview( - '', // bucketId - '', // fileId - 0, // width (optional) - 0, // height (optional) - ImageGravity.Center, // gravity (optional) - 0, // quality (optional) - 0, // borderWidth (optional) - '', // borderColor (optional) - 0, // borderRadius (optional) - 0, // opacity (optional) - -360, // rotation (optional) - '', // background (optional) - ImageFormat.Jpg // output (optional) -); - -console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/storage/get-file-view.md b/docs/examples/1.5.x/client-react-native/examples/storage/get-file-view.md deleted file mode 100644 index b551e02405..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/storage/get-file-view.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Storage } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const storage = new Storage(client); - -const result = storage.getFileView( - '', // bucketId - '' // fileId -); - -console.log(result); diff --git a/docs/examples/1.5.x/client-react-native/examples/storage/get-file.md b/docs/examples/1.5.x/client-react-native/examples/storage/get-file.md deleted file mode 100644 index 8731c8463d..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/storage/get-file.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Storage } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const storage = new Storage(client); - -const result = await storage.getFile( - '', // bucketId - '' // fileId -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/storage/list-files.md b/docs/examples/1.5.x/client-react-native/examples/storage/list-files.md deleted file mode 100644 index c72b9ba8a5..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/storage/list-files.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Storage } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const storage = new Storage(client); - -const result = await storage.listFiles( - '', // bucketId - [], // queries (optional) - '' // search (optional) -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/storage/update-file.md b/docs/examples/1.5.x/client-react-native/examples/storage/update-file.md deleted file mode 100644 index 87f81ab038..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/storage/update-file.md +++ /dev/null @@ -1,16 +0,0 @@ -import { Client, Storage } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const storage = new Storage(client); - -const result = await storage.updateFile( - '', // bucketId - '', // fileId - '', // name (optional) - ["read("any")"] // permissions (optional) -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/teams/create-membership.md b/docs/examples/1.5.x/client-react-native/examples/teams/create-membership.md deleted file mode 100644 index a5d6fa043e..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/teams/create-membership.md +++ /dev/null @@ -1,19 +0,0 @@ -import { Client, Teams } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const teams = new Teams(client); - -const result = await teams.createMembership( - '', // teamId - [], // roles - 'email@example.com', // email (optional) - '', // userId (optional) - '+12065550100', // phone (optional) - 'https://example.com', // url (optional) - '' // name (optional) -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/teams/create.md b/docs/examples/1.5.x/client-react-native/examples/teams/create.md deleted file mode 100644 index f61df435a2..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/teams/create.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Teams } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const teams = new Teams(client); - -const result = await teams.create( - '', // teamId - '', // name - [] // roles (optional) -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/teams/delete-membership.md b/docs/examples/1.5.x/client-react-native/examples/teams/delete-membership.md deleted file mode 100644 index f5ed1bcf9c..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/teams/delete-membership.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Teams } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const teams = new Teams(client); - -const result = await teams.deleteMembership( - '', // teamId - '' // membershipId -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/teams/delete.md b/docs/examples/1.5.x/client-react-native/examples/teams/delete.md deleted file mode 100644 index 77dac565b0..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/teams/delete.md +++ /dev/null @@ -1,13 +0,0 @@ -import { Client, Teams } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const teams = new Teams(client); - -const result = await teams.delete( - '' // teamId -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/teams/get-membership.md b/docs/examples/1.5.x/client-react-native/examples/teams/get-membership.md deleted file mode 100644 index 44a664c5db..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/teams/get-membership.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Teams } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const teams = new Teams(client); - -const result = await teams.getMembership( - '', // teamId - '' // membershipId -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/teams/get-prefs.md b/docs/examples/1.5.x/client-react-native/examples/teams/get-prefs.md deleted file mode 100644 index 5f7cf16921..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/teams/get-prefs.md +++ /dev/null @@ -1,13 +0,0 @@ -import { Client, Teams } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const teams = new Teams(client); - -const result = await teams.getPrefs( - '' // teamId -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/teams/get.md b/docs/examples/1.5.x/client-react-native/examples/teams/get.md deleted file mode 100644 index 28d8895c9c..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/teams/get.md +++ /dev/null @@ -1,13 +0,0 @@ -import { Client, Teams } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const teams = new Teams(client); - -const result = await teams.get( - '' // teamId -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/teams/list-memberships.md b/docs/examples/1.5.x/client-react-native/examples/teams/list-memberships.md deleted file mode 100644 index afc2e39d20..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/teams/list-memberships.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Teams } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const teams = new Teams(client); - -const result = await teams.listMemberships( - '', // teamId - [], // queries (optional) - '' // search (optional) -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/teams/list.md b/docs/examples/1.5.x/client-react-native/examples/teams/list.md deleted file mode 100644 index cd97431d14..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/teams/list.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Teams } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const teams = new Teams(client); - -const result = await teams.list( - [], // queries (optional) - '' // search (optional) -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/teams/update-membership-status.md b/docs/examples/1.5.x/client-react-native/examples/teams/update-membership-status.md deleted file mode 100644 index 85eecb9320..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/teams/update-membership-status.md +++ /dev/null @@ -1,16 +0,0 @@ -import { Client, Teams } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const teams = new Teams(client); - -const result = await teams.updateMembershipStatus( - '', // teamId - '', // membershipId - '', // userId - '' // secret -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/teams/update-membership.md b/docs/examples/1.5.x/client-react-native/examples/teams/update-membership.md deleted file mode 100644 index 684c40a2d0..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/teams/update-membership.md +++ /dev/null @@ -1,15 +0,0 @@ -import { Client, Teams } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const teams = new Teams(client); - -const result = await teams.updateMembership( - '', // teamId - '', // membershipId - [] // roles -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/teams/update-name.md b/docs/examples/1.5.x/client-react-native/examples/teams/update-name.md deleted file mode 100644 index 75f3fda4ef..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/teams/update-name.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Teams } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const teams = new Teams(client); - -const result = await teams.updateName( - '', // teamId - '' // name -); - -console.log(response); diff --git a/docs/examples/1.5.x/client-react-native/examples/teams/update-prefs.md b/docs/examples/1.5.x/client-react-native/examples/teams/update-prefs.md deleted file mode 100644 index f9c4c21623..0000000000 --- a/docs/examples/1.5.x/client-react-native/examples/teams/update-prefs.md +++ /dev/null @@ -1,14 +0,0 @@ -import { Client, Teams } from "react-native-appwrite"; - -const client = new Client() - .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint - .setProject('5df5acd0d48c2'); // Your project ID - -const teams = new Teams(client); - -const result = await teams.updatePrefs( - '', // teamId - {} // prefs -); - -console.log(response); diff --git a/docs/sdks/react-native/CHANGELOG.md b/docs/sdks/react-native/CHANGELOG.md deleted file mode 100644 index 21fbe5456c..0000000000 --- a/docs/sdks/react-native/CHANGELOG.md +++ /dev/null @@ -1 +0,0 @@ -# Change log \ No newline at end of file diff --git a/docs/sdks/react-native/GETTING_STARTED.md b/docs/sdks/react-native/GETTING_STARTED.md deleted file mode 100644 index 9d07eec54a..0000000000 --- a/docs/sdks/react-native/GETTING_STARTED.md +++ /dev/null @@ -1,85 +0,0 @@ - -## Getting Started - -### Add your Platform -If this is your first time using Appwrite, create an account and create your first project. - -Then, under **Add a platform**, add a **Android app** or a **Apple app**. You can skip optional steps. - -#### iOS steps -Add your app **name** and **Bundle ID**. You can find your **Bundle Identifier** in the **General** tab for your app's primary target in XCode. For Expo projects you can set or find it on **app.json** file at your project's root directory. - -#### Android steps -Add your app's **name** and **package name**, Your package name is generally the **applicationId** in your app-level **build.gradle** file. For Expo projects you can set or find it on **app.json** file at your project's root directory. - -## Setup - -On `index.js` add import for `react-native-url-polyfill` - -``` -import 'react-native-url-polyfill/auto' -``` - -> If you are building for iOS, don't forget to install pods -> `cd ios && pod install && cd ..` - -### Init your SDK -Initialize your SDK with your Appwrite server API endpoint and project ID which can be found in your project settings page. - -```js -import { Client } from 'react-native-appwrite'; -// Init your React Native SDK -const client = new Client(); - -client - .setEndpoint('http://localhost/v1') // Your Appwrite Endpoint - .setProject('455x34dfkj') // Your project ID - .setPlatform('com.example.myappwriteapp') // Your application ID or bundle ID. -; -``` - -### Make Your First Request -Once your SDK object is set, access any of the Appwrite services and choose any request to send. Full documentation for any service method you would like to use can be found in your SDK documentation or in the [API References](https://appwrite.io/docs) section. - -```js -const account = new Account(client); - -// Register User -account.create(ID.unique(), 'me@example.com', 'password', 'Jane Doe') - .then(function (response) { - console.log(response); - }, function (error) { - console.log(error); - }); - -``` - -### Full Example -```js -import { Client, Account } from 'react-native-appwrite'; -// Init your React Native SDK -const client = new Client(); - -client - .setEndpoint('http://localhost/v1') // Your Appwrite Endpoint - .setProject('455x34dfkj') - .setPlatform('com.example.myappwriteapp') // YOUR application ID -; - -const account = new Account(client); - -// Register User -account.create(ID.unique(), 'me@example.com', 'password', 'Jane Doe') - .then(function (response) { - console.log(response); - }, function (error) { - console.log(error); - }); -``` - -### Learn more -You can use the following resources to learn more and get help -- 🚀 [Getting Started Tutorial](https://appwrite.io/docs/quick-starts/react-native) -- 📜 [Appwrite Docs](https://appwrite.io/docs) -- 💬 [Discord Community](https://appwrite.io/discord) -- 🚂 [Appwrite React Native Playground](https://github.com/appwrite/playground-for-react-native) \ No newline at end of file diff --git a/src/Appwrite/Platform/Tasks/SDKs.php b/src/Appwrite/Platform/Tasks/SDKs.php index 22b3234027..946606c7ef 100644 --- a/src/Appwrite/Platform/Tasks/SDKs.php +++ b/src/Appwrite/Platform/Tasks/SDKs.php @@ -15,7 +15,6 @@ use Appwrite\SDK\Language\Kotlin; use Appwrite\SDK\Language\Node; use Appwrite\SDK\Language\PHP; use Appwrite\SDK\Language\Python; -use Appwrite\SDK\Language\ReactNative; use Appwrite\SDK\Language\REST; use Appwrite\SDK\Language\Ruby; use Appwrite\SDK\Language\Swift; @@ -160,10 +159,6 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND $config = new Flutter(); $config->setPackageName('appwrite'); break; - case 'react-native': - $config = new ReactNative(); - $config->setNPMPackage('react-native-appwrite'); - break; case 'flutter-dev': $config = new Flutter(); $config->setPackageName('appwrite_dev');