@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/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 { Type } from '../enums/type';
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 {Type} type
278
+ * @param {AuthenticatorType} type
279
279
  * @throws {AppwriteException}
280
280
  * @returns {Promise}
281
281
  */
282
- deleteMfaAuthenticator<Preferences extends Models.Preferences>(userId: string, type: Type): Promise<Models.User<Preferences>>;
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
@@ -1,3 +0,0 @@
1
- export enum Type {
2
- Totp = 'totp',
3
- }
@@ -1,3 +0,0 @@
1
- export declare enum Type {
2
- Totp = "totp"
3
- }