Skip to content

Commit c919c1f

Browse files
committed
fix issues with functions models
1 parent 7df53e8 commit c919c1f

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
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: ^3.0.1
26+
dart_appwrite: ^3.0.2
2727
```
2828
2929
You can install packages from the command line:

lib/services/functions.dart

+4-4
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class Functions extends Service {
3434
/// [permissions](/docs/permissions) to allow different project users or team
3535
/// with access to execute the function using the client API.
3636
///
37-
Future<models.XFunction> create({required String functionId, required String name, required List execute, required String runtime, Map? vars, List? events, String? schedule, int? timeout}) async {
37+
Future<models.Func> create({required String functionId, required String name, required List execute, required String runtime, Map? vars, List? events, String? schedule, int? timeout}) async {
3838
final String path = '/functions';
3939

4040
final Map<String, dynamic> params = {
@@ -78,7 +78,7 @@ class Functions extends Service {
7878
///
7979
/// Get a function by its unique ID.
8080
///
81-
Future<models.XFunction> get({required String functionId}) async {
81+
Future<models.Func> get({required String functionId}) async {
8282
final String path = '/functions/{functionId}'.replaceAll('{functionId}', functionId);
8383

8484
final Map<String, dynamic> params = {
@@ -96,7 +96,7 @@ class Functions extends Service {
9696
///
9797
/// Update function by its unique ID.
9898
///
99-
Future<models.XFunction> update({required String functionId, required String name, required List execute, Map? vars, List? events, String? schedule, int? timeout}) async {
99+
Future<models.Func> update({required String functionId, required String name, required List execute, Map? vars, List? events, String? schedule, int? timeout}) async {
100100
final String path = '/functions/{functionId}'.replaceAll('{functionId}', functionId);
101101

102102
final Map<String, dynamic> params = {
@@ -206,7 +206,7 @@ class Functions extends Service {
206206
/// endpoint to switch the code tag that should be executed by the execution
207207
/// endpoint.
208208
///
209-
Future<models.XFunction> updateTag({required String functionId, required String tag}) async {
209+
Future<models.Func> updateTag({required String functionId, required String tag}) async {
210210
final String path = '/functions/{functionId}/tag'.replaceAll('{functionId}', functionId);
211211

212212
final Map<String, dynamic> params = {

lib/src/client_browser.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class ClientBrowser extends ClientBase with ClientMixin {
2525
_httpClient = BrowserClient();
2626
_headers = {
2727
'content-type': 'application/json',
28-
'x-sdk-version': 'appwrite:dart:3.0.1',
28+
'x-sdk-version': 'appwrite:dart:3.0.2',
2929
'X-Appwrite-Response-Format' : '0.12.0',
3030
};
3131

lib/src/client_io.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class ClientIO extends ClientBase with ClientMixin {
3535
this._endPoint = endPoint;
3636
this._headers = {
3737
'content-type': 'application/json',
38-
'x-sdk-version': 'appwrite:dart:3.0.1',
38+
'x-sdk-version': 'appwrite:dart:3.0.2',
3939
'X-Appwrite-Response-Format' : '0.12.0',
4040
};
4141

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: dart_appwrite
2-
version: 3.0.1
2+
version: 3.0.2
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)