Skip to content

Commit c427226

Browse files
committed
chore: update Appwrite version
1 parent 82be322 commit c427226

File tree

3 files changed

+0
-67
lines changed

3 files changed

+0
-67
lines changed

docs/examples/functions/list-templates.md

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

src/models.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -171,19 +171,6 @@ export namespace Models {
171171
*/
172172
functions: Function[];
173173
}
174-
/**
175-
* Function Templates List
176-
*/
177-
export type TemplateFunctionList = {
178-
/**
179-
* Total number of templates documents that matched your query.
180-
*/
181-
total: number;
182-
/**
183-
* List of templates.
184-
*/
185-
templates: TemplateFunction[];
186-
}
187174
/**
188175
* Runtimes List
189176
*/

src/services/functions.ts

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -212,46 +212,6 @@ export class Functions {
212212
payload,
213213
);
214214
}
215-
/**
216-
* List function templates
217-
*
218-
* List available function templates. You can use template details in [createFunction](/docs/references/cloud/server-nodejs/functions#create) method.
219-
*
220-
* @param {string[]} runtimes
221-
* @param {string[]} useCases
222-
* @param {number} limit
223-
* @param {number} offset
224-
* @throws {AppwriteException}
225-
* @returns {Promise<Models.TemplateFunctionList>}
226-
*/
227-
async listTemplates(runtimes?: string[], useCases?: string[], limit?: number, offset?: number): Promise<Models.TemplateFunctionList> {
228-
const apiPath = '/functions/templates';
229-
const payload: Payload = {};
230-
if (typeof runtimes !== 'undefined') {
231-
payload['runtimes'] = runtimes;
232-
}
233-
if (typeof useCases !== 'undefined') {
234-
payload['useCases'] = useCases;
235-
}
236-
if (typeof limit !== 'undefined') {
237-
payload['limit'] = limit;
238-
}
239-
if (typeof offset !== 'undefined') {
240-
payload['offset'] = offset;
241-
}
242-
const uri = new URL(this.client.config.endpoint + apiPath);
243-
244-
const apiHeaders: { [header: string]: string } = {
245-
'content-type': 'application/json',
246-
}
247-
248-
return await this.client.call(
249-
'get',
250-
uri,
251-
apiHeaders,
252-
payload,
253-
);
254-
}
255215
/**
256216
* Get function template
257217
*

0 commit comments

Comments
 (0)