@appwrite.io/console
Advanced tools
Comparing version 0.4.2 to 0.5.0
@@ -5,3 +5,3 @@ { | ||
"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.4.2", | ||
"version": "0.5.0", | ||
"license": "BSD-3-Clause", | ||
@@ -8,0 +8,0 @@ "main": "dist/cjs/sdk.js", |
@@ -36,3 +36,3 @@ # Appwrite Console SDK | ||
```html | ||
<script src="https://cdn.jsdelivr.net/npm/@appwrite.io/console@0.4.2"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@appwrite.io/console@0.5.0"></script> | ||
``` | ||
@@ -39,0 +39,0 @@ |
@@ -107,3 +107,3 @@ import 'isomorphic-form-data'; | ||
'x-sdk-language': 'web', | ||
'x-sdk-version': '0.4.2', | ||
'x-sdk-version': '0.5.0', | ||
'X-Appwrite-Response-Format': '1.4.0', | ||
@@ -110,0 +110,0 @@ }; |
@@ -88,2 +88,20 @@ import { Service } from '../service'; | ||
/** | ||
* Delete account | ||
* | ||
* Delete the currently logged in user. | ||
* | ||
* @throws {AppwriteException} | ||
* @returns {Promise} | ||
*/ | ||
async delete(): Promise<{}> { | ||
const apiPath = '/account'; | ||
const payload: Payload = {}; | ||
const uri = new URL(this.client.config.endpoint + apiPath); | ||
return await this.client.call('delete', uri, { | ||
'content-type': 'application/json', | ||
}, payload); | ||
} | ||
/** | ||
* Update email | ||
@@ -90,0 +108,0 @@ * |
@@ -773,3 +773,3 @@ import { Service } from '../service'; | ||
*/ | ||
async getFunctionUsage(functionId: string, range?: string): Promise<Models.UsageFunctions> { | ||
async getFunctionUsage(functionId: string, range?: string): Promise<Models.UsageFunction> { | ||
if (typeof functionId === 'undefined') { | ||
@@ -776,0 +776,0 @@ throw new AppwriteException('Missing required parameter: "functionId"'); |
@@ -35,2 +35,11 @@ import { Service } from '../service'; | ||
/** | ||
* Delete account | ||
* | ||
* Delete the currently logged in user. | ||
* | ||
* @throws {AppwriteException} | ||
* @returns {Promise} | ||
*/ | ||
delete(): Promise<{}>; | ||
/** | ||
* Update email | ||
@@ -37,0 +46,0 @@ * |
@@ -261,3 +261,3 @@ import { Service } from '../service'; | ||
*/ | ||
getFunctionUsage(functionId: string, range?: string): Promise<Models.UsageFunctions>; | ||
getFunctionUsage(functionId: string, range?: string): Promise<Models.UsageFunction>; | ||
/** | ||
@@ -264,0 +264,0 @@ * List variables |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
3226738
337
49165