File tree 7 files changed +9
-11
lines changed
7 files changed +9
-11
lines changed Original file line number Diff line number Diff line change 2
2
3
3
![ Swift Package Manager] ( https://img.shields.io/github/v/release/appwrite/sdk-for-swift.svg?color=green&style=flat-square )
4
4
![ License] ( https://img.shields.io/github/license/appwrite/sdk-for-swift.svg?style=flat-square )
5
- ![ Version] ( https://img.shields.io/badge/api%20version-1.4.1 -blue.svg?style=flat-square )
5
+ ![ Version] ( https://img.shields.io/badge/api%20version-1.4.2 -blue.svg?style=flat-square )
6
6
[ ![ Build Status] ( https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square )] ( https://travis-ci.com/appwrite/sdk-generator )
7
7
[ ![ Twitter Account] ( https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square )] ( https://twitter.com/appwrite )
8
8
[ ![ Discord] ( https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square )] ( https://appwrite.io/discord )
@@ -33,7 +33,7 @@ Add the package to your `Package.swift` dependencies:
33
33
34
34
``` swift
35
35
dependencies: [
36
- .
package (
url :
" [email protected] :appwrite/sdk-for-swift.git" ,
from :
" 3 .0.1 " ),
36
+ .
package (
url :
" [email protected] :appwrite/sdk-for-swift.git" ,
from :
" 4 .0.0 " ),
37
37
],
38
38
```
39
39
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ open class Client {
23
23
" x-sdk-name " : " Swift " ,
24
24
" x-sdk-platform " : " server " ,
25
25
" x-sdk-language " : " swift " ,
26
- " x-sdk-version " : " 3 .0.1 " ,
26
+ " x-sdk-version " : " 4 .0.0 " ,
27
27
" X-Appwrite-Response-Format " : " 1.4.0 "
28
28
]
29
29
Original file line number Diff line number Diff line change @@ -232,7 +232,7 @@ open class Functions: Service {
232
232
open func update(
233
233
functionId: String ,
234
234
name: String ,
235
- runtime: String ,
235
+ runtime: String ? = nil ,
236
236
execute: [ String ] ? = nil ,
237
237
events: [ String ] ? = nil ,
238
238
schedule: String ? = nil ,
Original file line number Diff line number Diff line change @@ -350,21 +350,21 @@ open class Teams: Service {
350
350
///
351
351
/// @param String teamId
352
352
/// @param [String] roles
353
- /// @param String url
354
353
/// @param String email
355
354
/// @param String userId
356
355
/// @param String phone
356
+ /// @param String url
357
357
/// @param String name
358
358
/// @throws Exception
359
359
/// @return array
360
360
///
361
361
open func createMembership(
362
362
teamId: String ,
363
363
roles: [ String ] ,
364
- url: String ,
365
364
email: String ? = nil ,
366
365
userId: String ? = nil ,
367
366
phone: String ? = nil ,
367
+ url: String ? = nil ,
368
368
name: String ? = nil
369
369
) async throws -> AppwriteModels . Membership {
370
370
let apiPath : String = " /teams/{teamId}/memberships "
Original file line number Diff line number Diff line change @@ -10,6 +10,6 @@ let functions = Functions(client)
10
10
let function = try await functions.create(
11
11
functionId: "[ FUNCTION_ID] ",
12
12
name: "[ NAME] ",
13
- runtime: "node-14.5 "
13
+ runtime: "node-18.0 "
14
14
)
15
15
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ let functions = Functions(client)
9
9
10
10
let function = try await functions.update(
11
11
functionId: "[ FUNCTION_ID] ",
12
- name: "[ NAME] ",
13
- runtime: "node-14.5"
12
+ name: "[ NAME] "
14
13
)
15
14
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ let teams = Teams(client)
9
9
10
10
let membership = try await teams.createMembership(
11
11
teamId: "[ TEAM_ID] ",
12
- roles: [ ] ,
13
- url: "https://example.com "
12
+ roles: [ ]
14
13
)
15
14
You can’t perform that action at this time.
0 commit comments