node-appwrite 15.0.0-rc1 → 15.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +1 -1
- package/dist/client.d.mts +8 -7
- package/dist/client.d.ts +8 -7
- package/dist/client.js +17 -75
- package/dist/client.js.map +1 -1
- package/dist/client.mjs +17 -55
- package/dist/client.mjs.map +1 -1
- package/dist/enums/image-format.d.mts +3 -1
- package/dist/enums/image-format.d.ts +3 -1
- package/dist/enums/image-format.js +2 -0
- package/dist/enums/image-format.js.map +1 -1
- package/dist/enums/image-format.mjs +2 -0
- package/dist/enums/image-format.mjs.map +1 -1
- package/dist/enums/message-priority.d.mts +6 -0
- package/dist/enums/message-priority.d.ts +6 -0
- package/dist/enums/message-priority.js +11 -0
- package/dist/enums/message-priority.js.map +1 -0
- package/dist/enums/message-priority.mjs +10 -0
- package/dist/enums/message-priority.mjs.map +1 -0
- package/dist/enums/runtime.d.mts +12 -2
- package/dist/enums/runtime.d.ts +12 -2
- package/dist/enums/runtime.js +11 -1
- package/dist/enums/runtime.js.map +1 -1
- package/dist/enums/runtime.mjs +11 -1
- package/dist/enums/runtime.mjs.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/inputFile.d.mts +9 -0
- package/dist/inputFile.d.ts +9 -0
- package/dist/inputFile.js +23 -0
- package/dist/inputFile.js.map +1 -0
- package/dist/inputFile.mjs +22 -0
- package/dist/inputFile.mjs.map +1 -0
- package/dist/models.d.mts +98 -6
- package/dist/models.d.ts +98 -6
- package/dist/services/account.d.mts +3 -89
- package/dist/services/account.d.ts +3 -89
- package/dist/services/account.js +88 -174
- package/dist/services/account.js.map +1 -1
- package/dist/services/account.mjs +88 -174
- package/dist/services/account.mjs.map +1 -1
- package/dist/services/avatars.d.mts +0 -14
- package/dist/services/avatars.d.ts +0 -14
- package/dist/services/avatars.js +14 -28
- package/dist/services/avatars.js.map +1 -1
- package/dist/services/avatars.mjs +14 -28
- package/dist/services/avatars.mjs.map +1 -1
- package/dist/services/databases.d.mts +0 -84
- package/dist/services/databases.d.ts +0 -84
- package/dist/services/databases.js +84 -168
- package/dist/services/databases.js.map +1 -1
- package/dist/services/databases.mjs +84 -168
- package/dist/services/databases.mjs.map +1 -1
- package/dist/services/functions.d.mts +6 -53
- package/dist/services/functions.d.ts +6 -53
- package/dist/services/functions.js +54 -101
- package/dist/services/functions.js.map +1 -1
- package/dist/services/functions.mjs +54 -101
- package/dist/services/functions.mjs.map +1 -1
- package/dist/services/graphql.d.mts +0 -4
- package/dist/services/graphql.d.ts +0 -4
- package/dist/services/graphql.js +4 -8
- package/dist/services/graphql.js.map +1 -1
- package/dist/services/graphql.mjs +4 -8
- package/dist/services/graphql.mjs.map +1 -1
- package/dist/services/health.d.mts +0 -46
- package/dist/services/health.d.ts +0 -46
- package/dist/services/health.js +46 -92
- package/dist/services/health.js.map +1 -1
- package/dist/services/health.mjs +46 -92
- package/dist/services/health.mjs.map +1 -1
- package/dist/services/locale.d.mts +0 -16
- package/dist/services/locale.d.ts +0 -16
- package/dist/services/locale.js +16 -32
- package/dist/services/locale.js.map +1 -1
- package/dist/services/locale.mjs +16 -32
- package/dist/services/locale.mjs.map +1 -1
- package/dist/services/messaging.d.mts +13 -98
- package/dist/services/messaging.d.ts +13 -98
- package/dist/services/messaging.js +120 -194
- package/dist/services/messaging.js.map +1 -1
- package/dist/services/messaging.mjs +120 -194
- package/dist/services/messaging.mjs.map +1 -1
- package/dist/services/storage.d.mts +2 -29
- package/dist/services/storage.d.ts +2 -29
- package/dist/services/storage.js +27 -53
- package/dist/services/storage.js.map +1 -1
- package/dist/services/storage.mjs +27 -53
- package/dist/services/storage.mjs.map +1 -1
- package/dist/services/teams.d.mts +2 -28
- package/dist/services/teams.d.ts +2 -28
- package/dist/services/teams.js +28 -54
- package/dist/services/teams.js.map +1 -1
- package/dist/services/teams.mjs +28 -54
- package/dist/services/teams.mjs.map +1 -1
- package/dist/services/users.d.mts +2 -86
- package/dist/services/users.d.ts +2 -86
- package/dist/services/users.js +85 -169
- package/dist/services/users.js.map +1 -1
- package/dist/services/users.mjs +85 -169
- package/dist/services/users.mjs.map +1 -1
- package/package.json +12 -3
- package/dist/payload.d.mts +0 -14
- package/dist/payload.d.ts +0 -14
- package/dist/payload.js +0 -39
- package/dist/payload.js.map +0 -1
- package/dist/payload.mjs +0 -38
- package/dist/payload.mjs.map +0 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Client, UploadProgress } from '../client.mjs';
|
|
2
|
-
import { Payload } from '../payload.mjs';
|
|
3
2
|
import { Models } from '../models.mjs';
|
|
4
3
|
import { Runtime } from '../enums/runtime.mjs';
|
|
5
4
|
import { ExecutionMethod } from '../enums/execution-method.mjs';
|
|
@@ -9,8 +8,6 @@ declare class Functions {
|
|
|
9
8
|
client: Client;
|
|
10
9
|
constructor(client: Client);
|
|
11
10
|
/**
|
|
12
|
-
* List functions
|
|
13
|
-
*
|
|
14
11
|
* Get a list of all the project's functions. You can use the query params to filter your results.
|
|
15
12
|
*
|
|
16
13
|
* @param {string[]} queries
|
|
@@ -20,8 +17,6 @@ declare class Functions {
|
|
|
20
17
|
*/
|
|
21
18
|
list(queries?: string[], search?: string): Promise<Models.FunctionList>;
|
|
22
19
|
/**
|
|
23
|
-
* Create function
|
|
24
|
-
*
|
|
25
20
|
* Create a new function. You can pass a list of [permissions](https://appwrite.io/docs/permissions) to allow different project users or team with access to execute the function using the client API.
|
|
26
21
|
*
|
|
27
22
|
* @param {string} functionId
|
|
@@ -51,8 +46,6 @@ declare class Functions {
|
|
|
51
46
|
*/
|
|
52
47
|
create(functionId: string, name: string, runtime: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: string[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, templateRepository?: string, templateOwner?: string, templateRootDirectory?: string, templateVersion?: string, specification?: string): Promise<Models.Function>;
|
|
53
48
|
/**
|
|
54
|
-
* List runtimes
|
|
55
|
-
*
|
|
56
49
|
* Get a list of all runtimes that are currently active on your instance.
|
|
57
50
|
*
|
|
58
51
|
* @throws {AppwriteException}
|
|
@@ -60,8 +53,6 @@ declare class Functions {
|
|
|
60
53
|
*/
|
|
61
54
|
listRuntimes(): Promise<Models.RuntimeList>;
|
|
62
55
|
/**
|
|
63
|
-
* List available function runtime specifications
|
|
64
|
-
*
|
|
65
56
|
* List allowed function specifications for this instance.
|
|
66
57
|
|
|
67
58
|
*
|
|
@@ -70,8 +61,6 @@ declare class Functions {
|
|
|
70
61
|
*/
|
|
71
62
|
listSpecifications(): Promise<Models.SpecificationList>;
|
|
72
63
|
/**
|
|
73
|
-
* Get function
|
|
74
|
-
*
|
|
75
64
|
* Get a function by its unique ID.
|
|
76
65
|
*
|
|
77
66
|
* @param {string} functionId
|
|
@@ -80,8 +69,6 @@ declare class Functions {
|
|
|
80
69
|
*/
|
|
81
70
|
get(functionId: string): Promise<Models.Function>;
|
|
82
71
|
/**
|
|
83
|
-
* Update function
|
|
84
|
-
*
|
|
85
72
|
* Update function by its unique ID.
|
|
86
73
|
*
|
|
87
74
|
* @param {string} functionId
|
|
@@ -107,8 +94,6 @@ declare class Functions {
|
|
|
107
94
|
*/
|
|
108
95
|
update(functionId: string, name: string, runtime?: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: string[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, specification?: string): Promise<Models.Function>;
|
|
109
96
|
/**
|
|
110
|
-
* Delete function
|
|
111
|
-
*
|
|
112
97
|
* Delete a function by its unique ID.
|
|
113
98
|
*
|
|
114
99
|
* @param {string} functionId
|
|
@@ -117,8 +102,6 @@ declare class Functions {
|
|
|
117
102
|
*/
|
|
118
103
|
delete(functionId: string): Promise<{}>;
|
|
119
104
|
/**
|
|
120
|
-
* List deployments
|
|
121
|
-
*
|
|
122
105
|
* Get a list of all the project's code deployments. You can use the query params to filter your results.
|
|
123
106
|
*
|
|
124
107
|
* @param {string} functionId
|
|
@@ -129,8 +112,6 @@ declare class Functions {
|
|
|
129
112
|
*/
|
|
130
113
|
listDeployments(functionId: string, queries?: string[], search?: string): Promise<Models.DeploymentList>;
|
|
131
114
|
/**
|
|
132
|
-
* Create deployment
|
|
133
|
-
*
|
|
134
115
|
* Create a new function code deployment. Use this endpoint to upload a new version of your code function. To execute your newly uploaded code, you'll need to update the function's deployment to use your new deployment UID.
|
|
135
116
|
|
|
136
117
|
This endpoint accepts a tar.gz file compressed with your code. Make sure to include any dependencies your code has within the compressed file. You can learn more about code packaging in the [Appwrite Cloud Functions tutorial](https://appwrite.io/docs/functions).
|
|
@@ -138,17 +119,15 @@ This endpoint accepts a tar.gz file compressed with your code. Make sure to incl
|
|
|
138
119
|
Use the "command" param to set the entrypoint used to execute your code.
|
|
139
120
|
*
|
|
140
121
|
* @param {string} functionId
|
|
141
|
-
* @param {
|
|
122
|
+
* @param {File} code
|
|
142
123
|
* @param {boolean} activate
|
|
143
124
|
* @param {string} entrypoint
|
|
144
125
|
* @param {string} commands
|
|
145
126
|
* @throws {AppwriteException}
|
|
146
127
|
* @returns {Promise<Models.Deployment>}
|
|
147
128
|
*/
|
|
148
|
-
createDeployment(functionId: string, code:
|
|
129
|
+
createDeployment(functionId: string, code: File, activate: boolean, entrypoint?: string, commands?: string, onProgress?: (progress: UploadProgress) => void): Promise<Models.Deployment>;
|
|
149
130
|
/**
|
|
150
|
-
* Get deployment
|
|
151
|
-
*
|
|
152
131
|
* Get a code deployment by its unique ID.
|
|
153
132
|
*
|
|
154
133
|
* @param {string} functionId
|
|
@@ -158,8 +137,6 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
158
137
|
*/
|
|
159
138
|
getDeployment(functionId: string, deploymentId: string): Promise<Models.Deployment>;
|
|
160
139
|
/**
|
|
161
|
-
* Update deployment
|
|
162
|
-
*
|
|
163
140
|
* Update the function code deployment ID using the unique function ID. Use this endpoint to switch the code deployment that should be executed by the execution endpoint.
|
|
164
141
|
*
|
|
165
142
|
* @param {string} functionId
|
|
@@ -169,8 +146,6 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
169
146
|
*/
|
|
170
147
|
updateDeployment(functionId: string, deploymentId: string): Promise<Models.Function>;
|
|
171
148
|
/**
|
|
172
|
-
* Delete deployment
|
|
173
|
-
*
|
|
174
149
|
* Delete a code deployment by its unique ID.
|
|
175
150
|
*
|
|
176
151
|
* @param {string} functionId
|
|
@@ -180,8 +155,7 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
180
155
|
*/
|
|
181
156
|
deleteDeployment(functionId: string, deploymentId: string): Promise<{}>;
|
|
182
157
|
/**
|
|
183
|
-
*
|
|
184
|
-
*
|
|
158
|
+
* Create a new build for an existing function deployment. This endpoint allows you to rebuild a deployment with the updated function configuration, including its entrypoint and build commands if they have been modified The build process will be queued and executed asynchronously. The original deployment's code will be preserved and used for the new build.
|
|
185
159
|
*
|
|
186
160
|
* @param {string} functionId
|
|
187
161
|
* @param {string} deploymentId
|
|
@@ -191,8 +165,7 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
191
165
|
*/
|
|
192
166
|
createBuild(functionId: string, deploymentId: string, buildId?: string): Promise<{}>;
|
|
193
167
|
/**
|
|
194
|
-
* Cancel deployment
|
|
195
|
-
*
|
|
168
|
+
* Cancel an ongoing function deployment build. If the build is already in progress, it will be stopped and marked as canceled. If the build hasn't started yet, it will be marked as canceled without executing. You cannot cancel builds that have already completed (status 'ready') or failed. The response includes the final build status and details.
|
|
196
169
|
*
|
|
197
170
|
* @param {string} functionId
|
|
198
171
|
* @param {string} deploymentId
|
|
@@ -201,8 +174,6 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
201
174
|
*/
|
|
202
175
|
updateDeploymentBuild(functionId: string, deploymentId: string): Promise<Models.Build>;
|
|
203
176
|
/**
|
|
204
|
-
* Download deployment
|
|
205
|
-
*
|
|
206
177
|
* Get a Deployment's contents by its unique ID. This endpoint supports range requests for partial or streaming file download.
|
|
207
178
|
*
|
|
208
179
|
* @param {string} functionId
|
|
@@ -212,8 +183,6 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
212
183
|
*/
|
|
213
184
|
getDeploymentDownload(functionId: string, deploymentId: string): Promise<ArrayBuffer>;
|
|
214
185
|
/**
|
|
215
|
-
* List executions
|
|
216
|
-
*
|
|
217
186
|
* Get a list of all the current user function execution logs. You can use the query params to filter your results.
|
|
218
187
|
*
|
|
219
188
|
* @param {string} functionId
|
|
@@ -224,12 +193,10 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
224
193
|
*/
|
|
225
194
|
listExecutions(functionId: string, queries?: string[], search?: string): Promise<Models.ExecutionList>;
|
|
226
195
|
/**
|
|
227
|
-
* Create execution
|
|
228
|
-
*
|
|
229
196
|
* 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.
|
|
230
197
|
*
|
|
231
198
|
* @param {string} functionId
|
|
232
|
-
* @param {
|
|
199
|
+
* @param {string} body
|
|
233
200
|
* @param {boolean} async
|
|
234
201
|
* @param {string} xpath
|
|
235
202
|
* @param {ExecutionMethod} method
|
|
@@ -238,10 +205,8 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
238
205
|
* @throws {AppwriteException}
|
|
239
206
|
* @returns {Promise<Models.Execution>}
|
|
240
207
|
*/
|
|
241
|
-
createExecution(functionId: string, body?:
|
|
208
|
+
createExecution(functionId: string, body?: string, async?: boolean, xpath?: string, method?: ExecutionMethod, headers?: object, scheduledAt?: string): Promise<Models.Execution>;
|
|
242
209
|
/**
|
|
243
|
-
* Get execution
|
|
244
|
-
*
|
|
245
210
|
* Get a function execution log by its unique ID.
|
|
246
211
|
*
|
|
247
212
|
* @param {string} functionId
|
|
@@ -251,8 +216,6 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
251
216
|
*/
|
|
252
217
|
getExecution(functionId: string, executionId: string): Promise<Models.Execution>;
|
|
253
218
|
/**
|
|
254
|
-
* Delete execution
|
|
255
|
-
*
|
|
256
219
|
* Delete a function execution by its unique ID.
|
|
257
220
|
|
|
258
221
|
*
|
|
@@ -263,8 +226,6 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
263
226
|
*/
|
|
264
227
|
deleteExecution(functionId: string, executionId: string): Promise<{}>;
|
|
265
228
|
/**
|
|
266
|
-
* List variables
|
|
267
|
-
*
|
|
268
229
|
* Get a list of all variables of a specific function.
|
|
269
230
|
*
|
|
270
231
|
* @param {string} functionId
|
|
@@ -273,8 +234,6 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
273
234
|
*/
|
|
274
235
|
listVariables(functionId: string): Promise<Models.VariableList>;
|
|
275
236
|
/**
|
|
276
|
-
* Create variable
|
|
277
|
-
*
|
|
278
237
|
* Create a new function environment variable. These variables can be accessed in the function at runtime as environment variables.
|
|
279
238
|
*
|
|
280
239
|
* @param {string} functionId
|
|
@@ -285,8 +244,6 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
285
244
|
*/
|
|
286
245
|
createVariable(functionId: string, key: string, value: string): Promise<Models.Variable>;
|
|
287
246
|
/**
|
|
288
|
-
* Get variable
|
|
289
|
-
*
|
|
290
247
|
* Get a variable by its unique ID.
|
|
291
248
|
*
|
|
292
249
|
* @param {string} functionId
|
|
@@ -296,8 +253,6 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
296
253
|
*/
|
|
297
254
|
getVariable(functionId: string, variableId: string): Promise<Models.Variable>;
|
|
298
255
|
/**
|
|
299
|
-
* Update variable
|
|
300
|
-
*
|
|
301
256
|
* Update variable by its unique ID.
|
|
302
257
|
*
|
|
303
258
|
* @param {string} functionId
|
|
@@ -309,8 +264,6 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
309
264
|
*/
|
|
310
265
|
updateVariable(functionId: string, variableId: string, key: string, value?: string): Promise<Models.Variable>;
|
|
311
266
|
/**
|
|
312
|
-
* Delete variable
|
|
313
|
-
*
|
|
314
267
|
* Delete a variable by its unique ID.
|
|
315
268
|
*
|
|
316
269
|
* @param {string} functionId
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Client, UploadProgress } from '../client.js';
|
|
2
|
-
import { Payload } from '../payload.js';
|
|
3
2
|
import { Models } from '../models.js';
|
|
4
3
|
import { Runtime } from '../enums/runtime.js';
|
|
5
4
|
import { ExecutionMethod } from '../enums/execution-method.js';
|
|
@@ -9,8 +8,6 @@ declare class Functions {
|
|
|
9
8
|
client: Client;
|
|
10
9
|
constructor(client: Client);
|
|
11
10
|
/**
|
|
12
|
-
* List functions
|
|
13
|
-
*
|
|
14
11
|
* Get a list of all the project's functions. You can use the query params to filter your results.
|
|
15
12
|
*
|
|
16
13
|
* @param {string[]} queries
|
|
@@ -20,8 +17,6 @@ declare class Functions {
|
|
|
20
17
|
*/
|
|
21
18
|
list(queries?: string[], search?: string): Promise<Models.FunctionList>;
|
|
22
19
|
/**
|
|
23
|
-
* Create function
|
|
24
|
-
*
|
|
25
20
|
* Create a new function. You can pass a list of [permissions](https://appwrite.io/docs/permissions) to allow different project users or team with access to execute the function using the client API.
|
|
26
21
|
*
|
|
27
22
|
* @param {string} functionId
|
|
@@ -51,8 +46,6 @@ declare class Functions {
|
|
|
51
46
|
*/
|
|
52
47
|
create(functionId: string, name: string, runtime: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: string[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, templateRepository?: string, templateOwner?: string, templateRootDirectory?: string, templateVersion?: string, specification?: string): Promise<Models.Function>;
|
|
53
48
|
/**
|
|
54
|
-
* List runtimes
|
|
55
|
-
*
|
|
56
49
|
* Get a list of all runtimes that are currently active on your instance.
|
|
57
50
|
*
|
|
58
51
|
* @throws {AppwriteException}
|
|
@@ -60,8 +53,6 @@ declare class Functions {
|
|
|
60
53
|
*/
|
|
61
54
|
listRuntimes(): Promise<Models.RuntimeList>;
|
|
62
55
|
/**
|
|
63
|
-
* List available function runtime specifications
|
|
64
|
-
*
|
|
65
56
|
* List allowed function specifications for this instance.
|
|
66
57
|
|
|
67
58
|
*
|
|
@@ -70,8 +61,6 @@ declare class Functions {
|
|
|
70
61
|
*/
|
|
71
62
|
listSpecifications(): Promise<Models.SpecificationList>;
|
|
72
63
|
/**
|
|
73
|
-
* Get function
|
|
74
|
-
*
|
|
75
64
|
* Get a function by its unique ID.
|
|
76
65
|
*
|
|
77
66
|
* @param {string} functionId
|
|
@@ -80,8 +69,6 @@ declare class Functions {
|
|
|
80
69
|
*/
|
|
81
70
|
get(functionId: string): Promise<Models.Function>;
|
|
82
71
|
/**
|
|
83
|
-
* Update function
|
|
84
|
-
*
|
|
85
72
|
* Update function by its unique ID.
|
|
86
73
|
*
|
|
87
74
|
* @param {string} functionId
|
|
@@ -107,8 +94,6 @@ declare class Functions {
|
|
|
107
94
|
*/
|
|
108
95
|
update(functionId: string, name: string, runtime?: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: string[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, specification?: string): Promise<Models.Function>;
|
|
109
96
|
/**
|
|
110
|
-
* Delete function
|
|
111
|
-
*
|
|
112
97
|
* Delete a function by its unique ID.
|
|
113
98
|
*
|
|
114
99
|
* @param {string} functionId
|
|
@@ -117,8 +102,6 @@ declare class Functions {
|
|
|
117
102
|
*/
|
|
118
103
|
delete(functionId: string): Promise<{}>;
|
|
119
104
|
/**
|
|
120
|
-
* List deployments
|
|
121
|
-
*
|
|
122
105
|
* Get a list of all the project's code deployments. You can use the query params to filter your results.
|
|
123
106
|
*
|
|
124
107
|
* @param {string} functionId
|
|
@@ -129,8 +112,6 @@ declare class Functions {
|
|
|
129
112
|
*/
|
|
130
113
|
listDeployments(functionId: string, queries?: string[], search?: string): Promise<Models.DeploymentList>;
|
|
131
114
|
/**
|
|
132
|
-
* Create deployment
|
|
133
|
-
*
|
|
134
115
|
* Create a new function code deployment. Use this endpoint to upload a new version of your code function. To execute your newly uploaded code, you'll need to update the function's deployment to use your new deployment UID.
|
|
135
116
|
|
|
136
117
|
This endpoint accepts a tar.gz file compressed with your code. Make sure to include any dependencies your code has within the compressed file. You can learn more about code packaging in the [Appwrite Cloud Functions tutorial](https://appwrite.io/docs/functions).
|
|
@@ -138,17 +119,15 @@ This endpoint accepts a tar.gz file compressed with your code. Make sure to incl
|
|
|
138
119
|
Use the "command" param to set the entrypoint used to execute your code.
|
|
139
120
|
*
|
|
140
121
|
* @param {string} functionId
|
|
141
|
-
* @param {
|
|
122
|
+
* @param {File} code
|
|
142
123
|
* @param {boolean} activate
|
|
143
124
|
* @param {string} entrypoint
|
|
144
125
|
* @param {string} commands
|
|
145
126
|
* @throws {AppwriteException}
|
|
146
127
|
* @returns {Promise<Models.Deployment>}
|
|
147
128
|
*/
|
|
148
|
-
createDeployment(functionId: string, code:
|
|
129
|
+
createDeployment(functionId: string, code: File, activate: boolean, entrypoint?: string, commands?: string, onProgress?: (progress: UploadProgress) => void): Promise<Models.Deployment>;
|
|
149
130
|
/**
|
|
150
|
-
* Get deployment
|
|
151
|
-
*
|
|
152
131
|
* Get a code deployment by its unique ID.
|
|
153
132
|
*
|
|
154
133
|
* @param {string} functionId
|
|
@@ -158,8 +137,6 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
158
137
|
*/
|
|
159
138
|
getDeployment(functionId: string, deploymentId: string): Promise<Models.Deployment>;
|
|
160
139
|
/**
|
|
161
|
-
* Update deployment
|
|
162
|
-
*
|
|
163
140
|
* Update the function code deployment ID using the unique function ID. Use this endpoint to switch the code deployment that should be executed by the execution endpoint.
|
|
164
141
|
*
|
|
165
142
|
* @param {string} functionId
|
|
@@ -169,8 +146,6 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
169
146
|
*/
|
|
170
147
|
updateDeployment(functionId: string, deploymentId: string): Promise<Models.Function>;
|
|
171
148
|
/**
|
|
172
|
-
* Delete deployment
|
|
173
|
-
*
|
|
174
149
|
* Delete a code deployment by its unique ID.
|
|
175
150
|
*
|
|
176
151
|
* @param {string} functionId
|
|
@@ -180,8 +155,7 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
180
155
|
*/
|
|
181
156
|
deleteDeployment(functionId: string, deploymentId: string): Promise<{}>;
|
|
182
157
|
/**
|
|
183
|
-
*
|
|
184
|
-
*
|
|
158
|
+
* Create a new build for an existing function deployment. This endpoint allows you to rebuild a deployment with the updated function configuration, including its entrypoint and build commands if they have been modified The build process will be queued and executed asynchronously. The original deployment's code will be preserved and used for the new build.
|
|
185
159
|
*
|
|
186
160
|
* @param {string} functionId
|
|
187
161
|
* @param {string} deploymentId
|
|
@@ -191,8 +165,7 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
191
165
|
*/
|
|
192
166
|
createBuild(functionId: string, deploymentId: string, buildId?: string): Promise<{}>;
|
|
193
167
|
/**
|
|
194
|
-
* Cancel deployment
|
|
195
|
-
*
|
|
168
|
+
* Cancel an ongoing function deployment build. If the build is already in progress, it will be stopped and marked as canceled. If the build hasn't started yet, it will be marked as canceled without executing. You cannot cancel builds that have already completed (status 'ready') or failed. The response includes the final build status and details.
|
|
196
169
|
*
|
|
197
170
|
* @param {string} functionId
|
|
198
171
|
* @param {string} deploymentId
|
|
@@ -201,8 +174,6 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
201
174
|
*/
|
|
202
175
|
updateDeploymentBuild(functionId: string, deploymentId: string): Promise<Models.Build>;
|
|
203
176
|
/**
|
|
204
|
-
* Download deployment
|
|
205
|
-
*
|
|
206
177
|
* Get a Deployment's contents by its unique ID. This endpoint supports range requests for partial or streaming file download.
|
|
207
178
|
*
|
|
208
179
|
* @param {string} functionId
|
|
@@ -212,8 +183,6 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
212
183
|
*/
|
|
213
184
|
getDeploymentDownload(functionId: string, deploymentId: string): Promise<ArrayBuffer>;
|
|
214
185
|
/**
|
|
215
|
-
* List executions
|
|
216
|
-
*
|
|
217
186
|
* Get a list of all the current user function execution logs. You can use the query params to filter your results.
|
|
218
187
|
*
|
|
219
188
|
* @param {string} functionId
|
|
@@ -224,12 +193,10 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
224
193
|
*/
|
|
225
194
|
listExecutions(functionId: string, queries?: string[], search?: string): Promise<Models.ExecutionList>;
|
|
226
195
|
/**
|
|
227
|
-
* Create execution
|
|
228
|
-
*
|
|
229
196
|
* 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.
|
|
230
197
|
*
|
|
231
198
|
* @param {string} functionId
|
|
232
|
-
* @param {
|
|
199
|
+
* @param {string} body
|
|
233
200
|
* @param {boolean} async
|
|
234
201
|
* @param {string} xpath
|
|
235
202
|
* @param {ExecutionMethod} method
|
|
@@ -238,10 +205,8 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
238
205
|
* @throws {AppwriteException}
|
|
239
206
|
* @returns {Promise<Models.Execution>}
|
|
240
207
|
*/
|
|
241
|
-
createExecution(functionId: string, body?:
|
|
208
|
+
createExecution(functionId: string, body?: string, async?: boolean, xpath?: string, method?: ExecutionMethod, headers?: object, scheduledAt?: string): Promise<Models.Execution>;
|
|
242
209
|
/**
|
|
243
|
-
* Get execution
|
|
244
|
-
*
|
|
245
210
|
* Get a function execution log by its unique ID.
|
|
246
211
|
*
|
|
247
212
|
* @param {string} functionId
|
|
@@ -251,8 +216,6 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
251
216
|
*/
|
|
252
217
|
getExecution(functionId: string, executionId: string): Promise<Models.Execution>;
|
|
253
218
|
/**
|
|
254
|
-
* Delete execution
|
|
255
|
-
*
|
|
256
219
|
* Delete a function execution by its unique ID.
|
|
257
220
|
|
|
258
221
|
*
|
|
@@ -263,8 +226,6 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
263
226
|
*/
|
|
264
227
|
deleteExecution(functionId: string, executionId: string): Promise<{}>;
|
|
265
228
|
/**
|
|
266
|
-
* List variables
|
|
267
|
-
*
|
|
268
229
|
* Get a list of all variables of a specific function.
|
|
269
230
|
*
|
|
270
231
|
* @param {string} functionId
|
|
@@ -273,8 +234,6 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
273
234
|
*/
|
|
274
235
|
listVariables(functionId: string): Promise<Models.VariableList>;
|
|
275
236
|
/**
|
|
276
|
-
* Create variable
|
|
277
|
-
*
|
|
278
237
|
* Create a new function environment variable. These variables can be accessed in the function at runtime as environment variables.
|
|
279
238
|
*
|
|
280
239
|
* @param {string} functionId
|
|
@@ -285,8 +244,6 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
285
244
|
*/
|
|
286
245
|
createVariable(functionId: string, key: string, value: string): Promise<Models.Variable>;
|
|
287
246
|
/**
|
|
288
|
-
* Get variable
|
|
289
|
-
*
|
|
290
247
|
* Get a variable by its unique ID.
|
|
291
248
|
*
|
|
292
249
|
* @param {string} functionId
|
|
@@ -296,8 +253,6 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
296
253
|
*/
|
|
297
254
|
getVariable(functionId: string, variableId: string): Promise<Models.Variable>;
|
|
298
255
|
/**
|
|
299
|
-
* Update variable
|
|
300
|
-
*
|
|
301
256
|
* Update variable by its unique ID.
|
|
302
257
|
*
|
|
303
258
|
* @param {string} functionId
|
|
@@ -309,8 +264,6 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
309
264
|
*/
|
|
310
265
|
updateVariable(functionId: string, variableId: string, key: string, value?: string): Promise<Models.Variable>;
|
|
311
266
|
/**
|
|
312
|
-
* Delete variable
|
|
313
|
-
*
|
|
314
267
|
* Delete a variable by its unique ID.
|
|
315
268
|
*
|
|
316
269
|
* @param {string} functionId
|