@@ -19,8 +19,8 @@ open class Users: Service {
19
19
///
20
20
open func list< T> (
21
21
queries: [ String ] ? = nil ,
22
- search: String ? = nil
23
- nestedType: T. Type,
22
+ search: String ? = nil ,
23
+ nestedType: T . Type
24
24
) async throws -> AppwriteModels . UserList < T > {
25
25
let path : String = " /users "
26
26
@@ -86,8 +86,8 @@ open class Users: Service {
86
86
email: String ? = nil ,
87
87
phone: String ? = nil ,
88
88
password: String ? = nil ,
89
- name: String ? = nil
90
- nestedType: T. Type,
89
+ name: String ? = nil ,
90
+ nestedType: T . Type
91
91
) async throws -> AppwriteModels . User < T > {
92
92
let path : String = " /users "
93
93
@@ -165,8 +165,8 @@ open class Users: Service {
165
165
userId: String ,
166
166
email: String ,
167
167
password: String ,
168
- name: String ? = nil
169
- nestedType: T. Type,
168
+ name: String ? = nil ,
169
+ nestedType: T . Type
170
170
) async throws -> AppwriteModels . User < T > {
171
171
let path : String = " /users/argon2 "
172
172
@@ -243,8 +243,8 @@ open class Users: Service {
243
243
userId: String ,
244
244
email: String ,
245
245
password: String ,
246
- name: String ? = nil
247
- nestedType: T. Type,
246
+ name: String ? = nil ,
247
+ nestedType: T . Type
248
248
) async throws -> AppwriteModels . User < T > {
249
249
let path : String = " /users/bcrypt "
250
250
@@ -321,8 +321,8 @@ open class Users: Service {
321
321
userId: String ,
322
322
email: String ,
323
323
password: String ,
324
- name: String ? = nil
325
- nestedType: T. Type,
324
+ name: String ? = nil ,
325
+ nestedType: T . Type
326
326
) async throws -> AppwriteModels . User < T > {
327
327
let path : String = " /users/md5 "
328
328
@@ -399,8 +399,8 @@ open class Users: Service {
399
399
userId: String ,
400
400
email: String ,
401
401
password: String ,
402
- name: String ? = nil
403
- nestedType: T. Type,
402
+ name: String ? = nil ,
403
+ nestedType: T . Type
404
404
) async throws -> AppwriteModels . User < T > {
405
405
let path : String = " /users/phpass "
406
406
@@ -487,8 +487,8 @@ open class Users: Service {
487
487
passwordMemory: Int ,
488
488
passwordParallel: Int ,
489
489
passwordLength: Int ,
490
- name: String ? = nil
491
- nestedType: T. Type,
490
+ name: String ? = nil ,
491
+ nestedType: T . Type
492
492
) async throws -> AppwriteModels . User < T > {
493
493
let path : String = " /users/scrypt "
494
494
@@ -591,8 +591,8 @@ open class Users: Service {
591
591
passwordSalt: String ,
592
592
passwordSaltSeparator: String ,
593
593
passwordSignerKey: String ,
594
- name: String ? = nil
595
- nestedType: T. Type,
594
+ name: String ? = nil ,
595
+ nestedType: T . Type
596
596
) async throws -> AppwriteModels . User < T > {
597
597
let path : String = " /users/scrypt-modified "
598
598
@@ -683,8 +683,8 @@ open class Users: Service {
683
683
email: String ,
684
684
password: String ,
685
685
passwordVersion: String ? = nil ,
686
- name: String ? = nil
687
- nestedType: T. Type,
686
+ name: String ? = nil ,
687
+ nestedType: T . Type
688
688
) async throws -> AppwriteModels . User < T > {
689
689
let path : String = " /users/sha "
690
690
@@ -756,8 +756,8 @@ open class Users: Service {
756
756
/// @return array
757
757
///
758
758
open func get< T> (
759
- userId: String
760
- nestedType: T. Type ,
759
+ userId: String ,
760
+ nestedType: T . Type
761
761
) async throws -> AppwriteModels . User < T > {
762
762
let path : String = " /users/{userId} "
763
763
. replacingOccurrences ( of: " {userId} " , with: userId)
@@ -843,8 +843,8 @@ open class Users: Service {
843
843
///
844
844
open func updateEmail< T> (
845
845
userId: String ,
846
- email: String
847
- nestedType: T. Type ,
846
+ email: String ,
847
+ nestedType: T . Type
848
848
) async throws -> AppwriteModels . User < T > {
849
849
let path : String = " /users/{userId}/email "
850
850
. replacingOccurrences ( of: " {userId} " , with: userId)
@@ -975,8 +975,8 @@ open class Users: Service {
975
975
///
976
976
open func updateName< T> (
977
977
userId: String ,
978
- name: String
979
- nestedType: T. Type ,
978
+ name: String ,
979
+ nestedType: T . Type
980
980
) async throws -> AppwriteModels . User < T > {
981
981
let path : String = " /users/{userId}/name "
982
982
. replacingOccurrences ( of: " {userId} " , with: userId)
@@ -1035,8 +1035,8 @@ open class Users: Service {
1035
1035
///
1036
1036
open func updatePassword< T> (
1037
1037
userId: String ,
1038
- password: String
1039
- nestedType: T. Type ,
1038
+ password: String ,
1039
+ nestedType: T . Type
1040
1040
) async throws -> AppwriteModels . User < T > {
1041
1041
let path : String = " /users/{userId}/password "
1042
1042
. replacingOccurrences ( of: " {userId} " , with: userId)
@@ -1095,8 +1095,8 @@ open class Users: Service {
1095
1095
///
1096
1096
open func updatePhone< T> (
1097
1097
userId: String ,
1098
- number: String
1099
- nestedType: T. Type ,
1098
+ number: String ,
1099
+ nestedType: T . Type
1100
1100
) async throws -> AppwriteModels . User < T > {
1101
1101
let path : String = " /users/{userId}/phone "
1102
1102
. replacingOccurrences ( of: " {userId} " , with: userId)
@@ -1153,8 +1153,8 @@ open class Users: Service {
1153
1153
/// @return array
1154
1154
///
1155
1155
open func getPrefs< T> (
1156
- userId: String
1157
- nestedType: T. Type ,
1156
+ userId: String ,
1157
+ nestedType: T . Type
1158
1158
) async throws -> AppwriteModels . Preferences < T > {
1159
1159
let path : String = " /users/{userId}/prefs "
1160
1160
. replacingOccurrences ( of: " {userId} " , with: userId)
@@ -1210,8 +1210,8 @@ open class Users: Service {
1210
1210
///
1211
1211
open func updatePrefs< T> (
1212
1212
userId: String ,
1213
- prefs: T
1214
- nestedType: T. Type ,
1213
+ prefs: T ,
1214
+ nestedType: T . Type
1215
1215
) async throws -> AppwriteModels . Preferences < T > {
1216
1216
let path : String = " /users/{userId}/prefs "
1217
1217
. replacingOccurrences ( of: " {userId} " , with: userId)
@@ -1366,8 +1366,8 @@ open class Users: Service {
1366
1366
///
1367
1367
open func updateStatus< T> (
1368
1368
userId: String ,
1369
- status: Bool
1370
- nestedType: T. Type ,
1369
+ status: Bool ,
1370
+ nestedType: T . Type
1371
1371
) async throws -> AppwriteModels . User < T > {
1372
1372
let path : String = " /users/{userId}/status "
1373
1373
. replacingOccurrences ( of: " {userId} " , with: userId)
@@ -1427,8 +1427,8 @@ open class Users: Service {
1427
1427
///
1428
1428
open func updateEmailVerification< T> (
1429
1429
userId: String ,
1430
- emailVerification: Bool
1431
- nestedType: T. Type ,
1430
+ emailVerification: Bool ,
1431
+ nestedType: T . Type
1432
1432
) async throws -> AppwriteModels . User < T > {
1433
1433
let path : String = " /users/{userId}/verification "
1434
1434
. replacingOccurrences ( of: " {userId} " , with: userId)
@@ -1487,8 +1487,8 @@ open class Users: Service {
1487
1487
///
1488
1488
open func updatePhoneVerification< T> (
1489
1489
userId: String ,
1490
- phoneVerification: Bool
1491
- nestedType: T. Type ,
1490
+ phoneVerification: Bool ,
1491
+ nestedType: T . Type
1492
1492
) async throws -> AppwriteModels . User < T > {
1493
1493
let path : String = " /users/{userId}/verification/phone "
1494
1494
. replacingOccurrences ( of: " {userId} " , with: userId)
0 commit comments