Skip to content

Commit

Permalink
sync
Browse files Browse the repository at this point in the history
  • Loading branch information
TorstenDittmann committed Mar 4, 2024
1 parent 600da47 commit b57a9ae
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import { Client, Account } from "@appwrite.io/console";
To install with a CDN (content delivery network) add the following scripts to the bottom of your <body> tag, but before you use any Appwrite services:

```html
<script src="https://cdn.jsdelivr.net/npm/@appwrite.io/console@0.6.0-rc.16"></script>
<script src="https://cdn.jsdelivr.net/npm/@appwrite.io/console@0.6.0-rc.17"></script>
```


Expand Down
4 changes: 2 additions & 2 deletions docs/examples/users/delete-mfa-authenticator.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Client, Users, } from "@appwrite.io/console";
import { Client, Users, AuthenticatorType } from "@appwrite.io/console";

const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
Expand All @@ -8,7 +8,7 @@ const users = new Users(client);

const result = await users.deleteMfaAuthenticator(
'<USER_ID>', // userId
.Totp // type
AuthenticatorType.Totp // type
);

console.log(response);
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@appwrite.io/console",
"homepage": "https://appwrite.io/support",
"description": "Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API",
"version": "0.6.0-rc.16",
"version": "0.6.0-rc.17",
"license": "BSD-3-Clause",
"main": "dist/cjs/sdk.js",
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class Client {
'x-sdk-name': 'Console',
'x-sdk-platform': 'console',
'x-sdk-language': 'web',
'x-sdk-version': '0.6.0-rc.16',
'x-sdk-version': '0.6.0-rc.17',
'X-Appwrite-Response-Format': '1.5.0',
};

Expand Down
3 changes: 0 additions & 3 deletions src/enums/type.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,4 @@ export { ImageFormat } from './enums/image-format';
export { StorageUsageRange } from './enums/storage-usage-range';
export { PasswordHash } from './enums/password-hash';
export { UserUsageRange } from './enums/user-usage-range';
export { Type } from './enums/type';
export { MessagingProviderType } from './enums/messaging-provider-type';
6 changes: 3 additions & 3 deletions src/services/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { Models } from '../models';
import type { UploadProgress, Payload } from '../client';
import { PasswordHash } from '../enums/password-hash';
import { UserUsageRange } from '../enums/user-usage-range';
import { Type } from '../enums/type';
import { AuthenticatorType } from '../enums/authenticator-type';
import { MessagingProviderType } from '../enums/messaging-provider-type';

export class Users extends Service {
Expand Down Expand Up @@ -821,11 +821,11 @@ export class Users extends Service {
* Delete an authenticator app.
*
* @param {string} userId
* @param {Type} type
* @param {AuthenticatorType} type
* @throws {AppwriteException}
* @returns {Promise}
*/
async deleteMfaAuthenticator<Preferences extends Models.Preferences>(userId: string, type: Type): Promise<Models.User<Preferences>> {
async deleteMfaAuthenticator<Preferences extends Models.Preferences>(userId: string, type: AuthenticatorType): Promise<Models.User<Preferences>> {
if (typeof userId === 'undefined') {
throw new AppwriteException('Missing required parameter: "userId"');
}
Expand Down

0 comments on commit b57a9ae

Please sign in to comment.