Skip to content

Commit

Permalink
1.5.0 support
Browse files Browse the repository at this point in the history
  • Loading branch information
TorstenDittmann committed Mar 8, 2024
1 parent d71295a commit 70d3292
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 6 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/[email protected]-rc.17"></script>
<script src="https://cdn.jsdelivr.net/npm/@appwrite.io/[email protected]"></script>
```


Expand Down
13 changes: 13 additions & 0 deletions docs/examples/health/get-queue-usage-dump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { Client, Health } from "@appwrite.io/console";

const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2'); // Your project ID

const health = new Health(client);

const result = await health.getQueueUsageDump(
null // threshold (optional)
);

console.log(response);
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const client = new Client()

const projects = new Projects(client);

const result = await projects.updateAPIStatusAll(
const result = await projects.updateApiStatusAll(
'<PROJECT_ID>', // projectId
false // status
);
Expand Down
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.17",
"version": "0.6.0",
"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.17',
'x-sdk-version': '0.6.0',
'X-Appwrite-Response-Format': '1.5.0',
};

Expand Down
2 changes: 1 addition & 1 deletion src/services/health.ts
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ export class Health extends Service {
* @throws {AppwriteException}
* @returns {Promise}
*/
async getQueueUsage(threshold?: number): Promise<Models.HealthQueue> {
async getQueueUsageDump(threshold?: number): Promise<Models.HealthQueue> {
const apiPath = '/health/queue/usage-dump';
const payload: Payload = {};

Expand Down
2 changes: 1 addition & 1 deletion src/services/projects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ export class Projects extends Service {
* @throws {AppwriteException}
* @returns {Promise}
*/
async updateAPIStatusAll(projectId: string, status: boolean): Promise<Models.Project> {
async updateApiStatusAll(projectId: string, status: boolean): Promise<Models.Project> {
if (typeof projectId === 'undefined') {
throw new AppwriteException('Missing required parameter: "projectId"');
}
Expand Down

0 comments on commit 70d3292

Please sign in to comment.