From 44869a00e6c7ecb1331be9b380e281b697c691b2 Mon Sep 17 00:00:00 2001 From: eldadfux Date: Thu, 3 Oct 2019 20:58:18 +0300 Subject: [PATCH] Updated docs examples --- app/sdks/dart/README.md | 6 +- app/sdks/dart/lib/services/auth.dart | 20 +- app/sdks/dart/lib/services/locale.dart | 6 +- app/sdks/js/README.md | 10 +- .../js/docs/examples/projects/create-task.md | 2 +- .../docs/examples/projects/create-webhook.md | 2 +- .../js/docs/examples/projects/update-task.md | 2 +- .../docs/examples/projects/update-webhook.md | 2 +- app/sdks/js/src/sdk.js | 602 +++++++++--------- app/sdks/node/README.md | 8 +- app/sdks/node/docs/examples/account/delete.md | 2 +- .../node/docs/examples/account/get-prefs.md | 2 +- .../docs/examples/account/get-security.md | 2 +- .../docs/examples/account/get-sessions.md | 2 +- app/sdks/node/docs/examples/account/get.md | 2 +- .../docs/examples/account/update-email.md | 2 +- .../node/docs/examples/account/update-name.md | 2 +- .../docs/examples/account/update-password.md | 2 +- .../docs/examples/account/update-prefs.md | 2 +- .../node/docs/examples/auth/confirm-resend.md | 2 +- app/sdks/node/docs/examples/auth/confirm.md | 2 +- app/sdks/node/docs/examples/auth/login.md | 2 +- .../docs/examples/auth/logout-by-session.md | 2 +- app/sdks/node/docs/examples/auth/logout.md | 2 +- app/sdks/node/docs/examples/auth/oauth.md | 2 +- .../node/docs/examples/auth/recovery-reset.md | 2 +- app/sdks/node/docs/examples/auth/recovery.md | 2 +- app/sdks/node/docs/examples/auth/register.md | 2 +- .../node/docs/examples/avatars/get-browser.md | 2 +- .../docs/examples/avatars/get-credit-card.md | 2 +- .../node/docs/examples/avatars/get-favicon.md | 2 +- .../node/docs/examples/avatars/get-flag.md | 2 +- .../node/docs/examples/avatars/get-image.md | 2 +- .../node/docs/examples/avatars/get-q-r.md | 2 +- .../examples/database/create-collection.md | 2 +- .../docs/examples/database/create-document.md | 2 +- .../examples/database/delete-collection.md | 2 +- .../docs/examples/database/delete-document.md | 2 +- .../docs/examples/database/get-collection.md | 2 +- .../docs/examples/database/get-document.md | 2 +- .../examples/database/list-collections.md | 2 +- .../docs/examples/database/list-documents.md | 2 +- .../examples/database/update-collection.md | 2 +- .../docs/examples/database/update-document.md | 2 +- .../docs/examples/locale/get-countries-e-u.md | 2 +- .../examples/locale/get-countries-phones.md | 2 +- .../docs/examples/locale/get-countries.md | 2 +- .../docs/examples/locale/get-currencies.md | 2 +- .../node/docs/examples/locale/get-locale.md | 2 +- .../node/docs/examples/projects/create-key.md | 2 +- .../docs/examples/projects/create-platform.md | 2 +- .../docs/examples/projects/create-project.md | 2 +- .../docs/examples/projects/create-task.md | 2 +- .../docs/examples/projects/create-webhook.md | 2 +- .../node/docs/examples/projects/delete-key.md | 2 +- .../docs/examples/projects/delete-platform.md | 2 +- .../docs/examples/projects/delete-project.md | 2 +- .../docs/examples/projects/delete-task.md | 2 +- .../docs/examples/projects/delete-webhook.md | 2 +- .../node/docs/examples/projects/get-key.md | 2 +- .../docs/examples/projects/get-platform.md | 2 +- .../examples/projects/get-project-usage.md | 2 +- .../docs/examples/projects/get-project.md | 2 +- .../node/docs/examples/projects/get-task.md | 2 +- .../docs/examples/projects/get-webhook.md | 2 +- .../node/docs/examples/projects/list-keys.md | 2 +- .../docs/examples/projects/list-platforms.md | 2 +- .../docs/examples/projects/list-projects.md | 2 +- .../node/docs/examples/projects/list-tasks.md | 2 +- .../docs/examples/projects/list-webhooks.md | 2 +- .../node/docs/examples/projects/update-key.md | 2 +- .../docs/examples/projects/update-platform.md | 2 +- .../projects/update-project-o-auth.md | 2 +- .../docs/examples/projects/update-project.md | 2 +- .../docs/examples/projects/update-task.md | 4 +- .../docs/examples/projects/update-webhook.md | 4 +- .../node/docs/examples/storage/create-file.md | 2 +- .../node/docs/examples/storage/delete-file.md | 2 +- .../examples/storage/get-file-download.md | 2 +- .../docs/examples/storage/get-file-preview.md | 2 +- .../docs/examples/storage/get-file-view.md | 2 +- .../node/docs/examples/storage/get-file.md | 2 +- .../node/docs/examples/storage/list-files.md | 2 +- .../node/docs/examples/storage/update-file.md | 2 +- .../teams/create-team-membership-resend.md | 2 +- .../examples/teams/create-team-membership.md | 2 +- .../node/docs/examples/teams/create-team.md | 2 +- .../examples/teams/delete-team-membership.md | 2 +- .../node/docs/examples/teams/delete-team.md | 2 +- .../docs/examples/teams/get-team-members.md | 2 +- app/sdks/node/docs/examples/teams/get-team.md | 2 +- .../node/docs/examples/teams/list-teams.md | 2 +- .../teams/update-team-membership-status.md | 2 +- .../node/docs/examples/teams/update-team.md | 2 +- .../node/docs/examples/users/create-user.md | 2 +- .../examples/users/delete-user-sessions.md | 2 +- .../examples/users/delete-users-session.md | 2 +- .../node/docs/examples/users/get-user-logs.md | 2 +- .../docs/examples/users/get-user-prefs.md | 2 +- .../docs/examples/users/get-user-sessions.md | 2 +- app/sdks/node/docs/examples/users/get-user.md | 2 +- .../node/docs/examples/users/list-users.md | 2 +- .../docs/examples/users/update-user-status.md | 2 +- app/sdks/node/lib/services/auth.js | 36 +- app/sdks/node/lib/services/locale.js | 6 +- app/sdks/php/README.md | 8 +- app/sdks/php/docs/auth.md | 1 + .../docs/examples/projects/update-webhook.md | 2 +- app/sdks/php/docs/locale.md | 2 +- app/sdks/php/src/Appwrite/Services/Auth.php | 18 +- app/sdks/php/src/Appwrite/Services/Locale.php | 6 +- app/sdks/python/README.md | 4 +- app/sdks/ruby/README.md | 4 +- composer.lock | 65 +- 114 files changed, 499 insertions(+), 503 deletions(-) diff --git a/app/sdks/dart/README.md b/app/sdks/dart/README.md index e7f5e5a81b..2e742434d8 100644 --- a/app/sdks/dart/README.md +++ b/app/sdks/dart/README.md @@ -1,7 +1,7 @@ # [Appwrite SDK for Dart](https://appwrite.io)   [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Appwrite%20is%20a%20backend%20as%20a%20service%20for%20building%20web%20or%20mobile%20apps&url=http%3A%2F%2Fappwrite.io&via=appwrite_io&hashtags=JS%2Cjavascript%2Creactjs%2Cangular%2Cios%2Candroid) ![License](https://img.shields.io/github/license/appwrite/sdk-for-dart.svg?v=1) -![Version](https://img.shields.io/badge/api%20version-0.1.15-blue.svg?v=1) +![Version](https://img.shields.io/badge/api%20version-latest-blue.svg?v=1) **WORK IN PROGRESS - NOT READY FOR USAGE - Want to help us improve this client SDK? Send a pull request to Appwrite [SDK generator repository](https://github.com/appwrite/sdk-generator).** @@ -11,7 +11,7 @@ Appwrite backend as a service cuts up to 70% of the time and costs required for ![Appwrite](https://appwrite.io/images/github.png) -**API Version: 0.1.15** +**API Version: latest** ## Installation @@ -30,4 +30,4 @@ pub get ## License -Please see the [BSD-3-Clause license](https://raw.githubusercontent.com/appwrite/appwrite/master/LICENSE) file for more information. +Please see the [BSD-3-Clause license](https://raw.githubusercontent.com/appwrite/appwrite/master/LICENSE) file for more information. \ No newline at end of file diff --git a/app/sdks/dart/lib/services/auth.dart b/app/sdks/dart/lib/services/auth.dart index c1b1a18d5f..0db9f429db 100644 --- a/app/sdks/dart/lib/services/auth.dart +++ b/app/sdks/dart/lib/services/auth.dart @@ -3,18 +3,18 @@ import "package:appwrite/client.dart"; import 'package:dio/dio.dart'; class Auth extends Service { - + Auth(Client client): super(client); /// Allow the user to login into his account by providing a valid email and /// password combination. Use the success and failure arguments to provide a - /// redirect URL\'s back to your app when login is completed. - /// + /// redirect URL\'s back to your app when login is completed. + /// /// Please notice that in order to avoid a [Redirect /// Attacks](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) /// the only valid redirect URL's are the once from domains you have set when /// added your platforms in the console interface. - /// + /// /// When accessing this route using JavaScript from the browser, success and /// failure parameter URLs are required. Appwrite server will respond with a /// 301 redirect status code and will set the user session cookie. This @@ -84,7 +84,7 @@ class Auth extends Service { /// **userId** and **token** arguments will be passed as query parameters to /// the redirect URL you have provided when sending your request to the /// /auth/recovery endpoint. - /// + /// /// Please notice that in order to avoid a [Redirect /// Attacks](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) /// the only valid redirect URL's are the once from domains you have set when @@ -104,18 +104,18 @@ class Auth extends Service { /// Use this endpoint to allow a new user to register an account in your /// project. Use the success and failure URL's to redirect users back to your /// application after signup completes. - /// + /// /// If registration completes successfully user will be sent with a /// confirmation email in order to confirm he is the owner of the account email /// address. Use the confirmation parameter to redirect the user from the /// confirmation email back to your app. When the user is redirected, use the /// /auth/confirm endpoint to complete the account confirmation. - /// + /// /// Please notice that in order to avoid a [Redirect /// Attacks](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) /// the only valid redirect URL's are the once from domains you have set when /// added your platforms in the console interface. - /// + /// /// When accessing this route using JavaScript from the browser, success and /// failure parameter URLs are required. Appwrite server will respond with a /// 301 redirect status code and will set the user session cookie. This @@ -152,7 +152,7 @@ class Auth extends Service { /// This endpoint allows the user to request your app to resend him his email /// confirmation message. The redirect arguments acts the same way as in /// /auth/register endpoint. - /// + /// /// Please notice that in order to avoid a [Redirect /// Attacks](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) /// the only valid redirect URL's are the once from domains you have set when @@ -166,4 +166,4 @@ class Auth extends Service { return await this.client.call('post', path: path, params: params); } -} +} \ No newline at end of file diff --git a/app/sdks/dart/lib/services/locale.dart b/app/sdks/dart/lib/services/locale.dart index 29f87ac5ea..406d25bbb9 100644 --- a/app/sdks/dart/lib/services/locale.dart +++ b/app/sdks/dart/lib/services/locale.dart @@ -49,9 +49,9 @@ class Locale extends Service { return await this.client.call('get', path: path, params: params); } - /// List of all currencies, including currency symol, name, plural, and decimal - /// digits for all major and minor currencies. You can use the locale header to - /// get the data in supported language. + /// List of all currencies, including currency symbol, name, plural, and + /// decimal digits for all major and minor currencies. You can use the locale + /// header to get the data in supported language. Future getCurrencies() async { String path = '/locale/currencies'; diff --git a/app/sdks/js/README.md b/app/sdks/js/README.md index 0a0a4bf1d1..e415254ed5 100644 --- a/app/sdks/js/README.md +++ b/app/sdks/js/README.md @@ -1,9 +1,9 @@ -# [Appwrite SDK for JavaScript](https://appwrite.io)   [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Appwrite%20is%20a%20backend%20as%20a%20service%20for%20building%20web%20or%20mobile%20apps&url=http%3A%2F%2Fappwrite.io&via=appwrite_io&hashtags=JS%2Cjavascript%2Creactjs%2Cangular%2Cios%2Candroid) +# [Appwrite SDK for Javascript](https://appwrite.io)   [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Appwrite%20is%20a%20backend%20as%20a%20service%20for%20building%20web%20or%20mobile%20apps&url=http%3A%2F%2Fappwrite.io&via=appwrite_io&hashtags=JS%2Cjavascript%2Creactjs%2Cangular%2Cios%2Candroid) ![License](https://img.shields.io/github/license/appwrite/sdk-for-js.svg?v=1) -![Version](https://img.shields.io/badge/api%20version-0.1.15-blue.svg?v=1) +![Version](https://img.shields.io/badge/api%20version-latest-blue.svg?v=1) -This SDK is compatible with Appwrite server version 0.2.0 for older versions check previous releases. +This SDK is compitable with Appwrite server version 0.2.0 for older versions check previous releases. Appwrite backend as a service cuts up to 70% of the time and costs required for building a modern application. We abstract and simplify common development tasks behind a REST APIs, to help you develop your app in a fast and secure way. For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs) @@ -11,7 +11,7 @@ Appwrite backend as a service cuts up to 70% of the time and costs required for ![Appwrite](https://appwrite.io/images/github.png) -**API Version: 0.1.15** +**API Version: latest** ## Installation @@ -23,4 +23,4 @@ npm install appwrite --save ## License -Please see the [BSD-3-Clause license](https://raw.githubusercontent.com/appwrite/appwrite/master/LICENSE) file for more information. +Please see the [BSD-3-Clause license](https://raw.githubusercontent.com/appwrite/appwrite/master/LICENSE) file for more information. \ No newline at end of file diff --git a/app/sdks/js/docs/examples/projects/create-task.md b/app/sdks/js/docs/examples/projects/create-task.md index 4338198465..3262b4d9fe 100644 --- a/app/sdks/js/docs/examples/projects/create-task.md +++ b/app/sdks/js/docs/examples/projects/create-task.md @@ -4,7 +4,7 @@ sdk .setProject('') ; -let promise = sdk.projects.createTask('[PROJECT_ID]', '[NAME]', 'play', '', 1, 'GET', 'https://example.com'); +let promise = sdk.projects.createTask('[PROJECT_ID]', '[NAME]', 'play', '', 0, 'GET', 'https://example.com'); promise.then(function (response) { console.log(response); diff --git a/app/sdks/js/docs/examples/projects/create-webhook.md b/app/sdks/js/docs/examples/projects/create-webhook.md index 66a76c26c2..1136c5eedf 100644 --- a/app/sdks/js/docs/examples/projects/create-webhook.md +++ b/app/sdks/js/docs/examples/projects/create-webhook.md @@ -4,7 +4,7 @@ sdk .setProject('') ; -let promise = sdk.projects.createWebhook('[PROJECT_ID]', '[NAME]', [], '[URL]', 0); +let promise = sdk.projects.createWebhook('[PROJECT_ID]', '[NAME]', [], '[URL]', 1); promise.then(function (response) { console.log(response); diff --git a/app/sdks/js/docs/examples/projects/update-task.md b/app/sdks/js/docs/examples/projects/update-task.md index 3544916e3b..54116a41d0 100644 --- a/app/sdks/js/docs/examples/projects/update-task.md +++ b/app/sdks/js/docs/examples/projects/update-task.md @@ -4,7 +4,7 @@ sdk .setProject('') ; -let promise = sdk.projects.updateTask('[PROJECT_ID]', '[TASK_ID]', '[NAME]', 'play', '', 1, 'GET', 'https://example.com'); +let promise = sdk.projects.updateTask('[PROJECT_ID]', '[TASK_ID]', '[NAME]', 'play', '', 0, 'GET', 'https://example.com'); promise.then(function (response) { console.log(response); diff --git a/app/sdks/js/docs/examples/projects/update-webhook.md b/app/sdks/js/docs/examples/projects/update-webhook.md index f580952533..ce876d5a64 100644 --- a/app/sdks/js/docs/examples/projects/update-webhook.md +++ b/app/sdks/js/docs/examples/projects/update-webhook.md @@ -4,7 +4,7 @@ sdk .setProject('') ; -let promise = sdk.projects.updateWebhook('[PROJECT_ID]', '[WEBHOOK_ID]', '[NAME]', [], '[URL]', 1); +let promise = sdk.projects.updateWebhook('[PROJECT_ID]', '[WEBHOOK_ID]', '[NAME]', [], '[URL]', 0); promise.then(function (response) { console.log(response); diff --git a/app/sdks/js/src/sdk.js b/app/sdks/js/src/sdk.js index 8b5ca9f3ea..5c21f8af5f 100644 --- a/app/sdks/js/src/sdk.js +++ b/app/sdks/js/src/sdk.js @@ -133,7 +133,7 @@ let addGlobalHeader = function(key, value) { globalHeaders[key] = {key: key.toLowerCase(), value: value.toLowerCase()}; }; - + let addGlobalParam = function(key, value) { globalParams.push({key: key, value: value}); }; @@ -346,17 +346,17 @@ if(email === undefined) { throw new Error('Missing required parameter: "email"'); } - + if(password === undefined) { throw new Error('Missing required parameter: "password"'); } - + let path = '/account/email'; return http .patch(path, {'content-type': 'application/json'}, { - 'email': email, + 'email': email, 'password': password }); }, @@ -373,7 +373,7 @@ if(name === undefined) { throw new Error('Missing required parameter: "name"'); } - + let path = '/account/name'; return http @@ -397,17 +397,17 @@ if(password === undefined) { throw new Error('Missing required parameter: "password"'); } - + if(oldPassword === undefined) { throw new Error('Missing required parameter: "oldPassword"'); } - + let path = '/account/password'; return http .patch(path, {'content-type': 'application/json'}, { - 'password': password, + 'password': password, 'old-password': oldPassword }); }, @@ -441,7 +441,7 @@ if(prefs === undefined) { throw new Error('Missing required parameter: "prefs"'); } - + let path = '/account/prefs'; return http @@ -493,13 +493,13 @@ * * Allow the user to login into his account by providing a valid email and * password combination. Use the success and failure arguments to provide a - * redirect URL\'s back to your app when login is completed. - * + * redirect URL\'s back to your app when login is completed. + * * Please notice that in order to avoid a [Redirect * Attacks](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) * the only valid redirect URL's are the once from domains you have set when * added your platforms in the console interface. - * + * * When accessing this route using JavaScript from the browser, success and * failure parameter URLs are required. Appwrite server will respond with a * 301 redirect status code and will set the user session cookie. This @@ -516,25 +516,25 @@ if(email === undefined) { throw new Error('Missing required parameter: "email"'); } - + if(password === undefined) { throw new Error('Missing required parameter: "password"'); } - + if(success === undefined) { throw new Error('Missing required parameter: "success"'); } - + if(failure === undefined) { throw new Error('Missing required parameter: "failure"'); } - + let path = '/auth/login'; return iframe('post', path, {project: config.project, - 'email': email, - 'password': password, - 'success': success, + 'email': email, + 'password': password, + 'success': success, 'failure': failure }); }, @@ -571,7 +571,7 @@ if(id === undefined) { throw new Error('Missing required parameter: "id"'); } - + let path = '/auth/logout/{id}'.replace(new RegExp('{id}', 'g'), id); return http @@ -593,13 +593,13 @@ if(provider === undefined) { throw new Error('Missing required parameter: "provider"'); } - + let path = '/auth/oauth/{provider}'.replace(new RegExp('{provider}', 'g'), provider); return http .get(path, {'content-type': 'application/json'}, { - 'success': success, + 'success': success, 'failure': failure }); }, @@ -622,17 +622,17 @@ if(email === undefined) { throw new Error('Missing required parameter: "email"'); } - + if(reset === undefined) { throw new Error('Missing required parameter: "reset"'); } - + let path = '/auth/recovery'; return http .post(path, {'content-type': 'application/json'}, { - 'email': email, + 'email': email, 'reset': reset }); }, @@ -644,7 +644,7 @@ * **userId** and **token** arguments will be passed as query parameters to * the redirect URL you have provided when sending your request to the * /auth/recovery endpoint. - * + * * Please notice that in order to avoid a [Redirect * Attacks](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) * the only valid redirect URL's are the once from domains you have set when @@ -660,27 +660,27 @@ if(userId === undefined) { throw new Error('Missing required parameter: "userId"'); } - + if(token === undefined) { throw new Error('Missing required parameter: "token"'); } - + if(passwordA === undefined) { throw new Error('Missing required parameter: "passwordA"'); } - + if(passwordB === undefined) { throw new Error('Missing required parameter: "passwordB"'); } - + let path = '/auth/recovery/reset'; return http .put(path, {'content-type': 'application/json'}, { - 'userId': userId, - 'token': token, - 'password-a': passwordA, + 'userId': userId, + 'token': token, + 'password-a': passwordA, 'password-b': passwordB }); }, @@ -691,18 +691,18 @@ * Use this endpoint to allow a new user to register an account in your * project. Use the success and failure URL's to redirect users back to your * application after signup completes. - * + * * If registration completes successfully user will be sent with a * confirmation email in order to confirm he is the owner of the account email * address. Use the confirmation parameter to redirect the user from the * confirmation email back to your app. When the user is redirected, use the * /auth/confirm endpoint to complete the account confirmation. - * + * * Please notice that in order to avoid a [Redirect * Attacks](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) * the only valid redirect URL's are the once from domains you have set when * added your platforms in the console interface. - * + * * When accessing this route using JavaScript from the browser, success and * failure parameter URLs are required. Appwrite server will respond with a * 301 redirect status code and will set the user session cookie. This @@ -721,23 +721,23 @@ if(email === undefined) { throw new Error('Missing required parameter: "email"'); } - + if(password === undefined) { throw new Error('Missing required parameter: "password"'); } - + if(confirm === undefined) { throw new Error('Missing required parameter: "confirm"'); } - + let path = '/auth/register'; return iframe('post', path, {project: config.project, - 'email': email, - 'password': password, - 'confirm': confirm, - 'success': success, - 'failure': failure, + 'email': email, + 'password': password, + 'confirm': confirm, + 'success': success, + 'failure': failure, 'name': name }); }, @@ -758,17 +758,17 @@ if(userId === undefined) { throw new Error('Missing required parameter: "userId"'); } - + if(token === undefined) { throw new Error('Missing required parameter: "token"'); } - + let path = '/auth/register/confirm'; return http .post(path, {'content-type': 'application/json'}, { - 'userId': userId, + 'userId': userId, 'token': token }); }, @@ -779,7 +779,7 @@ * This endpoint allows the user to request your app to resend him his email * confirmation message. The redirect arguments acts the same way as in * /auth/register endpoint. - * + * * Please notice that in order to avoid a [Redirect * Attacks](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) * the only valid redirect URL's are the once from domains you have set when @@ -792,7 +792,7 @@ if(confirm === undefined) { throw new Error('Missing required parameter: "confirm"'); } - + let path = '/auth/register/confirm/resend'; return http @@ -823,14 +823,14 @@ if(code === undefined) { throw new Error('Missing required parameter: "code"'); } - + let path = '/avatars/browsers/{code}'.replace(new RegExp('{code}', 'g'), code); return http .get(path, {'content-type': 'application/json'}, { - 'width': width, - 'height': height, + 'width': width, + 'height': height, 'quality': quality }); }, @@ -853,14 +853,14 @@ if(code === undefined) { throw new Error('Missing required parameter: "code"'); } - + let path = '/avatars/credit-cards/{code}'.replace(new RegExp('{code}', 'g'), code); return http .get(path, {'content-type': 'application/json'}, { - 'width': width, - 'height': height, + 'width': width, + 'height': height, 'quality': quality }); }, @@ -878,7 +878,7 @@ if(url === undefined) { throw new Error('Missing required parameter: "url"'); } - + let path = '/avatars/favicon'; return http @@ -905,14 +905,14 @@ if(code === undefined) { throw new Error('Missing required parameter: "code"'); } - + let path = '/avatars/flags/{code}'.replace(new RegExp('{code}', 'g'), code); return http .get(path, {'content-type': 'application/json'}, { - 'width': width, - 'height': height, + 'width': width, + 'height': height, 'quality': quality }); }, @@ -934,14 +934,14 @@ if(url === undefined) { throw new Error('Missing required parameter: "url"'); } - + let path = '/avatars/image'; return http .get(path, {'content-type': 'application/json'}, { - 'url': url, - 'width': width, + 'url': url, + 'width': width, 'height': height }); }, @@ -962,15 +962,15 @@ if(text === undefined) { throw new Error('Missing required parameter: "text"'); } - + let path = '/avatars/qr'; return http .get(path, {'content-type': 'application/json'}, { - 'text': text, - 'size': size, - 'margin': margin, + 'text': text, + 'size': size, + 'margin': margin, 'download': download }); } @@ -998,9 +998,9 @@ return http .get(path, {'content-type': 'application/json'}, { - 'search': search, - 'limit': limit, - 'offset': offset, + 'search': search, + 'limit': limit, + 'offset': offset, 'orderType': orderType }); }, @@ -1020,15 +1020,15 @@ if(name === undefined) { throw new Error('Missing required parameter: "name"'); } - + let path = '/database'; return http .post(path, {'content-type': 'application/json'}, { - 'name': name, - 'read': read, - 'write': write, + 'name': name, + 'read': read, + 'write': write, 'rules': rules }); }, @@ -1046,7 +1046,7 @@ if(collectionId === undefined) { throw new Error('Missing required parameter: "collectionId"'); } - + let path = '/database/{collectionId}'.replace(new RegExp('{collectionId}', 'g'), collectionId); return http @@ -1071,19 +1071,19 @@ if(collectionId === undefined) { throw new Error('Missing required parameter: "collectionId"'); } - + if(name === undefined) { throw new Error('Missing required parameter: "name"'); } - + let path = '/database/{collectionId}'.replace(new RegExp('{collectionId}', 'g'), collectionId); return http .put(path, {'content-type': 'application/json'}, { - 'name': name, - 'read': read, - 'write': write, + 'name': name, + 'read': read, + 'write': write, 'rules': rules }); }, @@ -1101,7 +1101,7 @@ if(collectionId === undefined) { throw new Error('Missing required parameter: "collectionId"'); } - + let path = '/database/{collectionId}'.replace(new RegExp('{collectionId}', 'g'), collectionId); return http @@ -1134,20 +1134,20 @@ if(collectionId === undefined) { throw new Error('Missing required parameter: "collectionId"'); } - + let path = '/database/{collectionId}/documents'.replace(new RegExp('{collectionId}', 'g'), collectionId); return http .get(path, {'content-type': 'application/json'}, { - 'filters': filters, - 'offset': offset, - 'limit': limit, - 'order-field': orderField, - 'order-type': orderType, - 'order-cast': orderCast, - 'search': search, - 'first': first, + 'filters': filters, + 'offset': offset, + 'limit': limit, + 'order-field': orderField, + 'order-type': orderType, + 'order-cast': orderCast, + 'search': search, + 'first': first, 'last': last }); }, @@ -1170,21 +1170,21 @@ if(collectionId === undefined) { throw new Error('Missing required parameter: "collectionId"'); } - + if(data === undefined) { throw new Error('Missing required parameter: "data"'); } - + let path = '/database/{collectionId}/documents'.replace(new RegExp('{collectionId}', 'g'), collectionId); return http .post(path, {'content-type': 'application/json'}, { - 'data': data, - 'read': read, - 'write': write, - 'parentDocument': parentDocument, - 'parentProperty': parentProperty, + 'data': data, + 'read': read, + 'write': write, + 'parentDocument': parentDocument, + 'parentProperty': parentProperty, 'parentPropertyType': parentPropertyType }); }, @@ -1203,11 +1203,11 @@ if(collectionId === undefined) { throw new Error('Missing required parameter: "collectionId"'); } - + if(documentId === undefined) { throw new Error('Missing required parameter: "documentId"'); } - + let path = '/database/{collectionId}/documents/{documentId}'.replace(new RegExp('{collectionId}', 'g'), collectionId).replace(new RegExp('{documentId}', 'g'), documentId); return http @@ -1231,22 +1231,22 @@ if(collectionId === undefined) { throw new Error('Missing required parameter: "collectionId"'); } - + if(documentId === undefined) { throw new Error('Missing required parameter: "documentId"'); } - + if(data === undefined) { throw new Error('Missing required parameter: "data"'); } - + let path = '/database/{collectionId}/documents/{documentId}'.replace(new RegExp('{collectionId}', 'g'), collectionId).replace(new RegExp('{documentId}', 'g'), documentId); return http .patch(path, {'content-type': 'application/json'}, { - 'data': data, - 'read': read, + 'data': data, + 'read': read, 'write': write }); }, @@ -1266,11 +1266,11 @@ if(collectionId === undefined) { throw new Error('Missing required parameter: "collectionId"'); } - + if(documentId === undefined) { throw new Error('Missing required parameter: "documentId"'); } - + let path = '/database/{collectionId}/documents/{documentId}'.replace(new RegExp('{collectionId}', 'g'), collectionId).replace(new RegExp('{documentId}', 'g'), documentId); return http @@ -1356,9 +1356,9 @@ /** * List of currencies * - * List of all currencies, including currency symol, name, plural, and decimal - * digits for all major and minor currencies. You can use the locale header to - * get the data in supported language. + * List of all currencies, including currency symbol, name, plural, and + * decimal digits for all major and minor currencies. You can use the locale + * header to get the data in supported language. * * @throws {Error} * @return {Promise} */ @@ -1410,26 +1410,26 @@ if(name === undefined) { throw new Error('Missing required parameter: "name"'); } - + if(teamId === undefined) { throw new Error('Missing required parameter: "teamId"'); } - + let path = '/projects'; return http .post(path, {'content-type': 'application/json'}, { - 'name': name, - 'teamId': teamId, - 'description': description, - 'logo': logo, - 'url': url, - 'legalName': legalName, - 'legalCountry': legalCountry, - 'legalState': legalState, - 'legalCity': legalCity, - 'legalAddress': legalAddress, + 'name': name, + 'teamId': teamId, + 'description': description, + 'logo': logo, + 'url': url, + 'legalName': legalName, + 'legalCountry': legalCountry, + 'legalState': legalState, + 'legalCity': legalCity, + 'legalAddress': legalAddress, 'legalTaxId': legalTaxId }); }, @@ -1445,7 +1445,7 @@ if(projectId === undefined) { throw new Error('Missing required parameter: "projectId"'); } - + let path = '/projects/{projectId}'.replace(new RegExp('{projectId}', 'g'), projectId); return http @@ -1475,25 +1475,25 @@ if(projectId === undefined) { throw new Error('Missing required parameter: "projectId"'); } - + if(name === undefined) { throw new Error('Missing required parameter: "name"'); } - + let path = '/projects/{projectId}'.replace(new RegExp('{projectId}', 'g'), projectId); return http .patch(path, {'content-type': 'application/json'}, { - 'name': name, - 'description': description, - 'logo': logo, - 'url': url, - 'legalName': legalName, - 'legalCountry': legalCountry, - 'legalState': legalState, - 'legalCity': legalCity, - 'legalAddress': legalAddress, + 'name': name, + 'description': description, + 'logo': logo, + 'url': url, + 'legalName': legalName, + 'legalCountry': legalCountry, + 'legalState': legalState, + 'legalCity': legalCity, + 'legalAddress': legalAddress, 'legalTaxId': legalTaxId }); }, @@ -1509,7 +1509,7 @@ if(projectId === undefined) { throw new Error('Missing required parameter: "projectId"'); } - + let path = '/projects/{projectId}'.replace(new RegExp('{projectId}', 'g'), projectId); return http @@ -1529,7 +1529,7 @@ if(projectId === undefined) { throw new Error('Missing required parameter: "projectId"'); } - + let path = '/projects/{projectId}/keys'.replace(new RegExp('{projectId}', 'g'), projectId); return http @@ -1551,21 +1551,21 @@ if(projectId === undefined) { throw new Error('Missing required parameter: "projectId"'); } - + if(name === undefined) { throw new Error('Missing required parameter: "name"'); } - + if(scopes === undefined) { throw new Error('Missing required parameter: "scopes"'); } - + let path = '/projects/{projectId}/keys'.replace(new RegExp('{projectId}', 'g'), projectId); return http .post(path, {'content-type': 'application/json'}, { - 'name': name, + 'name': name, 'scopes': scopes }); }, @@ -1582,11 +1582,11 @@ if(projectId === undefined) { throw new Error('Missing required parameter: "projectId"'); } - + if(keyId === undefined) { throw new Error('Missing required parameter: "keyId"'); } - + let path = '/projects/{projectId}/keys/{keyId}'.replace(new RegExp('{projectId}', 'g'), projectId).replace(new RegExp('{keyId}', 'g'), keyId); return http @@ -1609,25 +1609,25 @@ if(projectId === undefined) { throw new Error('Missing required parameter: "projectId"'); } - + if(keyId === undefined) { throw new Error('Missing required parameter: "keyId"'); } - + if(name === undefined) { throw new Error('Missing required parameter: "name"'); } - + if(scopes === undefined) { throw new Error('Missing required parameter: "scopes"'); } - + let path = '/projects/{projectId}/keys/{keyId}'.replace(new RegExp('{projectId}', 'g'), projectId).replace(new RegExp('{keyId}', 'g'), keyId); return http .put(path, {'content-type': 'application/json'}, { - 'name': name, + 'name': name, 'scopes': scopes }); }, @@ -1644,11 +1644,11 @@ if(projectId === undefined) { throw new Error('Missing required parameter: "projectId"'); } - + if(keyId === undefined) { throw new Error('Missing required parameter: "keyId"'); } - + let path = '/projects/{projectId}/keys/{keyId}'.replace(new RegExp('{projectId}', 'g'), projectId).replace(new RegExp('{keyId}', 'g'), keyId); return http @@ -1671,18 +1671,18 @@ if(projectId === undefined) { throw new Error('Missing required parameter: "projectId"'); } - + if(provider === undefined) { throw new Error('Missing required parameter: "provider"'); } - + let path = '/projects/{projectId}/oauth'.replace(new RegExp('{projectId}', 'g'), projectId); return http .patch(path, {'content-type': 'application/json'}, { - 'provider': provider, - 'appId': appId, + 'provider': provider, + 'appId': appId, 'secret': secret }); }, @@ -1698,7 +1698,7 @@ if(projectId === undefined) { throw new Error('Missing required parameter: "projectId"'); } - + let path = '/projects/{projectId}/platforms'.replace(new RegExp('{projectId}', 'g'), projectId); return http @@ -1723,24 +1723,24 @@ if(projectId === undefined) { throw new Error('Missing required parameter: "projectId"'); } - + if(type === undefined) { throw new Error('Missing required parameter: "type"'); } - + if(name === undefined) { throw new Error('Missing required parameter: "name"'); } - + let path = '/projects/{projectId}/platforms'.replace(new RegExp('{projectId}', 'g'), projectId); return http .post(path, {'content-type': 'application/json'}, { - 'type': type, - 'name': name, - 'key': key, - 'store': store, + 'type': type, + 'name': name, + 'key': key, + 'store': store, 'url': url }); }, @@ -1757,11 +1757,11 @@ if(projectId === undefined) { throw new Error('Missing required parameter: "projectId"'); } - + if(platformId === undefined) { throw new Error('Missing required parameter: "platformId"'); } - + let path = '/projects/{projectId}/platforms/{platformId}'.replace(new RegExp('{projectId}', 'g'), projectId).replace(new RegExp('{platformId}', 'g'), platformId); return http @@ -1786,23 +1786,23 @@ if(projectId === undefined) { throw new Error('Missing required parameter: "projectId"'); } - + if(platformId === undefined) { throw new Error('Missing required parameter: "platformId"'); } - + if(name === undefined) { throw new Error('Missing required parameter: "name"'); } - + let path = '/projects/{projectId}/platforms/{platformId}'.replace(new RegExp('{projectId}', 'g'), projectId).replace(new RegExp('{platformId}', 'g'), platformId); return http .put(path, {'content-type': 'application/json'}, { - 'name': name, - 'key': key, - 'store': store, + 'name': name, + 'key': key, + 'store': store, 'url': url }); }, @@ -1819,11 +1819,11 @@ if(projectId === undefined) { throw new Error('Missing required parameter: "projectId"'); } - + if(platformId === undefined) { throw new Error('Missing required parameter: "platformId"'); } - + let path = '/projects/{projectId}/platforms/{platformId}'.replace(new RegExp('{projectId}', 'g'), projectId).replace(new RegExp('{platformId}', 'g'), platformId); return http @@ -1843,7 +1843,7 @@ if(projectId === undefined) { throw new Error('Missing required parameter: "projectId"'); } - + let path = '/projects/{projectId}/tasks'.replace(new RegExp('{projectId}', 'g'), projectId); return http @@ -1872,44 +1872,44 @@ if(projectId === undefined) { throw new Error('Missing required parameter: "projectId"'); } - + if(name === undefined) { throw new Error('Missing required parameter: "name"'); } - + if(status === undefined) { throw new Error('Missing required parameter: "status"'); } - + if(schedule === undefined) { throw new Error('Missing required parameter: "schedule"'); } - + if(security === undefined) { throw new Error('Missing required parameter: "security"'); } - + if(httpMethod === undefined) { throw new Error('Missing required parameter: "httpMethod"'); } - + if(httpUrl === undefined) { throw new Error('Missing required parameter: "httpUrl"'); } - + let path = '/projects/{projectId}/tasks'.replace(new RegExp('{projectId}', 'g'), projectId); return http .post(path, {'content-type': 'application/json'}, { - 'name': name, - 'status': status, - 'schedule': schedule, - 'security': security, - 'httpMethod': httpMethod, - 'httpUrl': httpUrl, - 'httpHeaders': httpHeaders, - 'httpUser': httpUser, + 'name': name, + 'status': status, + 'schedule': schedule, + 'security': security, + 'httpMethod': httpMethod, + 'httpUrl': httpUrl, + 'httpHeaders': httpHeaders, + 'httpUser': httpUser, 'httpPass': httpPass }); }, @@ -1926,11 +1926,11 @@ if(projectId === undefined) { throw new Error('Missing required parameter: "projectId"'); } - + if(taskId === undefined) { throw new Error('Missing required parameter: "taskId"'); } - + let path = '/projects/{projectId}/tasks/{taskId}'.replace(new RegExp('{projectId}', 'g'), projectId).replace(new RegExp('{taskId}', 'g'), taskId); return http @@ -1960,48 +1960,48 @@ if(projectId === undefined) { throw new Error('Missing required parameter: "projectId"'); } - + if(taskId === undefined) { throw new Error('Missing required parameter: "taskId"'); } - + if(name === undefined) { throw new Error('Missing required parameter: "name"'); } - + if(status === undefined) { throw new Error('Missing required parameter: "status"'); } - + if(schedule === undefined) { throw new Error('Missing required parameter: "schedule"'); } - + if(security === undefined) { throw new Error('Missing required parameter: "security"'); } - + if(httpMethod === undefined) { throw new Error('Missing required parameter: "httpMethod"'); } - + if(httpUrl === undefined) { throw new Error('Missing required parameter: "httpUrl"'); } - + let path = '/projects/{projectId}/tasks/{taskId}'.replace(new RegExp('{projectId}', 'g'), projectId).replace(new RegExp('{taskId}', 'g'), taskId); return http .put(path, {'content-type': 'application/json'}, { - 'name': name, - 'status': status, - 'schedule': schedule, - 'security': security, - 'httpMethod': httpMethod, - 'httpUrl': httpUrl, - 'httpHeaders': httpHeaders, - 'httpUser': httpUser, + 'name': name, + 'status': status, + 'schedule': schedule, + 'security': security, + 'httpMethod': httpMethod, + 'httpUrl': httpUrl, + 'httpHeaders': httpHeaders, + 'httpUser': httpUser, 'httpPass': httpPass }); }, @@ -2018,11 +2018,11 @@ if(projectId === undefined) { throw new Error('Missing required parameter: "projectId"'); } - + if(taskId === undefined) { throw new Error('Missing required parameter: "taskId"'); } - + let path = '/projects/{projectId}/tasks/{taskId}'.replace(new RegExp('{projectId}', 'g'), projectId).replace(new RegExp('{taskId}', 'g'), taskId); return http @@ -2042,7 +2042,7 @@ if(projectId === undefined) { throw new Error('Missing required parameter: "projectId"'); } - + let path = '/projects/{projectId}/usage'.replace(new RegExp('{projectId}', 'g'), projectId); return http @@ -2062,7 +2062,7 @@ if(projectId === undefined) { throw new Error('Missing required parameter: "projectId"'); } - + let path = '/projects/{projectId}/webhooks'.replace(new RegExp('{projectId}', 'g'), projectId); return http @@ -2088,33 +2088,33 @@ if(projectId === undefined) { throw new Error('Missing required parameter: "projectId"'); } - + if(name === undefined) { throw new Error('Missing required parameter: "name"'); } - + if(events === undefined) { throw new Error('Missing required parameter: "events"'); } - + if(url === undefined) { throw new Error('Missing required parameter: "url"'); } - + if(security === undefined) { throw new Error('Missing required parameter: "security"'); } - + let path = '/projects/{projectId}/webhooks'.replace(new RegExp('{projectId}', 'g'), projectId); return http .post(path, {'content-type': 'application/json'}, { - 'name': name, - 'events': events, - 'url': url, - 'security': security, - 'httpUser': httpUser, + 'name': name, + 'events': events, + 'url': url, + 'security': security, + 'httpUser': httpUser, 'httpPass': httpPass }); }, @@ -2131,11 +2131,11 @@ if(projectId === undefined) { throw new Error('Missing required parameter: "projectId"'); } - + if(webhookId === undefined) { throw new Error('Missing required parameter: "webhookId"'); } - + let path = '/projects/{projectId}/webhooks/{webhookId}'.replace(new RegExp('{projectId}', 'g'), projectId).replace(new RegExp('{webhookId}', 'g'), webhookId); return http @@ -2162,37 +2162,37 @@ if(projectId === undefined) { throw new Error('Missing required parameter: "projectId"'); } - + if(webhookId === undefined) { throw new Error('Missing required parameter: "webhookId"'); } - + if(name === undefined) { throw new Error('Missing required parameter: "name"'); } - + if(events === undefined) { throw new Error('Missing required parameter: "events"'); } - + if(url === undefined) { throw new Error('Missing required parameter: "url"'); } - + if(security === undefined) { throw new Error('Missing required parameter: "security"'); } - + let path = '/projects/{projectId}/webhooks/{webhookId}'.replace(new RegExp('{projectId}', 'g'), projectId).replace(new RegExp('{webhookId}', 'g'), webhookId); return http .put(path, {'content-type': 'application/json'}, { - 'name': name, - 'events': events, - 'url': url, - 'security': security, - 'httpUser': httpUser, + 'name': name, + 'events': events, + 'url': url, + 'security': security, + 'httpUser': httpUser, 'httpPass': httpPass }); }, @@ -2209,11 +2209,11 @@ if(projectId === undefined) { throw new Error('Missing required parameter: "projectId"'); } - + if(webhookId === undefined) { throw new Error('Missing required parameter: "webhookId"'); } - + let path = '/projects/{projectId}/webhooks/{webhookId}'.replace(new RegExp('{projectId}', 'g'), projectId).replace(new RegExp('{webhookId}', 'g'), webhookId); return http @@ -2244,9 +2244,9 @@ return http .get(path, {'content-type': 'application/json'}, { - 'search': search, - 'limit': limit, - 'offset': offset, + 'search': search, + 'limit': limit, + 'offset': offset, 'orderType': orderType }); }, @@ -2268,15 +2268,15 @@ if(files === undefined) { throw new Error('Missing required parameter: "files"'); } - + let path = '/storage/files'; return http .post(path, {'content-type': 'multipart/form-data'}, { - 'files': files, - 'read': read, - 'write': write, + 'files': files, + 'read': read, + 'write': write, 'folderId': folderId }); }, @@ -2294,7 +2294,7 @@ if(fileId === undefined) { throw new Error('Missing required parameter: "fileId"'); } - + let path = '/storage/files/{fileId}'.replace(new RegExp('{fileId}', 'g'), fileId); return http @@ -2319,14 +2319,14 @@ if(fileId === undefined) { throw new Error('Missing required parameter: "fileId"'); } - + let path = '/storage/files/{fileId}'.replace(new RegExp('{fileId}', 'g'), fileId); return http .put(path, {'content-type': 'application/json'}, { - 'read': read, - 'write': write, + 'read': read, + 'write': write, 'folderId': folderId }); }, @@ -2344,7 +2344,7 @@ if(fileId === undefined) { throw new Error('Missing required parameter: "fileId"'); } - + let path = '/storage/files/{fileId}'.replace(new RegExp('{fileId}', 'g'), fileId); return http @@ -2367,7 +2367,7 @@ if(fileId === undefined) { throw new Error('Missing required parameter: "fileId"'); } - + let path = '/storage/files/{fileId}/download'.replace(new RegExp('{fileId}', 'g'), fileId); return http @@ -2396,16 +2396,16 @@ if(fileId === undefined) { throw new Error('Missing required parameter: "fileId"'); } - + let path = '/storage/files/{fileId}/preview'.replace(new RegExp('{fileId}', 'g'), fileId); return http .get(path, {'content-type': 'application/json'}, { - 'width': width, - 'height': height, - 'quality': quality, - 'background': background, + 'width': width, + 'height': height, + 'quality': quality, + 'background': background, 'output': output }); }, @@ -2424,7 +2424,7 @@ if(fileId === undefined) { throw new Error('Missing required parameter: "fileId"'); } - + let path = '/storage/files/{fileId}/view'.replace(new RegExp('{fileId}', 'g'), fileId); return http @@ -2456,9 +2456,9 @@ return http .get(path, {'content-type': 'application/json'}, { - 'search': search, - 'limit': limit, - 'offset': offset, + 'search': search, + 'limit': limit, + 'offset': offset, 'orderType': orderType }); }, @@ -2479,13 +2479,13 @@ if(name === undefined) { throw new Error('Missing required parameter: "name"'); } - + let path = '/teams'; return http .post(path, {'content-type': 'application/json'}, { - 'name': name, + 'name': name, 'roles': roles }); }, @@ -2503,7 +2503,7 @@ if(teamId === undefined) { throw new Error('Missing required parameter: "teamId"'); } - + let path = '/teams/{teamId}'.replace(new RegExp('{teamId}', 'g'), teamId); return http @@ -2526,11 +2526,11 @@ if(teamId === undefined) { throw new Error('Missing required parameter: "teamId"'); } - + if(name === undefined) { throw new Error('Missing required parameter: "name"'); } - + let path = '/teams/{teamId}'.replace(new RegExp('{teamId}', 'g'), teamId); return http @@ -2553,7 +2553,7 @@ if(teamId === undefined) { throw new Error('Missing required parameter: "teamId"'); } - + let path = '/teams/{teamId}'.replace(new RegExp('{teamId}', 'g'), teamId); return http @@ -2575,7 +2575,7 @@ if(teamId === undefined) { throw new Error('Missing required parameter: "teamId"'); } - + let path = '/teams/{teamId}/members'.replace(new RegExp('{teamId}', 'g'), teamId); return http @@ -2590,12 +2590,12 @@ * Use this endpoint to invite a new member to your team. An email with a link * to join the team will be sent to the new member email address. If member * doesn't exists in the project it will be automatically created. - * + * * Use the redirect parameter to redirect the user from the invitation email * back to your app. When the user is redirected, use the * /teams/{teamId}/memberships/{inviteId}/status endpoint to finally join the * user to the team. - * + * * Please notice that in order to avoid a [Redirect * Attacks](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) * the only valid redirect URL's are the once from domains you have set when @@ -2612,27 +2612,27 @@ if(teamId === undefined) { throw new Error('Missing required parameter: "teamId"'); } - + if(email === undefined) { throw new Error('Missing required parameter: "email"'); } - + if(roles === undefined) { throw new Error('Missing required parameter: "roles"'); } - + if(redirect === undefined) { throw new Error('Missing required parameter: "redirect"'); } - + let path = '/teams/{teamId}/memberships'.replace(new RegExp('{teamId}', 'g'), teamId); return http .post(path, {'content-type': 'application/json'}, { - 'email': email, - 'name': name, - 'roles': roles, + 'email': email, + 'name': name, + 'roles': roles, 'redirect': redirect }); }, @@ -2651,11 +2651,11 @@ if(teamId === undefined) { throw new Error('Missing required parameter: "teamId"'); } - + if(inviteId === undefined) { throw new Error('Missing required parameter: "inviteId"'); } - + let path = '/teams/{teamId}/memberships/{inviteId}'.replace(new RegExp('{teamId}', 'g'), teamId).replace(new RegExp('{inviteId}', 'g'), inviteId); return http @@ -2679,15 +2679,15 @@ if(teamId === undefined) { throw new Error('Missing required parameter: "teamId"'); } - + if(inviteId === undefined) { throw new Error('Missing required parameter: "inviteId"'); } - + if(redirect === undefined) { throw new Error('Missing required parameter: "redirect"'); } - + let path = '/teams/{teamId}/memberships/{inviteId}/resend'.replace(new RegExp('{teamId}', 'g'), teamId).replace(new RegExp('{inviteId}', 'g'), inviteId); return http @@ -2704,12 +2704,12 @@ * is being redirect back to your app from the invitation email. Use the * success and failure URL's to redirect users back to your application after * the request completes. - * + * * Please notice that in order to avoid a [Redirect * Attacks](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) * the only valid redirect URL's are the once from domains you have set when * added your platforms in the console interface. - * + * * When not using the success or failure redirect arguments this endpoint will * result with a 200 status code on success and with 401 status error on * failure. This behavior was applied to help the web clients deal with @@ -2728,25 +2728,25 @@ if(teamId === undefined) { throw new Error('Missing required parameter: "teamId"'); } - + if(inviteId === undefined) { throw new Error('Missing required parameter: "inviteId"'); } - + if(userId === undefined) { throw new Error('Missing required parameter: "userId"'); } - + if(secret === undefined) { throw new Error('Missing required parameter: "secret"'); } - + let path = '/teams/{teamId}/memberships/{inviteId}/status'.replace(new RegExp('{teamId}', 'g'), teamId).replace(new RegExp('{inviteId}', 'g'), inviteId); return iframe('patch', path, {project: config.project, - 'userId': userId, - 'secret': secret, - 'success': success, + 'userId': userId, + 'secret': secret, + 'success': success, 'failure': failure }); } @@ -2772,9 +2772,9 @@ return http .get(path, {'content-type': 'application/json'}, { - 'search': search, - 'limit': limit, - 'offset': offset, + 'search': search, + 'limit': limit, + 'offset': offset, 'orderType': orderType }); }, @@ -2793,18 +2793,18 @@ if(email === undefined) { throw new Error('Missing required parameter: "email"'); } - + if(password === undefined) { throw new Error('Missing required parameter: "password"'); } - + let path = '/users'; return http .post(path, {'content-type': 'application/json'}, { - 'email': email, - 'password': password, + 'email': email, + 'password': password, 'name': name }); }, @@ -2821,7 +2821,7 @@ if(userId === undefined) { throw new Error('Missing required parameter: "userId"'); } - + let path = '/users/{userId}'.replace(new RegExp('{userId}', 'g'), userId); return http @@ -2842,7 +2842,7 @@ if(userId === undefined) { throw new Error('Missing required parameter: "userId"'); } - + let path = '/users/{userId}/logs'.replace(new RegExp('{userId}', 'g'), userId); return http @@ -2863,7 +2863,7 @@ if(userId === undefined) { throw new Error('Missing required parameter: "userId"'); } - + let path = '/users/{userId}/prefs'.replace(new RegExp('{userId}', 'g'), userId); return http @@ -2884,7 +2884,7 @@ if(userId === undefined) { throw new Error('Missing required parameter: "userId"'); } - + let path = '/users/{userId}/sessions'.replace(new RegExp('{userId}', 'g'), userId); return http @@ -2905,7 +2905,7 @@ if(userId === undefined) { throw new Error('Missing required parameter: "userId"'); } - + let path = '/users/{userId}/sessions'.replace(new RegExp('{userId}', 'g'), userId); return http @@ -2927,11 +2927,11 @@ if(userId === undefined) { throw new Error('Missing required parameter: "userId"'); } - + if(sessionId === undefined) { throw new Error('Missing required parameter: "sessionId"'); } - + let path = '/users/{userId}/sessions/:session'.replace(new RegExp('{userId}', 'g'), userId); return http @@ -2954,11 +2954,11 @@ if(userId === undefined) { throw new Error('Missing required parameter: "userId"'); } - + if(status === undefined) { throw new Error('Missing required parameter: "status"'); } - + let path = '/users/{userId}/status'.replace(new RegExp('{userId}', 'g'), userId); return http @@ -2987,4 +2987,4 @@ }; }; -})(window); +})(window); \ No newline at end of file diff --git a/app/sdks/node/README.md b/app/sdks/node/README.md index ee747f480a..a5b915af70 100644 --- a/app/sdks/node/README.md +++ b/app/sdks/node/README.md @@ -1,9 +1,9 @@ # [Appwrite SDK for NodeJS](https://appwrite.io)   [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Appwrite%20is%20a%20backend%20as%20a%20service%20for%20building%20web%20or%20mobile%20apps&url=http%3A%2F%2Fappwrite.io&via=appwrite_io&hashtags=JS%2Cjavascript%2Creactjs%2Cangular%2Cios%2Candroid) ![License](https://img.shields.io/github/license/appwrite/sdk-for-node.svg?v=1) -![Version](https://img.shields.io/badge/api%20version-0.1.15-blue.svg?v=1) +![Version](https://img.shields.io/badge/api%20version-latest-blue.svg?v=1) -This SDK is compatible with Appwrite server version 0.2.0 for older versions check previous releases. +This SDK is compitable with Appwrite server version 0.2.0 for older versions check previous releases. Appwrite backend as a service cuts up to 70% of the time and costs required for building a modern application. We abstract and simplify common development tasks behind a REST APIs, to help you develop your app in a fast and secure way. For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs) @@ -11,7 +11,7 @@ Appwrite backend as a service cuts up to 70% of the time and costs required for ![Appwrite](https://appwrite.io/images/github.png) -**API Version: 0.1.15** +**API Version: latest** ## Installation @@ -23,4 +23,4 @@ npm install node-appwrite --save ## License -Please see the [BSD-3-Clause license](https://raw.githubusercontent.com/appwrite/appwrite/master/LICENSE) file for more information. +Please see the [BSD-3-Clause license](https://raw.githubusercontent.com/appwrite/appwrite/master/LICENSE) file for more information. \ No newline at end of file diff --git a/app/sdks/node/docs/examples/account/delete.md b/app/sdks/node/docs/examples/account/delete.md index d83a9a69c9..0710fd6dfc 100644 --- a/app/sdks/node/docs/examples/account/delete.md +++ b/app/sdks/node/docs/examples/account/delete.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Account.Client(); +let client = new sdk.Client(); let account = new sdk.Account(client); diff --git a/app/sdks/node/docs/examples/account/get-prefs.md b/app/sdks/node/docs/examples/account/get-prefs.md index dc62c3610c..bdff57e923 100644 --- a/app/sdks/node/docs/examples/account/get-prefs.md +++ b/app/sdks/node/docs/examples/account/get-prefs.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Account.Client(); +let client = new sdk.Client(); let account = new sdk.Account(client); diff --git a/app/sdks/node/docs/examples/account/get-security.md b/app/sdks/node/docs/examples/account/get-security.md index 285fc07676..03a6561fff 100644 --- a/app/sdks/node/docs/examples/account/get-security.md +++ b/app/sdks/node/docs/examples/account/get-security.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Account.Client(); +let client = new sdk.Client(); let account = new sdk.Account(client); diff --git a/app/sdks/node/docs/examples/account/get-sessions.md b/app/sdks/node/docs/examples/account/get-sessions.md index 07bf3a7d2b..02b464a497 100644 --- a/app/sdks/node/docs/examples/account/get-sessions.md +++ b/app/sdks/node/docs/examples/account/get-sessions.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Account.Client(); +let client = new sdk.Client(); let account = new sdk.Account(client); diff --git a/app/sdks/node/docs/examples/account/get.md b/app/sdks/node/docs/examples/account/get.md index dce8b618cd..b2e078d061 100644 --- a/app/sdks/node/docs/examples/account/get.md +++ b/app/sdks/node/docs/examples/account/get.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Account.Client(); +let client = new sdk.Client(); let account = new sdk.Account(client); diff --git a/app/sdks/node/docs/examples/account/update-email.md b/app/sdks/node/docs/examples/account/update-email.md index d60214ad6d..29b50314f2 100644 --- a/app/sdks/node/docs/examples/account/update-email.md +++ b/app/sdks/node/docs/examples/account/update-email.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Account.Client(); +let client = new sdk.Client(); let account = new sdk.Account(client); diff --git a/app/sdks/node/docs/examples/account/update-name.md b/app/sdks/node/docs/examples/account/update-name.md index 9c21bd720f..d8b4734cbb 100644 --- a/app/sdks/node/docs/examples/account/update-name.md +++ b/app/sdks/node/docs/examples/account/update-name.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Account.Client(); +let client = new sdk.Client(); let account = new sdk.Account(client); diff --git a/app/sdks/node/docs/examples/account/update-password.md b/app/sdks/node/docs/examples/account/update-password.md index a7fe84181e..5aa6622ffa 100644 --- a/app/sdks/node/docs/examples/account/update-password.md +++ b/app/sdks/node/docs/examples/account/update-password.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Account.Client(); +let client = new sdk.Client(); let account = new sdk.Account(client); diff --git a/app/sdks/node/docs/examples/account/update-prefs.md b/app/sdks/node/docs/examples/account/update-prefs.md index 000a78de2d..c76e735e18 100644 --- a/app/sdks/node/docs/examples/account/update-prefs.md +++ b/app/sdks/node/docs/examples/account/update-prefs.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Account.Client(); +let client = new sdk.Client(); let account = new sdk.Account(client); diff --git a/app/sdks/node/docs/examples/auth/confirm-resend.md b/app/sdks/node/docs/examples/auth/confirm-resend.md index d4fa48a514..443870394b 100644 --- a/app/sdks/node/docs/examples/auth/confirm-resend.md +++ b/app/sdks/node/docs/examples/auth/confirm-resend.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Auth.Client(); +let client = new sdk.Client(); let auth = new sdk.Auth(client); diff --git a/app/sdks/node/docs/examples/auth/confirm.md b/app/sdks/node/docs/examples/auth/confirm.md index 434e0b6ac2..527df2d6ff 100644 --- a/app/sdks/node/docs/examples/auth/confirm.md +++ b/app/sdks/node/docs/examples/auth/confirm.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Auth.Client(); +let client = new sdk.Client(); let auth = new sdk.Auth(client); diff --git a/app/sdks/node/docs/examples/auth/login.md b/app/sdks/node/docs/examples/auth/login.md index e47d7faee3..f71a562e09 100644 --- a/app/sdks/node/docs/examples/auth/login.md +++ b/app/sdks/node/docs/examples/auth/login.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Auth.Client(); +let client = new sdk.Client(); let auth = new sdk.Auth(client); diff --git a/app/sdks/node/docs/examples/auth/logout-by-session.md b/app/sdks/node/docs/examples/auth/logout-by-session.md index ad035add2a..df964c0caf 100644 --- a/app/sdks/node/docs/examples/auth/logout-by-session.md +++ b/app/sdks/node/docs/examples/auth/logout-by-session.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Auth.Client(); +let client = new sdk.Client(); let auth = new sdk.Auth(client); diff --git a/app/sdks/node/docs/examples/auth/logout.md b/app/sdks/node/docs/examples/auth/logout.md index d90f59e754..d34102cbd7 100644 --- a/app/sdks/node/docs/examples/auth/logout.md +++ b/app/sdks/node/docs/examples/auth/logout.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Auth.Client(); +let client = new sdk.Client(); let auth = new sdk.Auth(client); diff --git a/app/sdks/node/docs/examples/auth/oauth.md b/app/sdks/node/docs/examples/auth/oauth.md index c124332439..e2e5886847 100644 --- a/app/sdks/node/docs/examples/auth/oauth.md +++ b/app/sdks/node/docs/examples/auth/oauth.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Auth.Client(); +let client = new sdk.Client(); let auth = new sdk.Auth(client); diff --git a/app/sdks/node/docs/examples/auth/recovery-reset.md b/app/sdks/node/docs/examples/auth/recovery-reset.md index da9fc758d8..f43a8b3305 100644 --- a/app/sdks/node/docs/examples/auth/recovery-reset.md +++ b/app/sdks/node/docs/examples/auth/recovery-reset.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Auth.Client(); +let client = new sdk.Client(); let auth = new sdk.Auth(client); diff --git a/app/sdks/node/docs/examples/auth/recovery.md b/app/sdks/node/docs/examples/auth/recovery.md index 167b31bc73..9e340a7f32 100644 --- a/app/sdks/node/docs/examples/auth/recovery.md +++ b/app/sdks/node/docs/examples/auth/recovery.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Auth.Client(); +let client = new sdk.Client(); let auth = new sdk.Auth(client); diff --git a/app/sdks/node/docs/examples/auth/register.md b/app/sdks/node/docs/examples/auth/register.md index d5b0a2fb77..708719a56f 100644 --- a/app/sdks/node/docs/examples/auth/register.md +++ b/app/sdks/node/docs/examples/auth/register.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Auth.Client(); +let client = new sdk.Client(); let auth = new sdk.Auth(client); diff --git a/app/sdks/node/docs/examples/avatars/get-browser.md b/app/sdks/node/docs/examples/avatars/get-browser.md index 128499b65b..50d3fefcf1 100644 --- a/app/sdks/node/docs/examples/avatars/get-browser.md +++ b/app/sdks/node/docs/examples/avatars/get-browser.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Avatars.Client(); +let client = new sdk.Client(); let avatars = new sdk.Avatars(client); diff --git a/app/sdks/node/docs/examples/avatars/get-credit-card.md b/app/sdks/node/docs/examples/avatars/get-credit-card.md index 8a773ed5d1..f64488cc12 100644 --- a/app/sdks/node/docs/examples/avatars/get-credit-card.md +++ b/app/sdks/node/docs/examples/avatars/get-credit-card.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Avatars.Client(); +let client = new sdk.Client(); let avatars = new sdk.Avatars(client); diff --git a/app/sdks/node/docs/examples/avatars/get-favicon.md b/app/sdks/node/docs/examples/avatars/get-favicon.md index 7f4b41ee68..ac449e9f1a 100644 --- a/app/sdks/node/docs/examples/avatars/get-favicon.md +++ b/app/sdks/node/docs/examples/avatars/get-favicon.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Avatars.Client(); +let client = new sdk.Client(); let avatars = new sdk.Avatars(client); diff --git a/app/sdks/node/docs/examples/avatars/get-flag.md b/app/sdks/node/docs/examples/avatars/get-flag.md index 2b8ec243f8..d53f2aa555 100644 --- a/app/sdks/node/docs/examples/avatars/get-flag.md +++ b/app/sdks/node/docs/examples/avatars/get-flag.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Avatars.Client(); +let client = new sdk.Client(); let avatars = new sdk.Avatars(client); diff --git a/app/sdks/node/docs/examples/avatars/get-image.md b/app/sdks/node/docs/examples/avatars/get-image.md index b516fa98ff..e541b90e61 100644 --- a/app/sdks/node/docs/examples/avatars/get-image.md +++ b/app/sdks/node/docs/examples/avatars/get-image.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Avatars.Client(); +let client = new sdk.Client(); let avatars = new sdk.Avatars(client); diff --git a/app/sdks/node/docs/examples/avatars/get-q-r.md b/app/sdks/node/docs/examples/avatars/get-q-r.md index 1c89a18c3b..9611a617ef 100644 --- a/app/sdks/node/docs/examples/avatars/get-q-r.md +++ b/app/sdks/node/docs/examples/avatars/get-q-r.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Avatars.Client(); +let client = new sdk.Client(); let avatars = new sdk.Avatars(client); diff --git a/app/sdks/node/docs/examples/database/create-collection.md b/app/sdks/node/docs/examples/database/create-collection.md index 83406de2e1..912dab3e48 100644 --- a/app/sdks/node/docs/examples/database/create-collection.md +++ b/app/sdks/node/docs/examples/database/create-collection.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Database.Client(); +let client = new sdk.Client(); let database = new sdk.Database(client); diff --git a/app/sdks/node/docs/examples/database/create-document.md b/app/sdks/node/docs/examples/database/create-document.md index da63b2460c..458e6e97d4 100644 --- a/app/sdks/node/docs/examples/database/create-document.md +++ b/app/sdks/node/docs/examples/database/create-document.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Database.Client(); +let client = new sdk.Client(); let database = new sdk.Database(client); diff --git a/app/sdks/node/docs/examples/database/delete-collection.md b/app/sdks/node/docs/examples/database/delete-collection.md index 40cb89a051..7be40b41bf 100644 --- a/app/sdks/node/docs/examples/database/delete-collection.md +++ b/app/sdks/node/docs/examples/database/delete-collection.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Database.Client(); +let client = new sdk.Client(); let database = new sdk.Database(client); diff --git a/app/sdks/node/docs/examples/database/delete-document.md b/app/sdks/node/docs/examples/database/delete-document.md index 6fb720be40..d74f2dd16c 100644 --- a/app/sdks/node/docs/examples/database/delete-document.md +++ b/app/sdks/node/docs/examples/database/delete-document.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Database.Client(); +let client = new sdk.Client(); let database = new sdk.Database(client); diff --git a/app/sdks/node/docs/examples/database/get-collection.md b/app/sdks/node/docs/examples/database/get-collection.md index ba1be93ec0..69a39382bf 100644 --- a/app/sdks/node/docs/examples/database/get-collection.md +++ b/app/sdks/node/docs/examples/database/get-collection.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Database.Client(); +let client = new sdk.Client(); let database = new sdk.Database(client); diff --git a/app/sdks/node/docs/examples/database/get-document.md b/app/sdks/node/docs/examples/database/get-document.md index 9ec5531d5c..5a676580bd 100644 --- a/app/sdks/node/docs/examples/database/get-document.md +++ b/app/sdks/node/docs/examples/database/get-document.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Database.Client(); +let client = new sdk.Client(); let database = new sdk.Database(client); diff --git a/app/sdks/node/docs/examples/database/list-collections.md b/app/sdks/node/docs/examples/database/list-collections.md index e24cfe1e1e..2f746de896 100644 --- a/app/sdks/node/docs/examples/database/list-collections.md +++ b/app/sdks/node/docs/examples/database/list-collections.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Database.Client(); +let client = new sdk.Client(); let database = new sdk.Database(client); diff --git a/app/sdks/node/docs/examples/database/list-documents.md b/app/sdks/node/docs/examples/database/list-documents.md index 698cb9f85e..641a572420 100644 --- a/app/sdks/node/docs/examples/database/list-documents.md +++ b/app/sdks/node/docs/examples/database/list-documents.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Database.Client(); +let client = new sdk.Client(); let database = new sdk.Database(client); diff --git a/app/sdks/node/docs/examples/database/update-collection.md b/app/sdks/node/docs/examples/database/update-collection.md index 909efb4e31..fd3480d1e0 100644 --- a/app/sdks/node/docs/examples/database/update-collection.md +++ b/app/sdks/node/docs/examples/database/update-collection.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Database.Client(); +let client = new sdk.Client(); let database = new sdk.Database(client); diff --git a/app/sdks/node/docs/examples/database/update-document.md b/app/sdks/node/docs/examples/database/update-document.md index 021228737d..1284e7b646 100644 --- a/app/sdks/node/docs/examples/database/update-document.md +++ b/app/sdks/node/docs/examples/database/update-document.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Database.Client(); +let client = new sdk.Client(); let database = new sdk.Database(client); diff --git a/app/sdks/node/docs/examples/locale/get-countries-e-u.md b/app/sdks/node/docs/examples/locale/get-countries-e-u.md index 3361060d2c..3aabf5713b 100644 --- a/app/sdks/node/docs/examples/locale/get-countries-e-u.md +++ b/app/sdks/node/docs/examples/locale/get-countries-e-u.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Locale.Client(); +let client = new sdk.Client(); let locale = new sdk.Locale(client); diff --git a/app/sdks/node/docs/examples/locale/get-countries-phones.md b/app/sdks/node/docs/examples/locale/get-countries-phones.md index 8479614d0a..79cc6f5b6b 100644 --- a/app/sdks/node/docs/examples/locale/get-countries-phones.md +++ b/app/sdks/node/docs/examples/locale/get-countries-phones.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Locale.Client(); +let client = new sdk.Client(); let locale = new sdk.Locale(client); diff --git a/app/sdks/node/docs/examples/locale/get-countries.md b/app/sdks/node/docs/examples/locale/get-countries.md index 8f9017ce8a..a4e878bc6a 100644 --- a/app/sdks/node/docs/examples/locale/get-countries.md +++ b/app/sdks/node/docs/examples/locale/get-countries.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Locale.Client(); +let client = new sdk.Client(); let locale = new sdk.Locale(client); diff --git a/app/sdks/node/docs/examples/locale/get-currencies.md b/app/sdks/node/docs/examples/locale/get-currencies.md index a488f188cc..59d8137dee 100644 --- a/app/sdks/node/docs/examples/locale/get-currencies.md +++ b/app/sdks/node/docs/examples/locale/get-currencies.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Locale.Client(); +let client = new sdk.Client(); let locale = new sdk.Locale(client); diff --git a/app/sdks/node/docs/examples/locale/get-locale.md b/app/sdks/node/docs/examples/locale/get-locale.md index 95a08dcecf..57e5d69e78 100644 --- a/app/sdks/node/docs/examples/locale/get-locale.md +++ b/app/sdks/node/docs/examples/locale/get-locale.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Locale.Client(); +let client = new sdk.Client(); let locale = new sdk.Locale(client); diff --git a/app/sdks/node/docs/examples/projects/create-key.md b/app/sdks/node/docs/examples/projects/create-key.md index 35a88cff31..227e8fc5ba 100644 --- a/app/sdks/node/docs/examples/projects/create-key.md +++ b/app/sdks/node/docs/examples/projects/create-key.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Projects.Client(); +let client = new sdk.Client(); let projects = new sdk.Projects(client); diff --git a/app/sdks/node/docs/examples/projects/create-platform.md b/app/sdks/node/docs/examples/projects/create-platform.md index edb47f78c2..ce9c7e01e1 100644 --- a/app/sdks/node/docs/examples/projects/create-platform.md +++ b/app/sdks/node/docs/examples/projects/create-platform.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Projects.Client(); +let client = new sdk.Client(); let projects = new sdk.Projects(client); diff --git a/app/sdks/node/docs/examples/projects/create-project.md b/app/sdks/node/docs/examples/projects/create-project.md index 95b3cb523a..8f0d8b47ef 100644 --- a/app/sdks/node/docs/examples/projects/create-project.md +++ b/app/sdks/node/docs/examples/projects/create-project.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Projects.Client(); +let client = new sdk.Client(); let projects = new sdk.Projects(client); diff --git a/app/sdks/node/docs/examples/projects/create-task.md b/app/sdks/node/docs/examples/projects/create-task.md index 8ec1cfa937..8923742294 100644 --- a/app/sdks/node/docs/examples/projects/create-task.md +++ b/app/sdks/node/docs/examples/projects/create-task.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Projects.Client(); +let client = new sdk.Client(); let projects = new sdk.Projects(client); diff --git a/app/sdks/node/docs/examples/projects/create-webhook.md b/app/sdks/node/docs/examples/projects/create-webhook.md index 049245b52f..8135e8d66e 100644 --- a/app/sdks/node/docs/examples/projects/create-webhook.md +++ b/app/sdks/node/docs/examples/projects/create-webhook.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Projects.Client(); +let client = new sdk.Client(); let projects = new sdk.Projects(client); diff --git a/app/sdks/node/docs/examples/projects/delete-key.md b/app/sdks/node/docs/examples/projects/delete-key.md index 0c02006000..3ca5caba8a 100644 --- a/app/sdks/node/docs/examples/projects/delete-key.md +++ b/app/sdks/node/docs/examples/projects/delete-key.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Projects.Client(); +let client = new sdk.Client(); let projects = new sdk.Projects(client); diff --git a/app/sdks/node/docs/examples/projects/delete-platform.md b/app/sdks/node/docs/examples/projects/delete-platform.md index b38bb217be..8c01703dd0 100644 --- a/app/sdks/node/docs/examples/projects/delete-platform.md +++ b/app/sdks/node/docs/examples/projects/delete-platform.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Projects.Client(); +let client = new sdk.Client(); let projects = new sdk.Projects(client); diff --git a/app/sdks/node/docs/examples/projects/delete-project.md b/app/sdks/node/docs/examples/projects/delete-project.md index d1c2603ec5..7755f35c1f 100644 --- a/app/sdks/node/docs/examples/projects/delete-project.md +++ b/app/sdks/node/docs/examples/projects/delete-project.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Projects.Client(); +let client = new sdk.Client(); let projects = new sdk.Projects(client); diff --git a/app/sdks/node/docs/examples/projects/delete-task.md b/app/sdks/node/docs/examples/projects/delete-task.md index e3f305060c..a3b985b784 100644 --- a/app/sdks/node/docs/examples/projects/delete-task.md +++ b/app/sdks/node/docs/examples/projects/delete-task.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Projects.Client(); +let client = new sdk.Client(); let projects = new sdk.Projects(client); diff --git a/app/sdks/node/docs/examples/projects/delete-webhook.md b/app/sdks/node/docs/examples/projects/delete-webhook.md index da0e24a0fe..3b41b8c433 100644 --- a/app/sdks/node/docs/examples/projects/delete-webhook.md +++ b/app/sdks/node/docs/examples/projects/delete-webhook.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Projects.Client(); +let client = new sdk.Client(); let projects = new sdk.Projects(client); diff --git a/app/sdks/node/docs/examples/projects/get-key.md b/app/sdks/node/docs/examples/projects/get-key.md index 239a3b1535..e0b2a85856 100644 --- a/app/sdks/node/docs/examples/projects/get-key.md +++ b/app/sdks/node/docs/examples/projects/get-key.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Projects.Client(); +let client = new sdk.Client(); let projects = new sdk.Projects(client); diff --git a/app/sdks/node/docs/examples/projects/get-platform.md b/app/sdks/node/docs/examples/projects/get-platform.md index 218d8e69cf..c035141e0c 100644 --- a/app/sdks/node/docs/examples/projects/get-platform.md +++ b/app/sdks/node/docs/examples/projects/get-platform.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Projects.Client(); +let client = new sdk.Client(); let projects = new sdk.Projects(client); diff --git a/app/sdks/node/docs/examples/projects/get-project-usage.md b/app/sdks/node/docs/examples/projects/get-project-usage.md index a204b64c73..32c13c13a3 100644 --- a/app/sdks/node/docs/examples/projects/get-project-usage.md +++ b/app/sdks/node/docs/examples/projects/get-project-usage.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Projects.Client(); +let client = new sdk.Client(); let projects = new sdk.Projects(client); diff --git a/app/sdks/node/docs/examples/projects/get-project.md b/app/sdks/node/docs/examples/projects/get-project.md index 7b0fe5151a..15b685a554 100644 --- a/app/sdks/node/docs/examples/projects/get-project.md +++ b/app/sdks/node/docs/examples/projects/get-project.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Projects.Client(); +let client = new sdk.Client(); let projects = new sdk.Projects(client); diff --git a/app/sdks/node/docs/examples/projects/get-task.md b/app/sdks/node/docs/examples/projects/get-task.md index 1c7338d005..83040a39f1 100644 --- a/app/sdks/node/docs/examples/projects/get-task.md +++ b/app/sdks/node/docs/examples/projects/get-task.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Projects.Client(); +let client = new sdk.Client(); let projects = new sdk.Projects(client); diff --git a/app/sdks/node/docs/examples/projects/get-webhook.md b/app/sdks/node/docs/examples/projects/get-webhook.md index cec3f37933..cb98367d6f 100644 --- a/app/sdks/node/docs/examples/projects/get-webhook.md +++ b/app/sdks/node/docs/examples/projects/get-webhook.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Projects.Client(); +let client = new sdk.Client(); let projects = new sdk.Projects(client); diff --git a/app/sdks/node/docs/examples/projects/list-keys.md b/app/sdks/node/docs/examples/projects/list-keys.md index 0f406419ef..a0a894a68e 100644 --- a/app/sdks/node/docs/examples/projects/list-keys.md +++ b/app/sdks/node/docs/examples/projects/list-keys.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Projects.Client(); +let client = new sdk.Client(); let projects = new sdk.Projects(client); diff --git a/app/sdks/node/docs/examples/projects/list-platforms.md b/app/sdks/node/docs/examples/projects/list-platforms.md index c448faa376..bb7f1370cb 100644 --- a/app/sdks/node/docs/examples/projects/list-platforms.md +++ b/app/sdks/node/docs/examples/projects/list-platforms.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Projects.Client(); +let client = new sdk.Client(); let projects = new sdk.Projects(client); diff --git a/app/sdks/node/docs/examples/projects/list-projects.md b/app/sdks/node/docs/examples/projects/list-projects.md index 3299e0293a..e4651ef686 100644 --- a/app/sdks/node/docs/examples/projects/list-projects.md +++ b/app/sdks/node/docs/examples/projects/list-projects.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Projects.Client(); +let client = new sdk.Client(); let projects = new sdk.Projects(client); diff --git a/app/sdks/node/docs/examples/projects/list-tasks.md b/app/sdks/node/docs/examples/projects/list-tasks.md index c2bd77b10b..98e381116f 100644 --- a/app/sdks/node/docs/examples/projects/list-tasks.md +++ b/app/sdks/node/docs/examples/projects/list-tasks.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Projects.Client(); +let client = new sdk.Client(); let projects = new sdk.Projects(client); diff --git a/app/sdks/node/docs/examples/projects/list-webhooks.md b/app/sdks/node/docs/examples/projects/list-webhooks.md index 0d5caec857..35da55721b 100644 --- a/app/sdks/node/docs/examples/projects/list-webhooks.md +++ b/app/sdks/node/docs/examples/projects/list-webhooks.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Projects.Client(); +let client = new sdk.Client(); let projects = new sdk.Projects(client); diff --git a/app/sdks/node/docs/examples/projects/update-key.md b/app/sdks/node/docs/examples/projects/update-key.md index 34226548ad..cd445aef25 100644 --- a/app/sdks/node/docs/examples/projects/update-key.md +++ b/app/sdks/node/docs/examples/projects/update-key.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Projects.Client(); +let client = new sdk.Client(); let projects = new sdk.Projects(client); diff --git a/app/sdks/node/docs/examples/projects/update-platform.md b/app/sdks/node/docs/examples/projects/update-platform.md index 1609aec578..6adcad9ed9 100644 --- a/app/sdks/node/docs/examples/projects/update-platform.md +++ b/app/sdks/node/docs/examples/projects/update-platform.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Projects.Client(); +let client = new sdk.Client(); let projects = new sdk.Projects(client); diff --git a/app/sdks/node/docs/examples/projects/update-project-o-auth.md b/app/sdks/node/docs/examples/projects/update-project-o-auth.md index b393b6ccb3..229f7e9c3b 100644 --- a/app/sdks/node/docs/examples/projects/update-project-o-auth.md +++ b/app/sdks/node/docs/examples/projects/update-project-o-auth.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Projects.Client(); +let client = new sdk.Client(); let projects = new sdk.Projects(client); diff --git a/app/sdks/node/docs/examples/projects/update-project.md b/app/sdks/node/docs/examples/projects/update-project.md index 096078e913..486cef2a4d 100644 --- a/app/sdks/node/docs/examples/projects/update-project.md +++ b/app/sdks/node/docs/examples/projects/update-project.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Projects.Client(); +let client = new sdk.Client(); let projects = new sdk.Projects(client); diff --git a/app/sdks/node/docs/examples/projects/update-task.md b/app/sdks/node/docs/examples/projects/update-task.md index 90462a191a..c834dc01ff 100644 --- a/app/sdks/node/docs/examples/projects/update-task.md +++ b/app/sdks/node/docs/examples/projects/update-task.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Projects.Client(); +let client = new sdk.Client(); let projects = new sdk.Projects(client); @@ -10,7 +10,7 @@ client .setKey('') ; -let promise = projects.updateTask('[PROJECT_ID]', '[TASK_ID]', '[NAME]', 'play', '', 0, 'GET', 'https://example.com'); +let promise = projects.updateTask('[PROJECT_ID]', '[TASK_ID]', '[NAME]', 'play', '', 1, 'GET', 'https://example.com'); promise.then(function (response) { console.log(response); diff --git a/app/sdks/node/docs/examples/projects/update-webhook.md b/app/sdks/node/docs/examples/projects/update-webhook.md index ba17d1c726..59783387f7 100644 --- a/app/sdks/node/docs/examples/projects/update-webhook.md +++ b/app/sdks/node/docs/examples/projects/update-webhook.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Projects.Client(); +let client = new sdk.Client(); let projects = new sdk.Projects(client); @@ -10,7 +10,7 @@ client .setKey('') ; -let promise = projects.updateWebhook('[PROJECT_ID]', '[WEBHOOK_ID]', '[NAME]', [], '[URL]', 0); +let promise = projects.updateWebhook('[PROJECT_ID]', '[WEBHOOK_ID]', '[NAME]', [], '[URL]', 1); promise.then(function (response) { console.log(response); diff --git a/app/sdks/node/docs/examples/storage/create-file.md b/app/sdks/node/docs/examples/storage/create-file.md index cbac1fcc3c..f9da6bb145 100644 --- a/app/sdks/node/docs/examples/storage/create-file.md +++ b/app/sdks/node/docs/examples/storage/create-file.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Storage.Client(); +let client = new sdk.Client(); let storage = new sdk.Storage(client); diff --git a/app/sdks/node/docs/examples/storage/delete-file.md b/app/sdks/node/docs/examples/storage/delete-file.md index aea8c60d10..9e8d13880f 100644 --- a/app/sdks/node/docs/examples/storage/delete-file.md +++ b/app/sdks/node/docs/examples/storage/delete-file.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Storage.Client(); +let client = new sdk.Client(); let storage = new sdk.Storage(client); diff --git a/app/sdks/node/docs/examples/storage/get-file-download.md b/app/sdks/node/docs/examples/storage/get-file-download.md index 9014aa2205..2967170695 100644 --- a/app/sdks/node/docs/examples/storage/get-file-download.md +++ b/app/sdks/node/docs/examples/storage/get-file-download.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Storage.Client(); +let client = new sdk.Client(); let storage = new sdk.Storage(client); diff --git a/app/sdks/node/docs/examples/storage/get-file-preview.md b/app/sdks/node/docs/examples/storage/get-file-preview.md index 7d753238dd..0c09e8ca8d 100644 --- a/app/sdks/node/docs/examples/storage/get-file-preview.md +++ b/app/sdks/node/docs/examples/storage/get-file-preview.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Storage.Client(); +let client = new sdk.Client(); let storage = new sdk.Storage(client); diff --git a/app/sdks/node/docs/examples/storage/get-file-view.md b/app/sdks/node/docs/examples/storage/get-file-view.md index b0a1ad8fac..a3074fbed1 100644 --- a/app/sdks/node/docs/examples/storage/get-file-view.md +++ b/app/sdks/node/docs/examples/storage/get-file-view.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Storage.Client(); +let client = new sdk.Client(); let storage = new sdk.Storage(client); diff --git a/app/sdks/node/docs/examples/storage/get-file.md b/app/sdks/node/docs/examples/storage/get-file.md index f17b7cfdc5..a1a3baf009 100644 --- a/app/sdks/node/docs/examples/storage/get-file.md +++ b/app/sdks/node/docs/examples/storage/get-file.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Storage.Client(); +let client = new sdk.Client(); let storage = new sdk.Storage(client); diff --git a/app/sdks/node/docs/examples/storage/list-files.md b/app/sdks/node/docs/examples/storage/list-files.md index 4c32689bd0..59a331a2b5 100644 --- a/app/sdks/node/docs/examples/storage/list-files.md +++ b/app/sdks/node/docs/examples/storage/list-files.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Storage.Client(); +let client = new sdk.Client(); let storage = new sdk.Storage(client); diff --git a/app/sdks/node/docs/examples/storage/update-file.md b/app/sdks/node/docs/examples/storage/update-file.md index 7adcb7c349..d5bd4de646 100644 --- a/app/sdks/node/docs/examples/storage/update-file.md +++ b/app/sdks/node/docs/examples/storage/update-file.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Storage.Client(); +let client = new sdk.Client(); let storage = new sdk.Storage(client); diff --git a/app/sdks/node/docs/examples/teams/create-team-membership-resend.md b/app/sdks/node/docs/examples/teams/create-team-membership-resend.md index df025f82fe..1f387d0b3b 100644 --- a/app/sdks/node/docs/examples/teams/create-team-membership-resend.md +++ b/app/sdks/node/docs/examples/teams/create-team-membership-resend.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Teams.Client(); +let client = new sdk.Client(); let teams = new sdk.Teams(client); diff --git a/app/sdks/node/docs/examples/teams/create-team-membership.md b/app/sdks/node/docs/examples/teams/create-team-membership.md index 24bbadb908..7a2c9be298 100644 --- a/app/sdks/node/docs/examples/teams/create-team-membership.md +++ b/app/sdks/node/docs/examples/teams/create-team-membership.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Teams.Client(); +let client = new sdk.Client(); let teams = new sdk.Teams(client); diff --git a/app/sdks/node/docs/examples/teams/create-team.md b/app/sdks/node/docs/examples/teams/create-team.md index f3f5a5cd2f..73dd77ecc5 100644 --- a/app/sdks/node/docs/examples/teams/create-team.md +++ b/app/sdks/node/docs/examples/teams/create-team.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Teams.Client(); +let client = new sdk.Client(); let teams = new sdk.Teams(client); diff --git a/app/sdks/node/docs/examples/teams/delete-team-membership.md b/app/sdks/node/docs/examples/teams/delete-team-membership.md index cf0fc89d49..435a65026f 100644 --- a/app/sdks/node/docs/examples/teams/delete-team-membership.md +++ b/app/sdks/node/docs/examples/teams/delete-team-membership.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Teams.Client(); +let client = new sdk.Client(); let teams = new sdk.Teams(client); diff --git a/app/sdks/node/docs/examples/teams/delete-team.md b/app/sdks/node/docs/examples/teams/delete-team.md index bfc9fb176a..0204d40c98 100644 --- a/app/sdks/node/docs/examples/teams/delete-team.md +++ b/app/sdks/node/docs/examples/teams/delete-team.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Teams.Client(); +let client = new sdk.Client(); let teams = new sdk.Teams(client); diff --git a/app/sdks/node/docs/examples/teams/get-team-members.md b/app/sdks/node/docs/examples/teams/get-team-members.md index 5ff7341e4e..35fd3062fe 100644 --- a/app/sdks/node/docs/examples/teams/get-team-members.md +++ b/app/sdks/node/docs/examples/teams/get-team-members.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Teams.Client(); +let client = new sdk.Client(); let teams = new sdk.Teams(client); diff --git a/app/sdks/node/docs/examples/teams/get-team.md b/app/sdks/node/docs/examples/teams/get-team.md index 3706c9177c..b716b7ea01 100644 --- a/app/sdks/node/docs/examples/teams/get-team.md +++ b/app/sdks/node/docs/examples/teams/get-team.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Teams.Client(); +let client = new sdk.Client(); let teams = new sdk.Teams(client); diff --git a/app/sdks/node/docs/examples/teams/list-teams.md b/app/sdks/node/docs/examples/teams/list-teams.md index 066c2e6517..609c708753 100644 --- a/app/sdks/node/docs/examples/teams/list-teams.md +++ b/app/sdks/node/docs/examples/teams/list-teams.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Teams.Client(); +let client = new sdk.Client(); let teams = new sdk.Teams(client); diff --git a/app/sdks/node/docs/examples/teams/update-team-membership-status.md b/app/sdks/node/docs/examples/teams/update-team-membership-status.md index 9332a584c4..8d65bf33b0 100644 --- a/app/sdks/node/docs/examples/teams/update-team-membership-status.md +++ b/app/sdks/node/docs/examples/teams/update-team-membership-status.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Teams.Client(); +let client = new sdk.Client(); let teams = new sdk.Teams(client); diff --git a/app/sdks/node/docs/examples/teams/update-team.md b/app/sdks/node/docs/examples/teams/update-team.md index 1c55d96522..6afb377091 100644 --- a/app/sdks/node/docs/examples/teams/update-team.md +++ b/app/sdks/node/docs/examples/teams/update-team.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Teams.Client(); +let client = new sdk.Client(); let teams = new sdk.Teams(client); diff --git a/app/sdks/node/docs/examples/users/create-user.md b/app/sdks/node/docs/examples/users/create-user.md index 1f0926fade..d07ab1eabf 100644 --- a/app/sdks/node/docs/examples/users/create-user.md +++ b/app/sdks/node/docs/examples/users/create-user.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Users.Client(); +let client = new sdk.Client(); let users = new sdk.Users(client); diff --git a/app/sdks/node/docs/examples/users/delete-user-sessions.md b/app/sdks/node/docs/examples/users/delete-user-sessions.md index d7578d40da..33f803298d 100644 --- a/app/sdks/node/docs/examples/users/delete-user-sessions.md +++ b/app/sdks/node/docs/examples/users/delete-user-sessions.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Users.Client(); +let client = new sdk.Client(); let users = new sdk.Users(client); diff --git a/app/sdks/node/docs/examples/users/delete-users-session.md b/app/sdks/node/docs/examples/users/delete-users-session.md index 7703352a0b..530503da4b 100644 --- a/app/sdks/node/docs/examples/users/delete-users-session.md +++ b/app/sdks/node/docs/examples/users/delete-users-session.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Users.Client(); +let client = new sdk.Client(); let users = new sdk.Users(client); diff --git a/app/sdks/node/docs/examples/users/get-user-logs.md b/app/sdks/node/docs/examples/users/get-user-logs.md index 484bb9cdac..85d0a125a0 100644 --- a/app/sdks/node/docs/examples/users/get-user-logs.md +++ b/app/sdks/node/docs/examples/users/get-user-logs.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Users.Client(); +let client = new sdk.Client(); let users = new sdk.Users(client); diff --git a/app/sdks/node/docs/examples/users/get-user-prefs.md b/app/sdks/node/docs/examples/users/get-user-prefs.md index 0719091111..46d959e1cb 100644 --- a/app/sdks/node/docs/examples/users/get-user-prefs.md +++ b/app/sdks/node/docs/examples/users/get-user-prefs.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Users.Client(); +let client = new sdk.Client(); let users = new sdk.Users(client); diff --git a/app/sdks/node/docs/examples/users/get-user-sessions.md b/app/sdks/node/docs/examples/users/get-user-sessions.md index 4e049f257e..b3dfe28405 100644 --- a/app/sdks/node/docs/examples/users/get-user-sessions.md +++ b/app/sdks/node/docs/examples/users/get-user-sessions.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Users.Client(); +let client = new sdk.Client(); let users = new sdk.Users(client); diff --git a/app/sdks/node/docs/examples/users/get-user.md b/app/sdks/node/docs/examples/users/get-user.md index c46b9d7a3e..96676c0196 100644 --- a/app/sdks/node/docs/examples/users/get-user.md +++ b/app/sdks/node/docs/examples/users/get-user.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Users.Client(); +let client = new sdk.Client(); let users = new sdk.Users(client); diff --git a/app/sdks/node/docs/examples/users/list-users.md b/app/sdks/node/docs/examples/users/list-users.md index b4f51cfddd..455e42db4d 100644 --- a/app/sdks/node/docs/examples/users/list-users.md +++ b/app/sdks/node/docs/examples/users/list-users.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Users.Client(); +let client = new sdk.Client(); let users = new sdk.Users(client); diff --git a/app/sdks/node/docs/examples/users/update-user-status.md b/app/sdks/node/docs/examples/users/update-user-status.md index 009fcf1314..858833a50c 100644 --- a/app/sdks/node/docs/examples/users/update-user-status.md +++ b/app/sdks/node/docs/examples/users/update-user-status.md @@ -1,7 +1,7 @@ const sdk = require('node-appwrite'); // Init SDK -let client = new Users.Client(); +let client = new sdk.Client(); let users = new sdk.Users(client); diff --git a/app/sdks/node/lib/services/auth.js b/app/sdks/node/lib/services/auth.js index 39cf72ad10..e8bdd2bc2c 100644 --- a/app/sdks/node/lib/services/auth.js +++ b/app/sdks/node/lib/services/auth.js @@ -7,13 +7,13 @@ class Auth extends Service { * * Allow the user to login into his account by providing a valid email and * password combination. Use the success and failure arguments to provide a - * redirect URL\'s back to your app when login is completed. - * + * redirect URL\'s back to your app when login is completed. + * * Please notice that in order to avoid a [Redirect * Attacks](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) * the only valid redirect URL's are the once from domains you have set when * added your platforms in the console interface. - * + * * When accessing this route using JavaScript from the browser, success and * failure parameter URLs are required. Appwrite server will respond with a * 301 redirect status code and will set the user session cookie. This @@ -29,7 +29,7 @@ class Auth extends Service { */ async login(email, password, success, failure) { let path = '/auth/login'; - + return await this.client.call('post', path, {'content-type': 'application/json'}, { 'email': email, @@ -51,7 +51,7 @@ class Auth extends Service { */ async logout() { let path = '/auth/logout'; - + return await this.client.call('delete', path, {'content-type': 'application/json'}, { }); @@ -70,7 +70,7 @@ class Auth extends Service { */ async logoutBySession(id) { let path = '/auth/logout/{id}'.replace(new RegExp('{id}', 'g'), id); - + return await this.client.call('delete', path, {'content-type': 'application/json'}, { }); @@ -87,7 +87,7 @@ class Auth extends Service { */ async oauth(provider, success = '', failure = '') { let path = '/auth/oauth/{provider}'.replace(new RegExp('{provider}', 'g'), provider); - + return await this.client.call('get', path, {'content-type': 'application/json'}, { 'success': success, @@ -112,7 +112,7 @@ class Auth extends Service { */ async recovery(email, reset) { let path = '/auth/recovery'; - + return await this.client.call('post', path, {'content-type': 'application/json'}, { 'email': email, @@ -127,7 +127,7 @@ class Auth extends Service { * **userId** and **token** arguments will be passed as query parameters to * the redirect URL you have provided when sending your request to the * /auth/recovery endpoint. - * + * * Please notice that in order to avoid a [Redirect * Attacks](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) * the only valid redirect URL's are the once from domains you have set when @@ -142,7 +142,7 @@ class Auth extends Service { */ async recoveryReset(userId, token, passwordA, passwordB) { let path = '/auth/recovery/reset'; - + return await this.client.call('put', path, {'content-type': 'application/json'}, { 'userId': userId, @@ -158,18 +158,18 @@ class Auth extends Service { * Use this endpoint to allow a new user to register an account in your * project. Use the success and failure URL's to redirect users back to your * application after signup completes. - * + * * If registration completes successfully user will be sent with a * confirmation email in order to confirm he is the owner of the account email * address. Use the confirmation parameter to redirect the user from the * confirmation email back to your app. When the user is redirected, use the * /auth/confirm endpoint to complete the account confirmation. - * + * * Please notice that in order to avoid a [Redirect * Attacks](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) * the only valid redirect URL's are the once from domains you have set when * added your platforms in the console interface. - * + * * When accessing this route using JavaScript from the browser, success and * failure parameter URLs are required. Appwrite server will respond with a * 301 redirect status code and will set the user session cookie. This @@ -187,7 +187,7 @@ class Auth extends Service { */ async register(email, password, confirm, success = '', failure = '', name = '') { let path = '/auth/register'; - + return await this.client.call('post', path, {'content-type': 'application/json'}, { 'email': email, @@ -214,7 +214,7 @@ class Auth extends Service { */ async confirm(userId, token) { let path = '/auth/register/confirm'; - + return await this.client.call('post', path, {'content-type': 'application/json'}, { 'userId': userId, @@ -228,7 +228,7 @@ class Auth extends Service { * This endpoint allows the user to request your app to resend him his email * confirmation message. The redirect arguments acts the same way as in * /auth/register endpoint. - * + * * Please notice that in order to avoid a [Redirect * Attacks](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) * the only valid redirect URL's are the once from domains you have set when @@ -240,7 +240,7 @@ class Auth extends Service { */ async confirmResend(confirm) { let path = '/auth/register/confirm/resend'; - + return await this.client.call('post', path, {'content-type': 'application/json'}, { 'confirm': confirm @@ -248,4 +248,4 @@ class Auth extends Service { } } -module.exports = Auth; +module.exports = Auth; \ No newline at end of file diff --git a/app/sdks/node/lib/services/locale.js b/app/sdks/node/lib/services/locale.js index 0a9ffad1a9..5231e1a1e4 100644 --- a/app/sdks/node/lib/services/locale.js +++ b/app/sdks/node/lib/services/locale.js @@ -76,9 +76,9 @@ class Locale extends Service { /** * List of currencies * - * List of all currencies, including currency symol, name, plural, and decimal - * digits for all major and minor currencies. You can use the locale header to - * get the data in supported language. + * List of all currencies, including currency symbol, name, plural, and + * decimal digits for all major and minor currencies. You can use the locale + * header to get the data in supported language. * * @throws Exception * @return {} diff --git a/app/sdks/php/README.md b/app/sdks/php/README.md index 0e095a413d..8a58765489 100644 --- a/app/sdks/php/README.md +++ b/app/sdks/php/README.md @@ -1,9 +1,9 @@ # [Appwrite SDK for PHP](https://appwrite.io)   [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Appwrite%20is%20a%20backend%20as%20a%20service%20for%20building%20web%20or%20mobile%20apps&url=http%3A%2F%2Fappwrite.io&via=appwrite_io&hashtags=JS%2Cjavascript%2Creactjs%2Cangular%2Cios%2Candroid) ![License](https://img.shields.io/github/license/appwrite/sdk-for-php.svg?v=1) -![Version](https://img.shields.io/badge/api%20version-0.1.15-blue.svg?v=1) +![Version](https://img.shields.io/badge/api%20version-latest-blue.svg?v=1) -This SDK is compatible with Appwrite server version 0.2.0 for older versions check previous releases. +This SDK is compitable with Appwrite server version 0.2.0 for older versions check previous releases. Appwrite backend as a service cuts up to 70% of the time and costs required for building a modern application. We abstract and simplify common development tasks behind a REST APIs, to help you develop your app in a fast and secure way. For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs) @@ -11,7 +11,7 @@ Appwrite backend as a service cuts up to 70% of the time and costs required for ![Appwrite](https://appwrite.io/images/github.png) -**API Version: 0.1.15** +**API Version: latest** ## Installation @@ -23,4 +23,4 @@ composer require appwrite/appwrite ## License -Please see the [BSD-3-Clause license](https://raw.githubusercontent.com/appwrite/appwrite/master/LICENSE) file for more information. +Please see the [BSD-3-Clause license](https://raw.githubusercontent.com/appwrite/appwrite/master/LICENSE) file for more information. \ No newline at end of file diff --git a/app/sdks/php/docs/auth.md b/app/sdks/php/docs/auth.md index 8808237478..7a0bef9733 100644 --- a/app/sdks/php/docs/auth.md +++ b/app/sdks/php/docs/auth.md @@ -146,3 +146,4 @@ Please notice that in order to avoid a [Redirect Attacks](https://github.com/OWA | Field Name | Type | Description | Default | | --- | --- | --- | --- | | confirm | string | Confirmation URL to redirect user to your app after confirm token has been sent to user email. | | + diff --git a/app/sdks/php/docs/examples/projects/update-webhook.md b/app/sdks/php/docs/examples/projects/update-webhook.md index 6f176a01fb..a7e42dcce2 100644 --- a/app/sdks/php/docs/examples/projects/update-webhook.md +++ b/app/sdks/php/docs/examples/projects/update-webhook.md @@ -12,4 +12,4 @@ $client $projects = new Projects($client); -$result = $projects->updateWebhook('[PROJECT_ID]', '[WEBHOOK_ID]', '[NAME]', [], '[URL]', 1); \ No newline at end of file +$result = $projects->updateWebhook('[PROJECT_ID]', '[WEBHOOK_ID]', '[NAME]', [], '[URL]', 0); \ No newline at end of file diff --git a/app/sdks/php/docs/locale.md b/app/sdks/php/docs/locale.md index 7635546481..e977fa99cf 100644 --- a/app/sdks/php/docs/locale.md +++ b/app/sdks/php/docs/locale.md @@ -38,5 +38,5 @@ GET https://appwrite.test/v1/locale/countries/phones GET https://appwrite.test/v1/locale/currencies ``` -** List of all currencies, including currency symol, name, plural, and decimal digits for all major and minor currencies. You can use the locale header to get the data in supported language. ** +** List of all currencies, including currency symbol, name, plural, and decimal digits for all major and minor currencies. You can use the locale header to get the data in supported language. ** diff --git a/app/sdks/php/src/Appwrite/Services/Auth.php b/app/sdks/php/src/Appwrite/Services/Auth.php index 818a5e1dba..aa0c32c3f2 100644 --- a/app/sdks/php/src/Appwrite/Services/Auth.php +++ b/app/sdks/php/src/Appwrite/Services/Auth.php @@ -13,13 +13,13 @@ class Auth extends Service * * Allow the user to login into his account by providing a valid email and * password combination. Use the success and failure arguments to provide a - * redirect URL\'s back to your app when login is completed. - * + * redirect URL\'s back to your app when login is completed. + * * Please notice that in order to avoid a [Redirect * Attacks](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) * the only valid redirect URL's are the once from domains you have set when * added your platforms in the console interface. - * + * * When accessing this route using JavaScript from the browser, success and * failure parameter URLs are required. Appwrite server will respond with a * 301 redirect status code and will set the user session cookie. This @@ -143,7 +143,7 @@ class Auth extends Service * **userId** and **token** arguments will be passed as query parameters to * the redirect URL you have provided when sending your request to the * /auth/recovery endpoint. - * + * * Please notice that in order to avoid a [Redirect * Attacks](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) * the only valid redirect URL's are the once from domains you have set when @@ -176,18 +176,18 @@ class Auth extends Service * Use this endpoint to allow a new user to register an account in your * project. Use the success and failure URL's to redirect users back to your * application after signup completes. - * + * * If registration completes successfully user will be sent with a * confirmation email in order to confirm he is the owner of the account email * address. Use the confirmation parameter to redirect the user from the * confirmation email back to your app. When the user is redirected, use the * /auth/confirm endpoint to complete the account confirmation. - * + * * Please notice that in order to avoid a [Redirect * Attacks](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) * the only valid redirect URL's are the once from domains you have set when * added your platforms in the console interface. - * + * * When accessing this route using JavaScript from the browser, success and * failure parameter URLs are required. Appwrite server will respond with a * 301 redirect status code and will set the user session cookie. This @@ -250,7 +250,7 @@ class Auth extends Service * This endpoint allows the user to request your app to resend him his email * confirmation message. The redirect arguments acts the same way as in * /auth/register endpoint. - * + * * Please notice that in order to avoid a [Redirect * Attacks](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) * the only valid redirect URL's are the once from domains you have set when @@ -271,4 +271,4 @@ class Auth extends Service ], $params); } -} +} \ No newline at end of file diff --git a/app/sdks/php/src/Appwrite/Services/Locale.php b/app/sdks/php/src/Appwrite/Services/Locale.php index 1ae5ae0427..b03c1c3e73 100644 --- a/app/sdks/php/src/Appwrite/Services/Locale.php +++ b/app/sdks/php/src/Appwrite/Services/Locale.php @@ -90,9 +90,9 @@ class Locale extends Service /** * List of currencies * - * List of all currencies, including currency symol, name, plural, and decimal - * digits for all major and minor currencies. You can use the locale header to - * get the data in supported language. + * List of all currencies, including currency symbol, name, plural, and + * decimal digits for all major and minor currencies. You can use the locale + * header to get the data in supported language. * * @throws Exception * @return array diff --git a/app/sdks/python/README.md b/app/sdks/python/README.md index 59928110e1..08f7338bfd 100644 --- a/app/sdks/python/README.md +++ b/app/sdks/python/README.md @@ -1,7 +1,7 @@ # [Appwrite SDK for Python](https://appwrite.io)   [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Appwrite%20is%20a%20backend%20as%20a%20service%20for%20building%20web%20or%20mobile%20apps&url=http%3A%2F%2Fappwrite.io&via=appwrite_io&hashtags=JS%2Cjavascript%2Creactjs%2Cangular%2Cios%2Candroid) ![License](https://img.shields.io/github/license/appwrite/sdk-for-python.svg?v=1) -![Version](https://img.shields.io/badge/api%20version-0.1.15-blue.svg?v=1) +![Version](https://img.shields.io/badge/api%20version-latest-blue.svg?v=1) **WORK IN PROGRESS - NOT READY FOR USAGE - Want to help us improve this client SDK? Send a pull request to Appwrite [SDK generator repository](https://github.com/appwrite/sdk-generator).** @@ -11,7 +11,7 @@ Appwrite backend as a service cuts up to 70% of the time and costs required for ![Appwrite](https://appwrite.io/images/github.png) -**API Version: 0.1.15** +**API Version: latest** ## Installation diff --git a/app/sdks/ruby/README.md b/app/sdks/ruby/README.md index 82892eac6b..a8d5f466ba 100644 --- a/app/sdks/ruby/README.md +++ b/app/sdks/ruby/README.md @@ -1,7 +1,7 @@ # [Appwrite SDK for Ruby](https://appwrite.io)   [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Appwrite%20is%20a%20backend%20as%20a%20service%20for%20building%20web%20or%20mobile%20apps&url=http%3A%2F%2Fappwrite.io&via=appwrite_io&hashtags=JS%2Cjavascript%2Creactjs%2Cangular%2Cios%2Candroid) ![License](https://img.shields.io/github/license/appwrite/sdk-for-ruby.svg?v=1) -![Version](https://img.shields.io/badge/api%20version-0.1.15-blue.svg?v=1) +![Version](https://img.shields.io/badge/api%20version-latest-blue.svg?v=1) **WORK IN PROGRESS - NOT READY FOR USAGE - Want to help us improve this client SDK? Send a pull request to Appwrite [SDK generator repository](https://github.com/appwrite/sdk-generator).** @@ -11,7 +11,7 @@ Appwrite backend as a service cuts up to 70% of the time and costs required for ![Appwrite](https://appwrite.io/images/github.png) -**API Version: 0.1.15** +**API Version: latest** ## Installation diff --git a/composer.lock b/composer.lock index 40ac77a0cc..bd903a6a74 100644 --- a/composer.lock +++ b/composer.lock @@ -92,7 +92,7 @@ "source": { "type": "git", "url": "https://github.com/appwrite/sdk-generator", - "reference": "21f848c7c8a6f3f721c23d9c8bbdf8fff886863d" + "reference": "30bd70b62d5b5ff0c7902383d1b92ca523a20004" }, "require": { "ext-curl": "*", @@ -122,7 +122,7 @@ } ], "description": "Appwrite PHP library for generating API SDKs for multiple programming languages and platforms", - "time": "2019-10-01 17:57:36" + "time": "2019-10-03 17:55:27" }, { "name": "bacon/bacon-qr-code", @@ -1994,7 +1994,7 @@ }, { "name": "phpdocumentor/reflection-common", - "version": "dev-master", + "version": "2.0.0", "source": { "type": "git", "url": "https://github.com/phpDocumentor/ReflectionCommon.git", @@ -2046,40 +2046,36 @@ }, { "name": "phpdocumentor/reflection-docblock", - "version": "4.3.2", + "version": "dev-master", "source": { "type": "git", "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", - "reference": "b83ff7cfcfee7827e1e78b637a5904fe6a96698e" + "reference": "8fcadfe5f85c38705151c9ab23b4781f23e6a70e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/b83ff7cfcfee7827e1e78b637a5904fe6a96698e", - "reference": "b83ff7cfcfee7827e1e78b637a5904fe6a96698e", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/8fcadfe5f85c38705151c9ab23b4781f23e6a70e", + "reference": "8fcadfe5f85c38705151c9ab23b4781f23e6a70e", "shasum": "" }, "require": { - "php": "^7.0", - "phpdocumentor/reflection-common": "^1.0.0 || ^2.0.0", - "phpdocumentor/type-resolver": "~0.4 || ^1.0.0", - "webmozart/assert": "^1.0" + "php": ">=7.1", + "phpdocumentor/type-resolver": "^0", + "webmozart/assert": "^1" }, "require-dev": { - "doctrine/instantiator": "^1.0.5", - "mockery/mockery": "^1.0", - "phpunit/phpunit": "^6.4" + "doctrine/instantiator": "^1", + "mockery/mockery": "^1" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "4.x-dev" + "dev-master": "5.x-dev" } }, "autoload": { "psr-4": { - "phpDocumentor\\Reflection\\": [ - "src/" - ] + "phpDocumentor\\Reflection\\": "src" } }, "notification-url": "https://packagist.org/downloads/", @@ -2093,35 +2089,34 @@ } ], "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", - "time": "2019-09-12T14:27:41+00:00" + "time": "2019-06-15T20:45:01+00:00" }, { "name": "phpdocumentor/type-resolver", - "version": "dev-master", + "version": "0.7.x-dev", "source": { "type": "git", "url": "https://github.com/phpDocumentor/TypeResolver.git", - "reference": "2e32a6d48972b2c1976ed5d8967145b6cec4a4a9" + "reference": "6f6f66c1d4e14e9b0ad124cae85864dfa03104c7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/2e32a6d48972b2c1976ed5d8967145b6cec4a4a9", - "reference": "2e32a6d48972b2c1976ed5d8967145b6cec4a4a9", + "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/6f6f66c1d4e14e9b0ad124cae85864dfa03104c7", + "reference": "6f6f66c1d4e14e9b0ad124cae85864dfa03104c7", "shasum": "" }, "require": { - "php": "^7.1", - "phpdocumentor/reflection-common": "^2.0" + "php": ">=7.1", + "phpdocumentor/reflection-common": "~2.0.0-beta1" }, "require-dev": { - "ext-tokenizer": "^7.1", "mockery/mockery": "~1", - "phpunit/phpunit": "^7.0" + "phpunit/phpunit": "~6" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.x-dev" + "dev-master": "0.x-dev" } }, "autoload": { @@ -2140,26 +2135,26 @@ } ], "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names", - "time": "2019-08-22T18:11:29+00:00" + "time": "2019-08-22T17:55:41+00:00" }, { "name": "phpspec/prophecy", - "version": "dev-master", + "version": "1.9.0", "source": { "type": "git", "url": "https://github.com/phpspec/prophecy.git", - "reference": "bcdce71d674f4f7b86df0ff3a418d43b7fe141f7" + "reference": "f6811d96d97bdf400077a0cc100ae56aa32b9203" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpspec/prophecy/zipball/bcdce71d674f4f7b86df0ff3a418d43b7fe141f7", - "reference": "bcdce71d674f4f7b86df0ff3a418d43b7fe141f7", + "url": "https://api.github.com/repos/phpspec/prophecy/zipball/f6811d96d97bdf400077a0cc100ae56aa32b9203", + "reference": "f6811d96d97bdf400077a0cc100ae56aa32b9203", "shasum": "" }, "require": { "doctrine/instantiator": "^1.0.2", "php": "^5.3|^7.0", - "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0", + "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0|^5.0", "sebastian/comparator": "^1.1|^2.0|^3.0", "sebastian/recursion-context": "^1.0|^2.0|^3.0" }, @@ -2203,7 +2198,7 @@ "spy", "stub" ], - "time": "2019-09-09T15:23:21+00:00" + "time": "2019-10-03T11:07:50+00:00" }, { "name": "phpunit/php-code-coverage",