feat: release console sdk
This commit is contained in:
parent
b8b3a69a55
commit
19555651a5
|
@ -185,7 +185,7 @@ return [
|
|||
[
|
||||
'key' => 'web',
|
||||
'name' => 'Console',
|
||||
'version' => '0.6.0-rc.18',
|
||||
'version' => '0.6.0',
|
||||
'url' => 'https://github.com/appwrite/sdk-for-console',
|
||||
'package' => '',
|
||||
'enabled' => true,
|
||||
|
@ -196,7 +196,7 @@ return [
|
|||
'prism' => 'javascript',
|
||||
'source' => \realpath(__DIR__ . '/../sdks/console-web'),
|
||||
'gitUrl' => 'git@github.com:appwrite/sdk-for-console.git',
|
||||
'gitBranch' => '1.5.x',
|
||||
'gitBranch' => 'main',
|
||||
'gitRepoName' => 'sdk-for-console',
|
||||
'gitUserName' => 'appwrite',
|
||||
],
|
||||
|
|
|
@ -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);
|
|
@ -0,0 +1,14 @@
|
|||
import { Client, Projects } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client()
|
||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
||||
.setProject('5df5acd0d48c2'); // Your project ID
|
||||
|
||||
const projects = new Projects(client);
|
||||
|
||||
const result = await projects.updateApiStatusAll(
|
||||
'<PROJECT_ID>', // projectId
|
||||
false // status
|
||||
);
|
||||
|
||||
console.log(response);
|
Loading…
Reference in a new issue