react-native-appwrite 0.12.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,7 +7,11 @@ const client = new Client()
7
7
  const account = new Account(client);
8
8
 
9
9
  const result = await account.updatePrefs({
10
- prefs: {}
10
+ prefs: {
11
+ "language": "en",
12
+ "timezone": "UTC",
13
+ "darkTheme": true
14
+ }
11
15
  });
12
16
 
13
17
  console.log(result);
@@ -10,7 +10,13 @@ const result = await databases.createDocument({
10
10
  databaseId: '<DATABASE_ID>',
11
11
  collectionId: '<COLLECTION_ID>',
12
12
  documentId: '<DOCUMENT_ID>',
13
- data: {},
13
+ data: {
14
+ "username": "walter.obrien",
15
+ "email": "walter.obrien@example.com",
16
+ "fullName": "Walter O'Brien",
17
+ "age": 30,
18
+ "isAdmin": false
19
+ },
14
20
  permissions: ["read("any")"] // optional
15
21
  });
16
22
 
@@ -11,8 +11,8 @@ const result = await databases.decrementDocumentAttribute({
11
11
  collectionId: '<COLLECTION_ID>',
12
12
  documentId: '<DOCUMENT_ID>',
13
13
  attribute: '',
14
- value: null, // optional
15
- min: null // optional
14
+ value: 0, // optional
15
+ min: 0 // optional
16
16
  });
17
17
 
18
18
  console.log(result);
@@ -11,8 +11,8 @@ const result = await databases.incrementDocumentAttribute({
11
11
  collectionId: '<COLLECTION_ID>',
12
12
  documentId: '<DOCUMENT_ID>',
13
13
  attribute: '',
14
- value: null, // optional
15
- max: null // optional
14
+ value: 0, // optional
15
+ max: 0 // optional
16
16
  });
17
17
 
18
18
  console.log(result);
@@ -9,7 +9,7 @@ const storage = new Storage(client);
9
9
  const result = await storage.createFile({
10
10
  bucketId: '<BUCKET_ID>',
11
11
  fileId: '<FILE_ID>',
12
- file: await pickSingle(),
12
+ file: InputFile.fromPath('/path/to/file', 'filename'),
13
13
  permissions: ["read("any")"] // optional
14
14
  });
15
15
 
@@ -10,7 +10,13 @@ const result = await tablesDB.createRow({
10
10
  databaseId: '<DATABASE_ID>',
11
11
  tableId: '<TABLE_ID>',
12
12
  rowId: '<ROW_ID>',
13
- data: {},
13
+ data: {
14
+ "username": "walter.obrien",
15
+ "email": "walter.obrien@example.com",
16
+ "fullName": "Walter O'Brien",
17
+ "age": 30,
18
+ "isAdmin": false
19
+ },
14
20
  permissions: ["read("any")"] // optional
15
21
  });
16
22
 
@@ -11,8 +11,8 @@ const result = await tablesDB.decrementRowColumn({
11
11
  tableId: '<TABLE_ID>',
12
12
  rowId: '<ROW_ID>',
13
13
  column: '',
14
- value: null, // optional
15
- min: null // optional
14
+ value: 0, // optional
15
+ min: 0 // optional
16
16
  });
17
17
 
18
18
  console.log(result);
@@ -11,8 +11,8 @@ const result = await tablesDB.incrementRowColumn({
11
11
  tableId: '<TABLE_ID>',
12
12
  rowId: '<ROW_ID>',
13
13
  column: '',
14
- value: null, // optional
15
- max: null // optional
14
+ value: 0, // optional
15
+ max: 0 // optional
16
16
  });
17
17
 
18
18
  console.log(result);
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "react-native-appwrite",
3
3
  "homepage": "https://appwrite.io/support",
4
4
  "description": "Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API",
5
- "version": "0.12.0",
5
+ "version": "0.14.0",
6
6
  "license": "BSD-3-Clause",
7
7
  "main": "dist/cjs/sdk.js",
8
8
  "exports": {
package/src/client.ts CHANGED
@@ -115,7 +115,7 @@ class Client {
115
115
  'x-sdk-name': 'React Native',
116
116
  'x-sdk-platform': 'client',
117
117
  'x-sdk-language': 'reactnative',
118
- 'x-sdk-version': '0.12.0',
118
+ 'x-sdk-version': '0.14.0',
119
119
  'X-Appwrite-Response-Format': '1.8.0',
120
120
  };
121
121
 
@@ -11,7 +11,7 @@ export enum CreditCard {
11
11
  Mastercard = 'mastercard',
12
12
  Naranja = 'naranja',
13
13
  TarjetaShopping = 'targeta-shopping',
14
- UnionChinaPay = 'union-china-pay',
14
+ UnionPay = 'unionpay',
15
15
  Visa = 'visa',
16
16
  MIR = 'mir',
17
17
  Maestro = 'maestro',
@@ -5,4 +5,5 @@ export enum ExecutionMethod {
5
5
  PATCH = 'PATCH',
6
6
  DELETE = 'DELETE',
7
7
  OPTIONS = 'OPTIONS',
8
+ HEAD = 'HEAD',
8
9
  }
package/src/models.ts CHANGED
@@ -1022,7 +1022,7 @@ export namespace Models {
1022
1022
  */
1023
1023
  requestPath: string;
1024
1024
  /**
1025
- * HTTP response headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous.
1025
+ * HTTP request headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous.
1026
1026
  */
1027
1027
  requestHeaders: Headers[];
1028
1028
  /**
package/src/query.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  type QueryTypesSingle = string | number | boolean;
2
- export type QueryTypesList = string[] | number[] | boolean[] | Query[];
2
+ export type QueryTypesList = string[] | number[] | boolean[] | Query[] | any[];
3
3
  export type QueryTypes = QueryTypesSingle | QueryTypesList;
4
4
  type AttributesTypes = string | string[];
5
5
 
@@ -78,6 +78,9 @@ export class Query {
78
78
  static orderAsc = (attribute: string): string =>
79
79
  new Query("orderAsc", attribute).toString();
80
80
 
81
+ static orderRandom = (): string =>
82
+ new Query("orderRandom").toString();
83
+
81
84
  static cursorAfter = (documentId: string): string =>
82
85
  new Query("cursorAfter", undefined, documentId).toString();
83
86
 
@@ -97,7 +100,7 @@ export class Query {
97
100
  * @param {string | string[]} value
98
101
  * @returns {string}
99
102
  */
100
- static contains = (attribute: string, value: string | string[]): string =>
103
+ static contains = (attribute: string, value: string | any[]): string =>
101
104
  new Query("contains", attribute, value).toString();
102
105
 
103
106
  /**
@@ -107,7 +110,7 @@ export class Query {
107
110
  * @param {string | string[]} value
108
111
  * @returns {string}
109
112
  */
110
- static notContains = (attribute: string, value: string | string[]): string =>
113
+ static notContains = (attribute: string, value: string | any[]): string =>
111
114
  new Query("notContains", attribute, value).toString();
112
115
 
113
116
  /**
@@ -170,6 +173,16 @@ export class Query {
170
173
  static createdAfter = (value: string): string =>
171
174
  new Query("createdAfter", undefined, value).toString();
172
175
 
176
+ /**
177
+ * Filter resources where document was created between dates.
178
+ *
179
+ * @param {string} start
180
+ * @param {string} end
181
+ * @returns {string}
182
+ */
183
+ static createdBetween = (start: string, end: string): string =>
184
+ new Query("createdBetween", undefined, [start, end] as QueryTypesList).toString();
185
+
173
186
  /**
174
187
  * Filter resources where document was updated before date.
175
188
  *
@@ -188,9 +201,147 @@ export class Query {
188
201
  static updatedAfter = (value: string): string =>
189
202
  new Query("updatedAfter", undefined, value).toString();
190
203
 
204
+ /**
205
+ * Filter resources where document was updated between dates.
206
+ *
207
+ * @param {string} start
208
+ * @param {string} end
209
+ * @returns {string}
210
+ */
211
+ static updatedBetween = (start: string, end: string): string =>
212
+ new Query("updatedBetween", undefined, [start, end] as QueryTypesList).toString();
213
+
191
214
  static or = (queries: string[]) =>
192
215
  new Query("or", undefined, queries.map((query) => JSON.parse(query))).toString();
193
216
 
194
217
  static and = (queries: string[]) =>
195
218
  new Query("and", undefined, queries.map((query) => JSON.parse(query))).toString();
219
+
220
+ /**
221
+ * Filter resources where attribute is at a specific distance from the given coordinates.
222
+ *
223
+ * @param {string} attribute
224
+ * @param {any[]} values
225
+ * @param {number} distance
226
+ * @param {boolean} meters
227
+ * @returns {string}
228
+ */
229
+ static distanceEqual = (attribute: string, values: any[], distance: number, meters: boolean = true): string =>
230
+ new Query("distanceEqual", attribute, [[values, distance, meters]] as QueryTypesList).toString();
231
+
232
+ /**
233
+ * Filter resources where attribute is not at a specific distance from the given coordinates.
234
+ *
235
+ * @param {string} attribute
236
+ * @param {any[]} values
237
+ * @param {number} distance
238
+ * @param {boolean} meters
239
+ * @returns {string}
240
+ */
241
+ static distanceNotEqual = (attribute: string, values: any[], distance: number, meters: boolean = true): string =>
242
+ new Query("distanceNotEqual", attribute, [[values, distance, meters]] as QueryTypesList).toString();
243
+
244
+ /**
245
+ * Filter resources where attribute is at a distance greater than the specified value from the given coordinates.
246
+ *
247
+ * @param {string} attribute
248
+ * @param {any[]} values
249
+ * @param {number} distance
250
+ * @param {boolean} meters
251
+ * @returns {string}
252
+ */
253
+ static distanceGreaterThan = (attribute: string, values: any[], distance: number, meters: boolean = true): string =>
254
+ new Query("distanceGreaterThan", attribute, [[values, distance, meters]] as QueryTypesList).toString();
255
+
256
+ /**
257
+ * Filter resources where attribute is at a distance less than the specified value from the given coordinates.
258
+ *
259
+ * @param {string} attribute
260
+ * @param {any[]} values
261
+ * @param {number} distance
262
+ * @param {boolean} meters
263
+ * @returns {string}
264
+ */
265
+ static distanceLessThan = (attribute: string, values: any[], distance: number, meters: boolean = true): string =>
266
+ new Query("distanceLessThan", attribute, [[values, distance, meters]] as QueryTypesList).toString();
267
+
268
+ /**
269
+ * Filter resources where attribute intersects with the given geometry.
270
+ *
271
+ * @param {string} attribute
272
+ * @param {any[]} values
273
+ * @returns {string}
274
+ */
275
+ static intersects = (attribute: string, values: any[]): string =>
276
+ new Query("intersects", attribute, [values]).toString();
277
+
278
+ /**
279
+ * Filter resources where attribute does not intersect with the given geometry.
280
+ *
281
+ * @param {string} attribute
282
+ * @param {any[]} values
283
+ * @returns {string}
284
+ */
285
+ static notIntersects = (attribute: string, values: any[]): string =>
286
+ new Query("notIntersects", attribute, [values]).toString();
287
+
288
+ /**
289
+ * Filter resources where attribute crosses the given geometry.
290
+ *
291
+ * @param {string} attribute
292
+ * @param {any[]} values
293
+ * @returns {string}
294
+ */
295
+ static crosses = (attribute: string, values: any[]): string =>
296
+ new Query("crosses", attribute, [values]).toString();
297
+
298
+ /**
299
+ * Filter resources where attribute does not cross the given geometry.
300
+ *
301
+ * @param {string} attribute
302
+ * @param {any[]} values
303
+ * @returns {string}
304
+ */
305
+ static notCrosses = (attribute: string, values: any[]): string =>
306
+ new Query("notCrosses", attribute, [values]).toString();
307
+
308
+ /**
309
+ * Filter resources where attribute overlaps with the given geometry.
310
+ *
311
+ * @param {string} attribute
312
+ * @param {any[]} values
313
+ * @returns {string}
314
+ */
315
+ static overlaps = (attribute: string, values: any[]): string =>
316
+ new Query("overlaps", attribute, [values]).toString();
317
+
318
+ /**
319
+ * Filter resources where attribute does not overlap with the given geometry.
320
+ *
321
+ * @param {string} attribute
322
+ * @param {any[]} values
323
+ * @returns {string}
324
+ */
325
+ static notOverlaps = (attribute: string, values: any[]): string =>
326
+ new Query("notOverlaps", attribute, [values]).toString();
327
+
328
+ /**
329
+ * Filter resources where attribute touches the given geometry.
330
+ *
331
+ * @param {string} attribute
332
+ * @param {any[]} values
333
+ * @returns {string}
334
+ */
335
+ static touches = (attribute: string, values: any[]): string =>
336
+ new Query("touches", attribute, [values]).toString();
337
+
338
+ /**
339
+ * Filter resources where attribute does not touch the given geometry.
340
+ *
341
+ * @param {string} attribute
342
+ * @param {any[]} values
343
+ * @returns {string}
344
+ */
345
+ static notTouches = (attribute: string, values: any[]): string =>
346
+ new Query("notTouches", attribute, [values]).toString();
196
347
  }
@@ -1521,7 +1521,7 @@ export class Account extends Service {
1521
1521
  * @param {string} params.secret - Valid verification token.
1522
1522
  * @throws {AppwriteException}
1523
1523
  * @returns {Promise}
1524
- * @deprecated This API has been deprecated.
1524
+ * @deprecated This API has been deprecated since 1.6.0. Please use `Account.createSession` instead.
1525
1525
  */
1526
1526
  updateMagicURLSession(params: { userId: string, secret: string }): Promise<Models.Session>;
1527
1527
  /**
@@ -1668,7 +1668,7 @@ export class Account extends Service {
1668
1668
  * @param {string} params.secret - Valid verification token.
1669
1669
  * @throws {AppwriteException}
1670
1670
  * @returns {Promise}
1671
- * @deprecated This API has been deprecated.
1671
+ * @deprecated This API has been deprecated since 1.6.0. Please use `Account.createSession` instead.
1672
1672
  */
1673
1673
  updatePhoneSession(params: { userId: string, secret: string }): Promise<Models.Session>;
1674
1674
  /**
@@ -101,7 +101,7 @@ export class Avatars extends Service {
101
101
  * When one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.
102
102
  *
103
103
  *
104
- * @param {CreditCard} params.code - Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro, rupay.
104
+ * @param {CreditCard} params.code - Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, unionpay, visa, mir, maestro, rupay.
105
105
  * @param {number} params.width - Image width. Pass an integer between 0 to 2000. Defaults to 100.
106
106
  * @param {number} params.height - Image height. Pass an integer between 0 to 2000. Defaults to 100.
107
107
  * @param {number} params.quality - Image quality. Pass an integer between 0 to 100. Defaults to keep existing image quality.
@@ -115,7 +115,7 @@ export class Avatars extends Service {
115
115
  * When one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.
116
116
  *
117
117
  *
118
- * @param {CreditCard} code - Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro, rupay.
118
+ * @param {CreditCard} code - Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, unionpay, visa, mir, maestro, rupay.
119
119
  * @param {number} width - Image width. Pass an integer between 0 to 2000. Defaults to 100.
120
120
  * @param {number} height - Image height. Pass an integer between 0 to 2000. Defaults to 100.
121
121
  * @param {number} quality - Image quality. Pass an integer between 0 to 100. Defaults to keep existing image quality.
@@ -141,9 +141,6 @@ export class Databases extends Service {
141
141
  throw new AppwriteException('Missing required parameter: "data"');
142
142
  }
143
143
 
144
- delete data?.$sequence;
145
- delete data?.$collectionId;
146
- delete data?.$databaseId;
147
144
  const apiPath = '/databases/{databaseId}/collections/{collectionId}/documents'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
148
145
  const payload: Payload = {};
149
146
 
@@ -301,9 +298,6 @@ export class Databases extends Service {
301
298
  throw new AppwriteException('Missing required parameter: "data"');
302
299
  }
303
300
 
304
- delete data?.$sequence;
305
- delete data?.$collectionId;
306
- delete data?.$databaseId;
307
301
  const apiPath = '/databases/{databaseId}/collections/{collectionId}/documents/{documentId}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{documentId}', documentId);
308
302
  const payload: Payload = {};
309
303
 
@@ -383,9 +377,6 @@ export class Databases extends Service {
383
377
  throw new AppwriteException('Missing required parameter: "documentId"');
384
378
  }
385
379
 
386
- delete data?.$sequence;
387
- delete data?.$collectionId;
388
- delete data?.$databaseId;
389
380
  const apiPath = '/databases/{databaseId}/collections/{collectionId}/documents/{documentId}'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId).replace('{documentId}', documentId);
390
381
  const payload: Payload = {};
391
382
 
@@ -74,7 +74,7 @@ export class Functions extends Service {
74
74
  * @param {string} params.body - HTTP body of execution. Default value is empty string.
75
75
  * @param {boolean} params.async - Execute code in the background. Default value is false.
76
76
  * @param {string} params.xpath - HTTP path of execution. Path can include query params. Default value is /
77
- * @param {ExecutionMethod} params.method - HTTP method of execution. Default value is GET.
77
+ * @param {ExecutionMethod} params.method - HTTP method of execution. Default value is POST.
78
78
  * @param {object} params.headers - HTTP headers of execution. Defaults to empty.
79
79
  * @param {string} params.scheduledAt - Scheduled execution time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.
80
80
  * @throws {AppwriteException}
@@ -88,7 +88,7 @@ export class Functions extends Service {
88
88
  * @param {string} body - HTTP body of execution. Default value is empty string.
89
89
  * @param {boolean} async - Execute code in the background. Default value is false.
90
90
  * @param {string} xpath - HTTP path of execution. Path can include query params. Default value is /
91
- * @param {ExecutionMethod} method - HTTP method of execution. Default value is GET.
91
+ * @param {ExecutionMethod} method - HTTP method of execution. Default value is POST.
92
92
  * @param {object} headers - HTTP headers of execution. Defaults to empty.
93
93
  * @param {string} scheduledAt - Scheduled execution time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.
94
94
  * @throws {AppwriteException}
@@ -11,7 +11,7 @@ export declare enum CreditCard {
11
11
  Mastercard = "mastercard",
12
12
  Naranja = "naranja",
13
13
  TarjetaShopping = "targeta-shopping",
14
- UnionChinaPay = "union-china-pay",
14
+ UnionPay = "unionpay",
15
15
  Visa = "visa",
16
16
  MIR = "mir",
17
17
  Maestro = "maestro",
@@ -4,5 +4,6 @@ export declare enum ExecutionMethod {
4
4
  PUT = "PUT",
5
5
  PATCH = "PATCH",
6
6
  DELETE = "DELETE",
7
- OPTIONS = "OPTIONS"
7
+ OPTIONS = "OPTIONS",
8
+ HEAD = "HEAD"
8
9
  }
package/types/models.d.ts CHANGED
@@ -980,7 +980,7 @@ export declare namespace Models {
980
980
  */
981
981
  requestPath: string;
982
982
  /**
983
- * HTTP response headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous.
983
+ * HTTP request headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous.
984
984
  */
985
985
  requestHeaders: Headers[];
986
986
  /**
package/types/query.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  type QueryTypesSingle = string | number | boolean;
2
- export type QueryTypesList = string[] | number[] | boolean[] | Query[];
2
+ export type QueryTypesList = string[] | number[] | boolean[] | Query[] | any[];
3
3
  export type QueryTypes = QueryTypesSingle | QueryTypesList;
4
4
  type AttributesTypes = string | string[];
5
5
  export declare class Query {
@@ -23,6 +23,7 @@ export declare class Query {
23
23
  static search: (attribute: string, value: string) => string;
24
24
  static orderDesc: (attribute: string) => string;
25
25
  static orderAsc: (attribute: string) => string;
26
+ static orderRandom: () => string;
26
27
  static cursorAfter: (documentId: string) => string;
27
28
  static cursorBefore: (documentId: string) => string;
28
29
  static limit: (limit: number) => string;
@@ -34,7 +35,7 @@ export declare class Query {
34
35
  * @param {string | string[]} value
35
36
  * @returns {string}
36
37
  */
37
- static contains: (attribute: string, value: string | string[]) => string;
38
+ static contains: (attribute: string, value: string | any[]) => string;
38
39
  /**
39
40
  * Filter resources where attribute does not contain the specified value.
40
41
  *
@@ -42,7 +43,7 @@ export declare class Query {
42
43
  * @param {string | string[]} value
43
44
  * @returns {string}
44
45
  */
45
- static notContains: (attribute: string, value: string | string[]) => string;
46
+ static notContains: (attribute: string, value: string | any[]) => string;
46
47
  /**
47
48
  * Filter resources by searching attribute for value (inverse of search).
48
49
  * A fulltext index on attribute is required for this query to work.
@@ -91,6 +92,14 @@ export declare class Query {
91
92
  * @returns {string}
92
93
  */
93
94
  static createdAfter: (value: string) => string;
95
+ /**
96
+ * Filter resources where document was created between dates.
97
+ *
98
+ * @param {string} start
99
+ * @param {string} end
100
+ * @returns {string}
101
+ */
102
+ static createdBetween: (start: string, end: string) => string;
94
103
  /**
95
104
  * Filter resources where document was updated before date.
96
105
  *
@@ -105,7 +114,119 @@ export declare class Query {
105
114
  * @returns {string}
106
115
  */
107
116
  static updatedAfter: (value: string) => string;
117
+ /**
118
+ * Filter resources where document was updated between dates.
119
+ *
120
+ * @param {string} start
121
+ * @param {string} end
122
+ * @returns {string}
123
+ */
124
+ static updatedBetween: (start: string, end: string) => string;
108
125
  static or: (queries: string[]) => string;
109
126
  static and: (queries: string[]) => string;
127
+ /**
128
+ * Filter resources where attribute is at a specific distance from the given coordinates.
129
+ *
130
+ * @param {string} attribute
131
+ * @param {any[]} values
132
+ * @param {number} distance
133
+ * @param {boolean} meters
134
+ * @returns {string}
135
+ */
136
+ static distanceEqual: (attribute: string, values: any[], distance: number, meters?: boolean) => string;
137
+ /**
138
+ * Filter resources where attribute is not at a specific distance from the given coordinates.
139
+ *
140
+ * @param {string} attribute
141
+ * @param {any[]} values
142
+ * @param {number} distance
143
+ * @param {boolean} meters
144
+ * @returns {string}
145
+ */
146
+ static distanceNotEqual: (attribute: string, values: any[], distance: number, meters?: boolean) => string;
147
+ /**
148
+ * Filter resources where attribute is at a distance greater than the specified value from the given coordinates.
149
+ *
150
+ * @param {string} attribute
151
+ * @param {any[]} values
152
+ * @param {number} distance
153
+ * @param {boolean} meters
154
+ * @returns {string}
155
+ */
156
+ static distanceGreaterThan: (attribute: string, values: any[], distance: number, meters?: boolean) => string;
157
+ /**
158
+ * Filter resources where attribute is at a distance less than the specified value from the given coordinates.
159
+ *
160
+ * @param {string} attribute
161
+ * @param {any[]} values
162
+ * @param {number} distance
163
+ * @param {boolean} meters
164
+ * @returns {string}
165
+ */
166
+ static distanceLessThan: (attribute: string, values: any[], distance: number, meters?: boolean) => string;
167
+ /**
168
+ * Filter resources where attribute intersects with the given geometry.
169
+ *
170
+ * @param {string} attribute
171
+ * @param {any[]} values
172
+ * @returns {string}
173
+ */
174
+ static intersects: (attribute: string, values: any[]) => string;
175
+ /**
176
+ * Filter resources where attribute does not intersect with the given geometry.
177
+ *
178
+ * @param {string} attribute
179
+ * @param {any[]} values
180
+ * @returns {string}
181
+ */
182
+ static notIntersects: (attribute: string, values: any[]) => string;
183
+ /**
184
+ * Filter resources where attribute crosses the given geometry.
185
+ *
186
+ * @param {string} attribute
187
+ * @param {any[]} values
188
+ * @returns {string}
189
+ */
190
+ static crosses: (attribute: string, values: any[]) => string;
191
+ /**
192
+ * Filter resources where attribute does not cross the given geometry.
193
+ *
194
+ * @param {string} attribute
195
+ * @param {any[]} values
196
+ * @returns {string}
197
+ */
198
+ static notCrosses: (attribute: string, values: any[]) => string;
199
+ /**
200
+ * Filter resources where attribute overlaps with the given geometry.
201
+ *
202
+ * @param {string} attribute
203
+ * @param {any[]} values
204
+ * @returns {string}
205
+ */
206
+ static overlaps: (attribute: string, values: any[]) => string;
207
+ /**
208
+ * Filter resources where attribute does not overlap with the given geometry.
209
+ *
210
+ * @param {string} attribute
211
+ * @param {any[]} values
212
+ * @returns {string}
213
+ */
214
+ static notOverlaps: (attribute: string, values: any[]) => string;
215
+ /**
216
+ * Filter resources where attribute touches the given geometry.
217
+ *
218
+ * @param {string} attribute
219
+ * @param {any[]} values
220
+ * @returns {string}
221
+ */
222
+ static touches: (attribute: string, values: any[]) => string;
223
+ /**
224
+ * Filter resources where attribute does not touch the given geometry.
225
+ *
226
+ * @param {string} attribute
227
+ * @param {any[]} values
228
+ * @returns {string}
229
+ */
230
+ static notTouches: (attribute: string, values: any[]) => string;
110
231
  }
111
232
  export {};
@@ -611,7 +611,7 @@ export declare class Account extends Service {
611
611
  * @param {string} params.secret - Valid verification token.
612
612
  * @throws {AppwriteException}
613
613
  * @returns {Promise}
614
- * @deprecated This API has been deprecated.
614
+ * @deprecated This API has been deprecated since 1.6.0. Please use `Account.createSession` instead.
615
615
  */
616
616
  updateMagicURLSession(params: {
617
617
  userId: string;
@@ -672,7 +672,7 @@ export declare class Account extends Service {
672
672
  * @param {string} params.secret - Valid verification token.
673
673
  * @throws {AppwriteException}
674
674
  * @returns {Promise}
675
- * @deprecated This API has been deprecated.
675
+ * @deprecated This API has been deprecated since 1.6.0. Please use `Account.createSession` instead.
676
676
  */
677
677
  updatePhoneSession(params: {
678
678
  userId: string;