Skip to content

Commit ec29ddb

Browse files
committed
Add changelog
1 parent 8e6ff0c commit ec29ddb

File tree

171 files changed

+11975
-13748
lines changed

Some content is hidden

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

171 files changed

+11975
-13748
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Change Log
22

3+
## 18.0.0
4+
5+
* Rename `CreditCard` enum value `unionChinaPay` to `unionPay`
6+
* Add time between query support
7+
* Add spatial attribute support
8+
* Add spatial index support
9+
* Add spatial query support
10+
311
## 17.0.0
412

513
* Support for Appwrite 1.8

lib/client_browser.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export 'src/client_browser.dart';
1+
export 'src/client_browser.dart';

lib/client_io.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export 'src/client_io.dart';
1+
export 'src/client_io.dart';

lib/query.dart

Lines changed: 18 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ class Query {
1010

1111
Map<String, dynamic> toJson() {
1212
final result = <String, dynamic>{};
13-
13+
1414
result['method'] = method;
15-
16-
if (attribute != null) {
15+
16+
if(attribute != null) {
1717
result['attribute'] = attribute;
1818
}
19-
20-
if (values != null) {
19+
20+
if(values != null) {
2121
result['values'] = values is List ? values : [values];
2222
}
2323

@@ -28,7 +28,7 @@ class Query {
2828
String toString() => jsonEncode(toJson());
2929

3030
/// Filter resources where [attribute] is equal to [value].
31-
///
31+
///
3232
/// [value] can be a single value or a list. If a list is used
3333
/// the query will return resources where [attribute] is equal
3434
/// to any of the values in the list.
@@ -154,14 +154,14 @@ class Query {
154154
Query._('orderDesc', attribute).toString();
155155

156156
/// Return results before [id].
157-
///
157+
///
158158
/// Refer to the [Cursor Based Pagination](https://appwrite.io/docs/pagination#cursor-pagination)
159159
/// docs for more information.
160160
static String cursorBefore(String id) =>
161161
Query._('cursorBefore', null, id).toString();
162162

163163
/// Return results after [id].
164-
///
164+
///
165165
/// Refer to the [Cursor Based Pagination](https://appwrite.io/docs/pagination#cursor-pagination)
166166
/// docs for more information.
167167
static String cursorAfter(String id) =>
@@ -171,51 +171,27 @@ class Query {
171171
static String limit(int limit) => Query._('limit', null, limit).toString();
172172

173173
/// Return results from [offset].
174-
///
174+
///
175175
/// Refer to the [Offset Pagination](https://appwrite.io/docs/pagination#offset-pagination)
176176
/// docs for more information.
177177
static String offset(int offset) =>
178178
Query._('offset', null, offset).toString();
179179

180180
/// Filter resources where [attribute] is at a specific distance from the given coordinates.
181-
static String distanceEqual(
182-
String attribute,
183-
List<dynamic> values,
184-
num distance, [
185-
bool meters = true,
186-
]) => Query._('distanceEqual', attribute, [
187-
[values, distance, meters],
188-
]).toString();
181+
static String distanceEqual(String attribute, List<dynamic> values, num distance, [bool meters = true]) =>
182+
Query._('distanceEqual', attribute, [[values, distance, meters]]).toString();
189183

190184
/// Filter resources where [attribute] is not at a specific distance from the given coordinates.
191-
static String distanceNotEqual(
192-
String attribute,
193-
List<dynamic> values,
194-
num distance, [
195-
bool meters = true,
196-
]) => Query._('distanceNotEqual', attribute, [
197-
[values, distance, meters],
198-
]).toString();
185+
static String distanceNotEqual(String attribute, List<dynamic> values, num distance, [bool meters = true]) =>
186+
Query._('distanceNotEqual', attribute, [[values, distance, meters]]).toString();
199187

200188
/// Filter resources where [attribute] is at a distance greater than the specified value from the given coordinates.
201-
static String distanceGreaterThan(
202-
String attribute,
203-
List<dynamic> values,
204-
num distance, [
205-
bool meters = true,
206-
]) => Query._('distanceGreaterThan', attribute, [
207-
[values, distance, meters],
208-
]).toString();
189+
static String distanceGreaterThan(String attribute, List<dynamic> values, num distance, [bool meters = true]) =>
190+
Query._('distanceGreaterThan', attribute, [[values, distance, meters]]).toString();
209191

210192
/// Filter resources where [attribute] is at a distance less than the specified value from the given coordinates.
211-
static String distanceLessThan(
212-
String attribute,
213-
List<dynamic> values,
214-
num distance, [
215-
bool meters = true,
216-
]) => Query._('distanceLessThan', attribute, [
217-
[values, distance, meters],
218-
]).toString();
193+
static String distanceLessThan(String attribute, List<dynamic> values, num distance, [bool meters = true]) =>
194+
Query._('distanceLessThan', attribute, [[values, distance, meters]]).toString();
219195

220196
/// Filter resources where [attribute] intersects with the given geometry.
221197
static String intersects(String attribute, List<dynamic> values) =>
@@ -248,4 +224,4 @@ class Query {
248224
/// Filter resources where [attribute] does not touch the given geometry.
249225
static String notTouches(String attribute, List<dynamic> values) =>
250226
Query._('notTouches', attribute, [values]).toString();
251-
}
227+
}

lib/role.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,4 @@ class Role {
6363
static String label(String name) {
6464
return 'label:$name';
6565
}
66-
}
66+
}

0 commit comments

Comments
 (0)