Skip to content

Commit b0cbd0f

Browse files
committed
Update scopes
1 parent 45b799f commit b0cbd0f

File tree

4 files changed

+18
-10
lines changed

4 files changed

+18
-10
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "node-appwrite",
33
"homepage": "https://appwrite.io/support",
44
"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",
5-
"version": "19.1.0-rc.1",
5+
"version": "19.2.0-rc.1",
66
"license": "BSD-3-Clause",
77
"main": "dist/index.js",
88
"type": "commonjs",

src/client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class AppwriteException extends Error {
3333
}
3434

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

3838
// `process` is a global in Node.js, but not fully available in all runtimes.
3939
const platform: string[] = [];
@@ -82,7 +82,7 @@ class Client {
8282
'x-sdk-name': 'Node.js',
8383
'x-sdk-platform': 'server',
8484
'x-sdk-language': 'nodejs',
85-
'x-sdk-version': '19.1.0-rc.1',
85+
'x-sdk-version': '19.2.0-rc.1',
8686
'user-agent' : getUserAgent(),
8787
'X-Appwrite-Response-Format': '1.8.0',
8888
};

src/models.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3246,10 +3246,6 @@ export namespace Models {
32463246
* The url of the vcs provider repository
32473247
*/
32483248
providerRepositoryUrl: string;
3249-
/**
3250-
* The branch of the vcs repository
3251-
*/
3252-
providerBranch: string;
32533249
/**
32543250
* The commit hash of the vcs commit
32553251
*/
@@ -3270,6 +3266,10 @@ export namespace Models {
32703266
* The url of the vcs commit
32713267
*/
32723268
providerCommitUrl: string;
3269+
/**
3270+
* The branch of the vcs repository
3271+
*/
3272+
providerBranch: string;
32733273
/**
32743274
* The branch of the vcs repository
32753275
*/
@@ -3321,7 +3321,7 @@ export namespace Models {
33213321
*/
33223322
requestPath: string;
33233323
/**
3324-
* HTTP response headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous.
3324+
* HTTP request headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous.
33253325
*/
33263326
requestHeaders: Headers[];
33273327
/**
@@ -3499,7 +3499,7 @@ export namespace Models {
34993499
*/
35003500
version: string;
35013501
/**
3502-
* Antivirus status. Possible values can are: `disabled`, `offline`, `online`
3502+
* Antivirus status. Possible values are: `disabled`, `offline`, `online`
35033503
*/
35043504
status: string;
35053505
}
@@ -3527,7 +3527,7 @@ export namespace Models {
35273527
*/
35283528
ping: number;
35293529
/**
3530-
* Service status. Possible values can are: `pass`, `fail`
3530+
* Service status. Possible values are: `pass`, `fail`
35313531
*/
35323532
status: string;
35333533
}

src/query.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,14 @@ export class Query {
195195
static orderAsc = (attribute: string): string =>
196196
new Query("orderAsc", attribute).toString();
197197

198+
/**
199+
* Sort results randomly.
200+
*
201+
* @returns {string}
202+
*/
203+
static orderRandom = (): string =>
204+
new Query("orderRandom").toString();
205+
198206
/**
199207
* Return results after documentId.
200208
*

0 commit comments

Comments
 (0)