Skip to content

Commit 8168bc0

Browse files
committed
Release candidate for 1.5.x
1 parent e71e87b commit 8168bc0

12 files changed

+20
-20
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Add this to your package's `pubspec.yaml` file:
2121

2222
```yml
2323
dependencies:
24-
appwrite: ^12.0.0-rc.2
24+
appwrite: ^12.0.0-rc.3
2525
```
2626
2727
You can install packages from the command line:

docs/examples/account/add-authenticator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ void main() { // Init SDK
99
.setProject('5df5acd0d48c2') // Your project ID
1010
;
1111
Future result = account.addAuthenticator(
12-
type: .totp.value,
12+
type: AuthenticatorType.totp.value,
1313
);
1414

1515
result

docs/examples/account/create2f-a-challenge.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ void main() { // Init SDK
99
.setProject('5df5acd0d48c2') // Your project ID
1010
;
1111
Future result = account.create2FAChallenge(
12-
factor: .totp.value,
12+
factor: AuthenticationFactor.totp.value,
1313
);
1414

1515
result

docs/examples/account/delete-authenticator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ void main() { // Init SDK
99
.setProject('5df5acd0d48c2') // Your project ID
1010
;
1111
Future result = account.deleteAuthenticator(
12-
type: .totp.value,
12+
type: AuthenticatorType.totp.value,
1313
otp:'[OTP]' ,
1414
);
1515

docs/examples/account/verify-authenticator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ void main() { // Init SDK
99
.setProject('5df5acd0d48c2') // Your project ID
1010
;
1111
Future result = account.verifyAuthenticator(
12-
type: .totp.value,
12+
type: AuthenticatorType.totp.value,
1313
otp:'[OTP]' ,
1414
);
1515

lib/enums.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/// Appwrite Enums
22
library appwrite.enums;
33

4-
part 'src/enums/factor.dart';
5-
part 'src/enums/type.dart';
4+
part 'src/enums/authentication_factor.dart';
5+
part 'src/enums/authenticator_type.dart';
66
part 'src/enums/o_auth_provider.dart';
77
part 'src/enums/browser.dart';
88
part 'src/enums/credit_card.dart';

lib/services/account.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ class Account extends Service {
185185

186186
/// Create 2FA Challenge
187187
///
188-
Future<models.MfaChallenge> create2FAChallenge({required enums.Factor factor}) async {
188+
Future<models.MfaChallenge> create2FAChallenge({required enums.AuthenticationFactor factor}) async {
189189
const String apiPath = '/account/mfa/challenge';
190190

191191
final Map<String, dynamic> apiParams = {
@@ -242,7 +242,7 @@ class Account extends Service {
242242

243243
/// Add Authenticator
244244
///
245-
Future<models.MfaType> addAuthenticator({required enums.Type type}) async {
245+
Future<models.MfaType> addAuthenticator({required enums.AuthenticatorType type}) async {
246246
final String apiPath = '/account/mfa/{type}'.replaceAll('{type}', type);
247247

248248
final Map<String, dynamic> apiParams = {
@@ -260,7 +260,7 @@ class Account extends Service {
260260

261261
/// Verify Authenticator
262262
///
263-
Future<models.User> verifyAuthenticator({required enums.Type type, required String otp}) async {
263+
Future<models.User> verifyAuthenticator({required enums.AuthenticatorType type, required String otp}) async {
264264
final String apiPath = '/account/mfa/{type}'.replaceAll('{type}', type);
265265

266266
final Map<String, dynamic> apiParams = {
@@ -279,7 +279,7 @@ class Account extends Service {
279279

280280
/// Delete Authenticator
281281
///
282-
Future<models.User> deleteAuthenticator({required enums.Type type, required String otp}) async {
282+
Future<models.User> deleteAuthenticator({required enums.AuthenticatorType type, required String otp}) async {
283283
final String apiPath = '/account/mfa/{type}'.replaceAll('{type}', type);
284284

285285
final Map<String, dynamic> apiParams = {

lib/src/client_browser.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ class ClientBrowser extends ClientBase with ClientMixin {
4343
'x-sdk-name': 'Flutter',
4444
'x-sdk-platform': 'client',
4545
'x-sdk-language': 'flutter',
46-
'x-sdk-version': '12.0.0-rc.2',
47-
'X-Appwrite-Response-Format': '1.4.0',
46+
'x-sdk-version': '12.0.0-rc.3',
47+
'X-Appwrite-Response-Format': '1.5.0',
4848
};
4949

5050
config = {};

lib/src/client_io.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ class ClientIO extends ClientBase with ClientMixin {
6464
'x-sdk-name': 'Flutter',
6565
'x-sdk-platform': 'client',
6666
'x-sdk-language': 'flutter',
67-
'x-sdk-version': '12.0.0-rc.2',
68-
'X-Appwrite-Response-Format' : '1.4.0',
67+
'x-sdk-version': '12.0.0-rc.3',
68+
'X-Appwrite-Response-Format' : '1.5.0',
6969
};
7070

7171
config = {};

lib/src/enums/factor.dart renamed to lib/src/enums/authentication_factor.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
part of appwrite.enums;
22

3-
enum Factor {
3+
enum AuthenticationFactor {
44
totp(value: 'totp'),
55
phone(value: 'phone'),
66
email(value: 'email');
77

8-
const Factor({
8+
const AuthenticationFactor({
99
required this.value
1010
});
1111

0 commit comments

Comments
 (0)