Skip to content

Commit 341196a

Browse files
committed
Commit from GitHub Actions (Format and push)
1 parent 986fc6a commit 341196a

File tree

319 files changed

+20979
-21203
lines changed

Some content is hidden

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

319 files changed

+20979
-21203
lines changed

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

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class Operator {
3131

3232
result['method'] = method;
3333

34-
if(values != null) {
34+
if (values != null) {
3535
result['values'] = values is List ? values : [values];
3636
}
3737

@@ -147,8 +147,7 @@ class Operator {
147147
Operator._('arrayRemove', [value]).toString();
148148

149149
/// Remove duplicate values from an array attribute.
150-
static String arrayUnique() =>
151-
Operator._('arrayUnique', []).toString();
150+
static String arrayUnique() => Operator._('arrayUnique', []).toString();
152151

153152
/// Keep only values that exist in both the current array and the provided array.
154153
static String arrayIntersect(List<dynamic> values) =>
@@ -173,8 +172,7 @@ class Operator {
173172
Operator._('stringReplace', [search, replace]).toString();
174173

175174
/// Toggle a boolean attribute.
176-
static String toggle() =>
177-
Operator._('toggle', []).toString();
175+
static String toggle() => Operator._('toggle', []).toString();
178176

179177
/// Add days to a date attribute.
180178
static String dateAddDays(int days) =>
@@ -185,6 +183,5 @@ class Operator {
185183
Operator._('dateSubDays', [days]).toString();
186184

187185
/// Set a date attribute to the current date and time.
188-
static String dateSetNow() =>
189-
Operator._('dateSetNow', []).toString();
186+
static String dateSetNow() => Operator._('dateSetNow', []).toString();
190187
}

lib/query.dart

Lines changed: 47 additions & 36 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.
@@ -106,40 +106,36 @@ class Query {
106106
Query._('notEndsWith', attribute, value).toString();
107107

108108
/// Filter resources where document was created before [value].
109-
static String createdBefore(String value) =>
110-
lessThan('\$createdAt', value);
109+
static String createdBefore(String value) => lessThan('\$createdAt', value);
111110

112111
/// Filter resources where document was created after [value].
113-
static String createdAfter(String value) =>
114-
greaterThan('\$createdAt', value);
112+
static String createdAfter(String value) => greaterThan('\$createdAt', value);
115113

116114
/// Filter resources where document was created between [start] and [end] (inclusive).
117115
static String createdBetween(String start, String end) =>
118116
between('\$createdAt', start, end);
119117

120118
/// Filter resources where document was updated before [value].
121-
static String updatedBefore(String value) =>
122-
lessThan('\$updatedAt', value);
119+
static String updatedBefore(String value) => lessThan('\$updatedAt', value);
123120

124121
/// Filter resources where document was updated after [value].
125-
static String updatedAfter(String value) =>
126-
greaterThan('\$updatedAt', value);
122+
static String updatedAfter(String value) => greaterThan('\$updatedAt', value);
127123

128124
/// Filter resources where document was updated between [start] and [end] (inclusive).
129125
static String updatedBetween(String start, String end) =>
130126
between('\$updatedAt', start, end);
131127

132128
static String or(List<String> queries) => Query._(
133-
'or',
134-
null,
135-
queries.map((query) => jsonDecode(query)).toList(),
136-
).toString();
129+
'or',
130+
null,
131+
queries.map((query) => jsonDecode(query)).toList(),
132+
).toString();
137133

138134
static String and(List<String> queries) => Query._(
139-
'and',
140-
null,
141-
queries.map((query) => jsonDecode(query)).toList(),
142-
).toString();
135+
'and',
136+
null,
137+
queries.map((query) => jsonDecode(query)).toList(),
138+
).toString();
143139

144140
/// Specify which attributes should be returned by the API call.
145141
static String select(List<String> attributes) =>
@@ -154,18 +150,17 @@ class Query {
154150
Query._('orderDesc', attribute).toString();
155151

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

160155
/// Return results before [id].
161-
///
156+
///
162157
/// Refer to the [Cursor Based Pagination](https://appwrite.io/docs/pagination#cursor-pagination)
163158
/// docs for more information.
164159
static String cursorBefore(String id) =>
165160
Query._('cursorBefore', null, id).toString();
166161

167162
/// Return results after [id].
168-
///
163+
///
169164
/// Refer to the [Cursor Based Pagination](https://appwrite.io/docs/pagination#cursor-pagination)
170165
/// docs for more information.
171166
static String cursorAfter(String id) =>
@@ -175,27 +170,43 @@ class Query {
175170
static String limit(int limit) => Query._('limit', null, limit).toString();
176171

177172
/// Return results from [offset].
178-
///
173+
///
179174
/// Refer to the [Offset Pagination](https://appwrite.io/docs/pagination#offset-pagination)
180175
/// docs for more information.
181176
static String offset(int offset) =>
182177
Query._('offset', null, offset).toString();
183178

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

188187
/// Filter resources where [attribute] is not at a specific distance from the given coordinates.
189-
static String distanceNotEqual(String attribute, List<dynamic> values, num distance, [bool meters = true]) =>
190-
Query._('distanceNotEqual', attribute, [[values, distance, meters]]).toString();
188+
static String distanceNotEqual(
189+
String attribute, List<dynamic> values, num distance,
190+
[bool meters = true]) =>
191+
Query._('distanceNotEqual', attribute, [
192+
[values, distance, meters]
193+
]).toString();
191194

192195
/// Filter resources where [attribute] is at a distance greater than the specified value from the given coordinates.
193-
static String distanceGreaterThan(String attribute, List<dynamic> values, num distance, [bool meters = true]) =>
194-
Query._('distanceGreaterThan', attribute, [[values, distance, meters]]).toString();
196+
static String distanceGreaterThan(
197+
String attribute, List<dynamic> values, num distance,
198+
[bool meters = true]) =>
199+
Query._('distanceGreaterThan', attribute, [
200+
[values, distance, meters]
201+
]).toString();
195202

196203
/// Filter resources where [attribute] is at a distance less than the specified value from the given coordinates.
197-
static String distanceLessThan(String attribute, List<dynamic> values, num distance, [bool meters = true]) =>
198-
Query._('distanceLessThan', attribute, [[values, distance, meters]]).toString();
204+
static String distanceLessThan(
205+
String attribute, List<dynamic> values, num distance,
206+
[bool meters = true]) =>
207+
Query._('distanceLessThan', attribute, [
208+
[values, distance, meters]
209+
]).toString();
199210

200211
/// Filter resources where [attribute] intersects with the given geometry.
201212
static String intersects(String attribute, List<dynamic> values) =>
@@ -228,4 +239,4 @@ class Query {
228239
/// Filter resources where [attribute] does not touch the given geometry.
229240
static String notTouches(String attribute, List<dynamic> values) =>
230241
Query._('notTouches', attribute, [values]).toString();
231-
}
242+
}

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)