Skip to content

Commit 57c82e7

Browse files
committed
chore: update Appwrite version
1 parent 7ca3e9d commit 57c82e7

File tree

3 files changed

+0
-69
lines changed

3 files changed

+0
-69
lines changed

docs/examples/functions/list-templates.md

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

src/models.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -90,19 +90,6 @@ export namespace Models {
9090
*/
9191
memberships: Membership[];
9292
}
93-
/**
94-
* Function Templates List
95-
*/
96-
export type TemplateFunctionList = {
97-
/**
98-
* Total number of templates documents that matched your query.
99-
*/
100-
total: number;
101-
/**
102-
* List of templates.
103-
*/
104-
templates: TemplateFunction[];
105-
}
10693
/**
10794
* Executions List
10895
*/

src/services/functions.ts

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -14,46 +14,6 @@ export class Functions extends Service {
1414
super(client);
1515
}
1616

17-
/**
18-
* List function templates
19-
*
20-
* List available function templates. You can use template details in
21-
* [createFunction](/docs/references/cloud/server-nodejs/functions#create)
22-
* method.
23-
*
24-
* @param {string[]} runtimes
25-
* @param {string[]} useCases
26-
* @param {number} limit
27-
* @param {number} offset
28-
* @throws {AppwriteException}
29-
* @returns {Promise}
30-
*/
31-
async listTemplates(runtimes?: string[], useCases?: string[], limit?: number, offset?: number): Promise<Models.TemplateFunctionList> {
32-
const apiPath = '/functions/templates';
33-
const payload: Payload = {};
34-
35-
if (typeof runtimes !== 'undefined') {
36-
payload['runtimes'] = runtimes;
37-
}
38-
39-
if (typeof useCases !== 'undefined') {
40-
payload['useCases'] = useCases;
41-
}
42-
43-
if (typeof limit !== 'undefined') {
44-
payload['limit'] = limit;
45-
}
46-
47-
if (typeof offset !== 'undefined') {
48-
payload['offset'] = offset;
49-
}
50-
51-
const uri = new URL(this.client.config.endpoint + apiPath);
52-
return await this.client.call('get', uri, {
53-
'content-type': 'application/json',
54-
}, payload);
55-
}
56-
5717
/**
5818
* Get function template
5919
*

0 commit comments

Comments
 (0)