@@ -60,22 +60,22 @@ class Account extends Service {
60
60
61
61
*/
62
62
async updateEmail ( email , password ) {
63
- if ( typeof email === undefined ) {
63
+ if ( typeof email === ' undefined' ) {
64
64
throw new AppwriteException ( 'Missing required parameter: "email"' ) ;
65
65
}
66
66
67
- if ( typeof password === undefined ) {
67
+ if ( typeof password === ' undefined' ) {
68
68
throw new AppwriteException ( 'Missing required parameter: "password"' ) ;
69
69
}
70
70
71
71
let path = '/account/email' ;
72
72
let payload = { } ;
73
73
74
- if ( typeof email !== undefined ) {
74
+ if ( typeof email !== ' undefined' ) {
75
75
payload [ 'email' ] = email ;
76
76
}
77
77
78
- if ( typeof password !== undefined ) {
78
+ if ( typeof password !== ' undefined' ) {
79
79
payload [ 'password' ] = password ;
80
80
}
81
81
@@ -114,14 +114,14 @@ class Account extends Service {
114
114
115
115
*/
116
116
async updateName ( name ) {
117
- if ( typeof name === undefined ) {
117
+ if ( typeof name === ' undefined' ) {
118
118
throw new AppwriteException ( 'Missing required parameter: "name"' ) ;
119
119
}
120
120
121
121
let path = '/account/name' ;
122
122
let payload = { } ;
123
123
124
- if ( typeof name !== undefined ) {
124
+ if ( typeof name !== ' undefined' ) {
125
125
payload [ 'name' ] = name ;
126
126
}
127
127
@@ -144,18 +144,18 @@ class Account extends Service {
144
144
145
145
*/
146
146
async updatePassword ( password , oldPassword ) {
147
- if ( typeof password === undefined ) {
147
+ if ( typeof password === ' undefined' ) {
148
148
throw new AppwriteException ( 'Missing required parameter: "password"' ) ;
149
149
}
150
150
151
151
let path = '/account/password' ;
152
152
let payload = { } ;
153
153
154
- if ( typeof password !== undefined ) {
154
+ if ( typeof password !== ' undefined' ) {
155
155
payload [ 'password' ] = password ;
156
156
}
157
157
158
- if ( typeof oldPassword !== undefined ) {
158
+ if ( typeof oldPassword !== ' undefined' ) {
159
159
payload [ 'oldPassword' ] = oldPassword ;
160
160
}
161
161
@@ -194,14 +194,14 @@ class Account extends Service {
194
194
195
195
*/
196
196
async updatePrefs ( prefs ) {
197
- if ( typeof prefs === undefined ) {
197
+ if ( typeof prefs === ' undefined' ) {
198
198
throw new AppwriteException ( 'Missing required parameter: "prefs"' ) ;
199
199
}
200
200
201
201
let path = '/account/prefs' ;
202
202
let payload = { } ;
203
203
204
- if ( typeof prefs !== undefined ) {
204
+ if ( typeof prefs !== ' undefined' ) {
205
205
payload [ 'prefs' ] = prefs ;
206
206
}
207
207
@@ -229,22 +229,22 @@ class Account extends Service {
229
229
230
230
*/
231
231
async createRecovery ( email , url ) {
232
- if ( typeof email === undefined ) {
232
+ if ( typeof email === ' undefined' ) {
233
233
throw new AppwriteException ( 'Missing required parameter: "email"' ) ;
234
234
}
235
235
236
- if ( typeof url === undefined ) {
236
+ if ( typeof url === ' undefined' ) {
237
237
throw new AppwriteException ( 'Missing required parameter: "url"' ) ;
238
238
}
239
239
240
240
let path = '/account/recovery' ;
241
241
let payload = { } ;
242
242
243
- if ( typeof email !== undefined ) {
243
+ if ( typeof email !== ' undefined' ) {
244
244
payload [ 'email' ] = email ;
245
245
}
246
246
247
- if ( typeof url !== undefined ) {
247
+ if ( typeof url !== ' undefined' ) {
248
248
payload [ 'url' ] = url ;
249
249
}
250
250
@@ -275,38 +275,38 @@ class Account extends Service {
275
275
276
276
*/
277
277
async updateRecovery ( userId , secret , password , passwordAgain ) {
278
- if ( typeof userId === undefined ) {
278
+ if ( typeof userId === ' undefined' ) {
279
279
throw new AppwriteException ( 'Missing required parameter: "userId"' ) ;
280
280
}
281
281
282
- if ( typeof secret === undefined ) {
282
+ if ( typeof secret === ' undefined' ) {
283
283
throw new AppwriteException ( 'Missing required parameter: "secret"' ) ;
284
284
}
285
285
286
- if ( typeof password === undefined ) {
286
+ if ( typeof password === ' undefined' ) {
287
287
throw new AppwriteException ( 'Missing required parameter: "password"' ) ;
288
288
}
289
289
290
- if ( typeof passwordAgain === undefined ) {
290
+ if ( typeof passwordAgain === ' undefined' ) {
291
291
throw new AppwriteException ( 'Missing required parameter: "passwordAgain"' ) ;
292
292
}
293
293
294
294
let path = '/account/recovery' ;
295
295
let payload = { } ;
296
296
297
- if ( typeof userId !== undefined ) {
297
+ if ( typeof userId !== ' undefined' ) {
298
298
payload [ 'userId' ] = userId ;
299
299
}
300
300
301
- if ( typeof secret !== undefined ) {
301
+ if ( typeof secret !== ' undefined' ) {
302
302
payload [ 'secret' ] = secret ;
303
303
}
304
304
305
- if ( typeof password !== undefined ) {
305
+ if ( typeof password !== ' undefined' ) {
306
306
payload [ 'password' ] = password ;
307
307
}
308
308
309
- if ( typeof passwordAgain !== undefined ) {
309
+ if ( typeof passwordAgain !== ' undefined' ) {
310
310
payload [ 'passwordAgain' ] = passwordAgain ;
311
311
}
312
312
@@ -366,7 +366,7 @@ class Account extends Service {
366
366
367
367
*/
368
368
async deleteSession ( sessionId ) {
369
- if ( typeof sessionId === undefined ) {
369
+ if ( typeof sessionId === ' undefined' ) {
370
370
throw new AppwriteException ( 'Missing required parameter: "sessionId"' ) ;
371
371
}
372
372
@@ -403,14 +403,14 @@ class Account extends Service {
403
403
404
404
*/
405
405
async createVerification ( url ) {
406
- if ( typeof url === undefined ) {
406
+ if ( typeof url === ' undefined' ) {
407
407
throw new AppwriteException ( 'Missing required parameter: "url"' ) ;
408
408
}
409
409
410
410
let path = '/account/verification' ;
411
411
let payload = { } ;
412
412
413
- if ( typeof url !== undefined ) {
413
+ if ( typeof url !== ' undefined' ) {
414
414
payload [ 'url' ] = url ;
415
415
}
416
416
@@ -434,22 +434,22 @@ class Account extends Service {
434
434
435
435
*/
436
436
async updateVerification ( userId , secret ) {
437
- if ( typeof userId === undefined ) {
437
+ if ( typeof userId === ' undefined' ) {
438
438
throw new AppwriteException ( 'Missing required parameter: "userId"' ) ;
439
439
}
440
440
441
- if ( typeof secret === undefined ) {
441
+ if ( typeof secret === ' undefined' ) {
442
442
throw new AppwriteException ( 'Missing required parameter: "secret"' ) ;
443
443
}
444
444
445
445
let path = '/account/verification' ;
446
446
let payload = { } ;
447
447
448
- if ( typeof userId !== undefined ) {
448
+ if ( typeof userId !== ' undefined' ) {
449
449
payload [ 'userId' ] = userId ;
450
450
}
451
451
452
- if ( typeof secret !== undefined ) {
452
+ if ( typeof secret !== ' undefined' ) {
453
453
payload [ 'secret' ] = secret ;
454
454
}
455
455
0 commit comments