Skip to content

Commit 43a7762

Browse files
committed
Release candidate for 1.5.x
1 parent 2590349 commit 43a7762

14 files changed

+23
-23
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Add this to your package's `pubspec.yaml` file:
2323

2424
```yml
2525
dependencies:
26-
dart_appwrite: ^11.0.0-rc.2
26+
dart_appwrite: ^11.0.0-rc.3
2727
```
2828
2929
You can install packages from the command line:

docs/examples/account/add-authenticator.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ void main() { // Init SDK
1111
;
1212

1313
Future result = account.addAuthenticator(
14-
type: .totp,
14+
type: AuthenticatorType.totp,
1515
);
1616

1717
result

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ void main() { // Init SDK
1010
;
1111

1212
Future result = account.create2FAChallenge(
13-
factor: .totp,
13+
factor: AuthenticationFactor.totp,
1414
);
1515

1616
result

docs/examples/account/delete-authenticator.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ void main() { // Init SDK
1111
;
1212

1313
Future result = account.deleteAuthenticator(
14-
type: .totp,
14+
type: AuthenticatorType.totp,
1515
otp:'[OTP]' ,
1616
);
1717

docs/examples/account/verify-authenticator.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ void main() { // Init SDK
1111
;
1212

1313
Future result = account.verifyAuthenticator(
14-
type: .totp,
14+
type: AuthenticatorType.totp,
1515
otp:'[OTP]' ,
1616
);
1717

docs/examples/users/delete-authenticator.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ void main() { // Init SDK
1212

1313
Future result = users.deleteAuthenticator(
1414
userId:'[USER_ID]' ,
15-
type: .totp,
15+
type: AuthenticatorType.totp,
1616
otp:'[OTP]' ,
1717
);
1818

lib/enums.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/// Appwrite Enums
22
library dart_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

+4-4
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ class Account extends Service {
208208

209209
/// Create 2FA Challenge
210210
///
211-
Future<models.MfaChallenge> create2FAChallenge({required enums.Factor factor}) async {
211+
Future<models.MfaChallenge> create2FAChallenge({required enums.AuthenticationFactor factor}) async {
212212
final String apiPath = '/account/mfa/challenge';
213213

214214
final Map<String, dynamic> apiParams = {
@@ -274,7 +274,7 @@ class Account extends Service {
274274

275275
/// Add Authenticator
276276
///
277-
Future<models.MfaType> addAuthenticator({required enums.Type type}) async {
277+
Future<models.MfaType> addAuthenticator({required enums.AuthenticatorType type}) async {
278278
final String apiPath = '/account/mfa/{type}'.replaceAll('{type}', type);
279279

280280
final Map<String, dynamic> apiParams = {
@@ -295,7 +295,7 @@ class Account extends Service {
295295

296296
/// Verify Authenticator
297297
///
298-
Future<models.User> verifyAuthenticator({required enums.Type type, required String otp}) async {
298+
Future<models.User> verifyAuthenticator({required enums.AuthenticatorType type, required String otp}) async {
299299
final String apiPath = '/account/mfa/{type}'.replaceAll('{type}', type);
300300

301301
final Map<String, dynamic> apiParams = {
@@ -317,7 +317,7 @@ class Account extends Service {
317317

318318
/// Delete Authenticator
319319
///
320-
Future<models.User> deleteAuthenticator({required enums.Type type, required String otp}) async {
320+
Future<models.User> deleteAuthenticator({required enums.AuthenticatorType type, required String otp}) async {
321321
final String apiPath = '/account/mfa/{type}'.replaceAll('{type}', type);
322322

323323
final Map<String, dynamic> apiParams = {

lib/services/users.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ class Users extends Service {
505505

506506
/// Delete Authenticator
507507
///
508-
Future<models.User> deleteAuthenticator({required String userId, required enums.Type type, required String otp}) async {
508+
Future<models.User> deleteAuthenticator({required String userId, required enums.AuthenticatorType type, required String otp}) async {
509509
final String apiPath = '/users/{userId}/mfa/{type}'.replaceAll('{userId}', userId).replaceAll('{type}', type);
510510

511511
final Map<String, dynamic> apiParams = {

lib/src/client_browser.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ class ClientBrowser extends ClientBase with ClientMixin {
3333
'x-sdk-name': 'Dart',
3434
'x-sdk-platform': 'server',
3535
'x-sdk-language': 'dart',
36-
'x-sdk-version': '11.0.0-rc.2',
37-
'X-Appwrite-Response-Format' : '1.4.0',
36+
'x-sdk-version': '11.0.0-rc.3',
37+
'X-Appwrite-Response-Format' : '1.5.0',
3838
};
3939

4040
config = {};

lib/src/client_io.dart

+3-3
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ class ClientIO extends ClientBase with ClientMixin {
4242
'x-sdk-name': 'Dart',
4343
'x-sdk-platform': 'server',
4444
'x-sdk-language': 'dart',
45-
'x-sdk-version': '11.0.0-rc.2',
46-
'user-agent' : 'AppwriteDartSDK/11.0.0-rc.2 (${Platform.operatingSystem}; ${Platform.operatingSystemVersion})',
47-
'X-Appwrite-Response-Format' : '1.4.0',
45+
'x-sdk-version': '11.0.0-rc.3',
46+
'user-agent' : 'AppwriteDartSDK/11.0.0-rc.3 (${Platform.operatingSystem}; ${Platform.operatingSystemVersion})',
47+
'X-Appwrite-Response-Format' : '1.5.0',
4848
};
4949

5050
config = {};

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
part of dart_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

lib/src/enums/type.dart lib/src/enums/authenticator_type.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
part of dart_appwrite.enums;
22

3-
enum Type {
3+
enum AuthenticatorType {
44
totp(value: 'totp');
55

6-
const Type({
6+
const AuthenticatorType({
77
required this.value
88
});
99

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: dart_appwrite
2-
version: 11.0.0-rc.2
2+
version: 11.0.0-rc.3
33
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
44
homepage: https://appwrite.io
55
repository: https://github.com/appwrite/sdk-for-dart

0 commit comments

Comments
 (0)