@appwrite.io/console 0.6.0-rc.16 → 0.6.0-rc.18
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 +2 -2
- package/dist/cjs/sdk.js +145 -7
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +146 -8
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +145 -7
- package/docs/examples/health/get-queue-usage-dump.md +13 -0
- package/docs/examples/health/get-queue-usage.md +13 -0
- package/docs/examples/health/get-storage.md +11 -0
- package/docs/examples/projects/update-api-status-all.md +14 -0
- package/docs/examples/projects/update-api-status.md +15 -0
- package/docs/examples/users/delete-mfa-authenticator.md +2 -2
- package/package.json +1 -1
- package/src/client.ts +1 -1
- package/src/enums/api.ts +5 -0
- package/src/enums/name.ts +1 -0
- package/src/enums/runtime.ts +8 -0
- package/src/index.ts +1 -1
- package/src/services/health.ts +66 -0
- package/src/services/projects.ts +72 -0
- package/src/services/users.ts +3 -3
- package/types/enums/api.d.ts +5 -0
- package/types/enums/name.d.ts +1 -0
- package/types/enums/runtime.d.ts +8 -0
- package/types/index.d.ts +1 -1
- package/types/services/health.d.ts +31 -0
- package/types/services/projects.d.ts +22 -0
- package/types/services/users.d.ts +3 -3
- package/src/enums/type.ts +0 -3
- package/types/enums/type.d.ts +0 -3
package/types/index.d.ts
CHANGED
|
@@ -39,6 +39,7 @@ export { Name } from './enums/name';
|
|
|
39
39
|
export { SmtpEncryption } from './enums/smtp-encryption';
|
|
40
40
|
export { ProjectUsageRange } from './enums/project-usage-range';
|
|
41
41
|
export { Region } from './enums/region';
|
|
42
|
+
export { Api } from './enums/api';
|
|
42
43
|
export { AuthMethod } from './enums/auth-method';
|
|
43
44
|
export { PlatformType } from './enums/platform-type';
|
|
44
45
|
export { ApiService } from './enums/api-service';
|
|
@@ -54,5 +55,4 @@ export { ImageFormat } from './enums/image-format';
|
|
|
54
55
|
export { StorageUsageRange } from './enums/storage-usage-range';
|
|
55
56
|
export { PasswordHash } from './enums/password-hash';
|
|
56
57
|
export { UserUsageRange } from './enums/user-usage-range';
|
|
57
|
-
export { Type } from './enums/type';
|
|
58
58
|
export { MessagingProviderType } from './enums/messaging-provider-type';
|
|
@@ -183,6 +183,28 @@ export declare class Health extends Service {
|
|
|
183
183
|
* @returns {Promise}
|
|
184
184
|
*/
|
|
185
185
|
getQueueMigrations(threshold?: number): Promise<Models.HealthQueue>;
|
|
186
|
+
/**
|
|
187
|
+
* Get usage queue
|
|
188
|
+
*
|
|
189
|
+
* Get the number of metrics that are waiting to be processed in the Appwrite
|
|
190
|
+
* internal queue server.
|
|
191
|
+
*
|
|
192
|
+
* @param {number} threshold
|
|
193
|
+
* @throws {AppwriteException}
|
|
194
|
+
* @returns {Promise}
|
|
195
|
+
*/
|
|
196
|
+
getQueueUsage(threshold?: number): Promise<Models.HealthQueue>;
|
|
197
|
+
/**
|
|
198
|
+
* Get usage dump queue
|
|
199
|
+
*
|
|
200
|
+
* Get the number of projects containing metrics that are waiting to be
|
|
201
|
+
* processed in the Appwrite internal queue server.
|
|
202
|
+
*
|
|
203
|
+
* @param {number} threshold
|
|
204
|
+
* @throws {AppwriteException}
|
|
205
|
+
* @returns {Promise}
|
|
206
|
+
*/
|
|
207
|
+
getQueueUsageDump(threshold?: number): Promise<Models.HealthQueue>;
|
|
186
208
|
/**
|
|
187
209
|
* Get webhooks queue
|
|
188
210
|
*
|
|
@@ -194,6 +216,15 @@ export declare class Health extends Service {
|
|
|
194
216
|
* @returns {Promise}
|
|
195
217
|
*/
|
|
196
218
|
getQueueWebhooks(threshold?: number): Promise<Models.HealthQueue>;
|
|
219
|
+
/**
|
|
220
|
+
* Get storage
|
|
221
|
+
*
|
|
222
|
+
* Check the Appwrite storage device is up and connection is successful.
|
|
223
|
+
*
|
|
224
|
+
* @throws {AppwriteException}
|
|
225
|
+
* @returns {Promise}
|
|
226
|
+
*/
|
|
227
|
+
getStorage(): Promise<Models.HealthStatus>;
|
|
197
228
|
/**
|
|
198
229
|
* Get local storage
|
|
199
230
|
*
|
|
@@ -2,6 +2,7 @@ import { Service } from '../service';
|
|
|
2
2
|
import { Client } from '../client';
|
|
3
3
|
import type { Models } from '../models';
|
|
4
4
|
import { Region } from '../enums/region';
|
|
5
|
+
import { Api } from '../enums/api';
|
|
5
6
|
import { AuthMethod } from '../enums/auth-method';
|
|
6
7
|
import { OAuthProvider } from '../enums/o-auth-provider';
|
|
7
8
|
import { PlatformType } from '../enums/platform-type';
|
|
@@ -81,6 +82,27 @@ export declare class Projects extends Service {
|
|
|
81
82
|
* @returns {Promise}
|
|
82
83
|
*/
|
|
83
84
|
delete(projectId: string): Promise<{}>;
|
|
85
|
+
/**
|
|
86
|
+
* Update API status
|
|
87
|
+
*
|
|
88
|
+
*
|
|
89
|
+
* @param {string} projectId
|
|
90
|
+
* @param {Api} api
|
|
91
|
+
* @param {boolean} status
|
|
92
|
+
* @throws {AppwriteException}
|
|
93
|
+
* @returns {Promise}
|
|
94
|
+
*/
|
|
95
|
+
updateApiStatus(projectId: string, api: Api, status: boolean): Promise<Models.Project>;
|
|
96
|
+
/**
|
|
97
|
+
* Update all API status
|
|
98
|
+
*
|
|
99
|
+
*
|
|
100
|
+
* @param {string} projectId
|
|
101
|
+
* @param {boolean} status
|
|
102
|
+
* @throws {AppwriteException}
|
|
103
|
+
* @returns {Promise}
|
|
104
|
+
*/
|
|
105
|
+
updateApiStatusAll(projectId: string, status: boolean): Promise<Models.Project>;
|
|
84
106
|
/**
|
|
85
107
|
* Update project authentication duration
|
|
86
108
|
*
|
|
@@ -3,7 +3,7 @@ import { Client } from '../client';
|
|
|
3
3
|
import type { Models } from '../models';
|
|
4
4
|
import { PasswordHash } from '../enums/password-hash';
|
|
5
5
|
import { UserUsageRange } from '../enums/user-usage-range';
|
|
6
|
-
import {
|
|
6
|
+
import { AuthenticatorType } from '../enums/authenticator-type';
|
|
7
7
|
import { MessagingProviderType } from '../enums/messaging-provider-type';
|
|
8
8
|
export declare class Users extends Service {
|
|
9
9
|
constructor(client: Client);
|
|
@@ -275,11 +275,11 @@ export declare class Users extends Service {
|
|
|
275
275
|
* Delete an authenticator app.
|
|
276
276
|
*
|
|
277
277
|
* @param {string} userId
|
|
278
|
-
* @param {
|
|
278
|
+
* @param {AuthenticatorType} type
|
|
279
279
|
* @throws {AppwriteException}
|
|
280
280
|
* @returns {Promise}
|
|
281
281
|
*/
|
|
282
|
-
deleteMfaAuthenticator<Preferences extends Models.Preferences>(userId: string, type:
|
|
282
|
+
deleteMfaAuthenticator<Preferences extends Models.Preferences>(userId: string, type: AuthenticatorType): Promise<Models.User<Preferences>>;
|
|
283
283
|
/**
|
|
284
284
|
* List Factors
|
|
285
285
|
*
|
package/src/enums/type.ts
DELETED
package/types/enums/type.d.ts
DELETED