File tree 11 files changed +30
-28
lines changed
11 files changed +30
-28
lines changed Original file line number Diff line number Diff line change 2
2
3
3
![ Swift Package Manager] ( https://img.shields.io/github/v/release/appwrite/sdk-for-swift.svg?color=green&style=flat-square )
4
4
![ License] ( https://img.shields.io/github/license/appwrite/sdk-for-swift.svg?style=flat-square )
5
- ![ Version] ( https://img.shields.io/badge/api%20version-0.12.0 -blue.svg?style=flat-square )
5
+ ![ Version] ( https://img.shields.io/badge/api%20version-0.12.1 -blue.svg?style=flat-square )
6
6
[ ![ Build Status] ( https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square )] ( https://travis-ci.com/appwrite/sdk-generator )
7
7
[ ![ Twitter Account] ( https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square )] ( https://twitter.com/appwrite )
8
8
[ ![ 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 @@ -272,8 +272,9 @@ open class Account: Service {
272
272
///
273
273
/// Update Account Preferences
274
274
///
275
- /// Update currently logged in user account preferences. You can pass only the
276
- /// specific settings you wish to update.
275
+ /// Update currently logged in user account preferences. The object you pass is
276
+ /// stored as is, and replaces any previous value. The maximum allowed prefs
277
+ /// size is 64kB and throws error if exceeded.
277
278
///
278
279
/// @param Any prefs
279
280
/// @throws Exception
Original file line number Diff line number Diff line change @@ -393,8 +393,9 @@ open class Users: Service {
393
393
///
394
394
/// Update User Preferences
395
395
///
396
- /// Update the user preferences by its unique ID. You can pass only the
397
- /// specific settings you wish to update.
396
+ /// Update the user preferences by its unique ID. The object you pass is stored
397
+ /// as is, and replaces any previous value. The maximum allowed prefs size is
398
+ /// 64kB and throws error if exceeded.
398
399
///
399
400
/// @param String userId
400
401
/// @param Any prefs
Original file line number Diff line number Diff line change @@ -25,8 +25,8 @@ public class AttributeBoolean {
25
25
type: String ,
26
26
status: String ,
27
27
xrequired: Bool ,
28
- array: Bool ? = ,
29
- xdefault: Bool ? =
28
+ array: Bool ? ,
29
+ xdefault: Bool ?
30
30
) {
31
31
self . key = key
32
32
self . type = type
Original file line number Diff line number Diff line change @@ -28,9 +28,9 @@ public class AttributeEmail {
28
28
type: String ,
29
29
status: String ,
30
30
xrequired: Bool ,
31
- array: Bool ? = ,
31
+ array: Bool ? ,
32
32
format: String ,
33
- xdefault: String ? =
33
+ xdefault: String ?
34
34
) {
35
35
self . key = key
36
36
self . type = type
Original file line number Diff line number Diff line change @@ -31,10 +31,10 @@ public class AttributeEnum {
31
31
type: String ,
32
32
status: String ,
33
33
xrequired: Bool ,
34
- array: Bool ? = ,
34
+ array: Bool ? ,
35
35
elements: [ Any ] ,
36
36
format: String ,
37
- xdefault: String ? =
37
+ xdefault: String ?
38
38
) {
39
39
self . key = key
40
40
self . type = type
Original file line number Diff line number Diff line change @@ -31,10 +31,10 @@ public class AttributeFloat {
31
31
type: String ,
32
32
status: String ,
33
33
xrequired: Bool ,
34
- array: Bool ? = ,
35
- min: Double ? = ,
36
- max: Double ? = ,
37
- xdefault: Double ? =
34
+ array: Bool ? ,
35
+ min: Double ? ,
36
+ max: Double ? ,
37
+ xdefault: Double ?
38
38
) {
39
39
self . key = key
40
40
self . type = type
Original file line number Diff line number Diff line change @@ -31,10 +31,10 @@ public class AttributeInteger {
31
31
type: String ,
32
32
status: String ,
33
33
xrequired: Bool ,
34
- array: Bool ? = ,
35
- min: Int ? = ,
36
- max: Int ? = ,
37
- xdefault: Int ? =
34
+ array: Bool ? ,
35
+ min: Int ? ,
36
+ max: Int ? ,
37
+ xdefault: Int ?
38
38
) {
39
39
self . key = key
40
40
self . type = type
Original file line number Diff line number Diff line change @@ -28,9 +28,9 @@ public class AttributeIp {
28
28
type: String ,
29
29
status: String ,
30
30
xrequired: Bool ,
31
- array: Bool ? = ,
31
+ array: Bool ? ,
32
32
format: String ,
33
- xdefault: String ? =
33
+ xdefault: String ?
34
34
) {
35
35
self . key = key
36
36
self . type = type
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ public class AttributeString {
18
18
public let array : Bool ?
19
19
20
20
/// Attribute size.
21
- public let size : String
21
+ public let size : Int
22
22
23
23
/// Default value for attribute when not provided. Cannot be set when attribute is required.
24
24
public let xdefault : String ?
@@ -28,9 +28,9 @@ public class AttributeString {
28
28
type: String ,
29
29
status: String ,
30
30
xrequired: Bool ,
31
- array: Bool ? = ,
32
- size: String ,
33
- xdefault: String ? =
31
+ array: Bool ? ,
32
+ size: Int ,
33
+ xdefault: String ?
34
34
) {
35
35
self . key = key
36
36
self . type = type
@@ -48,7 +48,7 @@ public class AttributeString {
48
48
status: map [ " status " ] as! String ,
49
49
xrequired: map [ " required " ] as! Bool ,
50
50
array: map [ " array " ] as? Bool ,
51
- size: map [ " size " ] as! String ,
51
+ size: map [ " size " ] as! Int ,
52
52
xdefault: map [ " default " ] as? String
53
53
)
54
54
}
Original file line number Diff line number Diff line change @@ -28,9 +28,9 @@ public class AttributeUrl {
28
28
type: String ,
29
29
status: String ,
30
30
xrequired: Bool ,
31
- array: Bool ? = ,
31
+ array: Bool ? ,
32
32
format: String ,
33
- xdefault: String ? =
33
+ xdefault: String ?
34
34
) {
35
35
self . key = key
36
36
self . type = type
You can’t perform that action at this time.
0 commit comments