You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/services/functions.ts
+42-19Lines changed: 42 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -14,15 +14,21 @@ export class Functions {
14
14
/**
15
15
* Get a list of all the current user function execution logs. You can use the query params to filter your results.
16
16
*
17
-
* @param {string} functionId - Function ID.
18
-
* @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: trigger, status, responseStatusCode, duration, requestMethod, requestPath, deploymentId
17
+
* @param {string} params.functionId - Function ID.
18
+
* @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: trigger, status, responseStatusCode, duration, requestMethod, requestPath, deploymentId
* @deprecated Parameter-based methods will be removed in the upcoming version.
25
-
* Please use the object based method instead for better developer experience.
24
+
* Get a list of all the current user function execution logs. You can use the query params to filter your results.
25
+
*
26
+
* @param {string} functionId - Function ID.
27
+
* @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: trigger, status, responseStatusCode, duration, requestMethod, requestPath, deploymentId
28
+
* @throws {AppwriteException}
29
+
* @returns {Promise<Models.ExecutionList>}
30
+
* @deprecated Flat parameter style methods will be removed in a future version.
31
+
* Please use the object parameter style method instead for a better developer experience.
* Trigger a function execution. The returned object will return you the current execution status. You can ping the `Get Execution` endpoint to get updates on the current execution status. Once this endpoint is called, your function execution process will start asynchronously.
83
+
*
84
+
* @param {string} params.functionId - Function ID.
85
+
* @param {string} params.body - HTTP body of execution. Default value is empty string.
86
+
* @param {boolean} params.async - Execute code in the background. Default value is false.
87
+
* @param {string} params.xpath - HTTP path of execution. Path can include query params. Default value is /
88
+
* @param {ExecutionMethod} params.method - HTTP method of execution. Default value is GET.
89
+
* @param {object} params.headers - HTTP headers of execution. Defaults to empty.
90
+
* @param {string} params.scheduledAt - Scheduled execution time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.
* Trigger a function execution. The returned object will return you the current execution status. You can ping the `Get Execution` endpoint to get updates on the current execution status. Once this endpoint is called, your function execution process will start asynchronously.
77
97
*
@@ -84,11 +104,8 @@ export class Functions {
84
104
* @param {string} scheduledAt - Scheduled execution time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.
0 commit comments