Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Update scopes
  • Loading branch information
abnegate committed Sep 25, 2025
commit b0cbd0ff7d0799ec7b97e18354c4e990a555f183
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": "node-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": "19.1.0-rc.1",
"version": "19.2.0-rc.1",
"license": "BSD-3-Clause",
"main": "dist/index.js",
"type": "commonjs",
Expand Down
4 changes: 2 additions & 2 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class AppwriteException extends Error {
}

function getUserAgent() {
let ua = 'AppwriteNodeJSSDK/19.1.0-rc.1';
let ua = 'AppwriteNodeJSSDK/19.2.0-rc.1';

// `process` is a global in Node.js, but not fully available in all runtimes.
const platform: string[] = [];
Expand Down Expand Up @@ -82,7 +82,7 @@ class Client {
'x-sdk-name': 'Node.js',
'x-sdk-platform': 'server',
'x-sdk-language': 'nodejs',
'x-sdk-version': '19.1.0-rc.1',
'x-sdk-version': '19.2.0-rc.1',
'user-agent' : getUserAgent(),
'X-Appwrite-Response-Format': '1.8.0',
};
Expand Down
14 changes: 7 additions & 7 deletions src/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3246,10 +3246,6 @@ export namespace Models {
* The url of the vcs provider repository
*/
providerRepositoryUrl: string;
/**
* The branch of the vcs repository
*/
providerBranch: string;
/**
* The commit hash of the vcs commit
*/
Expand All @@ -3270,6 +3266,10 @@ export namespace Models {
* The url of the vcs commit
*/
providerCommitUrl: string;
/**
* The branch of the vcs repository
*/
providerBranch: string;
/**
* The branch of the vcs repository
*/
Expand Down Expand Up @@ -3321,7 +3321,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 Expand Up @@ -3499,7 +3499,7 @@ export namespace Models {
*/
version: string;
/**
* Antivirus status. Possible values can are: `disabled`, `offline`, `online`
* Antivirus status. Possible values are: `disabled`, `offline`, `online`
*/
status: string;
}
Expand Down Expand Up @@ -3527,7 +3527,7 @@ export namespace Models {
*/
ping: number;
/**
* Service status. Possible values can are: `pass`, `fail`
* Service status. Possible values are: `pass`, `fail`
*/
status: string;
}
Expand Down
8 changes: 8 additions & 0 deletions src/query.ts
Original file line number Diff line number Diff line change
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