Skip to content

Commit f9b4991

Browse files
committed
chore: update Appwrite version
1 parent 25d1bd0 commit f9b4991

File tree

3 files changed

+0
-96
lines changed

3 files changed

+0
-96
lines changed

Sources/Appwrite/Services/Functions.swift

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -211,52 +211,6 @@ open class Functions: Service {
211211
)
212212
}
213213

214-
///
215-
/// List function templates
216-
///
217-
/// List available function templates. You can use template details in
218-
/// [createFunction](/docs/references/cloud/server-nodejs/functions#create)
219-
/// method.
220-
///
221-
/// @param [String] runtimes
222-
/// @param [String] useCases
223-
/// @param Int limit
224-
/// @param Int offset
225-
/// @throws Exception
226-
/// @return array
227-
///
228-
open func listTemplates(
229-
runtimes: [String]? = nil,
230-
useCases: [String]? = nil,
231-
limit: Int? = nil,
232-
offset: Int? = nil
233-
) async throws -> AppwriteModels.TemplateFunctionList {
234-
let apiPath: String = "/functions/templates"
235-
236-
let apiParams: [String: Any?] = [
237-
"runtimes": runtimes,
238-
"useCases": useCases,
239-
"limit": limit,
240-
"offset": offset
241-
]
242-
243-
let apiHeaders: [String: String] = [
244-
"content-type": "application/json"
245-
]
246-
247-
let converter: (Any) -> AppwriteModels.TemplateFunctionList = { response in
248-
return AppwriteModels.TemplateFunctionList.from(map: response as! [String: Any])
249-
}
250-
251-
return try await client.call(
252-
method: "GET",
253-
path: apiPath,
254-
headers: apiHeaders,
255-
params: apiParams,
256-
converter: converter
257-
)
258-
}
259-
260214
///
261215
/// Get function template
262216
///

Sources/AppwriteModels/TemplateFunctionList.swift

Lines changed: 0 additions & 35 deletions
This file was deleted.

docs/examples/functions/list-templates.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)