@appwrite.io/console 1.5.2 → 1.6.0
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/README.md +3 -3
- package/dist/cjs/sdk.js +7673 -9723
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +7673 -9723
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +7673 -9723
- package/docs/examples/organizations/validate-invoice.md +14 -0
- package/package.json +1 -1
- package/src/client.ts +21 -4
- package/src/enums/o-auth-provider.ts +1 -0
- package/src/models.ts +118 -6
- package/src/services/account.ts +126 -430
- package/src/services/assistant.ts +2 -7
- package/src/services/avatars.ts +7 -21
- package/src/services/backups.ts +24 -84
- package/src/services/console.ts +14 -49
- package/src/services/databases.ts +96 -336
- package/src/services/functions.ts +55 -192
- package/src/services/graphql.ts +4 -14
- package/src/services/health.ts +50 -175
- package/src/services/locale.ts +16 -56
- package/src/services/messaging.ts +92 -322
- package/src/services/migrations.ts +24 -84
- package/src/services/organizations.ts +86 -196
- package/src/services/project.ts +12 -42
- package/src/services/projects.ts +92 -322
- package/src/services/proxy.ts +10 -35
- package/src/services/storage.ts +27 -93
- package/src/services/teams.ts +28 -98
- package/src/services/users.ts +86 -301
- package/src/services/vcs.ts +20 -70
- package/types/enums/o-auth-provider.d.ts +1 -0
- package/types/models.d.ts +118 -6
- package/types/services/account.d.ts +4 -128
- package/types/services/assistant.d.ts +0 -2
- package/types/services/avatars.d.ts +0 -14
- package/types/services/backups.d.ts +0 -24
- package/types/services/console.d.ts +0 -14
- package/types/services/databases.d.ts +0 -96
- package/types/services/functions.d.ts +0 -56
- package/types/services/graphql.d.ts +0 -4
- package/types/services/health.d.ts +0 -50
- package/types/services/locale.d.ts +0 -16
- package/types/services/messaging.d.ts +0 -92
- package/types/services/migrations.d.ts +0 -24
- package/types/services/organizations.d.ts +11 -58
- package/types/services/project.d.ts +0 -12
- package/types/services/projects.d.ts +0 -92
- package/types/services/proxy.d.ts +0 -10
- package/types/services/storage.d.ts +0 -30
- package/types/services/teams.d.ts +0 -28
- package/types/services/users.d.ts +0 -86
- package/types/services/vcs.d.ts +0 -20
|
@@ -7,8 +7,6 @@ export declare class Functions {
|
|
|
7
7
|
client: Client;
|
|
8
8
|
constructor(client: Client);
|
|
9
9
|
/**
|
|
10
|
-
* List functions
|
|
11
|
-
*
|
|
12
10
|
* Get a list of all the project's functions. You can use the query params to filter your results.
|
|
13
11
|
*
|
|
14
12
|
* @param {string[]} queries
|
|
@@ -18,8 +16,6 @@ export declare class Functions {
|
|
|
18
16
|
*/
|
|
19
17
|
list(queries?: string[], search?: string): Promise<Models.FunctionList>;
|
|
20
18
|
/**
|
|
21
|
-
* Create function
|
|
22
|
-
*
|
|
23
19
|
* 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.
|
|
24
20
|
*
|
|
25
21
|
* @param {string} functionId
|
|
@@ -49,8 +45,6 @@ export declare class Functions {
|
|
|
49
45
|
*/
|
|
50
46
|
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>;
|
|
51
47
|
/**
|
|
52
|
-
* List runtimes
|
|
53
|
-
*
|
|
54
48
|
* Get a list of all runtimes that are currently active on your instance.
|
|
55
49
|
*
|
|
56
50
|
* @throws {AppwriteException}
|
|
@@ -58,8 +52,6 @@ export declare class Functions {
|
|
|
58
52
|
*/
|
|
59
53
|
listRuntimes(): Promise<Models.RuntimeList>;
|
|
60
54
|
/**
|
|
61
|
-
* List available function runtime specifications
|
|
62
|
-
*
|
|
63
55
|
* List allowed function specifications for this instance.
|
|
64
56
|
|
|
65
57
|
*
|
|
@@ -68,8 +60,6 @@ export declare class Functions {
|
|
|
68
60
|
*/
|
|
69
61
|
listSpecifications(): Promise<Models.SpecificationList>;
|
|
70
62
|
/**
|
|
71
|
-
* List function templates
|
|
72
|
-
*
|
|
73
63
|
* List available function templates. You can use template details in [createFunction](/docs/references/cloud/server-nodejs/functions#create) method.
|
|
74
64
|
*
|
|
75
65
|
* @param {string[]} runtimes
|
|
@@ -81,8 +71,6 @@ export declare class Functions {
|
|
|
81
71
|
*/
|
|
82
72
|
listTemplates(runtimes?: string[], useCases?: string[], limit?: number, offset?: number): Promise<Models.TemplateFunctionList>;
|
|
83
73
|
/**
|
|
84
|
-
* Get function template
|
|
85
|
-
*
|
|
86
74
|
* Get a function template using ID. You can use template details in [createFunction](/docs/references/cloud/server-nodejs/functions#create) method.
|
|
87
75
|
*
|
|
88
76
|
* @param {string} templateId
|
|
@@ -91,8 +79,6 @@ export declare class Functions {
|
|
|
91
79
|
*/
|
|
92
80
|
getTemplate(templateId: string): Promise<Models.TemplateFunction>;
|
|
93
81
|
/**
|
|
94
|
-
* Get functions usage
|
|
95
|
-
*
|
|
96
82
|
* Get usage metrics and statistics for a for all functions. View statistics including total functions, deployments, builds, executions, storage usage, and compute time. The response includes both current totals and historical data for each metric. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, defaults to 30 days.
|
|
97
83
|
*
|
|
98
84
|
* @param {FunctionUsageRange} range
|
|
@@ -101,8 +87,6 @@ export declare class Functions {
|
|
|
101
87
|
*/
|
|
102
88
|
getUsage(range?: FunctionUsageRange): Promise<Models.UsageFunctions>;
|
|
103
89
|
/**
|
|
104
|
-
* Get function
|
|
105
|
-
*
|
|
106
90
|
* Get a function by its unique ID.
|
|
107
91
|
*
|
|
108
92
|
* @param {string} functionId
|
|
@@ -111,8 +95,6 @@ export declare class Functions {
|
|
|
111
95
|
*/
|
|
112
96
|
get(functionId: string): Promise<Models.Function>;
|
|
113
97
|
/**
|
|
114
|
-
* Update function
|
|
115
|
-
*
|
|
116
98
|
* Update function by its unique ID.
|
|
117
99
|
*
|
|
118
100
|
* @param {string} functionId
|
|
@@ -138,8 +120,6 @@ export declare class Functions {
|
|
|
138
120
|
*/
|
|
139
121
|
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>;
|
|
140
122
|
/**
|
|
141
|
-
* Delete function
|
|
142
|
-
*
|
|
143
123
|
* Delete a function by its unique ID.
|
|
144
124
|
*
|
|
145
125
|
* @param {string} functionId
|
|
@@ -148,8 +128,6 @@ export declare class Functions {
|
|
|
148
128
|
*/
|
|
149
129
|
delete(functionId: string): Promise<{}>;
|
|
150
130
|
/**
|
|
151
|
-
* List deployments
|
|
152
|
-
*
|
|
153
131
|
* Get a list of all the project's code deployments. You can use the query params to filter your results.
|
|
154
132
|
*
|
|
155
133
|
* @param {string} functionId
|
|
@@ -160,8 +138,6 @@ export declare class Functions {
|
|
|
160
138
|
*/
|
|
161
139
|
listDeployments(functionId: string, queries?: string[], search?: string): Promise<Models.DeploymentList>;
|
|
162
140
|
/**
|
|
163
|
-
* Create deployment
|
|
164
|
-
*
|
|
165
141
|
* 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.
|
|
166
142
|
|
|
167
143
|
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).
|
|
@@ -178,8 +154,6 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
178
154
|
*/
|
|
179
155
|
createDeployment(functionId: string, code: File, activate: boolean, entrypoint?: string, commands?: string, onProgress?: (progress: UploadProgress) => void): Promise<Models.Deployment>;
|
|
180
156
|
/**
|
|
181
|
-
* Get deployment
|
|
182
|
-
*
|
|
183
157
|
* Get a code deployment by its unique ID.
|
|
184
158
|
*
|
|
185
159
|
* @param {string} functionId
|
|
@@ -189,8 +163,6 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
189
163
|
*/
|
|
190
164
|
getDeployment(functionId: string, deploymentId: string): Promise<Models.Deployment>;
|
|
191
165
|
/**
|
|
192
|
-
* Update deployment
|
|
193
|
-
*
|
|
194
166
|
* 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.
|
|
195
167
|
*
|
|
196
168
|
* @param {string} functionId
|
|
@@ -200,8 +172,6 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
200
172
|
*/
|
|
201
173
|
updateDeployment(functionId: string, deploymentId: string): Promise<Models.Function>;
|
|
202
174
|
/**
|
|
203
|
-
* Delete deployment
|
|
204
|
-
*
|
|
205
175
|
* Delete a code deployment by its unique ID.
|
|
206
176
|
*
|
|
207
177
|
* @param {string} functionId
|
|
@@ -211,8 +181,6 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
211
181
|
*/
|
|
212
182
|
deleteDeployment(functionId: string, deploymentId: string): Promise<{}>;
|
|
213
183
|
/**
|
|
214
|
-
* Rebuild deployment
|
|
215
|
-
*
|
|
216
184
|
* 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.
|
|
217
185
|
*
|
|
218
186
|
* @param {string} functionId
|
|
@@ -223,8 +191,6 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
223
191
|
*/
|
|
224
192
|
createBuild(functionId: string, deploymentId: string, buildId?: string): Promise<{}>;
|
|
225
193
|
/**
|
|
226
|
-
* Cancel deployment
|
|
227
|
-
*
|
|
228
194
|
* 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.
|
|
229
195
|
*
|
|
230
196
|
* @param {string} functionId
|
|
@@ -234,8 +200,6 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
234
200
|
*/
|
|
235
201
|
updateDeploymentBuild(functionId: string, deploymentId: string): Promise<Models.Build>;
|
|
236
202
|
/**
|
|
237
|
-
* Download deployment
|
|
238
|
-
*
|
|
239
203
|
* Get a Deployment's contents by its unique ID. This endpoint supports range requests for partial or streaming file download.
|
|
240
204
|
*
|
|
241
205
|
* @param {string} functionId
|
|
@@ -245,8 +209,6 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
245
209
|
*/
|
|
246
210
|
getDeploymentDownload(functionId: string, deploymentId: string): string;
|
|
247
211
|
/**
|
|
248
|
-
* List executions
|
|
249
|
-
*
|
|
250
212
|
* Get a list of all the current user function execution logs. You can use the query params to filter your results.
|
|
251
213
|
*
|
|
252
214
|
* @param {string} functionId
|
|
@@ -257,8 +219,6 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
257
219
|
*/
|
|
258
220
|
listExecutions(functionId: string, queries?: string[], search?: string): Promise<Models.ExecutionList>;
|
|
259
221
|
/**
|
|
260
|
-
* Create execution
|
|
261
|
-
*
|
|
262
222
|
* 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.
|
|
263
223
|
*
|
|
264
224
|
* @param {string} functionId
|
|
@@ -273,8 +233,6 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
273
233
|
*/
|
|
274
234
|
createExecution(functionId: string, body?: string, async?: boolean, xpath?: string, method?: ExecutionMethod, headers?: object, scheduledAt?: string): Promise<Models.Execution>;
|
|
275
235
|
/**
|
|
276
|
-
* Get execution
|
|
277
|
-
*
|
|
278
236
|
* Get a function execution log by its unique ID.
|
|
279
237
|
*
|
|
280
238
|
* @param {string} functionId
|
|
@@ -284,8 +242,6 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
284
242
|
*/
|
|
285
243
|
getExecution(functionId: string, executionId: string): Promise<Models.Execution>;
|
|
286
244
|
/**
|
|
287
|
-
* Delete execution
|
|
288
|
-
*
|
|
289
245
|
* Delete a function execution by its unique ID.
|
|
290
246
|
|
|
291
247
|
*
|
|
@@ -296,8 +252,6 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
296
252
|
*/
|
|
297
253
|
deleteExecution(functionId: string, executionId: string): Promise<{}>;
|
|
298
254
|
/**
|
|
299
|
-
* Get function usage
|
|
300
|
-
*
|
|
301
255
|
* Get usage metrics and statistics for a for a specific function. View statistics including total deployments, builds, executions, storage usage, and compute time. The response includes both current totals and historical data for each metric. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, defaults to 30 days.
|
|
302
256
|
*
|
|
303
257
|
* @param {string} functionId
|
|
@@ -307,8 +261,6 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
307
261
|
*/
|
|
308
262
|
getFunctionUsage(functionId: string, range?: FunctionUsageRange): Promise<Models.UsageFunction>;
|
|
309
263
|
/**
|
|
310
|
-
* List variables
|
|
311
|
-
*
|
|
312
264
|
* Get a list of all variables of a specific function.
|
|
313
265
|
*
|
|
314
266
|
* @param {string} functionId
|
|
@@ -317,8 +269,6 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
317
269
|
*/
|
|
318
270
|
listVariables(functionId: string): Promise<Models.VariableList>;
|
|
319
271
|
/**
|
|
320
|
-
* Create variable
|
|
321
|
-
*
|
|
322
272
|
* Create a new function environment variable. These variables can be accessed in the function at runtime as environment variables.
|
|
323
273
|
*
|
|
324
274
|
* @param {string} functionId
|
|
@@ -329,8 +279,6 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
329
279
|
*/
|
|
330
280
|
createVariable(functionId: string, key: string, value: string): Promise<Models.Variable>;
|
|
331
281
|
/**
|
|
332
|
-
* Get variable
|
|
333
|
-
*
|
|
334
282
|
* Get a variable by its unique ID.
|
|
335
283
|
*
|
|
336
284
|
* @param {string} functionId
|
|
@@ -340,8 +288,6 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
340
288
|
*/
|
|
341
289
|
getVariable(functionId: string, variableId: string): Promise<Models.Variable>;
|
|
342
290
|
/**
|
|
343
|
-
* Update variable
|
|
344
|
-
*
|
|
345
291
|
* Update variable by its unique ID.
|
|
346
292
|
*
|
|
347
293
|
* @param {string} functionId
|
|
@@ -353,8 +299,6 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
353
299
|
*/
|
|
354
300
|
updateVariable(functionId: string, variableId: string, key: string, value?: string): Promise<Models.Variable>;
|
|
355
301
|
/**
|
|
356
|
-
* Delete variable
|
|
357
|
-
*
|
|
358
302
|
* Delete a variable by its unique ID.
|
|
359
303
|
*
|
|
360
304
|
* @param {string} functionId
|
|
@@ -3,8 +3,6 @@ export declare class Graphql {
|
|
|
3
3
|
client: Client;
|
|
4
4
|
constructor(client: Client);
|
|
5
5
|
/**
|
|
6
|
-
* GraphQL endpoint
|
|
7
|
-
*
|
|
8
6
|
* Execute a GraphQL mutation.
|
|
9
7
|
*
|
|
10
8
|
* @param {object} query
|
|
@@ -13,8 +11,6 @@ export declare class Graphql {
|
|
|
13
11
|
*/
|
|
14
12
|
query(query: object): Promise<{}>;
|
|
15
13
|
/**
|
|
16
|
-
* GraphQL endpoint
|
|
17
|
-
*
|
|
18
14
|
* Execute a GraphQL mutation.
|
|
19
15
|
*
|
|
20
16
|
* @param {object} query
|
|
@@ -5,8 +5,6 @@ export declare class Health {
|
|
|
5
5
|
client: Client;
|
|
6
6
|
constructor(client: Client);
|
|
7
7
|
/**
|
|
8
|
-
* Get HTTP
|
|
9
|
-
*
|
|
10
8
|
* Check the Appwrite HTTP server is up and responsive.
|
|
11
9
|
*
|
|
12
10
|
* @throws {AppwriteException}
|
|
@@ -14,8 +12,6 @@ export declare class Health {
|
|
|
14
12
|
*/
|
|
15
13
|
get(): Promise<Models.HealthStatus>;
|
|
16
14
|
/**
|
|
17
|
-
* Get antivirus
|
|
18
|
-
*
|
|
19
15
|
* Check the Appwrite Antivirus server is up and connection is successful.
|
|
20
16
|
*
|
|
21
17
|
* @throws {AppwriteException}
|
|
@@ -23,8 +19,6 @@ export declare class Health {
|
|
|
23
19
|
*/
|
|
24
20
|
getAntivirus(): Promise<Models.HealthAntivirus>;
|
|
25
21
|
/**
|
|
26
|
-
* Get cache
|
|
27
|
-
*
|
|
28
22
|
* Check the Appwrite in-memory cache servers are up and connection is successful.
|
|
29
23
|
*
|
|
30
24
|
* @throws {AppwriteException}
|
|
@@ -32,8 +26,6 @@ export declare class Health {
|
|
|
32
26
|
*/
|
|
33
27
|
getCache(): Promise<Models.HealthStatus>;
|
|
34
28
|
/**
|
|
35
|
-
* Get the SSL certificate for a domain
|
|
36
|
-
*
|
|
37
29
|
* Get the SSL certificate for a domain
|
|
38
30
|
*
|
|
39
31
|
* @param {string} domain
|
|
@@ -42,8 +34,6 @@ export declare class Health {
|
|
|
42
34
|
*/
|
|
43
35
|
getCertificate(domain?: string): Promise<Models.HealthCertificate>;
|
|
44
36
|
/**
|
|
45
|
-
* Get DB
|
|
46
|
-
*
|
|
47
37
|
* Check the Appwrite database servers are up and connection is successful.
|
|
48
38
|
*
|
|
49
39
|
* @throws {AppwriteException}
|
|
@@ -51,8 +41,6 @@ export declare class Health {
|
|
|
51
41
|
*/
|
|
52
42
|
getDB(): Promise<Models.HealthStatus>;
|
|
53
43
|
/**
|
|
54
|
-
* Get pubsub
|
|
55
|
-
*
|
|
56
44
|
* Check the Appwrite pub-sub servers are up and connection is successful.
|
|
57
45
|
*
|
|
58
46
|
* @throws {AppwriteException}
|
|
@@ -60,8 +48,6 @@ export declare class Health {
|
|
|
60
48
|
*/
|
|
61
49
|
getPubSub(): Promise<Models.HealthStatus>;
|
|
62
50
|
/**
|
|
63
|
-
* Get billing aggregation queue
|
|
64
|
-
*
|
|
65
51
|
* Get billing aggregation queue
|
|
66
52
|
*
|
|
67
53
|
* @param {number} threshold
|
|
@@ -70,8 +56,6 @@ export declare class Health {
|
|
|
70
56
|
*/
|
|
71
57
|
getQueueBillingAggregation(threshold?: number): Promise<Models.HealthQueue>;
|
|
72
58
|
/**
|
|
73
|
-
* Get builds queue
|
|
74
|
-
*
|
|
75
59
|
* Get the number of builds that are waiting to be processed in the Appwrite internal queue server.
|
|
76
60
|
*
|
|
77
61
|
* @param {number} threshold
|
|
@@ -80,8 +64,6 @@ export declare class Health {
|
|
|
80
64
|
*/
|
|
81
65
|
getQueueBuilds(threshold?: number): Promise<Models.HealthQueue>;
|
|
82
66
|
/**
|
|
83
|
-
* Get billing aggregation queue
|
|
84
|
-
*
|
|
85
67
|
* Get the priority builds queue size.
|
|
86
68
|
*
|
|
87
69
|
* @param {number} threshold
|
|
@@ -90,8 +72,6 @@ export declare class Health {
|
|
|
90
72
|
*/
|
|
91
73
|
getQueuePriorityBuilds(threshold?: number): Promise<Models.HealthQueue>;
|
|
92
74
|
/**
|
|
93
|
-
* Get certificates queue
|
|
94
|
-
*
|
|
95
75
|
* Get the number of certificates that are waiting to be issued against [Letsencrypt](https://letsencrypt.org/) in the Appwrite internal queue server.
|
|
96
76
|
*
|
|
97
77
|
* @param {number} threshold
|
|
@@ -100,8 +80,6 @@ export declare class Health {
|
|
|
100
80
|
*/
|
|
101
81
|
getQueueCertificates(threshold?: number): Promise<Models.HealthQueue>;
|
|
102
82
|
/**
|
|
103
|
-
* Get databases queue
|
|
104
|
-
*
|
|
105
83
|
* Get the number of database changes that are waiting to be processed in the Appwrite internal queue server.
|
|
106
84
|
*
|
|
107
85
|
* @param {string} name
|
|
@@ -111,8 +89,6 @@ export declare class Health {
|
|
|
111
89
|
*/
|
|
112
90
|
getQueueDatabases(name?: string, threshold?: number): Promise<Models.HealthQueue>;
|
|
113
91
|
/**
|
|
114
|
-
* Get deletes queue
|
|
115
|
-
*
|
|
116
92
|
* Get the number of background destructive changes that are waiting to be processed in the Appwrite internal queue server.
|
|
117
93
|
*
|
|
118
94
|
* @param {number} threshold
|
|
@@ -121,8 +97,6 @@ export declare class Health {
|
|
|
121
97
|
*/
|
|
122
98
|
getQueueDeletes(threshold?: number): Promise<Models.HealthQueue>;
|
|
123
99
|
/**
|
|
124
|
-
* Get number of failed queue jobs
|
|
125
|
-
*
|
|
126
100
|
* Returns the amount of failed jobs in a given queue.
|
|
127
101
|
|
|
128
102
|
*
|
|
@@ -133,8 +107,6 @@ export declare class Health {
|
|
|
133
107
|
*/
|
|
134
108
|
getFailedJobs(name: Name, threshold?: number): Promise<Models.HealthQueue>;
|
|
135
109
|
/**
|
|
136
|
-
* Get functions queue
|
|
137
|
-
*
|
|
138
110
|
* Get the number of function executions that are waiting to be processed in the Appwrite internal queue server.
|
|
139
111
|
*
|
|
140
112
|
* @param {number} threshold
|
|
@@ -143,8 +115,6 @@ export declare class Health {
|
|
|
143
115
|
*/
|
|
144
116
|
getQueueFunctions(threshold?: number): Promise<Models.HealthQueue>;
|
|
145
117
|
/**
|
|
146
|
-
* Get logs queue
|
|
147
|
-
*
|
|
148
118
|
* Get the number of logs that are waiting to be processed in the Appwrite internal queue server.
|
|
149
119
|
*
|
|
150
120
|
* @param {number} threshold
|
|
@@ -153,8 +123,6 @@ export declare class Health {
|
|
|
153
123
|
*/
|
|
154
124
|
getQueueLogs(threshold?: number): Promise<Models.HealthQueue>;
|
|
155
125
|
/**
|
|
156
|
-
* Get mails queue
|
|
157
|
-
*
|
|
158
126
|
* Get the number of mails that are waiting to be processed in the Appwrite internal queue server.
|
|
159
127
|
*
|
|
160
128
|
* @param {number} threshold
|
|
@@ -163,8 +131,6 @@ export declare class Health {
|
|
|
163
131
|
*/
|
|
164
132
|
getQueueMails(threshold?: number): Promise<Models.HealthQueue>;
|
|
165
133
|
/**
|
|
166
|
-
* Get messaging queue
|
|
167
|
-
*
|
|
168
134
|
* Get the number of messages that are waiting to be processed in the Appwrite internal queue server.
|
|
169
135
|
*
|
|
170
136
|
* @param {number} threshold
|
|
@@ -173,8 +139,6 @@ export declare class Health {
|
|
|
173
139
|
*/
|
|
174
140
|
getQueueMessaging(threshold?: number): Promise<Models.HealthQueue>;
|
|
175
141
|
/**
|
|
176
|
-
* Get migrations queue
|
|
177
|
-
*
|
|
178
142
|
* Get the number of migrations that are waiting to be processed in the Appwrite internal queue server.
|
|
179
143
|
*
|
|
180
144
|
* @param {number} threshold
|
|
@@ -183,8 +147,6 @@ export declare class Health {
|
|
|
183
147
|
*/
|
|
184
148
|
getQueueMigrations(threshold?: number): Promise<Models.HealthQueue>;
|
|
185
149
|
/**
|
|
186
|
-
* Get stats resources queue
|
|
187
|
-
*
|
|
188
150
|
* Get the number of metrics that are waiting to be processed in the Appwrite stats resources queue.
|
|
189
151
|
*
|
|
190
152
|
* @param {number} threshold
|
|
@@ -193,8 +155,6 @@ export declare class Health {
|
|
|
193
155
|
*/
|
|
194
156
|
getQueueStatsResources(threshold?: number): Promise<Models.HealthQueue>;
|
|
195
157
|
/**
|
|
196
|
-
* Get stats usage queue
|
|
197
|
-
*
|
|
198
158
|
* Get the number of metrics that are waiting to be processed in the Appwrite internal queue server.
|
|
199
159
|
*
|
|
200
160
|
* @param {number} threshold
|
|
@@ -203,8 +163,6 @@ export declare class Health {
|
|
|
203
163
|
*/
|
|
204
164
|
getQueueUsage(threshold?: number): Promise<Models.HealthQueue>;
|
|
205
165
|
/**
|
|
206
|
-
* Get usage dump queue
|
|
207
|
-
*
|
|
208
166
|
* Get the number of projects containing metrics that are waiting to be processed in the Appwrite internal queue server.
|
|
209
167
|
*
|
|
210
168
|
* @param {number} threshold
|
|
@@ -213,8 +171,6 @@ export declare class Health {
|
|
|
213
171
|
*/
|
|
214
172
|
getQueueStatsUsageDump(threshold?: number): Promise<Models.HealthQueue>;
|
|
215
173
|
/**
|
|
216
|
-
* Get webhooks queue
|
|
217
|
-
*
|
|
218
174
|
* Get the number of webhooks that are waiting to be processed in the Appwrite internal queue server.
|
|
219
175
|
*
|
|
220
176
|
* @param {number} threshold
|
|
@@ -223,8 +179,6 @@ export declare class Health {
|
|
|
223
179
|
*/
|
|
224
180
|
getQueueWebhooks(threshold?: number): Promise<Models.HealthQueue>;
|
|
225
181
|
/**
|
|
226
|
-
* Get storage
|
|
227
|
-
*
|
|
228
182
|
* Check the Appwrite storage device is up and connection is successful.
|
|
229
183
|
*
|
|
230
184
|
* @throws {AppwriteException}
|
|
@@ -232,8 +186,6 @@ export declare class Health {
|
|
|
232
186
|
*/
|
|
233
187
|
getStorage(): Promise<Models.HealthStatus>;
|
|
234
188
|
/**
|
|
235
|
-
* Get local storage
|
|
236
|
-
*
|
|
237
189
|
* Check the Appwrite local storage device is up and connection is successful.
|
|
238
190
|
*
|
|
239
191
|
* @throws {AppwriteException}
|
|
@@ -241,8 +193,6 @@ export declare class Health {
|
|
|
241
193
|
*/
|
|
242
194
|
getStorageLocal(): Promise<Models.HealthStatus>;
|
|
243
195
|
/**
|
|
244
|
-
* Get time
|
|
245
|
-
*
|
|
246
196
|
* Check the Appwrite server time is synced with Google remote NTP server. We use this technology to smoothly handle leap seconds with no disruptive events. The [Network Time Protocol](https://en.wikipedia.org/wiki/Network_Time_Protocol) (NTP) is used by hundreds of millions of computers and devices to synchronize their clocks over the Internet. If your computer sets its own clock, it likely uses NTP.
|
|
247
197
|
*
|
|
248
198
|
* @throws {AppwriteException}
|
|
@@ -4,8 +4,6 @@ export declare class Locale {
|
|
|
4
4
|
client: Client;
|
|
5
5
|
constructor(client: Client);
|
|
6
6
|
/**
|
|
7
|
-
* Get user locale
|
|
8
|
-
*
|
|
9
7
|
* Get the current user location based on IP. Returns an object with user country code, country name, continent name, continent code, ip address and suggested currency. You can use the locale header to get the data in a supported language.
|
|
10
8
|
|
|
11
9
|
([IP Geolocation by DB-IP](https://db-ip.com))
|
|
@@ -15,8 +13,6 @@ export declare class Locale {
|
|
|
15
13
|
*/
|
|
16
14
|
get(): Promise<Models.Locale>;
|
|
17
15
|
/**
|
|
18
|
-
* List locale codes
|
|
19
|
-
*
|
|
20
16
|
* List of all locale codes in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes).
|
|
21
17
|
*
|
|
22
18
|
* @throws {AppwriteException}
|
|
@@ -24,8 +20,6 @@ export declare class Locale {
|
|
|
24
20
|
*/
|
|
25
21
|
listCodes(): Promise<Models.LocaleCodeList>;
|
|
26
22
|
/**
|
|
27
|
-
* List continents
|
|
28
|
-
*
|
|
29
23
|
* List of all continents. You can use the locale header to get the data in a supported language.
|
|
30
24
|
*
|
|
31
25
|
* @throws {AppwriteException}
|
|
@@ -33,8 +27,6 @@ export declare class Locale {
|
|
|
33
27
|
*/
|
|
34
28
|
listContinents(): Promise<Models.ContinentList>;
|
|
35
29
|
/**
|
|
36
|
-
* List countries
|
|
37
|
-
*
|
|
38
30
|
* List of all countries. You can use the locale header to get the data in a supported language.
|
|
39
31
|
*
|
|
40
32
|
* @throws {AppwriteException}
|
|
@@ -42,8 +34,6 @@ export declare class Locale {
|
|
|
42
34
|
*/
|
|
43
35
|
listCountries(): Promise<Models.CountryList>;
|
|
44
36
|
/**
|
|
45
|
-
* List EU countries
|
|
46
|
-
*
|
|
47
37
|
* List of all countries that are currently members of the EU. You can use the locale header to get the data in a supported language.
|
|
48
38
|
*
|
|
49
39
|
* @throws {AppwriteException}
|
|
@@ -51,8 +41,6 @@ export declare class Locale {
|
|
|
51
41
|
*/
|
|
52
42
|
listCountriesEU(): Promise<Models.CountryList>;
|
|
53
43
|
/**
|
|
54
|
-
* List countries phone codes
|
|
55
|
-
*
|
|
56
44
|
* List of all countries phone codes. You can use the locale header to get the data in a supported language.
|
|
57
45
|
*
|
|
58
46
|
* @throws {AppwriteException}
|
|
@@ -60,8 +48,6 @@ export declare class Locale {
|
|
|
60
48
|
*/
|
|
61
49
|
listCountriesPhones(): Promise<Models.PhoneList>;
|
|
62
50
|
/**
|
|
63
|
-
* List currencies
|
|
64
|
-
*
|
|
65
51
|
* List of all currencies, including currency symbol, name, plural, and decimal digits for all major and minor currencies. You can use the locale header to get the data in a supported language.
|
|
66
52
|
*
|
|
67
53
|
* @throws {AppwriteException}
|
|
@@ -69,8 +55,6 @@ export declare class Locale {
|
|
|
69
55
|
*/
|
|
70
56
|
listCurrencies(): Promise<Models.CurrencyList>;
|
|
71
57
|
/**
|
|
72
|
-
* List languages
|
|
73
|
-
*
|
|
74
58
|
* List of all languages classified by ISO 639-1 including 2-letter code, name in English, and name in the respective language.
|
|
75
59
|
*
|
|
76
60
|
* @throws {AppwriteException}
|