@@ -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