Skip to content

Commit af9258e

Browse files
committed
chore: update title and desc
1 parent 0d2c4bc commit af9258e

File tree

197 files changed

+12128
-13885
lines changed

Some content is hidden

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

197 files changed

+12128
-13885
lines changed

README.md

Lines changed: 1 addition & 1 deletion
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: ^18.2.0
26+
dart_appwrite: ^19.0.0
2727
```
2828
2929
You can install packages from the command line:

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/enums.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ part 'src/enums/image_gravity.dart';
2525
part 'src/enums/image_format.dart';
2626
part 'src/enums/password_hash.dart';
2727
part 'src/enums/messaging_provider_type.dart';
28+
part 'src/enums/database_type.dart';
2829
part 'src/enums/attribute_status.dart';
30+
part 'src/enums/column_status.dart';
2931
part 'src/enums/index_status.dart';
3032
part 'src/enums/deployment_status.dart';
3133
part 'src/enums/execution_trigger.dart';

lib/query.dart

Lines changed: 20 additions & 43 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,17 +154,18 @@ class Query {
154154
Query._('orderDesc', attribute).toString();
155155

156156
/// Sort results randomly.
157-
static String orderRandom() => Query._('orderRandom').toString();
157+
static String orderRandom() =>
158+
Query._('orderRandom').toString();
158159

159160
/// Return results before [id].
160-
///
161+
///
161162
/// Refer to the [Cursor Based Pagination](https://appwrite.io/docs/pagination#cursor-pagination)
162163
/// docs for more information.
163164
static String cursorBefore(String id) =>
164165
Query._('cursorBefore', null, id).toString();
165166

166167
/// Return results after [id].
167-
///
168+
///
168169
/// Refer to the [Cursor Based Pagination](https://appwrite.io/docs/pagination#cursor-pagination)
169170
/// docs for more information.
170171
static String cursorAfter(String id) =>
@@ -174,51 +175,27 @@ class Query {
174175
static String limit(int limit) => Query._('limit', null, limit).toString();
175176

176177
/// Return results from [offset].
177-
///
178+
///
178179
/// Refer to the [Offset Pagination](https://appwrite.io/docs/pagination#offset-pagination)
179180
/// docs for more information.
180181
static String offset(int offset) =>
181182
Query._('offset', null, offset).toString();
182183

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

193188
/// Filter resources where [attribute] is not at a specific distance from the given coordinates.
194-
static String distanceNotEqual(
195-
String attribute,
196-
List<dynamic> values,
197-
num distance, [
198-
bool meters = true,
199-
]) => Query._('distanceNotEqual', attribute, [
200-
[values, distance, meters],
201-
]).toString();
189+
static String distanceNotEqual(String attribute, List<dynamic> values, num distance, [bool meters = true]) =>
190+
Query._('distanceNotEqual', attribute, [[values, distance, meters]]).toString();
202191

203192
/// Filter resources where [attribute] is at a distance greater than the specified value from the given coordinates.
204-
static String distanceGreaterThan(
205-
String attribute,
206-
List<dynamic> values,
207-
num distance, [
208-
bool meters = true,
209-
]) => Query._('distanceGreaterThan', attribute, [
210-
[values, distance, meters],
211-
]).toString();
193+
static String distanceGreaterThan(String attribute, List<dynamic> values, num distance, [bool meters = true]) =>
194+
Query._('distanceGreaterThan', attribute, [[values, distance, meters]]).toString();
212195

213196
/// Filter resources where [attribute] is at a distance less than the specified value from the given coordinates.
214-
static String distanceLessThan(
215-
String attribute,
216-
List<dynamic> values,
217-
num distance, [
218-
bool meters = true,
219-
]) => Query._('distanceLessThan', attribute, [
220-
[values, distance, meters],
221-
]).toString();
197+
static String distanceLessThan(String attribute, List<dynamic> values, num distance, [bool meters = true]) =>
198+
Query._('distanceLessThan', attribute, [[values, distance, meters]]).toString();
222199

223200
/// Filter resources where [attribute] intersects with the given geometry.
224201
static String intersects(String attribute, List<dynamic> values) =>
@@ -251,4 +228,4 @@ class Query {
251228
/// Filter resources where [attribute] does not touch the given geometry.
252229
static String notTouches(String attribute, List<dynamic> values) =>
253230
Query._('notTouches', attribute, [values]).toString();
254-
}
231+
}

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)