Merge remote-tracking branch 'origin/1.6.x' into feat-benchmark-headers

This commit is contained in:
Matej Bačo
2024-08-21 12:26:59 +00:00
1285 changed files with 2680 additions and 1506 deletions
+18 -36
View File
@@ -15,7 +15,7 @@ return [
[
'key' => 'web',
'name' => 'Web',
'version' => '16.0.0-rc.1',
'version' => '16.0.0-rc.4',
'url' => 'https://github.com/appwrite/sdk-for-web',
'package' => 'https://www.npmjs.com/package/appwrite',
'enabled' => true,
@@ -63,7 +63,7 @@ return [
[
'key' => 'flutter',
'name' => 'Flutter',
'version' => '13.0.0-rc.1',
'version' => '13.0.0-rc.3',
'url' => 'https://github.com/appwrite/sdk-for-flutter',
'package' => 'https://pub.dev/packages/appwrite',
'enabled' => true,
@@ -81,7 +81,7 @@ return [
[
'key' => 'apple',
'name' => 'Apple',
'version' => '6.0.0',
'version' => '7.0.0-rc.2',
'url' => 'https://github.com/appwrite/sdk-for-apple',
'package' => 'https://github.com/appwrite/sdk-for-apple',
'enabled' => true,
@@ -116,7 +116,7 @@ return [
[
'key' => 'android',
'name' => 'Android',
'version' => '5.1.1',
'version' => '6.0.0-rc.2',
'url' => 'https://github.com/appwrite/sdk-for-android',
'package' => 'https://search.maven.org/artifact/io.appwrite/sdk-for-android',
'enabled' => true,
@@ -138,7 +138,7 @@ return [
[
'key' => 'react-native',
'name' => 'React Native',
'version' => '0.4.0',
'version' => '0.5.0-rc.2',
'url' => 'https://github.com/appwrite/sdk-for-react-native',
'package' => 'https://npmjs.com/package/react-native-appwrite',
'enabled' => true,
@@ -203,7 +203,7 @@ return [
[
'key' => 'web',
'name' => 'Console',
'version' => '0.6.3',
'version' => '0.6.5-rc.2',
'url' => 'https://github.com/appwrite/sdk-for-console',
'package' => '',
'enabled' => true,
@@ -214,14 +214,14 @@ return [
'prism' => 'javascript',
'source' => \realpath(__DIR__ . '/../sdks/console-web'),
'gitUrl' => 'git@github.com:appwrite/sdk-for-console.git',
'gitBranch' => 'main',
'gitBranch' => 'dev',
'gitRepoName' => 'sdk-for-console',
'gitUserName' => 'appwrite',
],
[
'key' => 'cli',
'name' => 'Command Line',
'version' => '6.0.0-rc.4',
'version' => '6.0.0-rc.8',
'url' => 'https://github.com/appwrite/sdk-for-cli',
'package' => 'https://www.npmjs.com/package/appwrite-cli',
'enabled' => true,
@@ -249,7 +249,7 @@ return [
[
'key' => 'nodejs',
'name' => 'Node.js',
'version' => '14.0.0-rc.1',
'version' => '14.0.0-rc.3',
'url' => 'https://github.com/appwrite/sdk-for-node',
'package' => 'https://www.npmjs.com/package/node-appwrite',
'enabled' => true,
@@ -267,7 +267,7 @@ return [
[
'key' => 'deno',
'name' => 'Deno',
'version' => '11.0.0',
'version' => '12.0.0-rc.2',
'url' => 'https://github.com/appwrite/sdk-for-deno',
'package' => 'https://deno.land/x/appwrite',
'enabled' => true,
@@ -285,7 +285,7 @@ return [
[
'key' => 'php',
'name' => 'PHP',
'version' => '11.0.2',
'version' => '12.0.0-rc.2',
'url' => 'https://github.com/appwrite/sdk-for-php',
'package' => 'https://packagist.org/packages/appwrite/appwrite',
'enabled' => true,
@@ -303,7 +303,7 @@ return [
[
'key' => 'python',
'name' => 'Python',
'version' => '5.0.3',
'version' => '6.0.0-rc.2',
'url' => 'https://github.com/appwrite/sdk-for-python',
'package' => 'https://pypi.org/project/appwrite/',
'enabled' => true,
@@ -321,7 +321,7 @@ return [
[
'key' => 'ruby',
'name' => 'Ruby',
'version' => '11.0.2',
'version' => '12.0.0-rc.3',
'url' => 'https://github.com/appwrite/sdk-for-ruby',
'package' => 'https://rubygems.org/gems/appwrite',
'enabled' => true,
@@ -339,7 +339,7 @@ return [
[
'key' => 'go',
'name' => 'Go',
'version' => '4.0.1',
'version' => '0.0.1-rc.8',
'url' => 'https://github.com/appwrite/sdk-for-go',
'package' => 'https://github.com/appwrite/sdk-for-go',
'enabled' => true,
@@ -354,28 +354,10 @@ return [
'gitUserName' => 'appwrite',
'gitBranch' => 'dev',
],
[
'key' => 'java',
'name' => 'Java',
'version' => '4.0.2',
'url' => 'https://github.com/appwrite/sdk-for-java',
'package' => '',
'enabled' => false,
'beta' => true,
'dev' => false,
'hidden' => false,
'family' => APP_PLATFORM_SERVER,
'prism' => 'java',
'source' => \realpath(__DIR__ . '/../sdks/server-java'),
'gitUrl' => 'git@github.com:appwrite/sdk-for-java.git',
'gitRepoName' => 'sdk-for-java',
'gitUserName' => 'appwrite',
'gitBranch' => 'dev',
],
[
'key' => 'dotnet',
'name' => '.NET',
'version' => '0.8.3',
'version' => '0.9.0-rc.2',
'url' => 'https://github.com/appwrite/sdk-for-dotnet',
'package' => 'https://www.nuget.org/packages/Appwrite',
'enabled' => true,
@@ -393,7 +375,7 @@ return [
[
'key' => 'dart',
'name' => 'Dart',
'version' => '12.0.0-rc.1',
'version' => '12.0.0-rc.3',
'url' => 'https://github.com/appwrite/sdk-for-dart',
'package' => 'https://pub.dev/packages/dart_appwrite',
'enabled' => true,
@@ -411,7 +393,7 @@ return [
[
'key' => 'kotlin',
'name' => 'Kotlin',
'version' => '5.0.2',
'version' => '6.0.0-rc.2',
'url' => 'https://github.com/appwrite/sdk-for-kotlin',
'package' => 'https://search.maven.org/artifact/io.appwrite/sdk-for-kotlin',
'enabled' => true,
@@ -433,7 +415,7 @@ return [
[
'key' => 'swift',
'name' => 'Swift',
'version' => '5.0.2',
'version' => '6.0.0-rc.2',
'url' => 'https://github.com/appwrite/sdk-for-swift',
'package' => 'https://github.com/appwrite/sdk-for-swift',
'enabled' => true,
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Generated
+6 -82
View File
@@ -2993,16 +2993,16 @@
"packages-dev": [
{
"name": "appwrite/sdk-generator",
"version": "0.39.11",
"version": "0.39.13",
"source": {
"type": "git",
"url": "https://github.com/appwrite/sdk-generator.git",
"reference": "703aea359e8a1baecfc167494e750e79616be745"
"reference": "1130d024dd667d132be0b843c970bee82e593aaf"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/703aea359e8a1baecfc167494e750e79616be745",
"reference": "703aea359e8a1baecfc167494e750e79616be745",
"url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/1130d024dd667d132be0b843c970bee82e593aaf",
"reference": "1130d024dd667d132be0b843c970bee82e593aaf",
"shasum": ""
},
"require": {
@@ -3038,85 +3038,9 @@
"description": "Appwrite PHP library for generating API SDKs for multiple programming languages and platforms",
"support": {
"issues": "https://github.com/appwrite/sdk-generator/issues",
"source": "https://github.com/appwrite/sdk-generator/tree/0.39.11"
"source": "https://github.com/appwrite/sdk-generator/tree/0.39.13"
},
"time": "2024-08-20T16:01:17+00:00"
},
{
"name": "doctrine/annotations",
"version": "2.0.1",
"source": {
"type": "git",
"url": "https://github.com/doctrine/annotations.git",
"reference": "e157ef3f3124bbf6fe7ce0ffd109e8a8ef284e7f"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/doctrine/annotations/zipball/e157ef3f3124bbf6fe7ce0ffd109e8a8ef284e7f",
"reference": "e157ef3f3124bbf6fe7ce0ffd109e8a8ef284e7f",
"shasum": ""
},
"require": {
"doctrine/lexer": "^2 || ^3",
"ext-tokenizer": "*",
"php": "^7.2 || ^8.0",
"psr/cache": "^1 || ^2 || ^3"
},
"require-dev": {
"doctrine/cache": "^2.0",
"doctrine/coding-standard": "^10",
"phpstan/phpstan": "^1.8.0",
"phpunit/phpunit": "^7.5 || ^8.5 || ^9.5",
"symfony/cache": "^5.4 || ^6",
"vimeo/psalm": "^4.10"
},
"suggest": {
"php": "PHP 8.0 or higher comes with attributes, a native replacement for annotations"
},
"type": "library",
"autoload": {
"psr-4": {
"Doctrine\\Common\\Annotations\\": "lib/Doctrine/Common/Annotations"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Guilherme Blanco",
"email": "guilhermeblanco@gmail.com"
},
{
"name": "Roman Borschel",
"email": "roman@code-factory.org"
},
{
"name": "Benjamin Eberlei",
"email": "kontakt@beberlei.de"
},
{
"name": "Jonathan Wage",
"email": "jonwage@gmail.com"
},
{
"name": "Johannes Schmitt",
"email": "schmittjoh@gmail.com"
}
],
"description": "Docblock Annotations Parser",
"homepage": "https://www.doctrine-project.org/projects/annotations.html",
"keywords": [
"annotations",
"docblock",
"parser"
],
"support": {
"issues": "https://github.com/doctrine/annotations/issues",
"source": "https://github.com/doctrine/annotations/tree/2.0.1"
},
"time": "2023-02-02T22:02:53+00:00"
"time": "2024-08-21T10:45:26+00:00"
},
{
"name": "doctrine/deprecations",
+1 -1
View File
@@ -873,7 +873,7 @@ services:
hostname: exc1
<<: *x-logging
stop_signal: SIGINT
image: openruntimes/executor:0.6.6
image: openruntimes/executor:0.6.5
restart: unless-stopped
networks:
- appwrite
@@ -11,7 +11,6 @@ Account account = new Account(client);
account.deleteMfaAuthenticator(
AuthenticatorType.TOTP, // type
"<OTP>", // otp
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -0,0 +1,23 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Functions;
Client client = new Client(context)
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.setProject("&lt;YOUR_PROJECT_ID&gt;"); // Your project ID
Functions functions = new Functions(client);
functions.getDeploymentDownload(
"<FUNCTION_ID>", // functionId
"<DEPLOYMENT_ID>", // deploymentId
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
return;
}
Log.d("Appwrite", result.toString());
})
);
@@ -0,0 +1,22 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Functions;
Client client = new Client(context)
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.setProject("&lt;YOUR_PROJECT_ID&gt;"); // Your project ID
Functions functions = new Functions(client);
functions.getTemplate(
"<TEMPLATE_ID>", // templateId
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
return;
}
Log.d("Appwrite", result.toString());
})
);
@@ -0,0 +1,25 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Functions;
Client client = new Client(context)
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.setProject("&lt;YOUR_PROJECT_ID&gt;"); // Your project ID
Functions functions = new Functions(client);
functions.listTemplates(
listOf(), // runtimes (optional)
listOf(), // useCases (optional)
1, // limit (optional)
0, // offset (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
return;
}
Log.d("Appwrite", result.toString());
})
);
@@ -11,5 +11,4 @@ val account = Account(client)
val result = account.deleteMfaAuthenticator(
type = AuthenticatorType.TOTP,
otp = "<OTP>",
)
@@ -0,0 +1,14 @@
import io.appwrite.Client
import io.appwrite.coroutines.CoroutineCallback
import io.appwrite.services.Functions
val client = Client(context)
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.setProject("&lt;YOUR_PROJECT_ID&gt;") // Your project ID
val functions = Functions(client)
val result = functions.getDeploymentDownload(
functionId = "<FUNCTION_ID>",
deploymentId = "<DEPLOYMENT_ID>",
)
@@ -0,0 +1,13 @@
import io.appwrite.Client
import io.appwrite.coroutines.CoroutineCallback
import io.appwrite.services.Functions
val client = Client(context)
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.setProject("&lt;YOUR_PROJECT_ID&gt;") // Your project ID
val functions = Functions(client)
val result = functions.getTemplate(
templateId = "<TEMPLATE_ID>",
)
@@ -0,0 +1,16 @@
import io.appwrite.Client
import io.appwrite.coroutines.CoroutineCallback
import io.appwrite.services.Functions
val client = Client(context)
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.setProject("&lt;YOUR_PROJECT_ID&gt;") // Your project ID
val functions = Functions(client)
val result = functions.listTemplates(
runtimes = listOf(), // (optional)
useCases = listOf(), // (optional)
limit = 1, // (optional)
offset = 0, // (optional)
)
@@ -8,7 +8,6 @@ let client = Client()
let account = Account(client)
let result = try await account.deleteMfaAuthenticator(
type: .totp,
otp: "<OTP>"
type: .totp
)
@@ -0,0 +1,13 @@
import Appwrite
let client = Client()
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.setProject("&lt;YOUR_PROJECT_ID&gt;") // Your project ID
let functions = Functions(client)
let bytes = try await functions.getDeploymentDownload(
functionId: "<FUNCTION_ID>",
deploymentId: "<DEPLOYMENT_ID>"
)
@@ -0,0 +1,12 @@
import Appwrite
let client = Client()
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.setProject("&lt;YOUR_PROJECT_ID&gt;") // Your project ID
let functions = Functions(client)
let templateFunction = try await functions.getTemplate(
templateId: "<TEMPLATE_ID>"
)
@@ -0,0 +1,15 @@
import Appwrite
let client = Client()
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.setProject("&lt;YOUR_PROJECT_ID&gt;") // Your project ID
let functions = Functions(client)
let templateFunctionList = try await functions.listTemplates(
runtimes: [], // optional
useCases: [], // optional
limit: 1, // optional
offset: 0 // optional
)
@@ -8,5 +8,4 @@ Account account = Account(client);
await account.deleteMfaAuthenticator(
type: AuthenticatorType.totp,
otp: '<OTP>',
);
@@ -0,0 +1,29 @@
import 'package:appwrite/appwrite.dart';
Client client = Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('&lt;YOUR_PROJECT_ID&gt;'); // Your project ID
Functions functions = Functions(client);
// Downloading file
UInt8List bytes = await functions.getDeploymentDownload(
functionId: '<FUNCTION_ID>',
deploymentId: '<DEPLOYMENT_ID>',
)
final file = File('path_to_file/filename.ext');
file.writeAsBytesSync(bytes);
// Displaying image preview
FutureBuilder(
future: functions.getDeploymentDownload(
functionId:'<FUNCTION_ID>' ,
deploymentId:'<DEPLOYMENT_ID>' ,
), // Works for both public file and private file, for private files you need to be logged in
builder: (context, snapshot) {
return snapshot.hasData && snapshot.data != null
? Image.memory(snapshot.data)
: CircularProgressIndicator();
}
);
@@ -0,0 +1,11 @@
import 'package:appwrite/appwrite.dart';
Client client = Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('&lt;YOUR_PROJECT_ID&gt;'); // Your project ID
Functions functions = Functions(client);
TemplateFunction result = await functions.getTemplate(
templateId: '<TEMPLATE_ID>',
);
@@ -0,0 +1,14 @@
import 'package:appwrite/appwrite.dart';
Client client = Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('&lt;YOUR_PROJECT_ID&gt;'); // Your project ID
Functions functions = Functions(client);
TemplateFunctionList result = await functions.listTemplates(
runtimes: [], // optional
useCases: [], // optional
limit: 1, // optional
offset: 0, // optional
);
@@ -1,7 +1,6 @@
mutation {
accountDeleteMfaAuthenticator(
type: "totp",
otp: "<OTP>"
type: "totp"
) {
status
}
@@ -30,5 +30,6 @@ mutation {
logs
errors
duration
scheduledAt
}
}
@@ -0,0 +1,8 @@
query {
functionsGetDeploymentDownload(
functionId: "<FUNCTION_ID>",
deploymentId: "<DEPLOYMENT_ID>"
) {
status
}
}
@@ -25,5 +25,6 @@ query {
logs
errors
duration
scheduledAt
}
}
@@ -0,0 +1,35 @@
query {
functionsGetTemplate(
templateId: "<TEMPLATE_ID>"
) {
icon
id
name
tagline
permissions
events
cron
timeout
useCases
runtimes {
name
commands
entrypoint
providerRootDirectory
}
instructions
vcsProvider
providerRepositoryId
providerOwner
providerVersion
variables {
name
description
value
placeholder
required
type
}
scopes
}
}
@@ -28,6 +28,7 @@ query {
logs
errors
duration
scheduledAt
}
}
}
@@ -0,0 +1,41 @@
query {
functionsListTemplates(
runtimes: [],
useCases: [],
limit: 1,
offset: 0
) {
total
templates {
icon
id
name
tagline
permissions
events
cron
timeout
useCases
runtimes {
name
commands
entrypoint
providerRootDirectory
}
instructions
vcsProvider
providerRepositoryId
providerOwner
providerVersion
variables {
name
description
value
placeholder
required
type
}
scopes
}
}
}
@@ -1,7 +1,7 @@
POST /v1/storage/buckets/{bucketId}/files HTTP/1.1
Host: cloud.appwrite.io
Content-Type: multipart/form-data; boundary="cec8e8123c05ba25"
X-Appwrite-Response-Format: 1.5.0
X-Appwrite-Response-Format: 1.6.0
X-Appwrite-Project: &lt;YOUR_PROJECT_ID&gt;
X-Appwrite-Session:
X-Appwrite-JWT: &lt;YOUR_JWT&gt;
@@ -8,4 +8,4 @@ const account = new Account(client);
const result = await account.createAnonymousSession();
console.log(response);
console.log(result);
@@ -11,4 +11,4 @@ const result = await account.createEmailPasswordSession(
'password' // password
);
console.log(response);
console.log(result);
@@ -12,4 +12,4 @@ const result = await account.createEmailToken(
false // phrase (optional)
);
console.log(response);
console.log(result);
@@ -8,4 +8,4 @@ const account = new Account(client);
const result = await account.createJWT();
console.log(response);
console.log(result);
@@ -13,4 +13,4 @@ const result = await account.createMagicURLToken(
false // phrase (optional)
);
console.log(response);
console.log(result);
@@ -10,4 +10,4 @@ const result = await account.createMfaAuthenticator(
AuthenticatorType.Totp // type
);
console.log(response);
console.log(result);
@@ -10,4 +10,4 @@ const result = await account.createMfaChallenge(
AuthenticationFactor.Email // factor
);
console.log(response);
console.log(result);
@@ -8,4 +8,4 @@ const account = new Account(client);
const result = await account.createMfaRecoveryCodes();
console.log(response);
console.log(result);
@@ -11,4 +11,4 @@ const result = await account.createPhoneToken(
'+12065550100' // phone
);
console.log(response);
console.log(result);
@@ -8,4 +8,4 @@ const account = new Account(client);
const result = await account.createPhoneVerification();
console.log(response);
console.log(result);
@@ -12,4 +12,4 @@ const result = await account.createPushTarget(
'<PROVIDER_ID>' // providerId (optional)
);
console.log(response);
console.log(result);
@@ -11,4 +11,4 @@ const result = await account.createRecovery(
'https://example.com' // url
);
console.log(response);
console.log(result);
@@ -11,4 +11,4 @@ const result = await account.createSession(
'<SECRET>' // secret
);
console.log(response);
console.log(result);
@@ -10,4 +10,4 @@ const result = await account.createVerification(
'https://example.com' // url
);
console.log(response);
console.log(result);
@@ -13,4 +13,4 @@ const result = await account.create(
'<NAME>' // name (optional)
);
console.log(response);
console.log(result);
@@ -10,4 +10,4 @@ const result = await account.deleteIdentity(
'<IDENTITY_ID>' // identityId
);
console.log(response);
console.log(result);
@@ -7,8 +7,7 @@ const client = new Client()
const account = new Account(client);
const result = await account.deleteMfaAuthenticator(
AuthenticatorType.Totp, // type
'<OTP>' // otp
AuthenticatorType.Totp // type
);
console.log(response);
console.log(result);
@@ -10,4 +10,4 @@ const result = await account.deletePushTarget(
'<TARGET_ID>' // targetId
);
console.log(response);
console.log(result);
@@ -10,4 +10,4 @@ const result = await account.deleteSession(
'<SESSION_ID>' // sessionId
);
console.log(response);
console.log(result);
@@ -8,4 +8,4 @@ const account = new Account(client);
const result = await account.deleteSessions();
console.log(response);
console.log(result);
@@ -8,4 +8,4 @@ const account = new Account(client);
const result = await account.getMfaRecoveryCodes();
console.log(response);
console.log(result);
@@ -8,4 +8,4 @@ const account = new Account(client);
const result = await account.getPrefs();
console.log(response);
console.log(result);
@@ -10,4 +10,4 @@ const result = await account.getSession(
'<SESSION_ID>' // sessionId
);
console.log(response);
console.log(result);
@@ -8,4 +8,4 @@ const account = new Account(client);
const result = await account.get();
console.log(response);
console.log(result);
@@ -10,4 +10,4 @@ const result = await account.listIdentities(
[] // queries (optional)
);
console.log(response);
console.log(result);
@@ -10,4 +10,4 @@ const result = await account.listLogs(
[] // queries (optional)
);
console.log(response);
console.log(result);
@@ -8,4 +8,4 @@ const account = new Account(client);
const result = await account.listMfaFactors();
console.log(response);
console.log(result);
@@ -8,4 +8,4 @@ const account = new Account(client);
const result = await account.listSessions();
console.log(response);
console.log(result);
@@ -11,4 +11,4 @@ const result = await account.updateEmail(
'password' // password
);
console.log(response);
console.log(result);
@@ -10,4 +10,4 @@ const result = await account.updateMFA(
false // mfa
);
console.log(response);
console.log(result);
@@ -11,4 +11,4 @@ const result = await account.updateMagicURLSession(
'<SECRET>' // secret
);
console.log(response);
console.log(result);
@@ -11,4 +11,4 @@ const result = await account.updateMfaAuthenticator(
'<OTP>' // otp
);
console.log(response);
console.log(result);
@@ -11,4 +11,4 @@ const result = await account.updateMfaChallenge(
'<OTP>' // otp
);
console.log(response);
console.log(result);
@@ -8,4 +8,4 @@ const account = new Account(client);
const result = await account.updateMfaRecoveryCodes();
console.log(response);
console.log(result);
@@ -10,4 +10,4 @@ const result = await account.updateName(
'<NAME>' // name
);
console.log(response);
console.log(result);
@@ -11,4 +11,4 @@ const result = await account.updatePassword(
'password' // oldPassword (optional)
);
console.log(response);
console.log(result);
@@ -11,4 +11,4 @@ const result = await account.updatePhoneSession(
'<SECRET>' // secret
);
console.log(response);
console.log(result);
@@ -11,4 +11,4 @@ const result = await account.updatePhoneVerification(
'<SECRET>' // secret
);
console.log(response);
console.log(result);
@@ -11,4 +11,4 @@ const result = await account.updatePhone(
'password' // password
);
console.log(response);
console.log(result);
@@ -10,4 +10,4 @@ const result = await account.updatePrefs(
{} // prefs
);
console.log(response);
console.log(result);
@@ -11,4 +11,4 @@ const result = await account.updatePushTarget(
'<IDENTIFIER>' // identifier
);
console.log(response);
console.log(result);
@@ -12,4 +12,4 @@ const result = await account.updateRecovery(
'' // password
);
console.log(response);
console.log(result);
@@ -10,4 +10,4 @@ const result = await account.updateSession(
'<SESSION_ID>' // sessionId
);
console.log(response);
console.log(result);
@@ -8,4 +8,4 @@ const account = new Account(client);
const result = await account.updateStatus();
console.log(response);
console.log(result);
@@ -11,4 +11,4 @@ const result = await account.updateVerification(
'<SECRET>' // secret
);
console.log(response);
console.log(result);
@@ -14,4 +14,4 @@ const result = await databases.createDocument(
["read("any")"] // permissions (optional)
);
console.log(response);
console.log(result);
@@ -12,4 +12,4 @@ const result = await databases.deleteDocument(
'<DOCUMENT_ID>' // documentId
);
console.log(response);
console.log(result);
@@ -13,4 +13,4 @@ const result = await databases.getDocument(
[] // queries (optional)
);
console.log(response);
console.log(result);
@@ -12,4 +12,4 @@ const result = await databases.listDocuments(
[] // queries (optional)
);
console.log(response);
console.log(result);
@@ -14,4 +14,4 @@ const result = await databases.updateDocument(
["read("any")"] // permissions (optional)
);
console.log(response);
console.log(result);
@@ -16,4 +16,4 @@ const result = await functions.createExecution(
'' // scheduledAt (optional)
);
console.log(response);
console.log(result);
@@ -0,0 +1,14 @@
import { Client, Functions } from "react-native-appwrite";
const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('&lt;YOUR_PROJECT_ID&gt;'); // Your project ID
const functions = new Functions(client);
const result = functions.getDeploymentDownload(
'<FUNCTION_ID>', // functionId
'<DEPLOYMENT_ID>' // deploymentId
);
console.log(result);
@@ -11,4 +11,4 @@ const result = await functions.getExecution(
'<EXECUTION_ID>' // executionId
);
console.log(response);
console.log(result);
@@ -0,0 +1,13 @@
import { Client, Functions } from "react-native-appwrite";
const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('&lt;YOUR_PROJECT_ID&gt;'); // Your project ID
const functions = new Functions(client);
const result = await functions.getTemplate(
'<TEMPLATE_ID>' // templateId
);
console.log(result);
@@ -12,4 +12,4 @@ const result = await functions.listExecutions(
'<SEARCH>' // search (optional)
);
console.log(response);
console.log(result);
@@ -0,0 +1,16 @@
import { Client, Functions } from "react-native-appwrite";
const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('&lt;YOUR_PROJECT_ID&gt;'); // Your project ID
const functions = new Functions(client);
const result = await functions.listTemplates(
[], // runtimes (optional)
[], // useCases (optional)
1, // limit (optional)
0 // offset (optional)
);
console.log(result);
@@ -10,4 +10,4 @@ const result = await graphql.mutation(
{} // query
);
console.log(response);
console.log(result);
@@ -10,4 +10,4 @@ const result = await graphql.query(
{} // query
);
console.log(response);
console.log(result);
@@ -8,4 +8,4 @@ const locale = new Locale(client);
const result = await locale.get();
console.log(response);
console.log(result);
@@ -8,4 +8,4 @@ const locale = new Locale(client);
const result = await locale.listCodes();
console.log(response);
console.log(result);
@@ -8,4 +8,4 @@ const locale = new Locale(client);
const result = await locale.listContinents();
console.log(response);
console.log(result);

Some files were not shown because too many files have changed in this diff Show More