node-appwrite 4.0.1 → 4.0.2
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/README.md +1 -1
- package/index.d.ts +7 -5
- package/lib/client.js +1 -1
- package/lib/query.js +2 -0
- package/lib/services/account.js +3 -2
- package/lib/services/users.js +3 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Appwrite Node.js SDK
|
|
2
2
|
|
|
3
3
|

|
|
4
|
-

|
|
5
5
|
[](https://travis-ci.com/appwrite/sdk-generator)
|
|
6
6
|
[](https://twitter.com/appwrite)
|
|
7
7
|
[](https://appwrite.io/discord)
|
package/index.d.ts
CHANGED
|
@@ -311,7 +311,7 @@ declare module "node-appwrite" {
|
|
|
311
311
|
/**
|
|
312
312
|
* Attribute size.
|
|
313
313
|
*/
|
|
314
|
-
size:
|
|
314
|
+
size: number;
|
|
315
315
|
/**
|
|
316
316
|
* Default value for attribute when not provided. Cannot be set when attribute is required.
|
|
317
317
|
*/
|
|
@@ -1450,8 +1450,9 @@ declare module "node-appwrite" {
|
|
|
1450
1450
|
/**
|
|
1451
1451
|
* Update Account Preferences
|
|
1452
1452
|
*
|
|
1453
|
-
* Update currently logged in user account preferences.
|
|
1454
|
-
*
|
|
1453
|
+
* Update currently logged in user account preferences. The object you pass is
|
|
1454
|
+
* stored as is, and replaces any previous value. The maximum allowed prefs
|
|
1455
|
+
* size is 64kB and throws error if exceeded.
|
|
1455
1456
|
*
|
|
1456
1457
|
* @param {object} prefs
|
|
1457
1458
|
* @throws {AppwriteException}
|
|
@@ -2806,8 +2807,9 @@ declare module "node-appwrite" {
|
|
|
2806
2807
|
/**
|
|
2807
2808
|
* Update User Preferences
|
|
2808
2809
|
*
|
|
2809
|
-
* Update the user preferences by its unique ID.
|
|
2810
|
-
*
|
|
2810
|
+
* Update the user preferences by its unique ID. The object you pass is stored
|
|
2811
|
+
* as is, and replaces any previous value. The maximum allowed prefs size is
|
|
2812
|
+
* 64kB and throws error if exceeded.
|
|
2811
2813
|
*
|
|
2812
2814
|
* @param {string} userId
|
|
2813
2815
|
* @param {object} prefs
|
package/lib/client.js
CHANGED
|
@@ -9,7 +9,7 @@ class Client {
|
|
|
9
9
|
this.endpoint = 'https://HOSTNAME/v1';
|
|
10
10
|
this.headers = {
|
|
11
11
|
'content-type': '',
|
|
12
|
-
'x-sdk-version': 'appwrite:nodejs:4.0.
|
|
12
|
+
'x-sdk-version': 'appwrite:nodejs:4.0.2',
|
|
13
13
|
'X-Appwrite-Response-Format' : '0.12.0',
|
|
14
14
|
};
|
|
15
15
|
this.selfSigned = false;
|
package/lib/query.js
CHANGED
package/lib/services/account.js
CHANGED
|
@@ -190,8 +190,9 @@ class Account extends Service {
|
|
|
190
190
|
/**
|
|
191
191
|
* Update Account Preferences
|
|
192
192
|
*
|
|
193
|
-
* Update currently logged in user account preferences.
|
|
194
|
-
*
|
|
193
|
+
* Update currently logged in user account preferences. The object you pass is
|
|
194
|
+
* stored as is, and replaces any previous value. The maximum allowed prefs
|
|
195
|
+
* size is 64kB and throws error if exceeded.
|
|
195
196
|
*
|
|
196
197
|
* @param {object} prefs
|
|
197
198
|
* @throws {AppwriteException}
|
package/lib/services/users.js
CHANGED
|
@@ -294,8 +294,9 @@ class Users extends Service {
|
|
|
294
294
|
/**
|
|
295
295
|
* Update User Preferences
|
|
296
296
|
*
|
|
297
|
-
* Update the user preferences by its unique ID.
|
|
298
|
-
*
|
|
297
|
+
* Update the user preferences by its unique ID. The object you pass is stored
|
|
298
|
+
* as is, and replaces any previous value. The maximum allowed prefs size is
|
|
299
|
+
* 64kB and throws error if exceeded.
|
|
299
300
|
*
|
|
300
301
|
* @param {string} userId
|
|
301
302
|
* @param {object} prefs
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "node-appwrite",
|
|
3
3
|
"homepage": "https://appwrite.io/support",
|
|
4
4
|
"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": "4.0.
|
|
5
|
+
"version": "4.0.2",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
7
7
|
"main": "./index.js",
|
|
8
8
|
"types": "./index.d.ts",
|