diff --git a/Dockerfile b/Dockerfile index 23bd3f188f..b197b90cbe 100755 --- a/Dockerfile +++ b/Dockerfile @@ -199,6 +199,10 @@ RUN chmod +x /usr/local/bin/hamster && \ # Letsencrypt Permissions RUN mkdir -p /etc/letsencrypt/live/ && chmod -Rf 755 /etc/letsencrypt/live/ +RUN apk add git openssh-client +RUN git config --global user.email "christyjacob4@gmail.com" +RUN git config --global user.name "Christy Jacob" + # Enable Extensions RUN if [ "$DEBUG" == "true" ]; then printf "zend_extension=yasd \nyasd.debug_mode=remote \nyasd.init_file=/usr/src/code/dev/yasd_init.php \nyasd.remote_port=9005 \nyasd.log_level=-1" >> /usr/local/etc/php/conf.d/yasd.ini; fi diff --git a/app/config/platforms.php b/app/config/platforms.php index 6efaa3b50d..d96a9cb2e8 100644 --- a/app/config/platforms.php +++ b/app/config/platforms.php @@ -15,7 +15,7 @@ return [ [ 'key' => 'web', 'name' => 'Web', - 'version' => '12.0.0', + 'version' => '12.0.1', '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' => '10.0.0', + 'version' => '10.0.1', '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' => '3.0.0', + 'version' => '3.0.1', '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' => '3.0.0', + 'version' => '3.0.1', 'url' => 'https://github.com/appwrite/sdk-for-android', 'package' => 'https://search.maven.org/artifact/io.appwrite/sdk-for-android', 'enabled' => true, @@ -203,7 +203,7 @@ return [ [ 'key' => 'cli', 'name' => 'Command Line', - 'version' => '3.0.0', + 'version' => '3.0.1', 'url' => 'https://github.com/appwrite/sdk-for-cli', 'package' => 'https://www.npmjs.com/package/appwrite-cli', 'enabled' => true, @@ -231,7 +231,7 @@ return [ [ 'key' => 'nodejs', 'name' => 'Node.js', - 'version' => '10.0.0', + 'version' => '10.0.1', 'url' => 'https://github.com/appwrite/sdk-for-node', 'package' => 'https://www.npmjs.com/package/node-appwrite', 'enabled' => true, @@ -249,7 +249,7 @@ return [ [ 'key' => 'deno', 'name' => 'Deno', - 'version' => '8.0.0', + 'version' => '8.0.1', 'url' => 'https://github.com/appwrite/sdk-for-deno', 'package' => 'https://deno.land/x/appwrite', 'enabled' => true, @@ -267,7 +267,7 @@ return [ [ 'key' => 'php', 'name' => 'PHP', - 'version' => '9.0.0', + 'version' => '9.0.1', 'url' => 'https://github.com/appwrite/sdk-for-php', 'package' => 'https://packagist.org/packages/appwrite/appwrite', 'enabled' => true, @@ -285,7 +285,7 @@ return [ [ 'key' => 'python', 'name' => 'Python', - 'version' => '3.0.0', + 'version' => '3.0.1', 'url' => 'https://github.com/appwrite/sdk-for-python', 'package' => 'https://pypi.org/project/appwrite/', 'enabled' => true, @@ -303,7 +303,7 @@ return [ [ 'key' => 'ruby', 'name' => 'Ruby', - 'version' => '9.0.0', + 'version' => '9.0.1', 'url' => 'https://github.com/appwrite/sdk-for-ruby', 'package' => 'https://rubygems.org/gems/appwrite', 'enabled' => true, @@ -321,7 +321,7 @@ return [ [ 'key' => 'go', 'name' => 'Go', - 'version' => '2.0.0', + 'version' => '2.0.1', 'url' => 'https://github.com/appwrite/sdk-for-go', 'package' => '', 'enabled' => false, @@ -339,7 +339,7 @@ return [ [ 'key' => 'java', 'name' => 'Java', - 'version' => '2.0.0', + 'version' => '2.0.1', 'url' => 'https://github.com/appwrite/sdk-for-java', 'package' => '', 'enabled' => false, @@ -375,7 +375,7 @@ return [ [ 'key' => 'dart', 'name' => 'Dart', - 'version' => '9.0.0', + 'version' => '9.0.1', 'url' => 'https://github.com/appwrite/sdk-for-dart', 'package' => 'https://pub.dev/packages/dart_appwrite', 'enabled' => true, @@ -393,7 +393,7 @@ return [ [ 'key' => 'kotlin', 'name' => 'Kotlin', - 'version' => '3.0.0', + 'version' => '3.0.1', 'url' => 'https://github.com/appwrite/sdk-for-kotlin', 'package' => 'https://search.maven.org/artifact/io.appwrite/sdk-for-kotlin', 'enabled' => true, @@ -415,7 +415,7 @@ return [ [ 'key' => 'swift', 'name' => 'Swift', - 'version' => '3.0.0', + 'version' => '3.0.1', 'url' => 'https://github.com/appwrite/sdk-for-swift', 'package' => 'https://github.com/appwrite/sdk-for-swift', 'enabled' => true, diff --git a/composer.json b/composer.json index fba885f951..114dd29ffc 100644 --- a/composer.json +++ b/composer.json @@ -86,7 +86,7 @@ } ], "require-dev": { - "appwrite/sdk-generator": "0.34.*", + "appwrite/sdk-generator": "dev-master", "ext-fileinfo": "*", "phpunit/phpunit": "9.5.20", "squizlabs/php_codesniffer": "^3.7", diff --git a/composer.lock b/composer.lock index 8a3bf6d014..41dba73c73 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "bc47430e5cb3430f354b4eee6fd8c9c7", + "content-hash": "0cf0a0a54adb45ecc1886467c6bcbe55", "packages": [ { "name": "adhocore/jwt", @@ -3460,16 +3460,16 @@ "packages-dev": [ { "name": "appwrite/sdk-generator", - "version": "0.34.1", + "version": "dev-master", "source": { "type": "git", "url": "https://github.com/appwrite/sdk-generator.git", - "reference": "81538d10abacd81350c265b516c72ef315116013" + "reference": "d6f5fe4f65a9e1234febd207db2c5dacfa85b63a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/81538d10abacd81350c265b516c72ef315116013", - "reference": "81538d10abacd81350c265b516c72ef315116013", + "url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/d6f5fe4f65a9e1234febd207db2c5dacfa85b63a", + "reference": "d6f5fe4f65a9e1234febd207db2c5dacfa85b63a", "shasum": "" }, "require": { @@ -3485,6 +3485,7 @@ "phpunit/phpunit": "^9.5.21", "squizlabs/php_codesniffer": "^3.6" }, + "default-branch": true, "type": "library", "autoload": { "psr-4": { @@ -3505,9 +3506,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.34.1" + "source": "https://github.com/appwrite/sdk-generator/tree/master" }, - "time": "2023-08-30T07:57:31+00:00" + "time": "2023-08-31T21:58:28+00:00" }, { "name": "doctrine/deprecations", @@ -6072,7 +6073,9 @@ ], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": { + "appwrite/sdk-generator": 20 + }, "prefer-stable": false, "prefer-lowest": false, "platform": { diff --git a/docker-compose.yml b/docker-compose.yml index b27c3581af..29b28079c0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -84,6 +84,7 @@ services: - ./public:/usr/src/code/public - ./src:/usr/src/code/src - ./dev:/usr/src/code/dev + - /Users/christyjacob/.ssh:/root/.ssh depends_on: - mariadb - redis diff --git a/docs/examples/1.4.x/console-web/examples/account/create-with-invite-code.md b/docs/examples/1.4.x/console-web/examples/account/create-with-invite-code.md new file mode 100644 index 0000000000..eba1ed05d4 --- /dev/null +++ b/docs/examples/1.4.x/console-web/examples/account/create-with-invite-code.md @@ -0,0 +1,18 @@ +import { Client, Account } from "@appwrite.io/console"; + +const client = new Client(); + +const account = new Account(client); + +client + .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +const promise = account.createWithInviteCode('[USER_ID]', 'email@example.com', 'password'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/1.4.x/console-web/examples/assistant/chat.md b/docs/examples/1.4.x/console-web/examples/assistant/chat.md index 2806672a99..a6c22b98bc 100644 --- a/docs/examples/1.4.x/console-web/examples/assistant/chat.md +++ b/docs/examples/1.4.x/console-web/examples/assistant/chat.md @@ -6,6 +6,7 @@ const assistant = new Assistant(client); client .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID ; const promise = assistant.chat('[PROMPT]'); diff --git a/docs/examples/1.4.x/console-web/examples/migrations/delete-firebase-auth.md b/docs/examples/1.4.x/console-web/examples/migrations/delete-firebase-auth.md index b7d890a28a..9884956e54 100644 --- a/docs/examples/1.4.x/console-web/examples/migrations/delete-firebase-auth.md +++ b/docs/examples/1.4.x/console-web/examples/migrations/delete-firebase-auth.md @@ -6,6 +6,7 @@ const migrations = new Migrations(client); client .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID ; const promise = migrations.deleteFirebaseAuth(); diff --git a/docs/examples/1.4.x/console-web/examples/migrations/list-firebase-projects.md b/docs/examples/1.4.x/console-web/examples/migrations/list-firebase-projects.md index e653144357..799f58714f 100644 --- a/docs/examples/1.4.x/console-web/examples/migrations/list-firebase-projects.md +++ b/docs/examples/1.4.x/console-web/examples/migrations/list-firebase-projects.md @@ -6,6 +6,7 @@ const migrations = new Migrations(client); client .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID ; const promise = migrations.listFirebaseProjects(); diff --git a/docs/examples/1.4.x/console-web/examples/projects/create-domain.md b/docs/examples/1.4.x/console-web/examples/projects/create-domain.md new file mode 100644 index 0000000000..78036bc8b0 --- /dev/null +++ b/docs/examples/1.4.x/console-web/examples/projects/create-domain.md @@ -0,0 +1,18 @@ +import { Client, Projects } from "@appwrite.io/console"; + +const client = new Client(); + +const projects = new Projects(client); + +client + .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +const promise = projects.createDomain('[PROJECT_ID]', ''); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/1.4.x/console-web/examples/projects/delete-domain.md b/docs/examples/1.4.x/console-web/examples/projects/delete-domain.md new file mode 100644 index 0000000000..9b8ffbce39 --- /dev/null +++ b/docs/examples/1.4.x/console-web/examples/projects/delete-domain.md @@ -0,0 +1,18 @@ +import { Client, Projects } from "@appwrite.io/console"; + +const client = new Client(); + +const projects = new Projects(client); + +client + .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +const promise = projects.deleteDomain('[PROJECT_ID]', '[DOMAIN_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/1.4.x/console-web/examples/projects/get-domain.md b/docs/examples/1.4.x/console-web/examples/projects/get-domain.md new file mode 100644 index 0000000000..4b82d70ef5 --- /dev/null +++ b/docs/examples/1.4.x/console-web/examples/projects/get-domain.md @@ -0,0 +1,18 @@ +import { Client, Projects } from "@appwrite.io/console"; + +const client = new Client(); + +const projects = new Projects(client); + +client + .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +const promise = projects.getDomain('[PROJECT_ID]', '[DOMAIN_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/1.4.x/console-web/examples/projects/list-domains.md b/docs/examples/1.4.x/console-web/examples/projects/list-domains.md new file mode 100644 index 0000000000..448dbf8d19 --- /dev/null +++ b/docs/examples/1.4.x/console-web/examples/projects/list-domains.md @@ -0,0 +1,18 @@ +import { Client, Projects } from "@appwrite.io/console"; + +const client = new Client(); + +const projects = new Projects(client); + +client + .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +const promise = projects.listDomains('[PROJECT_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/1.4.x/console-web/examples/projects/update-domain-verification.md b/docs/examples/1.4.x/console-web/examples/projects/update-domain-verification.md new file mode 100644 index 0000000000..d994b90aaa --- /dev/null +++ b/docs/examples/1.4.x/console-web/examples/projects/update-domain-verification.md @@ -0,0 +1,18 @@ +import { Client, Projects } from "@appwrite.io/console"; + +const client = new Client(); + +const projects = new Projects(client); + +client + .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +const promise = projects.updateDomainVerification('[PROJECT_ID]', '[DOMAIN_ID]'); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/1.4.x/console-web/examples/teams/update-membership-roles.md b/docs/examples/1.4.x/console-web/examples/teams/update-membership-roles.md new file mode 100644 index 0000000000..c09ed1ac77 --- /dev/null +++ b/docs/examples/1.4.x/console-web/examples/teams/update-membership-roles.md @@ -0,0 +1,18 @@ +import { Client, Teams } from "@appwrite.io/console"; + +const client = new Client(); + +const teams = new Teams(client); + +client + .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID +; + +const promise = teams.updateMembershipRoles('[TEAM_ID]', '[MEMBERSHIP_ID]', []); + +promise.then(function (response) { + console.log(response); // Success +}, function (error) { + console.log(error); // Failure +}); \ No newline at end of file diff --git a/docs/examples/1.4.x/console-web/examples/vcs/create-repository-detection.md b/docs/examples/1.4.x/console-web/examples/vcs/create-repository-detection.md index cc445939e0..dc4591ef28 100644 --- a/docs/examples/1.4.x/console-web/examples/vcs/create-repository-detection.md +++ b/docs/examples/1.4.x/console-web/examples/vcs/create-repository-detection.md @@ -6,6 +6,7 @@ const vcs = new Vcs(client); client .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID ; const promise = vcs.createRepositoryDetection('[INSTALLATION_ID]', '[PROVIDER_REPOSITORY_ID]'); diff --git a/docs/examples/1.4.x/console-web/examples/vcs/create-repository.md b/docs/examples/1.4.x/console-web/examples/vcs/create-repository.md index 7dbc238034..84f919bbc1 100644 --- a/docs/examples/1.4.x/console-web/examples/vcs/create-repository.md +++ b/docs/examples/1.4.x/console-web/examples/vcs/create-repository.md @@ -6,6 +6,7 @@ const vcs = new Vcs(client); client .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID ; const promise = vcs.createRepository('[INSTALLATION_ID]', '[NAME]', false); diff --git a/docs/examples/1.4.x/console-web/examples/vcs/delete-installation.md b/docs/examples/1.4.x/console-web/examples/vcs/delete-installation.md index 390b5afc24..b56f76b09f 100644 --- a/docs/examples/1.4.x/console-web/examples/vcs/delete-installation.md +++ b/docs/examples/1.4.x/console-web/examples/vcs/delete-installation.md @@ -6,6 +6,7 @@ const vcs = new Vcs(client); client .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID ; const promise = vcs.deleteInstallation('[INSTALLATION_ID]'); diff --git a/docs/examples/1.4.x/console-web/examples/vcs/get-installation.md b/docs/examples/1.4.x/console-web/examples/vcs/get-installation.md index c3fb9861d8..6dc92e92b0 100644 --- a/docs/examples/1.4.x/console-web/examples/vcs/get-installation.md +++ b/docs/examples/1.4.x/console-web/examples/vcs/get-installation.md @@ -6,6 +6,7 @@ const vcs = new Vcs(client); client .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID ; const promise = vcs.getInstallation('[INSTALLATION_ID]'); diff --git a/docs/examples/1.4.x/console-web/examples/vcs/get-repository.md b/docs/examples/1.4.x/console-web/examples/vcs/get-repository.md index 63253a6aed..b2c867d939 100644 --- a/docs/examples/1.4.x/console-web/examples/vcs/get-repository.md +++ b/docs/examples/1.4.x/console-web/examples/vcs/get-repository.md @@ -6,6 +6,7 @@ const vcs = new Vcs(client); client .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID ; const promise = vcs.getRepository('[INSTALLATION_ID]', '[PROVIDER_REPOSITORY_ID]'); diff --git a/docs/examples/1.4.x/console-web/examples/vcs/list-installations.md b/docs/examples/1.4.x/console-web/examples/vcs/list-installations.md index 474fb07ea6..f18d999336 100644 --- a/docs/examples/1.4.x/console-web/examples/vcs/list-installations.md +++ b/docs/examples/1.4.x/console-web/examples/vcs/list-installations.md @@ -6,6 +6,7 @@ const vcs = new Vcs(client); client .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID ; const promise = vcs.listInstallations(); diff --git a/docs/examples/1.4.x/console-web/examples/vcs/list-repositories.md b/docs/examples/1.4.x/console-web/examples/vcs/list-repositories.md index db4920f960..85eea5d62f 100644 --- a/docs/examples/1.4.x/console-web/examples/vcs/list-repositories.md +++ b/docs/examples/1.4.x/console-web/examples/vcs/list-repositories.md @@ -6,6 +6,7 @@ const vcs = new Vcs(client); client .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID ; const promise = vcs.listRepositories('[INSTALLATION_ID]'); diff --git a/docs/examples/1.4.x/console-web/examples/vcs/list-repository-branches.md b/docs/examples/1.4.x/console-web/examples/vcs/list-repository-branches.md index f29ff96fda..1ebc3a5fa1 100644 --- a/docs/examples/1.4.x/console-web/examples/vcs/list-repository-branches.md +++ b/docs/examples/1.4.x/console-web/examples/vcs/list-repository-branches.md @@ -6,6 +6,7 @@ const vcs = new Vcs(client); client .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID ; const promise = vcs.listRepositoryBranches('[INSTALLATION_ID]', '[PROVIDER_REPOSITORY_ID]'); diff --git a/docs/examples/1.4.x/console-web/examples/vcs/update-external-deployments.md b/docs/examples/1.4.x/console-web/examples/vcs/update-external-deployments.md index 648ce30785..a95a2c1e35 100644 --- a/docs/examples/1.4.x/console-web/examples/vcs/update-external-deployments.md +++ b/docs/examples/1.4.x/console-web/examples/vcs/update-external-deployments.md @@ -6,6 +6,7 @@ const vcs = new Vcs(client); client .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint + .setProject('5df5acd0d48c2') // Your project ID ; const promise = vcs.updateExternalDeployments('[INSTALLATION_ID]', '[REPOSITORY_ID]', '[PROVIDER_PULL_REQUEST_ID]');