Skip to content

Commit 0682d78

Browse files
committed
chore: regenerate
1 parent f286c22 commit 0682d78

40 files changed

+153
-651
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
[![pub package](https://img.shields.io/pub/v/appwrite?style=flat-square)](https://pub.dartlang.org/packages/appwrite)
44
![License](https://img.shields.io/github/license/appwrite/sdk-for-flutter.svg?style=flat-square)
5-
![Version](https://img.shields.io/badge/api%20version-1.8.x-blue.svg?style=flat-square)
5+
![Version](https://img.shields.io/badge/api%20version-1.7.x-blue.svg?style=flat-square)
66
[![Build Status](https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square)](https://travis-ci.com/appwrite/sdk-generator)
77
[![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite)
88
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)
99

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

1212
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 Flutter 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)
1313

@@ -21,7 +21,7 @@ Add this to your package's `pubspec.yaml` file:
2121

2222
```yml
2323
dependencies:
24-
appwrite: ^18.0.0
24+
appwrite: ^17.0.2
2525
```
2626
2727
You can install packages from the command line:

docs/examples/databases/create-document.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ import 'package:appwrite/appwrite.dart';
22

33
Client client = Client()
44
.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
5+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
86

97
Databases databases = Databases(client);
108

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import 'package:appwrite/appwrite.dart';
2+
3+
Client client = Client()
4+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
5+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
6+
7+
Databases databases = Databases(client);
8+
9+
Document result = await databases.decrementDocumentAttribute(
10+
databaseId: '<DATABASE_ID>',
11+
collectionId: '<COLLECTION_ID>',
12+
documentId: '<DOCUMENT_ID>',
13+
attribute: '',
14+
value: 0, // optional
15+
min: 0, // optional
16+
);
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import 'package:appwrite/appwrite.dart';
2+
3+
Client client = Client()
4+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
5+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
6+
7+
Databases databases = Databases(client);
8+
9+
Document result = await databases.incrementDocumentAttribute(
10+
databaseId: '<DATABASE_ID>',
11+
collectionId: '<COLLECTION_ID>',
12+
documentId: '<DOCUMENT_ID>',
13+
attribute: '',
14+
value: 0, // optional
15+
max: 0, // optional
16+
);

docs/examples/databases/upsert-document.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ import 'package:appwrite/appwrite.dart';
22

33
Client client = Client()
44
.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
5+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
86

97
Databases databases = Databases(client);
108

119
Document result = await databases.upsertDocument(
1210
databaseId: '<DATABASE_ID>',
1311
collectionId: '<COLLECTION_ID>',
1412
documentId: '<DOCUMENT_ID>',
13+
data: {},
14+
permissions: ["read("any")"], // optional
1515
);

docs/examples/tables/create-row.md

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

docs/examples/tables/create-rows.md

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

docs/examples/tables/delete-row.md

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

docs/examples/tables/get-row.md

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

docs/examples/tables/list-rows.md

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

0 commit comments

Comments
 (0)