Skip to content

Commit 932af5b

Browse files
committed
chore: regenerate
1 parent c06dfd6 commit 932af5b

26 files changed

+744
-262
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Appwrite Web SDK
22

33
![License](https://img.shields.io/github/license/appwrite/sdk-for-web.svg?style=flat-square)
4-
![Version](https://img.shields.io/badge/api%20version-1.7.4-blue.svg?style=flat-square)
4+
![Version](https://img.shields.io/badge/api%20version-1.8.0-blue.svg?style=flat-square)
55
[![Build Status](https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square)](https://travis-ci.com/appwrite/sdk-generator)
66
[![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite)
77
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)
88

9-
**This SDK is compatible with Appwrite server version 1.7.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-web/releases).**
9+
**This SDK is compatible with Appwrite server version 1.8.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-web/releases).**
1010

1111
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 Web 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)
1212

@@ -33,7 +33,7 @@ import { Client, Account } from "appwrite";
3333
To install with a CDN (content delivery network) add the following scripts to the bottom of your <body> tag, but before you use any Appwrite services:
3434

3535
```html
36-
<script src="https://cdn.jsdelivr.net/npm/appwrite@18.2.0"></script>
36+
<script src="https://cdn.jsdelivr.net/npm/appwrite@19.0.0"></script>
3737
```
3838

3939

docs/examples/databases/create-document.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { Client, Databases } from "appwrite";
22

33
const client = new Client()
44
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
5-
.setAdmin('') //
65
.setSession('') // The user session to authenticate with
76
.setKey('') //
87
.setJWT('<YOUR_JWT>'); // Your secret JSON Web Token

docs/examples/databases/decrement-document-attribute.md

Lines changed: 0 additions & 18 deletions
This file was deleted.

docs/examples/databases/increment-document-attribute.md

Lines changed: 0 additions & 18 deletions
This file was deleted.

docs/examples/databases/upsert-document.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@ import { Client, Databases } from "appwrite";
22

33
const client = new Client()
44
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
5+
.setSession('') // The user session to authenticate with
6+
.setKey('') //
7+
.setJWT('<YOUR_JWT>'); // Your secret JSON Web Token
68

79
const databases = new Databases(client);
810

911
const result = await databases.upsertDocument(
1012
'<DATABASE_ID>', // databaseId
1113
'<COLLECTION_ID>', // collectionId
12-
'<DOCUMENT_ID>', // documentId
13-
{}, // data
14-
["read("any")"] // permissions (optional)
14+
'<DOCUMENT_ID>' // documentId
1515
);
1616

1717
console.log(result);

docs/examples/tables/create-row.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import { Client, Tables } from "appwrite";
2+
3+
const client = new Client()
4+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
5+
.setSession('') // The user session to authenticate with
6+
.setKey('') //
7+
.setJWT('<YOUR_JWT>'); // Your secret JSON Web Token
8+
9+
const tables = new Tables(client);
10+
11+
const result = await tables.createRow(
12+
'<DATABASE_ID>', // databaseId
13+
'<TABLE_ID>', // tableId
14+
'<ROW_ID>', // rowId
15+
{}, // data
16+
["read("any")"] // permissions (optional)
17+
);
18+
19+
console.log(result);

docs/examples/tables/create-rows.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { Client, Tables } from "appwrite";
2+
3+
const client = new Client()
4+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
5+
.setAdmin('') //
6+
.setKey(''); //
7+
8+
const tables = new Tables(client);
9+
10+
const result = await tables.createRows(
11+
'<DATABASE_ID>', // databaseId
12+
'<TABLE_ID>', // tableId
13+
[] // rows
14+
);
15+
16+
console.log(result);

docs/examples/tables/delete-row.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { Client, Tables } from "appwrite";
2+
3+
const client = new Client()
4+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
5+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
6+
7+
const tables = new Tables(client);
8+
9+
const result = await tables.deleteRow(
10+
'<DATABASE_ID>', // databaseId
11+
'<TABLE_ID>', // tableId
12+
'<ROW_ID>' // rowId
13+
);
14+
15+
console.log(result);

docs/examples/tables/get-row.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { Client, Tables } from "appwrite";
2+
3+
const client = new Client()
4+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
5+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
6+
7+
const tables = new Tables(client);
8+
9+
const result = await tables.getRow(
10+
'<DATABASE_ID>', // databaseId
11+
'<TABLE_ID>', // tableId
12+
'<ROW_ID>', // rowId
13+
[] // queries (optional)
14+
);
15+
16+
console.log(result);

docs/examples/tables/list-rows.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { Client, Tables } from "appwrite";
2+
3+
const client = new Client()
4+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
5+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
6+
7+
const tables = new Tables(client);
8+
9+
const result = await tables.listRows(
10+
'<DATABASE_ID>', // databaseId
11+
'<TABLE_ID>', // tableId
12+
[] // queries (optional)
13+
);
14+
15+
console.log(result);

0 commit comments

Comments
 (0)