Skip to content

Commit fa0bad0

Browse files
committed
chore: regenerate sdk
1 parent 271931a commit fa0bad0

File tree

240 files changed

+16841
-13139
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

240 files changed

+16841
-13139
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/dart_appwrite.svg?style=flat-square)](https://pub.dartlang.org/packages/dart_appwrite)
44
![License](https://img.shields.io/github/license/appwrite/sdk-for-dart.svg?style=flat-square)
5-
![Version](https://img.shields.io/badge/api%20version-1.7.x-blue.svg?style=flat-square)
5+
![Version](https://img.shields.io/badge/api%20version-1.8.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.7.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-dart/releases).**
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-dart/releases).**
1111

1212
> This is the Dart SDK for integrating with Appwrite from your Dart server-side code. If you're looking for the Flutter SDK you should check [appwrite/sdk-for-flutter](https://github.com/appwrite/sdk-for-flutter)
1313
@@ -23,7 +23,7 @@ Add this to your package's `pubspec.yaml` file:
2323

2424
```yml
2525
dependencies:
26-
dart_appwrite: ^16.1.0
26+
dart_appwrite: ^17.0.0
2727
```
2828
2929
You can install packages from the command line:

docs/examples/databases/create-documents.md

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

33
Client client = Client()
44
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
5+
.setAdmin('') //
56
.setKey('<YOUR_API_KEY>'); // Your secret API key
67

78
Databases databases = Databases(client);
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import 'package:dart_appwrite/dart_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+
.setKey('<YOUR_API_KEY>'); // Your secret API key
7+
8+
Databases databases = Databases(client);
9+
10+
Document result = await databases.decrementDocumentAttribute(
11+
databaseId: '<DATABASE_ID>',
12+
collectionId: '<COLLECTION_ID>',
13+
documentId: '<DOCUMENT_ID>',
14+
attribute: '',
15+
value: 0, // (optional)
16+
min: 0, // (optional)
17+
);
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import 'package:dart_appwrite/dart_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+
.setKey('<YOUR_API_KEY>'); // Your secret API key
7+
8+
Databases databases = Databases(client);
9+
10+
Document result = await databases.incrementDocumentAttribute(
11+
databaseId: '<DATABASE_ID>',
12+
collectionId: '<COLLECTION_ID>',
13+
documentId: '<DOCUMENT_ID>',
14+
attribute: '',
15+
value: 0, // (optional)
16+
max: 0, // (optional)
17+
);

docs/examples/databases/upsert-document.md

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

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

89
Databases databases = Databases(client);
910

1011
Document result = await databases.upsertDocument(
1112
databaseId: '<DATABASE_ID>',
1213
collectionId: '<COLLECTION_ID>',
1314
documentId: '<DOCUMENT_ID>',
14-
data: {},
15-
permissions: ["read("any")"], // (optional)
1615
);

docs/examples/databases/upsert-documents.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@ import 'package:dart_appwrite/dart_appwrite.dart';
22

33
Client client = Client()
44
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('<YOUR_PROJECT_ID>') // Your project ID
5+
.setAdmin('') //
66
.setKey('<YOUR_API_KEY>'); // Your secret API key
77

88
Databases databases = Databases(client);
99

1010
DocumentList result = await databases.upsertDocuments(
1111
databaseId: '<DATABASE_ID>',
1212
collectionId: '<COLLECTION_ID>',
13-
documents: [],
1413
);
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import 'package:dart_appwrite/dart_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+
.setKey('<YOUR_API_KEY>'); // Your secret API key
7+
8+
Tables tables = Tables(client);
9+
10+
ColumnBoolean result = await tables.createBooleanColumn(
11+
databaseId: '<DATABASE_ID>',
12+
tableId: '<TABLE_ID>',
13+
key: '',
14+
xrequired: false,
15+
xdefault: false, // (optional)
16+
array: false, // (optional)
17+
);
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import 'package:dart_appwrite/dart_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+
.setKey('<YOUR_API_KEY>'); // Your secret API key
7+
8+
Tables tables = Tables(client);
9+
10+
ColumnDatetime result = await tables.createDatetimeColumn(
11+
databaseId: '<DATABASE_ID>',
12+
tableId: '<TABLE_ID>',
13+
key: '',
14+
xrequired: false,
15+
xdefault: '', // (optional)
16+
array: false, // (optional)
17+
);
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import 'package:dart_appwrite/dart_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+
.setKey('<YOUR_API_KEY>'); // Your secret API key
7+
8+
Tables tables = Tables(client);
9+
10+
ColumnEmail result = await tables.createEmailColumn(
11+
databaseId: '<DATABASE_ID>',
12+
tableId: '<TABLE_ID>',
13+
key: '',
14+
xrequired: false,
15+
xdefault: 'email@example.com', // (optional)
16+
array: false, // (optional)
17+
);
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import 'package:dart_appwrite/dart_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+
.setKey('<YOUR_API_KEY>'); // Your secret API key
7+
8+
Tables tables = Tables(client);
9+
10+
ColumnEnum result = await tables.createEnumColumn(
11+
databaseId: '<DATABASE_ID>',
12+
tableId: '<TABLE_ID>',
13+
key: '',
14+
elements: [],
15+
xrequired: false,
16+
xdefault: '<DEFAULT>', // (optional)
17+
array: false, // (optional)
18+
);

0 commit comments

Comments
 (0)