Merge branch 'appwrite:master' into fix-5768-pull-request-to-return-team-id-conflict-error

This commit is contained in:
jaivik 2023-07-18 10:35:52 +05:30 committed by GitHub
commit 6380004678
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
175 changed files with 346 additions and 72 deletions

View file

@ -96,6 +96,7 @@
## Changes
- Released `appwrite/console` [2.0.2](https://github.com/appwrite/console/releases/tag/2.0.2)
- Make `region` parameter optional with default for project create [#4763](https://github.com/appwrite/appwrite/pull/4763)
- Add security headers to the console endpoint [#4758](https://github.com/appwrite/appwrite/pull/4758)
## Bugs
- Fix default oauth paths [#4725](https://github.com/appwrite/appwrite/pull/4725)

View file

@ -285,7 +285,7 @@ return [
[
'key' => 'python',
'name' => 'Python',
'version' => '2.0.0',
'version' => '2.0.2',
'url' => 'https://github.com/appwrite/sdk-for-python',
'package' => 'https://pypi.org/project/appwrite/',
'enabled' => true,
@ -357,7 +357,7 @@ return [
[
'key' => 'dotnet',
'name' => '.NET',
'version' => '0.4.0',
'version' => '0.4.2',
'url' => 'https://github.com/appwrite/sdk-for-dotnet',
'package' => 'https://www.nuget.org/packages/Appwrite',
'enabled' => true,

View file

@ -327,22 +327,22 @@ function updateAttribute(
}
if ($type === Database::VAR_RELATIONSHIP) {
$options = \array_merge($attribute->getAttribute('options', []), $options);
$attribute->setAttribute('options', $options);
$primaryDocumentOptions = \array_merge($attribute->getAttribute('options', []), $options);
$attribute->setAttribute('options', $primaryDocumentOptions);
$dbForProject->updateRelationship(
collection: $collectionId,
id: $key,
onDelete: $options['onDelete'],
onDelete: $primaryDocumentOptions['onDelete'],
);
if ($options['twoWay']) {
$relatedCollection = $dbForProject->getDocument('database_' . $db->getInternalId(), $options['relatedCollection']);
$relatedAttribute = $dbForProject->getDocument('attributes', $db->getInternalId() . '_' . $relatedCollection->getInternalId() . '_' . $options['twoWayKey']);
if ($primaryDocumentOptions['twoWay']) {
$relatedCollection = $dbForProject->getDocument('database_' . $db->getInternalId(), $primaryDocumentOptions['relatedCollection']);
$relatedAttribute = $dbForProject->getDocument('attributes', $db->getInternalId() . '_' . $relatedCollection->getInternalId() . '_' . $primaryDocumentOptions['twoWayKey']);
$relatedOptions = \array_merge($relatedAttribute->getAttribute('options'), $options);
$relatedAttribute->setAttribute('options', $relatedOptions);
$dbForProject->updateDocument('attributes', $db->getInternalId() . '_' . $relatedCollection->getInternalId() . '_' . $options['twoWayKey'], $relatedAttribute);
$dbForProject->updateDocument('attributes', $db->getInternalId() . '_' . $relatedCollection->getInternalId() . '_' . $primaryDocumentOptions['twoWayKey'], $relatedAttribute);
$dbForProject->deleteCachedDocument('database_' . $db->getInternalId(), $relatedCollection->getId());
}
} else {

View file

@ -650,11 +650,13 @@ App::post('/v1/functions/:functionId/deployments')
$end = $request->getContentRangeEnd();
$fileSize = $request->getContentRangeSize();
$deploymentId = $request->getHeader('x-appwrite-id', $deploymentId);
if (is_null($start) || is_null($end) || is_null($fileSize)) {
// TODO make `end >= $fileSize` in next breaking version
if (is_null($start) || is_null($end) || is_null($fileSize) || $end > $fileSize) {
throw new Exception(Exception::STORAGE_INVALID_CONTENT_RANGE);
}
if ($end === $fileSize) {
// TODO remove the condition that checks `$end === $fileSize` in next breaking version
if ($end === $fileSize - 1 || $end === $fileSize) {
//if it's a last chunks the chunk size might differ, so we set the $chunks and $chunk to notify it's last chunk
$chunks = $chunk = -1;
} else {

View file

@ -445,11 +445,13 @@ App::post('/v1/storage/buckets/:bucketId/files')
$end = $request->getContentRangeEnd();
$fileSize = $request->getContentRangeSize();
$fileId = $request->getHeader('x-appwrite-id', $fileId);
if (is_null($start) || is_null($end) || is_null($fileSize)) {
// TODO make `end >= $fileSize` in next breaking version
if (is_null($start) || is_null($end) || is_null($fileSize) || $end > $fileSize) {
throw new Exception(Exception::STORAGE_INVALID_CONTENT_RANGE);
}
if ($end === $fileSize) {
// TODO remove the condition that checks `$end === $fileSize` in next breaking version
if ($end === $fileSize - 1 || $end === $fileSize) {
//if it's a last chunks the chunk size might differ, so we set the $chunks and $chunk to -1 notify it's last chunk
$chunks = $chunk = -1;
} else {

View file

@ -41,6 +41,7 @@ Config::setParam('cookieDomain', 'localhost');
Config::setParam('cookieSamesite', Response::COOKIE_SAMESITE_NONE);
App::init()
->groups(['api'])
->inject('utopia')
->inject('request')
->inject('response')

View file

@ -286,7 +286,7 @@ App::post('/v1/mock/tests/general/upload')
$id = $request->getHeader('x-appwrite-id', '');
$file['size'] = (\is_array($file['size'])) ? $file['size'][0] : $file['size'];
if (is_null($start) || is_null($end) || is_null($size)) {
if (is_null($start) || is_null($end) || is_null($size) || $end >= $size) {
throw new Exception(Exception::GENERAL_MOCK, 'Invalid content-range header');
}
@ -302,11 +302,11 @@ App::post('/v1/mock/tests/general/upload')
throw new Exception(Exception::GENERAL_MOCK, 'All chunked request must have id header (except first)');
}
if ($end !== $size && $end - $start + 1 !== $chunkSize) {
if ($end !== $size - 1 && $end - $start + 1 !== $chunkSize) {
throw new Exception(Exception::GENERAL_MOCK, 'Chunk size must be 5MB (except last chunk)');
}
if ($end !== $size && $file['size'] !== $chunkSize) {
if ($end !== $size - 1 && $file['size'] !== $chunkSize) {
throw new Exception(Exception::GENERAL_MOCK, 'Wrong chunk size');
}
@ -314,11 +314,11 @@ App::post('/v1/mock/tests/general/upload')
throw new Exception(Exception::GENERAL_MOCK, 'Chunk size must be 5MB or less');
}
if ($end !== $size) {
if ($end !== $size - 1) {
$response->json([
'$id' => ID::custom('newfileid'),
'chunksTotal' => $file['size'] / $chunkSize,
'chunksUploaded' => $start / $chunkSize
'chunksTotal' => (int) ceil($size / ($end + 1 - $start)),
'chunksUploaded' => ceil($start / $chunkSize) + 1
]);
}
} else {

View file

@ -1,8 +1,21 @@
<?php
use Appwrite\Utopia\Request;
use Appwrite\Utopia\Response;
use Utopia\App;
App::init()
->groups(['web'])
->inject('request')
->inject('response')
->action(function (Request $request, Response $response) {
$response
->addHeader('X-Frame-Options', 'SAMEORIGIN') // Avoid console and homepage from showing in iframes
->addHeader('X-XSS-Protection', '1; mode=block; report=/v1/xss?url=' . \urlencode($request->getURI()))
->addHeader('X-UA-Compatible', 'IE=Edge') // Deny IE browsers from going into quirks mode
;
});
App::get('/console/*')
->alias('/')
->alias('auth/*')

View file

@ -6,7 +6,7 @@ use Utopia\Config\Config;
App::get('/versions')
->desc('Get Version')
->groups(['web', 'home'])
->groups(['home'])
->label('scope', 'public')
->inject('response')
->action(function (Response $response) {

View file

@ -903,7 +903,7 @@ App::setResource('project', function ($dbForConsole, $request, $console) {
/** @var Utopia\Database\Database $dbForConsole */
/** @var Utopia\Database\Document $console */
$projectId = $request->getParam('project', $request->getHeader('x-appwrite-project', 'console'));
$projectId = $request->getParam('project', $request->getHeader('x-appwrite-project', ''));
if ($projectId === 'console') {
return $console;

75
composer.lock generated
View file

@ -2964,16 +2964,16 @@
},
{
"name": "webonyx/graphql-php",
"version": "v14.11.9",
"version": "v14.11.10",
"source": {
"type": "git",
"url": "https://github.com/webonyx/graphql-php.git",
"reference": "ff91c9f3cf241db702e30b2c42bcc0920e70ac70"
"reference": "d9c2fdebc6aa01d831bc2969da00e8588cffef19"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/webonyx/graphql-php/zipball/ff91c9f3cf241db702e30b2c42bcc0920e70ac70",
"reference": "ff91c9f3cf241db702e30b2c42bcc0920e70ac70",
"url": "https://api.github.com/repos/webonyx/graphql-php/zipball/d9c2fdebc6aa01d831bc2969da00e8588cffef19",
"reference": "d9c2fdebc6aa01d831bc2969da00e8588cffef19",
"shasum": ""
},
"require": {
@ -2993,8 +2993,7 @@
"phpunit/phpunit": "^7.2 || ^8.5",
"psr/http-message": "^1.0",
"react/promise": "2.*",
"simpod/php-coveralls-mirror": "^3.0",
"squizlabs/php_codesniffer": "3.5.4"
"simpod/php-coveralls-mirror": "^3.0"
},
"suggest": {
"psr/http-message": "To use standard GraphQL server",
@ -3018,7 +3017,7 @@
],
"support": {
"issues": "https://github.com/webonyx/graphql-php/issues",
"source": "https://github.com/webonyx/graphql-php/tree/v14.11.9"
"source": "https://github.com/webonyx/graphql-php/tree/v14.11.10"
},
"funding": [
{
@ -3026,22 +3025,22 @@
"type": "open_collective"
}
],
"time": "2023-01-06T12:12:50+00:00"
"time": "2023-07-05T14:23:37+00:00"
}
],
"packages-dev": [
{
"name": "appwrite/sdk-generator",
"version": "0.33.1",
"version": "0.33.6",
"source": {
"type": "git",
"url": "https://github.com/appwrite/sdk-generator.git",
"reference": "551cdae31a68b19874f10ca321b1d08cfa06a13f"
"reference": "237fe97b68090a244382c36f96482c352880a38c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/551cdae31a68b19874f10ca321b1d08cfa06a13f",
"reference": "551cdae31a68b19874f10ca321b1d08cfa06a13f",
"url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/237fe97b68090a244382c36f96482c352880a38c",
"reference": "237fe97b68090a244382c36f96482c352880a38c",
"shasum": ""
},
"require": {
@ -3077,9 +3076,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.33.1"
"source": "https://github.com/appwrite/sdk-generator/tree/0.33.6"
},
"time": "2023-05-16T04:37:34+00:00"
"time": "2023-07-10T16:27:53+00:00"
},
{
"name": "doctrine/deprecations",
@ -3200,16 +3199,16 @@
},
{
"name": "matthiasmullie/minify",
"version": "1.3.70",
"version": "1.3.71",
"source": {
"type": "git",
"url": "https://github.com/matthiasmullie/minify.git",
"reference": "2807d9f9bece6877577ad44acb5c801bb3ae536b"
"reference": "ae42a47d7fecc1fbb7277b2f2d84c37a33edc3b1"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/matthiasmullie/minify/zipball/2807d9f9bece6877577ad44acb5c801bb3ae536b",
"reference": "2807d9f9bece6877577ad44acb5c801bb3ae536b",
"url": "https://api.github.com/repos/matthiasmullie/minify/zipball/ae42a47d7fecc1fbb7277b2f2d84c37a33edc3b1",
"reference": "ae42a47d7fecc1fbb7277b2f2d84c37a33edc3b1",
"shasum": ""
},
"require": {
@ -3259,7 +3258,7 @@
],
"support": {
"issues": "https://github.com/matthiasmullie/minify/issues",
"source": "https://github.com/matthiasmullie/minify/tree/1.3.70"
"source": "https://github.com/matthiasmullie/minify/tree/1.3.71"
},
"funding": [
{
@ -3267,7 +3266,7 @@
"type": "github"
}
],
"time": "2022-12-09T12:56:44+00:00"
"time": "2023-04-25T20:33:03+00:00"
},
{
"name": "matthiasmullie/path-converter",
@ -3383,16 +3382,16 @@
},
{
"name": "nikic/php-parser",
"version": "v4.15.5",
"version": "v4.16.0",
"source": {
"type": "git",
"url": "https://github.com/nikic/PHP-Parser.git",
"reference": "11e2663a5bc9db5d714eedb4277ee300403b4a9e"
"reference": "19526a33fb561ef417e822e85f08a00db4059c17"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/11e2663a5bc9db5d714eedb4277ee300403b4a9e",
"reference": "11e2663a5bc9db5d714eedb4277ee300403b4a9e",
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/19526a33fb561ef417e822e85f08a00db4059c17",
"reference": "19526a33fb561ef417e822e85f08a00db4059c17",
"shasum": ""
},
"require": {
@ -3433,9 +3432,9 @@
],
"support": {
"issues": "https://github.com/nikic/PHP-Parser/issues",
"source": "https://github.com/nikic/PHP-Parser/tree/v4.15.5"
"source": "https://github.com/nikic/PHP-Parser/tree/v4.16.0"
},
"time": "2023-05-19T20:20:00+00:00"
"time": "2023-06-25T14:52:30+00:00"
},
{
"name": "phar-io/manifest",
@ -3786,16 +3785,16 @@
},
{
"name": "phpstan/phpdoc-parser",
"version": "1.22.0",
"version": "1.22.1",
"source": {
"type": "git",
"url": "https://github.com/phpstan/phpdoc-parser.git",
"reference": "ec58baf7b3c7f1c81b3b00617c953249fb8cf30c"
"reference": "65c39594fbd8c67abfc68bb323f86447bab79cc0"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/ec58baf7b3c7f1c81b3b00617c953249fb8cf30c",
"reference": "ec58baf7b3c7f1c81b3b00617c953249fb8cf30c",
"url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/65c39594fbd8c67abfc68bb323f86447bab79cc0",
"reference": "65c39594fbd8c67abfc68bb323f86447bab79cc0",
"shasum": ""
},
"require": {
@ -3827,9 +3826,9 @@
"description": "PHPDoc parser with support for nullable, intersection and generic types",
"support": {
"issues": "https://github.com/phpstan/phpdoc-parser/issues",
"source": "https://github.com/phpstan/phpdoc-parser/tree/1.22.0"
"source": "https://github.com/phpstan/phpdoc-parser/tree/1.22.1"
},
"time": "2023-06-01T12:35:21+00:00"
"time": "2023-06-29T20:46:06+00:00"
},
{
"name": "phpunit/php-code-coverage",
@ -5581,16 +5580,16 @@
},
{
"name": "twig/twig",
"version": "v3.6.0",
"version": "v3.6.1",
"source": {
"type": "git",
"url": "https://github.com/twigphp/Twig.git",
"reference": "106c170d08e8415d78be2d16c3d057d0d108262b"
"reference": "7e7d5839d4bec168dfeef0ac66d5c5a2edbabffd"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/twigphp/Twig/zipball/106c170d08e8415d78be2d16c3d057d0d108262b",
"reference": "106c170d08e8415d78be2d16c3d057d0d108262b",
"url": "https://api.github.com/repos/twigphp/Twig/zipball/7e7d5839d4bec168dfeef0ac66d5c5a2edbabffd",
"reference": "7e7d5839d4bec168dfeef0ac66d5c5a2edbabffd",
"shasum": ""
},
"require": {
@ -5636,7 +5635,7 @@
],
"support": {
"issues": "https://github.com/twigphp/Twig/issues",
"source": "https://github.com/twigphp/Twig/tree/v3.6.0"
"source": "https://github.com/twigphp/Twig/tree/v3.6.1"
},
"funding": [
{
@ -5648,7 +5647,7 @@
"type": "tidelift"
}
],
"time": "2023-05-03T19:06:57+00:00"
"time": "2023-06-08T12:52:13+00:00"
}
],
"aliases": [],

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()
@ -11,5 +12,5 @@ var functions = new Functions(client);
Deployment result = await functions.CreateDeployment(
functionId: "[FUNCTION_ID]",
entrypoint: "[ENTRYPOINT]",
code: new File("./path-to-files/image.jpg"),
code: InputFile.FromPath("./path-to-files/image.jpg"),
activate: false);

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

View file

@ -1,4 +1,5 @@
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()

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