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 CHANGED
@@ -1,7 +1,7 @@
1
1
  # Appwrite Node.js SDK
2
2
 
3
3
  ![License](https://img.shields.io/github/license/appwrite/sdk-for-node.svg?style=flat-square)
4
- ![Version](https://img.shields.io/badge/api%20version-0.12.0-blue.svg?style=flat-square)
4
+ ![Version](https://img.shields.io/badge/api%20version-0.12.1-blue.svg?style=flat-square)
5
5
  [![Build Status](https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square)](https://travis-ci.com/appwrite/sdk-generator)
6
6
  [![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite)
7
7
  [![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](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: string;
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. You can pass only the
1454
- * specific settings you wish to update.
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. You can pass only the
2810
- * specific settings you wish to update.
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.1',
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
@@ -32,3 +32,5 @@ class Query {
32
32
  ? `"${value}"`
33
33
  : `${value}`;
34
34
  }
35
+
36
+ module.exports = Query;
@@ -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. You can pass only the
194
- * specific settings you wish to update.
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}
@@ -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. You can pass only the
298
- * specific settings you wish to update.
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.1",
5
+ "version": "4.0.2",
6
6
  "license": "BSD-3-Clause",
7
7
  "main": "./index.js",
8
8
  "types": "./index.d.ts",