node-appwrite 17.2.0 → 19.0.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.
Files changed (126) hide show
  1. package/README.md +67 -2
  2. package/dist/client.js +3 -3
  3. package/dist/client.js.map +1 -1
  4. package/dist/client.mjs +3 -3
  5. package/dist/client.mjs.map +1 -1
  6. package/dist/enums/credit-card.d.mts +1 -1
  7. package/dist/enums/credit-card.d.ts +1 -1
  8. package/dist/enums/credit-card.js +1 -1
  9. package/dist/enums/credit-card.js.map +1 -1
  10. package/dist/enums/credit-card.mjs +1 -1
  11. package/dist/enums/credit-card.mjs.map +1 -1
  12. package/dist/enums/execution-method.d.mts +2 -1
  13. package/dist/enums/execution-method.d.ts +2 -1
  14. package/dist/enums/execution-method.js +1 -0
  15. package/dist/enums/execution-method.js.map +1 -1
  16. package/dist/enums/execution-method.mjs +1 -0
  17. package/dist/enums/execution-method.mjs.map +1 -1
  18. package/dist/enums/index-type.d.mts +2 -1
  19. package/dist/enums/index-type.d.ts +2 -1
  20. package/dist/enums/index-type.js +1 -0
  21. package/dist/enums/index-type.js.map +1 -1
  22. package/dist/enums/index-type.mjs +1 -0
  23. package/dist/enums/index-type.mjs.map +1 -1
  24. package/dist/enums/{v-c-s-deployment-type.js → vcs-deployment-type.js} +1 -1
  25. package/dist/enums/vcs-deployment-type.js.map +1 -0
  26. package/dist/enums/{v-c-s-deployment-type.mjs → vcs-deployment-type.mjs} +2 -2
  27. package/dist/enums/vcs-deployment-type.mjs.map +1 -0
  28. package/dist/index.d.mts +2 -1
  29. package/dist/index.d.ts +2 -1
  30. package/dist/index.js +7 -2
  31. package/dist/index.js.map +1 -1
  32. package/dist/index.mjs +2 -1
  33. package/dist/index.mjs.map +1 -1
  34. package/dist/models.d.mts +1058 -153
  35. package/dist/models.d.ts +1058 -153
  36. package/dist/query.d.mts +196 -6
  37. package/dist/query.d.ts +196 -6
  38. package/dist/query.js +192 -2
  39. package/dist/query.js.map +1 -1
  40. package/dist/query.mjs +192 -2
  41. package/dist/query.mjs.map +1 -1
  42. package/dist/services/account.d.mts +625 -70
  43. package/dist/services/account.d.ts +625 -70
  44. package/dist/services/account.js +592 -292
  45. package/dist/services/account.js.map +1 -1
  46. package/dist/services/account.mjs +592 -292
  47. package/dist/services/account.mjs.map +1 -1
  48. package/dist/services/avatars.d.mts +157 -26
  49. package/dist/services/avatars.d.ts +157 -26
  50. package/dist/services/avatars.js +104 -93
  51. package/dist/services/avatars.js.map +1 -1
  52. package/dist/services/avatars.mjs +104 -93
  53. package/dist/services/avatars.mjs.map +1 -1
  54. package/dist/services/databases.d.mts +1425 -248
  55. package/dist/services/databases.d.ts +1425 -248
  56. package/dist/services/databases.js +1186 -611
  57. package/dist/services/databases.js.map +1 -1
  58. package/dist/services/databases.mjs +1186 -611
  59. package/dist/services/databases.mjs.map +1 -1
  60. package/dist/services/functions.d.mts +530 -107
  61. package/dist/services/functions.d.ts +530 -107
  62. package/dist/services/functions.js +393 -276
  63. package/dist/services/functions.js.map +1 -1
  64. package/dist/services/functions.mjs +393 -276
  65. package/dist/services/functions.mjs.map +1 -1
  66. package/dist/services/graphql.d.mts +24 -2
  67. package/dist/services/graphql.d.ts +24 -2
  68. package/dist/services/graphql.js +20 -16
  69. package/dist/services/graphql.js.map +1 -1
  70. package/dist/services/graphql.mjs +20 -16
  71. package/dist/services/graphql.mjs.map +1 -1
  72. package/dist/services/health.d.mts +175 -16
  73. package/dist/services/health.d.ts +175 -16
  74. package/dist/services/health.js +144 -115
  75. package/dist/services/health.js.map +1 -1
  76. package/dist/services/health.mjs +144 -115
  77. package/dist/services/health.mjs.map +1 -1
  78. package/dist/services/locale.js.map +1 -1
  79. package/dist/services/locale.mjs.map +1 -1
  80. package/dist/services/messaging.d.mts +1544 -262
  81. package/dist/services/messaging.d.ts +1544 -262
  82. package/dist/services/messaging.js +1417 -592
  83. package/dist/services/messaging.js.map +1 -1
  84. package/dist/services/messaging.mjs +1417 -592
  85. package/dist/services/messaging.mjs.map +1 -1
  86. package/dist/services/sites.d.mts +495 -99
  87. package/dist/services/sites.d.ts +495 -99
  88. package/dist/services/sites.js +371 -258
  89. package/dist/services/sites.js.map +1 -1
  90. package/dist/services/sites.mjs +371 -258
  91. package/dist/services/sites.mjs.map +1 -1
  92. package/dist/services/storage.d.mts +306 -63
  93. package/dist/services/storage.d.ts +306 -63
  94. package/dist/services/storage.js +225 -158
  95. package/dist/services/storage.js.map +1 -1
  96. package/dist/services/storage.mjs +225 -158
  97. package/dist/services/storage.mjs.map +1 -1
  98. package/dist/services/tables-db.d.mts +1744 -0
  99. package/dist/services/tables-db.d.ts +1744 -0
  100. package/dist/services/tables-db.js +2692 -0
  101. package/dist/services/tables-db.js.map +1 -0
  102. package/dist/services/tables-db.mjs +2691 -0
  103. package/dist/services/tables-db.mjs.map +1 -0
  104. package/dist/services/teams.d.mts +233 -39
  105. package/dist/services/teams.d.ts +233 -39
  106. package/dist/services/teams.js +170 -135
  107. package/dist/services/teams.js.map +1 -1
  108. package/dist/services/teams.mjs +170 -135
  109. package/dist/services/teams.mjs.map +1 -1
  110. package/dist/services/tokens.d.mts +76 -11
  111. package/dist/services/tokens.d.ts +76 -11
  112. package/dist/services/tokens.js +60 -45
  113. package/dist/services/tokens.js.map +1 -1
  114. package/dist/services/tokens.mjs +60 -45
  115. package/dist/services/tokens.mjs.map +1 -1
  116. package/dist/services/users.d.mts +842 -115
  117. package/dist/services/users.d.ts +842 -115
  118. package/dist/services/users.js +719 -408
  119. package/dist/services/users.js.map +1 -1
  120. package/dist/services/users.mjs +719 -408
  121. package/dist/services/users.mjs.map +1 -1
  122. package/package.json +1 -1
  123. package/dist/enums/v-c-s-deployment-type.js.map +0 -1
  124. package/dist/enums/v-c-s-deployment-type.mjs.map +0 -1
  125. /package/dist/enums/{v-c-s-deployment-type.d.mts → vcs-deployment-type.d.mts} +0 -0
  126. /package/dist/enums/{v-c-s-deployment-type.d.ts → vcs-deployment-type.d.ts} +0 -0
package/dist/query.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  type QueryTypesSingle = string | number | boolean;
2
- type QueryTypesList = string[] | number[] | boolean[] | Query[];
2
+ type QueryTypesList = string[] | number[] | boolean[] | Query[] | any[];
3
3
  type QueryTypes = QueryTypesSingle | QueryTypesList;
4
4
  type AttributesTypes = string | string[];
5
5
  /**
@@ -27,18 +27,18 @@ declare class Query {
27
27
  * Filter resources where attribute is equal to value.
28
28
  *
29
29
  * @param {string} attribute
30
- * @param {QueryTypes} value
30
+ * @param {QueryTypes | any[]} value
31
31
  * @returns {string}
32
32
  */
33
- static equal: (attribute: string, value: QueryTypes) => string;
33
+ static equal: (attribute: string, value: QueryTypes | any[]) => string;
34
34
  /**
35
35
  * Filter resources where attribute is not equal to value.
36
36
  *
37
37
  * @param {string} attribute
38
- * @param {QueryTypes} value
38
+ * @param {QueryTypes | any[]} value
39
39
  * @returns {string}
40
40
  */
41
- static notEqual: (attribute: string, value: QueryTypes) => string;
41
+ static notEqual: (attribute: string, value: QueryTypes | any[]) => string;
42
42
  /**
43
43
  * Filter resources where attribute is less than value.
44
44
  *
@@ -175,7 +175,93 @@ declare class Query {
175
175
  * @param {string | string[]} value
176
176
  * @returns {string}
177
177
  */
178
- static contains: (attribute: string, value: string | string[]) => string;
178
+ static contains: (attribute: string, value: string | any[]) => string;
179
+ /**
180
+ * Filter resources where attribute does not contain the specified value.
181
+ *
182
+ * @param {string} attribute
183
+ * @param {string | any[]} value
184
+ * @returns {string}
185
+ */
186
+ static notContains: (attribute: string, value: string | any[]) => string;
187
+ /**
188
+ * Filter resources by searching attribute for value (inverse of search).
189
+ * A fulltext index on attribute is required for this query to work.
190
+ *
191
+ * @param {string} attribute
192
+ * @param {string} value
193
+ * @returns {string}
194
+ */
195
+ static notSearch: (attribute: string, value: string) => string;
196
+ /**
197
+ * Filter resources where attribute is not between start and end (exclusive).
198
+ *
199
+ * @param {string} attribute
200
+ * @param {string | number} start
201
+ * @param {string | number} end
202
+ * @returns {string}
203
+ */
204
+ static notBetween: (attribute: string, start: string | number, end: string | number) => string;
205
+ /**
206
+ * Filter resources where attribute does not start with value.
207
+ *
208
+ * @param {string} attribute
209
+ * @param {string} value
210
+ * @returns {string}
211
+ */
212
+ static notStartsWith: (attribute: string, value: string) => string;
213
+ /**
214
+ * Filter resources where attribute does not end with value.
215
+ *
216
+ * @param {string} attribute
217
+ * @param {string} value
218
+ * @returns {string}
219
+ */
220
+ static notEndsWith: (attribute: string, value: string) => string;
221
+ /**
222
+ * Filter resources where document was created before date.
223
+ *
224
+ * @param {string} value
225
+ * @returns {string}
226
+ */
227
+ static createdBefore: (value: string) => string;
228
+ /**
229
+ * Filter resources where document was created after date.
230
+ *
231
+ * @param {string} value
232
+ * @returns {string}
233
+ */
234
+ static createdAfter: (value: string) => string;
235
+ /**
236
+ * Filter resources where document was created between dates.
237
+ *
238
+ * @param {string} start
239
+ * @param {string} end
240
+ * @returns {string}
241
+ */
242
+ static createdBetween: (start: string, end: string) => string;
243
+ /**
244
+ * Filter resources where document was updated before date.
245
+ *
246
+ * @param {string} value
247
+ * @returns {string}
248
+ */
249
+ static updatedBefore: (value: string) => string;
250
+ /**
251
+ * Filter resources where document was updated after date.
252
+ *
253
+ * @param {string} value
254
+ * @returns {string}
255
+ */
256
+ static updatedAfter: (value: string) => string;
257
+ /**
258
+ * Filter resources where document was updated between dates.
259
+ *
260
+ * @param {string} start
261
+ * @param {string} end
262
+ * @returns {string}
263
+ */
264
+ static updatedBetween: (start: string, end: string) => string;
179
265
  /**
180
266
  * Combine multiple queries using logical OR operator.
181
267
  *
@@ -190,6 +276,110 @@ declare class Query {
190
276
  * @returns {string}
191
277
  */
192
278
  static and: (queries: string[]) => string;
279
+ /**
280
+ * Filter resources where attribute is at a specific distance from the given coordinates.
281
+ *
282
+ * @param {string} attribute
283
+ * @param {any[]} values
284
+ * @param {number} distance
285
+ * @param {boolean} meters
286
+ * @returns {string}
287
+ */
288
+ static distanceEqual: (attribute: string, values: any[], distance: number, meters?: boolean) => string;
289
+ /**
290
+ * Filter resources where attribute is not at a specific distance from the given coordinates.
291
+ *
292
+ * @param {string} attribute
293
+ * @param {any[]} values
294
+ * @param {number} distance
295
+ * @param {boolean} meters
296
+ * @returns {string}
297
+ */
298
+ static distanceNotEqual: (attribute: string, values: any[], distance: number, meters?: boolean) => string;
299
+ /**
300
+ * Filter resources where attribute is at a distance greater than the specified value from the given coordinates.
301
+ *
302
+ * @param {string} attribute
303
+ * @param {any[]} values
304
+ * @param {number} distance
305
+ * @param {boolean} meters
306
+ * @returns {string}
307
+ */
308
+ static distanceGreaterThan: (attribute: string, values: any[], distance: number, meters?: boolean) => string;
309
+ /**
310
+ * Filter resources where attribute is at a distance less than the specified value from the given coordinates.
311
+ *
312
+ * @param {string} attribute
313
+ * @param {any[]} values
314
+ * @param {number} distance
315
+ * @param {boolean} meters
316
+ * @returns {string}
317
+ */
318
+ static distanceLessThan: (attribute: string, values: any[], distance: number, meters?: boolean) => string;
319
+ /**
320
+ * Filter resources where attribute intersects with the given geometry.
321
+ *
322
+ * @param {string} attribute
323
+ * @param {any[]} values
324
+ * @returns {string}
325
+ */
326
+ static intersects: (attribute: string, values: any[]) => string;
327
+ /**
328
+ * Filter resources where attribute does not intersect with the given geometry.
329
+ *
330
+ * @param {string} attribute
331
+ * @param {any[]} values
332
+ * @returns {string}
333
+ */
334
+ static notIntersects: (attribute: string, values: any[]) => string;
335
+ /**
336
+ * Filter resources where attribute crosses the given geometry.
337
+ *
338
+ * @param {string} attribute
339
+ * @param {any[]} values
340
+ * @returns {string}
341
+ */
342
+ static crosses: (attribute: string, values: any[]) => string;
343
+ /**
344
+ * Filter resources where attribute does not cross the given geometry.
345
+ *
346
+ * @param {string} attribute
347
+ * @param {any[]} values
348
+ * @returns {string}
349
+ */
350
+ static notCrosses: (attribute: string, values: any[]) => string;
351
+ /**
352
+ * Filter resources where attribute overlaps with the given geometry.
353
+ *
354
+ * @param {string} attribute
355
+ * @param {any[]} values
356
+ * @returns {string}
357
+ */
358
+ static overlaps: (attribute: string, values: any[]) => string;
359
+ /**
360
+ * Filter resources where attribute does not overlap with the given geometry.
361
+ *
362
+ * @param {string} attribute
363
+ * @param {any[]} values
364
+ * @returns {string}
365
+ */
366
+ static notOverlaps: (attribute: string, values: any[]) => string;
367
+ /**
368
+ * Filter resources where attribute touches the given geometry.
369
+ *
370
+ * @param {string} attribute
371
+ * @param {any[]} values
372
+ * @returns {string}
373
+ */
374
+ static touches: (attribute: string, values: any[]) => string;
375
+ /**
376
+ * Filter resources where attribute does not touch the given geometry.
377
+ *
378
+ * @param {string} attribute
379
+ * @param {any[]} values
380
+ * @returns {string}
381
+ */
382
+ static notTouches: (attribute: string, values: any[]) => string;
193
383
  }
194
384
 
195
385
  export { Query, QueryTypes, QueryTypesList };
package/dist/query.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  type QueryTypesSingle = string | number | boolean;
2
- type QueryTypesList = string[] | number[] | boolean[] | Query[];
2
+ type QueryTypesList = string[] | number[] | boolean[] | Query[] | any[];
3
3
  type QueryTypes = QueryTypesSingle | QueryTypesList;
4
4
  type AttributesTypes = string | string[];
5
5
  /**
@@ -27,18 +27,18 @@ declare class Query {
27
27
  * Filter resources where attribute is equal to value.
28
28
  *
29
29
  * @param {string} attribute
30
- * @param {QueryTypes} value
30
+ * @param {QueryTypes | any[]} value
31
31
  * @returns {string}
32
32
  */
33
- static equal: (attribute: string, value: QueryTypes) => string;
33
+ static equal: (attribute: string, value: QueryTypes | any[]) => string;
34
34
  /**
35
35
  * Filter resources where attribute is not equal to value.
36
36
  *
37
37
  * @param {string} attribute
38
- * @param {QueryTypes} value
38
+ * @param {QueryTypes | any[]} value
39
39
  * @returns {string}
40
40
  */
41
- static notEqual: (attribute: string, value: QueryTypes) => string;
41
+ static notEqual: (attribute: string, value: QueryTypes | any[]) => string;
42
42
  /**
43
43
  * Filter resources where attribute is less than value.
44
44
  *
@@ -175,7 +175,93 @@ declare class Query {
175
175
  * @param {string | string[]} value
176
176
  * @returns {string}
177
177
  */
178
- static contains: (attribute: string, value: string | string[]) => string;
178
+ static contains: (attribute: string, value: string | any[]) => string;
179
+ /**
180
+ * Filter resources where attribute does not contain the specified value.
181
+ *
182
+ * @param {string} attribute
183
+ * @param {string | any[]} value
184
+ * @returns {string}
185
+ */
186
+ static notContains: (attribute: string, value: string | any[]) => string;
187
+ /**
188
+ * Filter resources by searching attribute for value (inverse of search).
189
+ * A fulltext index on attribute is required for this query to work.
190
+ *
191
+ * @param {string} attribute
192
+ * @param {string} value
193
+ * @returns {string}
194
+ */
195
+ static notSearch: (attribute: string, value: string) => string;
196
+ /**
197
+ * Filter resources where attribute is not between start and end (exclusive).
198
+ *
199
+ * @param {string} attribute
200
+ * @param {string | number} start
201
+ * @param {string | number} end
202
+ * @returns {string}
203
+ */
204
+ static notBetween: (attribute: string, start: string | number, end: string | number) => string;
205
+ /**
206
+ * Filter resources where attribute does not start with value.
207
+ *
208
+ * @param {string} attribute
209
+ * @param {string} value
210
+ * @returns {string}
211
+ */
212
+ static notStartsWith: (attribute: string, value: string) => string;
213
+ /**
214
+ * Filter resources where attribute does not end with value.
215
+ *
216
+ * @param {string} attribute
217
+ * @param {string} value
218
+ * @returns {string}
219
+ */
220
+ static notEndsWith: (attribute: string, value: string) => string;
221
+ /**
222
+ * Filter resources where document was created before date.
223
+ *
224
+ * @param {string} value
225
+ * @returns {string}
226
+ */
227
+ static createdBefore: (value: string) => string;
228
+ /**
229
+ * Filter resources where document was created after date.
230
+ *
231
+ * @param {string} value
232
+ * @returns {string}
233
+ */
234
+ static createdAfter: (value: string) => string;
235
+ /**
236
+ * Filter resources where document was created between dates.
237
+ *
238
+ * @param {string} start
239
+ * @param {string} end
240
+ * @returns {string}
241
+ */
242
+ static createdBetween: (start: string, end: string) => string;
243
+ /**
244
+ * Filter resources where document was updated before date.
245
+ *
246
+ * @param {string} value
247
+ * @returns {string}
248
+ */
249
+ static updatedBefore: (value: string) => string;
250
+ /**
251
+ * Filter resources where document was updated after date.
252
+ *
253
+ * @param {string} value
254
+ * @returns {string}
255
+ */
256
+ static updatedAfter: (value: string) => string;
257
+ /**
258
+ * Filter resources where document was updated between dates.
259
+ *
260
+ * @param {string} start
261
+ * @param {string} end
262
+ * @returns {string}
263
+ */
264
+ static updatedBetween: (start: string, end: string) => string;
179
265
  /**
180
266
  * Combine multiple queries using logical OR operator.
181
267
  *
@@ -190,6 +276,110 @@ declare class Query {
190
276
  * @returns {string}
191
277
  */
192
278
  static and: (queries: string[]) => string;
279
+ /**
280
+ * Filter resources where attribute is at a specific distance from the given coordinates.
281
+ *
282
+ * @param {string} attribute
283
+ * @param {any[]} values
284
+ * @param {number} distance
285
+ * @param {boolean} meters
286
+ * @returns {string}
287
+ */
288
+ static distanceEqual: (attribute: string, values: any[], distance: number, meters?: boolean) => string;
289
+ /**
290
+ * Filter resources where attribute is not at a specific distance from the given coordinates.
291
+ *
292
+ * @param {string} attribute
293
+ * @param {any[]} values
294
+ * @param {number} distance
295
+ * @param {boolean} meters
296
+ * @returns {string}
297
+ */
298
+ static distanceNotEqual: (attribute: string, values: any[], distance: number, meters?: boolean) => string;
299
+ /**
300
+ * Filter resources where attribute is at a distance greater than the specified value from the given coordinates.
301
+ *
302
+ * @param {string} attribute
303
+ * @param {any[]} values
304
+ * @param {number} distance
305
+ * @param {boolean} meters
306
+ * @returns {string}
307
+ */
308
+ static distanceGreaterThan: (attribute: string, values: any[], distance: number, meters?: boolean) => string;
309
+ /**
310
+ * Filter resources where attribute is at a distance less than the specified value from the given coordinates.
311
+ *
312
+ * @param {string} attribute
313
+ * @param {any[]} values
314
+ * @param {number} distance
315
+ * @param {boolean} meters
316
+ * @returns {string}
317
+ */
318
+ static distanceLessThan: (attribute: string, values: any[], distance: number, meters?: boolean) => string;
319
+ /**
320
+ * Filter resources where attribute intersects with the given geometry.
321
+ *
322
+ * @param {string} attribute
323
+ * @param {any[]} values
324
+ * @returns {string}
325
+ */
326
+ static intersects: (attribute: string, values: any[]) => string;
327
+ /**
328
+ * Filter resources where attribute does not intersect with the given geometry.
329
+ *
330
+ * @param {string} attribute
331
+ * @param {any[]} values
332
+ * @returns {string}
333
+ */
334
+ static notIntersects: (attribute: string, values: any[]) => string;
335
+ /**
336
+ * Filter resources where attribute crosses the given geometry.
337
+ *
338
+ * @param {string} attribute
339
+ * @param {any[]} values
340
+ * @returns {string}
341
+ */
342
+ static crosses: (attribute: string, values: any[]) => string;
343
+ /**
344
+ * Filter resources where attribute does not cross the given geometry.
345
+ *
346
+ * @param {string} attribute
347
+ * @param {any[]} values
348
+ * @returns {string}
349
+ */
350
+ static notCrosses: (attribute: string, values: any[]) => string;
351
+ /**
352
+ * Filter resources where attribute overlaps with the given geometry.
353
+ *
354
+ * @param {string} attribute
355
+ * @param {any[]} values
356
+ * @returns {string}
357
+ */
358
+ static overlaps: (attribute: string, values: any[]) => string;
359
+ /**
360
+ * Filter resources where attribute does not overlap with the given geometry.
361
+ *
362
+ * @param {string} attribute
363
+ * @param {any[]} values
364
+ * @returns {string}
365
+ */
366
+ static notOverlaps: (attribute: string, values: any[]) => string;
367
+ /**
368
+ * Filter resources where attribute touches the given geometry.
369
+ *
370
+ * @param {string} attribute
371
+ * @param {any[]} values
372
+ * @returns {string}
373
+ */
374
+ static touches: (attribute: string, values: any[]) => string;
375
+ /**
376
+ * Filter resources where attribute does not touch the given geometry.
377
+ *
378
+ * @param {string} attribute
379
+ * @param {any[]} values
380
+ * @returns {string}
381
+ */
382
+ static notTouches: (attribute: string, values: any[]) => string;
193
383
  }
194
384
 
195
385
  export { Query, QueryTypes, QueryTypesList };
package/dist/query.js CHANGED
@@ -36,7 +36,7 @@ const _Query = class _Query {
36
36
  * Filter resources where attribute is equal to value.
37
37
  *
38
38
  * @param {string} attribute
39
- * @param {QueryTypes} value
39
+ * @param {QueryTypes | any[]} value
40
40
  * @returns {string}
41
41
  */
42
42
  _Query.equal = (attribute, value) => new _Query("equal", attribute, value).toString();
@@ -44,7 +44,7 @@ _Query.equal = (attribute, value) => new _Query("equal", attribute, value).toStr
44
44
  * Filter resources where attribute is not equal to value.
45
45
  *
46
46
  * @param {string} attribute
47
- * @param {QueryTypes} value
47
+ * @param {QueryTypes | any[]} value
48
48
  * @returns {string}
49
49
  */
50
50
  _Query.notEqual = (attribute, value) => new _Query("notEqual", attribute, value).toString();
@@ -185,6 +185,92 @@ _Query.offset = (offset) => new _Query("offset", void 0, offset).toString();
185
185
  * @returns {string}
186
186
  */
187
187
  _Query.contains = (attribute, value) => new _Query("contains", attribute, value).toString();
188
+ /**
189
+ * Filter resources where attribute does not contain the specified value.
190
+ *
191
+ * @param {string} attribute
192
+ * @param {string | any[]} value
193
+ * @returns {string}
194
+ */
195
+ _Query.notContains = (attribute, value) => new _Query("notContains", attribute, value).toString();
196
+ /**
197
+ * Filter resources by searching attribute for value (inverse of search).
198
+ * A fulltext index on attribute is required for this query to work.
199
+ *
200
+ * @param {string} attribute
201
+ * @param {string} value
202
+ * @returns {string}
203
+ */
204
+ _Query.notSearch = (attribute, value) => new _Query("notSearch", attribute, value).toString();
205
+ /**
206
+ * Filter resources where attribute is not between start and end (exclusive).
207
+ *
208
+ * @param {string} attribute
209
+ * @param {string | number} start
210
+ * @param {string | number} end
211
+ * @returns {string}
212
+ */
213
+ _Query.notBetween = (attribute, start, end) => new _Query("notBetween", attribute, [start, end]).toString();
214
+ /**
215
+ * Filter resources where attribute does not start with value.
216
+ *
217
+ * @param {string} attribute
218
+ * @param {string} value
219
+ * @returns {string}
220
+ */
221
+ _Query.notStartsWith = (attribute, value) => new _Query("notStartsWith", attribute, value).toString();
222
+ /**
223
+ * Filter resources where attribute does not end with value.
224
+ *
225
+ * @param {string} attribute
226
+ * @param {string} value
227
+ * @returns {string}
228
+ */
229
+ _Query.notEndsWith = (attribute, value) => new _Query("notEndsWith", attribute, value).toString();
230
+ /**
231
+ * Filter resources where document was created before date.
232
+ *
233
+ * @param {string} value
234
+ * @returns {string}
235
+ */
236
+ _Query.createdBefore = (value) => new _Query("createdBefore", void 0, value).toString();
237
+ /**
238
+ * Filter resources where document was created after date.
239
+ *
240
+ * @param {string} value
241
+ * @returns {string}
242
+ */
243
+ _Query.createdAfter = (value) => new _Query("createdAfter", void 0, value).toString();
244
+ /**
245
+ * Filter resources where document was created between dates.
246
+ *
247
+ * @param {string} start
248
+ * @param {string} end
249
+ * @returns {string}
250
+ */
251
+ _Query.createdBetween = (start, end) => new _Query("createdBetween", void 0, [start, end]).toString();
252
+ /**
253
+ * Filter resources where document was updated before date.
254
+ *
255
+ * @param {string} value
256
+ * @returns {string}
257
+ */
258
+ _Query.updatedBefore = (value) => new _Query("updatedBefore", void 0, value).toString();
259
+ /**
260
+ * Filter resources where document was updated after date.
261
+ *
262
+ * @param {string} value
263
+ * @returns {string}
264
+ */
265
+ _Query.updatedAfter = (value) => new _Query("updatedAfter", void 0, value).toString();
266
+ /**
267
+ * Filter resources where document was updated between dates.
268
+ *
269
+ * @param {string} start
270
+ * @param {string} end
271
+ * @returns {string}
272
+ */
273
+ _Query.updatedBetween = (start, end) => new _Query("updatedBetween", void 0, [start, end]).toString();
188
274
  /**
189
275
  * Combine multiple queries using logical OR operator.
190
276
  *
@@ -199,6 +285,110 @@ _Query.or = (queries) => new _Query("or", void 0, queries.map((query) => JSON.pa
199
285
  * @returns {string}
200
286
  */
201
287
  _Query.and = (queries) => new _Query("and", void 0, queries.map((query) => JSON.parse(query))).toString();
288
+ /**
289
+ * Filter resources where attribute is at a specific distance from the given coordinates.
290
+ *
291
+ * @param {string} attribute
292
+ * @param {any[]} values
293
+ * @param {number} distance
294
+ * @param {boolean} meters
295
+ * @returns {string}
296
+ */
297
+ _Query.distanceEqual = (attribute, values, distance, meters = true) => new _Query("distanceEqual", attribute, [[values, distance, meters]]).toString();
298
+ /**
299
+ * Filter resources where attribute is not at a specific distance from the given coordinates.
300
+ *
301
+ * @param {string} attribute
302
+ * @param {any[]} values
303
+ * @param {number} distance
304
+ * @param {boolean} meters
305
+ * @returns {string}
306
+ */
307
+ _Query.distanceNotEqual = (attribute, values, distance, meters = true) => new _Query("distanceNotEqual", attribute, [[values, distance, meters]]).toString();
308
+ /**
309
+ * Filter resources where attribute is at a distance greater than the specified value from the given coordinates.
310
+ *
311
+ * @param {string} attribute
312
+ * @param {any[]} values
313
+ * @param {number} distance
314
+ * @param {boolean} meters
315
+ * @returns {string}
316
+ */
317
+ _Query.distanceGreaterThan = (attribute, values, distance, meters = true) => new _Query("distanceGreaterThan", attribute, [[values, distance, meters]]).toString();
318
+ /**
319
+ * Filter resources where attribute is at a distance less than the specified value from the given coordinates.
320
+ *
321
+ * @param {string} attribute
322
+ * @param {any[]} values
323
+ * @param {number} distance
324
+ * @param {boolean} meters
325
+ * @returns {string}
326
+ */
327
+ _Query.distanceLessThan = (attribute, values, distance, meters = true) => new _Query("distanceLessThan", attribute, [[values, distance, meters]]).toString();
328
+ /**
329
+ * Filter resources where attribute intersects with the given geometry.
330
+ *
331
+ * @param {string} attribute
332
+ * @param {any[]} values
333
+ * @returns {string}
334
+ */
335
+ _Query.intersects = (attribute, values) => new _Query("intersects", attribute, [values]).toString();
336
+ /**
337
+ * Filter resources where attribute does not intersect with the given geometry.
338
+ *
339
+ * @param {string} attribute
340
+ * @param {any[]} values
341
+ * @returns {string}
342
+ */
343
+ _Query.notIntersects = (attribute, values) => new _Query("notIntersects", attribute, [values]).toString();
344
+ /**
345
+ * Filter resources where attribute crosses the given geometry.
346
+ *
347
+ * @param {string} attribute
348
+ * @param {any[]} values
349
+ * @returns {string}
350
+ */
351
+ _Query.crosses = (attribute, values) => new _Query("crosses", attribute, [values]).toString();
352
+ /**
353
+ * Filter resources where attribute does not cross the given geometry.
354
+ *
355
+ * @param {string} attribute
356
+ * @param {any[]} values
357
+ * @returns {string}
358
+ */
359
+ _Query.notCrosses = (attribute, values) => new _Query("notCrosses", attribute, [values]).toString();
360
+ /**
361
+ * Filter resources where attribute overlaps with the given geometry.
362
+ *
363
+ * @param {string} attribute
364
+ * @param {any[]} values
365
+ * @returns {string}
366
+ */
367
+ _Query.overlaps = (attribute, values) => new _Query("overlaps", attribute, [values]).toString();
368
+ /**
369
+ * Filter resources where attribute does not overlap with the given geometry.
370
+ *
371
+ * @param {string} attribute
372
+ * @param {any[]} values
373
+ * @returns {string}
374
+ */
375
+ _Query.notOverlaps = (attribute, values) => new _Query("notOverlaps", attribute, [values]).toString();
376
+ /**
377
+ * Filter resources where attribute touches the given geometry.
378
+ *
379
+ * @param {string} attribute
380
+ * @param {any[]} values
381
+ * @returns {string}
382
+ */
383
+ _Query.touches = (attribute, values) => new _Query("touches", attribute, [values]).toString();
384
+ /**
385
+ * Filter resources where attribute does not touch the given geometry.
386
+ *
387
+ * @param {string} attribute
388
+ * @param {any[]} values
389
+ * @returns {string}
390
+ */
391
+ _Query.notTouches = (attribute, values) => new _Query("notTouches", attribute, [values]).toString();
202
392
  let Query = _Query;
203
393
 
204
394
  exports.Query = Query;