Skip to content

Commit

Permalink
Merge pull request #10 from appwrite/dev
Browse files Browse the repository at this point in the history
Appwrite 1.2.0 support
  • Loading branch information
eldadfux authored Dec 27, 2022
2 parents 13298b9 + e630940 commit e1a58bb
Show file tree
Hide file tree
Showing 26 changed files with 137 additions and 248 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ Redistribution and use in source and binary forms, with or without modification,

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

3. Neither the name Appwrite nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Appwrite Deno SDK

![License](https://img.shields.io/github/license/appwrite/sdk-for-deno.svg?style=flat-square)
![Version](https://img.shields.io/badge/api%20version-1.0.0-blue.svg?style=flat-square)
![Version](https://img.shields.io/badge/api%20version-1.2.0-blue.svg?style=flat-square)
[![Build Status](https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square)](https://travis-ci.com/appwrite/sdk-generator)
[![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite)
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)

**This SDK is compatible with Appwrite server version 1.0.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-deno/releases).**
**This SDK is compatible with Appwrite server version 1.2.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-deno/releases).**

Appwrite is an open-source backend as a service server that abstract and simplify complex and repetitive development tasks behind a very simple to use REST API. Appwrite aims to help you develop your apps faster and in a more secure way. Use the Deno SDK to integrate your app with the Appwrite server to easily start interacting with all of Appwrite backend APIs and tools. For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs)

Expand Down
21 changes: 0 additions & 21 deletions docs/examples/account/get-logs.md

This file was deleted.

21 changes: 0 additions & 21 deletions docs/examples/account/get-sessions.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/examples/account/update-phone.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ client
;


let promise = account.updatePhone('', 'password');
let promise = account.updatePhone('+12065550100', 'password');

promise.then(function (response) {
console.log(response);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ client
;


let promise = functions.retryBuild('[FUNCTION_ID]', '[DEPLOYMENT_ID]', '[BUILD_ID]');
let promise = functions.createBuild('[FUNCTION_ID]', '[DEPLOYMENT_ID]', '[BUILD_ID]');

promise.then(function (response) {
console.log(response);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as sdk from "https://deno.land/x/appwrite/mod.ts";
// Init SDK
let client = new sdk.Client();

let locale = new sdk.Locale(client);
let graphql = new sdk.Graphql(client);

client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
Expand All @@ -12,7 +12,7 @@ client
;


let promise = locale.getCurrencies();
let promise = graphql.mutation({});

promise.then(function (response) {
console.log(response);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as sdk from "https://deno.land/x/appwrite/mod.ts";
// Init SDK
let client = new sdk.Client();

let locale = new sdk.Locale(client);
let graphql = new sdk.Graphql(client);

client
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
Expand All @@ -12,7 +12,7 @@ client
;


let promise = locale.getLanguages();
let promise = graphql.query({});

promise.then(function (response) {
console.log(response);
Expand Down
21 changes: 0 additions & 21 deletions docs/examples/locale/get-continents.md

This file was deleted.

21 changes: 0 additions & 21 deletions docs/examples/locale/get-countries-e-u.md

This file was deleted.

21 changes: 0 additions & 21 deletions docs/examples/locale/get-countries-phones.md

This file was deleted.

21 changes: 0 additions & 21 deletions docs/examples/locale/get-countries.md

This file was deleted.

21 changes: 0 additions & 21 deletions docs/examples/teams/get-memberships.md

This file was deleted.

21 changes: 0 additions & 21 deletions docs/examples/users/get-logs.md

This file was deleted.

21 changes: 0 additions & 21 deletions docs/examples/users/get-memberships.md

This file was deleted.

21 changes: 0 additions & 21 deletions docs/examples/users/get-sessions.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/examples/users/update-phone.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ client
;


let promise = users.updatePhone('[USER_ID]', '');
let promise = users.updatePhone('[USER_ID]', '+12065550100');

promise.then(function (response) {
console.log(response);
Expand Down
2 changes: 2 additions & 0 deletions mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { Account } from "./src/services/account.ts";
import { Avatars } from "./src/services/avatars.ts";
import { Databases } from "./src/services/databases.ts";
import { Functions } from "./src/services/functions.ts";
import { Graphql } from "./src/services/graphql.ts";
import { Health } from "./src/services/health.ts";
import { Locale } from "./src/services/locale.ts";
import { Storage } from "./src/services/storage.ts";
Expand All @@ -27,6 +28,7 @@ export {
Avatars,
Databases,
Functions,
Graphql,
Health,
Locale,
Storage,
Expand Down
2 changes: 1 addition & 1 deletion src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export class Client {
'x-sdk-name': 'Deno',
'x-sdk-platform': 'server',
'x-sdk-language': 'deno',
'x-sdk-version': '6.1.0',
'x-sdk-version': '6.2.0',
'X-Appwrite-Response-Format':'1.0.0',
};

Expand Down
Loading

0 comments on commit e1a58bb

Please sign in to comment.