diff --git a/package.json b/package.json index b7ac5981..f906bc07 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "react-native-appwrite", "homepage": "https://appwrite.io/support", "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", - "version": "0.13.0", + "version": "0.14.0", "license": "BSD-3-Clause", "main": "dist/cjs/sdk.js", "exports": { diff --git a/src/client.ts b/src/client.ts index 25964bdb..25bf4224 100644 --- a/src/client.ts +++ b/src/client.ts @@ -115,7 +115,7 @@ class Client { 'x-sdk-name': 'React Native', 'x-sdk-platform': 'client', 'x-sdk-language': 'reactnative', - 'x-sdk-version': '0.13.0', + 'x-sdk-version': '0.14.0', 'X-Appwrite-Response-Format': '1.8.0', }; diff --git a/src/models.ts b/src/models.ts index 268baa97..bf6bff28 100644 --- a/src/models.ts +++ b/src/models.ts @@ -1022,7 +1022,7 @@ export namespace Models { */ requestPath: string; /** - * HTTP response headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous. + * HTTP request headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous. */ requestHeaders: Headers[]; /** diff --git a/src/query.ts b/src/query.ts index 12c567e9..6e963f2d 100644 --- a/src/query.ts +++ b/src/query.ts @@ -33,10 +33,10 @@ export class Query { }); } - static equal = (attribute: string, value: QueryTypes | any[]): string => + static equal = (attribute: string, value: QueryTypes): string => new Query("equal", attribute, value).toString(); - static notEqual = (attribute: string, value: QueryTypes | any[]): string => + static notEqual = (attribute: string, value: QueryTypes): string => new Query("notEqual", attribute, value).toString(); static lessThan = (attribute: string, value: QueryTypes): string => @@ -78,6 +78,9 @@ export class Query { static orderAsc = (attribute: string): string => new Query("orderAsc", attribute).toString(); + static orderRandom = (): string => + new Query("orderRandom").toString(); + static cursorAfter = (documentId: string): string => new Query("cursorAfter", undefined, documentId).toString();