File tree Expand file tree Collapse file tree 7 files changed +18
-12
lines changed Expand file tree Collapse file tree 7 files changed +18
-12
lines changed Original file line number Diff line number Diff line change 11# Appwrite Node.js SDK
22
33![ 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 )
55[ ![ Build Status] ( https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square )] ( https://travis-ci.com/appwrite/sdk-generator )
66[ ![ Twitter Account] ( https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square )] ( https://twitter.com/appwrite )
77[ ![ Discord] ( https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square )] ( https://appwrite.io/discord )
Original file line number Diff line number Diff line change @@ -311,7 +311,7 @@ declare module "node-appwrite" {
311311 /**
312312 * Attribute size.
313313 */
314- size : string ;
314+ size : number ;
315315 /**
316316 * Default value for attribute when not provided. Cannot be set when attribute is required.
317317 */
@@ -1450,8 +1450,9 @@ declare module "node-appwrite" {
14501450 /**
14511451 * Update Account Preferences
14521452 *
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.
14551456 *
14561457 * @param {object } prefs
14571458 * @throws {AppwriteException }
@@ -2806,8 +2807,9 @@ declare module "node-appwrite" {
28062807 /**
28072808 * Update User Preferences
28082809 *
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.
28112813 *
28122814 * @param {string } userId
28132815 * @param {object } prefs
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ class Client {
99 this . endpoint = 'https://HOSTNAME/v1' ;
1010 this . headers = {
1111 'content-type' : '' ,
12- 'x-sdk-version' : 'appwrite:nodejs:4.0.1 ' ,
12+ 'x-sdk-version' : 'appwrite:nodejs:4.0.2 ' ,
1313 'X-Appwrite-Response-Format' : '0.12.0' ,
1414 } ;
1515 this . selfSigned = false ;
Original file line number Diff line number Diff line change @@ -32,3 +32,5 @@ class Query {
3232 ? `"${ value } "`
3333 : `${ value } ` ;
3434}
35+
36+ module . exports = Query ;
Original file line number Diff line number Diff line change @@ -190,8 +190,9 @@ class Account extends Service {
190190 /**
191191 * Update Account Preferences
192192 *
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.
195196 *
196197 * @param {object } prefs
197198 * @throws {AppwriteException }
Original file line number Diff line number Diff line change @@ -294,8 +294,9 @@ class Users extends Service {
294294 /**
295295 * Update User Preferences
296296 *
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.
299300 *
300301 * @param {string } userId
301302 * @param {object } prefs
Original file line number Diff line number Diff line change 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" : " 4.0.1 " ,
5+ "version" : " 4.0.2 " ,
66 "license" : " BSD-3-Clause" ,
77 "main" : " ./index.js" ,
88 "types" : " ./index.d.ts" ,
You can’t perform that action at this time.
0 commit comments