react-native-appwrite 0.23.1 → 0.24.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.
- package/CHANGELOG.md +4 -0
- package/dist/cjs/sdk.js +23 -1
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +23 -1
- package/dist/esm/sdk.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +1 -1
- package/src/query.ts +26 -0
- package/types/query.d.ts +22 -0
package/CHANGELOG.md
CHANGED
package/dist/cjs/sdk.js
CHANGED
|
@@ -134,7 +134,7 @@ class Client {
|
|
|
134
134
|
'x-sdk-name': 'React Native',
|
|
135
135
|
'x-sdk-platform': 'client',
|
|
136
136
|
'x-sdk-language': 'reactnative',
|
|
137
|
-
'x-sdk-version': '0.
|
|
137
|
+
'x-sdk-version': '0.24.0',
|
|
138
138
|
'X-Appwrite-Response-Format': '1.8.0',
|
|
139
139
|
};
|
|
140
140
|
this.realtime = {
|
|
@@ -5019,12 +5019,34 @@ Query.limit = (limit) => new Query("limit", undefined, limit).toString();
|
|
|
5019
5019
|
Query.offset = (offset) => new Query("offset", undefined, offset).toString();
|
|
5020
5020
|
/**
|
|
5021
5021
|
* Filter resources where attribute contains the specified value.
|
|
5022
|
+
* For string attributes, checks if the string contains the substring.
|
|
5022
5023
|
*
|
|
5024
|
+
* Note: For array attributes, use {@link containsAny} or {@link containsAll} instead.
|
|
5023
5025
|
* @param {string} attribute
|
|
5024
5026
|
* @param {string | string[]} value
|
|
5025
5027
|
* @returns {string}
|
|
5026
5028
|
*/
|
|
5027
5029
|
Query.contains = (attribute, value) => new Query("contains", attribute, value).toString();
|
|
5030
|
+
/**
|
|
5031
|
+
* Filter resources where attribute contains ANY of the specified values.
|
|
5032
|
+
* For array and relationship attributes, matches documents where the attribute
|
|
5033
|
+
* contains at least one of the given values.
|
|
5034
|
+
*
|
|
5035
|
+
* @param {string} attribute
|
|
5036
|
+
* @param {any[]} value
|
|
5037
|
+
* @returns {string}
|
|
5038
|
+
*/
|
|
5039
|
+
Query.containsAny = (attribute, value) => new Query("containsAny", attribute, value).toString();
|
|
5040
|
+
/**
|
|
5041
|
+
* Filter resources where attribute contains ALL of the specified values.
|
|
5042
|
+
* For array and relationship attributes, matches documents where the attribute
|
|
5043
|
+
* contains every one of the given values.
|
|
5044
|
+
*
|
|
5045
|
+
* @param {string} attribute
|
|
5046
|
+
* @param {any[]} value
|
|
5047
|
+
* @returns {string}
|
|
5048
|
+
*/
|
|
5049
|
+
Query.containsAll = (attribute, value) => new Query("containsAll", attribute, value).toString();
|
|
5028
5050
|
/**
|
|
5029
5051
|
* Filter resources where attribute does not contain the specified value.
|
|
5030
5052
|
*
|