Skip to content

Commit 9e2067f

Browse files
committed
chore: release rc
1 parent 0d8d15a commit 9e2067f

27 files changed

+526
-33
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![pub package](https://img.shields.io/pub/v/dart_appwrite.svg?style=flat-square)](https://pub.dartlang.org/packages/dart_appwrite)
44
![License](https://img.shields.io/github/license/appwrite/sdk-for-dart.svg?style=flat-square)
5-
![Version](https://img.shields.io/badge/api%20version-1.5.x-blue.svg?style=flat-square)
5+
![Version](https://img.shields.io/badge/api%20version-1.6.x-blue.svg?style=flat-square)
66
[![Build Status](https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square)](https://travis-ci.com/appwrite/sdk-generator)
77
[![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite)
88
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)
@@ -23,7 +23,7 @@ Add this to your package's `pubspec.yaml` file:
2323

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

docs/examples/account/delete-mfa-authenticator.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@ Account account = Account(client);
99

1010
await account.deleteMfaAuthenticator(
1111
type: AuthenticatorType.totp,
12-
otp: '<OTP>',
1312
);

docs/examples/functions/create.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ Func result = await functions.create(
2828
templateRepository: '<TEMPLATE_REPOSITORY>', // (optional)
2929
templateOwner: '<TEMPLATE_OWNER>', // (optional)
3030
templateRootDirectory: '<TEMPLATE_ROOT_DIRECTORY>', // (optional)
31-
templateBranch: '<TEMPLATE_BRANCH>', // (optional)
31+
templateVersion: '<TEMPLATE_VERSION>', // (optional)
3232
);

docs/examples/functions/download-deployment.md renamed to docs/examples/functions/get-deployment-download.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ import 'package:dart_appwrite/dart_appwrite.dart';
33
Client client = Client()
44
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
55
.setProject('&lt;YOUR_PROJECT_ID&gt;') // Your project ID
6-
.setKey('&lt;YOUR_API_KEY&gt;'); // Your secret API key
6+
.setSession(''); // The user session to authenticate with
77

88
Functions functions = Functions(client);
99

10-
UInt8List result = await functions.downloadDeployment(
10+
UInt8List result = await functions.getDeploymentDownload(
1111
functionId: '<FUNCTION_ID>',
1212
deploymentId: '<DEPLOYMENT_ID>',
1313
);
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import 'package:dart_appwrite/dart_appwrite.dart';
2+
3+
Client client = Client()
4+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5+
.setProject('&lt;YOUR_PROJECT_ID&gt;'); // Your project ID
6+
7+
Functions functions = Functions(client);
8+
9+
TemplateFunction result = await functions.getTemplate(
10+
templateId: '<TEMPLATE_ID>',
11+
);
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import 'package:dart_appwrite/dart_appwrite.dart';
2+
3+
Client client = Client()
4+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5+
.setProject('&lt;YOUR_PROJECT_ID&gt;'); // Your project ID
6+
7+
Functions functions = Functions(client);
8+
9+
TemplateFunctionList result = await functions.listTemplates(
10+
runtimes: [], // (optional)
11+
useCases: [], // (optional)
12+
limit: 1, // (optional)
13+
offset: 0, // (optional)
14+
);

lib/dart_appwrite.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// Appwrite Dart SDK
22
///
3-
/// This SDK is compatible with Appwrite server version 1.5.x.
3+
/// This SDK is compatible with Appwrite server version 1.6.x.
44
/// For older versions, please check
55
/// [previous releases](https://github.com/appwrite/sdk-for-dart/releases).
66
library dart_appwrite;

lib/models.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ part 'src/models/bucket_list.dart';
1515
part 'src/models/team_list.dart';
1616
part 'src/models/membership_list.dart';
1717
part 'src/models/function_list.dart';
18+
part 'src/models/template_function_list.dart';
1819
part 'src/models/runtime_list.dart';
1920
part 'src/models/deployment_list.dart';
2021
part 'src/models/execution_list.dart';
@@ -66,6 +67,9 @@ part 'src/models/bucket.dart';
6667
part 'src/models/team.dart';
6768
part 'src/models/membership.dart';
6869
part 'src/models/function.dart';
70+
part 'src/models/template_function.dart';
71+
part 'src/models/template_runtime.dart';
72+
part 'src/models/template_variable.dart';
6973
part 'src/models/runtime.dart';
7074
part 'src/models/deployment.dart';
7175
part 'src/models/execution.dart';

lib/services/account.dart

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ class Account extends Service {
207207

208208
}
209209

210-
/// Add Authenticator
210+
/// Create Authenticator
211211
///
212212
/// Add an authenticator app to be used as an MFA factor. Verify the
213213
/// authenticator using the [verify
@@ -260,13 +260,12 @@ class Account extends Service {
260260
/// Delete Authenticator
261261
///
262262
/// Delete an authenticator for a user by ID.
263-
Future deleteMfaAuthenticator({required enums.AuthenticatorType type, required String otp}) async {
263+
Future deleteMfaAuthenticator({required enums.AuthenticatorType type}) async {
264264
final String apiPath = '/account/mfa/authenticators/{type}'.replaceAll('{type}', type.value);
265265

266266
final Map<String, dynamic> apiParams = {
267267

268-
'otp': otp,
269-
268+
270269
};
271270

272271
final Map<String, String> apiHeaders = {
@@ -280,7 +279,7 @@ class Account extends Service {
280279

281280
}
282281

283-
/// Create 2FA Challenge
282+
/// Create MFA Challenge
284283
///
285284
/// Begin the process of MFA verification after sign-in. Finish the flow with
286285
/// [updateMfaChallenge](/docs/references/cloud/client-web/account#updateMfaChallenge)
@@ -1150,7 +1149,7 @@ class Account extends Service {
11501149

11511150
}
11521151

1153-
/// Create phone verification (confirmation)
1152+
/// Update phone verification (confirmation)
11541153
///
11551154
/// Use this endpoint to complete the user phone verification process. Use the
11561155
/// **userId** and **secret** that were sent to your user's phone number to

lib/services/avatars.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ class Avatars extends Service {
6767
/// Use this endpoint to fetch the favorite icon (AKA favicon) of any remote
6868
/// website URL.
6969
///
70+
/// This endpoint does not follow HTTP redirects.
7071
Future<Uint8List> getFavicon({required String url}) async {
7172
final String apiPath = '/avatars/favicon';
7273

@@ -123,6 +124,7 @@ class Avatars extends Service {
123124
/// image at source quality. If dimensions are not specified, the default size
124125
/// of image returned is 400x400px.
125126
///
127+
/// This endpoint does not follow HTTP redirects.
126128
Future<Uint8List> getImage({required String url, int? width, int? height}) async {
127129
final String apiPath = '/avatars/image';
128130

0 commit comments

Comments
 (0)