Skip to content

Commit 397de91

Browse files
authored
Merge pull request #49 from appwrite/dev
Fix between query output
2 parents a301abe + 0f63e3e commit 397de91

31 files changed

+628
-232
lines changed

CHANGELOG.md

+12-7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 10.1.0
2+
3+
* Add new queue health endpoints
4+
* Fix between queries
5+
16
## 10.0.0
27

38
* Parameter `url` is now optional in the `createMembership` endpoint
@@ -9,12 +14,6 @@
914
* Update internal variable names to prevent name collision
1015
* Fix: content range header inconsistency in chunked uploads [#648](https://github.com/appwrite/sdk-generator/pull/648)
1116

12-
## 8.0.1
13-
14-
* Added documentation comments
15-
* Added unit tests
16-
* Upgraded dependencies
17-
1817
## 9.0.0
1918

2019
* Support for Appwrite 1.4.0
@@ -30,6 +29,12 @@
3029
* The `updateFile` method now includes the ability to update the file name.
3130
* The `updateMembershipRoles` method has been renamed to `updateMembership`.
3231

32+
## 8.0.1
33+
34+
* Added documentation comments
35+
* Added unit tests
36+
* Upgraded dependencies
37+
3338
## 8.0.0
3439

3540
* Added relationships support
@@ -183,7 +188,7 @@
183188
- BREAKING Renamed users.deleteUser to users.delete
184189
- BREAKING Renamed parameter inviteId to membershipId on teams.updateMembershipStatus, teams.deleteMembership
185190
- JWT Support client.setJWT('JWT_GENERATED_IN_CLIENT')
186-
- [Update membership roles](https://appwrite.io/docs/client/teams?sdk=dart#teamsUpdateMembershipRoles)
191+
- [Update membership roles](https://appwrite.io/docs/references/cloud/server-dart/teams?sdk=dart#updateMembershipRoles)
187192
- New awesome image preview features, supports borderRadius, borderColor, borderWidth
188193

189194
## 0.5.0-dev.1

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Add this to your package's `pubspec.yaml` file:
2323

2424
```yml
2525
dependencies:
26-
dart_appwrite: ^10.0.0
26+
dart_appwrite: ^10.1.0
2727
```
2828
2929
You can install packages from the command line:
+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import 'package:dart_appwrite/dart_appwrite.dart';
2+
3+
void main() { // Init SDK
4+
Client client = Client();
5+
Health health = Health(client);
6+
7+
client
8+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
9+
.setProject('5df5acd0d48c2') // Your project ID
10+
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
11+
;
12+
13+
Future result = health.getQueueBuilds(
14+
);
15+
16+
result
17+
.then((response) {
18+
print(response);
19+
}).catchError((error) {
20+
print(error.response);
21+
});
22+
}

docs/examples/health/get-queue-certificates.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ void main() { // Init SDK
1010
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
1111
;
1212

13-
Future result = health.getQueueCertificates();
13+
Future result = health.getQueueCertificates(
14+
);
1415

1516
result
1617
.then((response) {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import 'package:dart_appwrite/dart_appwrite.dart';
2+
3+
void main() { // Init SDK
4+
Client client = Client();
5+
Health health = Health(client);
6+
7+
client
8+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
9+
.setProject('5df5acd0d48c2') // Your project ID
10+
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
11+
;
12+
13+
Future result = health.getQueueDatabases(
14+
);
15+
16+
result
17+
.then((response) {
18+
print(response);
19+
}).catchError((error) {
20+
print(error.response);
21+
});
22+
}
+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import 'package:dart_appwrite/dart_appwrite.dart';
2+
3+
void main() { // Init SDK
4+
Client client = Client();
5+
Health health = Health(client);
6+
7+
client
8+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
9+
.setProject('5df5acd0d48c2') // Your project ID
10+
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
11+
;
12+
13+
Future result = health.getQueueDeletes(
14+
);
15+
16+
result
17+
.then((response) {
18+
print(response);
19+
}).catchError((error) {
20+
print(error.response);
21+
});
22+
}

docs/examples/health/get-queue-functions.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ void main() { // Init SDK
1010
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
1111
;
1212

13-
Future result = health.getQueueFunctions();
13+
Future result = health.getQueueFunctions(
14+
);
1415

1516
result
1617
.then((response) {

docs/examples/health/get-queue-logs.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ void main() { // Init SDK
1010
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
1111
;
1212

13-
Future result = health.getQueueLogs();
13+
Future result = health.getQueueLogs(
14+
);
1415

1516
result
1617
.then((response) {
+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import 'package:dart_appwrite/dart_appwrite.dart';
2+
3+
void main() { // Init SDK
4+
Client client = Client();
5+
Health health = Health(client);
6+
7+
client
8+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
9+
.setProject('5df5acd0d48c2') // Your project ID
10+
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
11+
;
12+
13+
Future result = health.getQueueMails(
14+
);
15+
16+
result
17+
.then((response) {
18+
print(response);
19+
}).catchError((error) {
20+
print(error.response);
21+
});
22+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import 'package:dart_appwrite/dart_appwrite.dart';
2+
3+
void main() { // Init SDK
4+
Client client = Client();
5+
Health health = Health(client);
6+
7+
client
8+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
9+
.setProject('5df5acd0d48c2') // Your project ID
10+
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
11+
;
12+
13+
Future result = health.getQueueMessaging(
14+
);
15+
16+
result
17+
.then((response) {
18+
print(response);
19+
}).catchError((error) {
20+
print(error.response);
21+
});
22+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import 'package:dart_appwrite/dart_appwrite.dart';
2+
3+
void main() { // Init SDK
4+
Client client = Client();
5+
Health health = Health(client);
6+
7+
client
8+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
9+
.setProject('5df5acd0d48c2') // Your project ID
10+
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
11+
;
12+
13+
Future result = health.getQueueMigrations(
14+
);
15+
16+
result
17+
.then((response) {
18+
print(response);
19+
}).catchError((error) {
20+
print(error.response);
21+
});
22+
}

docs/examples/health/get-queue-webhooks.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ void main() { // Init SDK
1010
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
1111
;
1212

13-
Future result = health.getQueueWebhooks();
13+
Future result = health.getQueueWebhooks(
14+
);
1415

1516
result
1617
.then((response) {

lib/query.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class Query {
4848

4949
/// Filter resources where [attribute] is between [start] and [end] (inclusive).
5050
static String between(String attribute, dynamic start, dynamic end) =>
51-
_addQuery(attribute, 'between', [start, end]);
51+
'between("$attribute", ${_parseValues(start)}, ${_parseValues(end)})';
5252

5353
/// Filter resources where [attribute] starts with [value].
5454
static String startsWith(String attribute, String value) =>

0 commit comments

Comments
 (0)