Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import { Client, Account } from "appwrite";
To install with a CDN (content delivery network) add the following scripts to the bottom of your <body> tag, but before you use any Appwrite services:

```html
<script src="https://cdn.jsdelivr.net/npm/appwrite@20.0.0"></script>
<script src="https://cdn.jsdelivr.net/npm/appwrite@20.1.0"></script>
```


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "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": "20.0.0",
"version": "20.1.0",
"license": "BSD-3-Clause",
"main": "dist/cjs/sdk.js",
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ class Client {
'x-sdk-name': 'Web',
'x-sdk-platform': 'client',
'x-sdk-language': 'web',
'x-sdk-version': '20.0.0',
'x-sdk-version': '20.1.0',
'X-Appwrite-Response-Format': '1.8.0',
};

Expand Down
2 changes: 1 addition & 1 deletion src/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1025,7 +1025,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[];
/**
Expand Down
16 changes: 12 additions & 4 deletions src/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,20 +52,20 @@ export class Query {
* Filter resources where attribute is equal to value.
*
* @param {string} attribute
* @param {QueryTypes | any[]} value
* @param {QueryTypes} value
* @returns {string}
*/
static equal = (attribute: string, value: QueryTypes | any[]): string =>
static equal = (attribute: string, value: QueryTypes): string =>
new Query("equal", attribute, value).toString();

/**
* Filter resources where attribute is not equal to value.
*
* @param {string} attribute
* @param {QueryTypes | any[]} value
* @param {QueryTypes} value
* @returns {string}
*/
static notEqual = (attribute: string, value: QueryTypes | any[]): string =>
static notEqual = (attribute: string, value: QueryTypes): string =>
new Query("notEqual", attribute, value).toString();

/**
Expand Down Expand Up @@ -195,6 +195,14 @@ export class Query {
static orderAsc = (attribute: string): string =>
new Query("orderAsc", attribute).toString();

/**
* Sort results randomly.
*
* @returns {string}
*/
static orderRandom = (): string =>
new Query("orderRandom").toString();

/**
* Return results after documentId.
*
Expand Down