1
0
Fork 0
mirror of synced 2024-05-20 12:42:39 +12:00

Fix specs and versions

This commit is contained in:
Jake Barnby 2024-03-08 16:09:50 +01:00
parent 42e9fe4286
commit 2392e4ae26
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C
27 changed files with 192 additions and 16 deletions

View file

@ -203,7 +203,7 @@ return [
[
'key' => 'cli',
'name' => 'Command Line',
'version' => '4.2.0',
'version' => '5.0.0',
'url' => 'https://github.com/appwrite/sdk-for-cli',
'package' => 'https://www.npmjs.com/package/appwrite-cli',
'enabled' => true,

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

12
composer.lock generated
View file

@ -2731,16 +2731,16 @@
"packages-dev": [
{
"name": "appwrite/sdk-generator",
"version": "0.37.1",
"version": "0.37.2",
"source": {
"type": "git",
"url": "https://github.com/appwrite/sdk-generator.git",
"reference": "3e6a23febcd4392c83e9be772ce545ba42bfbb3a"
"reference": "e61118faebf12af2d402e2ec8953d1d2c64693c1"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/3e6a23febcd4392c83e9be772ce545ba42bfbb3a",
"reference": "3e6a23febcd4392c83e9be772ce545ba42bfbb3a",
"url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/e61118faebf12af2d402e2ec8953d1d2c64693c1",
"reference": "e61118faebf12af2d402e2ec8953d1d2c64693c1",
"shasum": ""
},
"require": {
@ -2776,9 +2776,9 @@
"description": "Appwrite PHP library for generating API SDKs for multiple programming languages and platforms",
"support": {
"issues": "https://github.com/appwrite/sdk-generator/issues",
"source": "https://github.com/appwrite/sdk-generator/tree/0.37.1"
"source": "https://github.com/appwrite/sdk-generator/tree/0.37.2"
},
"time": "2024-03-08T09:29:12+00:00"
"time": "2024-03-08T13:39:44+00:00"
},
{
"name": "doctrine/deprecations",

View file

@ -0,0 +1,2 @@
appwrite health getQueueUsageDump \

View file

@ -0,0 +1,3 @@
appwrite projects updateApiStatusAll \
--projectId <PROJECT_ID> \
--status false

View file

@ -0,0 +1,12 @@
import 'package:dart_appwrite/dart_appwrite.dart';
Client client = Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
.setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key
Health health = Health(client);
HealthQueue result = await health.getQueueUsageDump(
threshold: 0, // (optional)
);

View file

@ -0,0 +1,12 @@
import { Client, Health } from "https://deno.land/x/appwrite/mod.ts";
const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
.setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key
const health = new Health(client);
const response = await health.getQueueUsageDump(
null // threshold (optional)
);

View file

@ -0,0 +1,14 @@
using Appwrite;
using Appwrite.Models;
using Appwrite.Services;
Client client = new Client()
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
Health health = new Health(client);
HealthQueue result = await health.GetQueueUsageDump(
threshold: 0 // optional
);

View file

@ -0,0 +1,7 @@
query {
healthGetQueueUsageDump(
threshold: 0
) {
size
}
}

View file

@ -0,0 +1,23 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Health;
Client client = new Client()
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.setProject("5df5acd0d48c2") // Your project ID
.setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
Health health = new Health(client);
health.getQueueUsageDump(
0, // threshold (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
return;
}
System.out.println(result);
})
);

View file

@ -0,0 +1,14 @@
import io.appwrite.Client
import io.appwrite.coroutines.CoroutineCallback
import io.appwrite.services.Health
val client = Client()
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.setProject("5df5acd0d48c2") // Your project ID
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
val health = Health(client)
val response = health.getQueueUsageDump(
threshold = 0 // optional
)

View file

@ -0,0 +1,12 @@
const sdk = require('node-appwrite');
const client = new sdk.Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
.setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key
const health = new sdk.Health(client);
const result = await health.getQueueUsageDump(
null // threshold (optional)
);

View file

@ -0,0 +1,15 @@
<?php
use Appwrite\Client;
use Appwrite\Services\Health;
$client = (new Client())
->setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
->setProject('5df5acd0d48c2') // Your project ID
->setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key
$health = new Health($client);
$result = $health->getQueueUsageDump(
threshold: null // optional
);

View file

@ -0,0 +1,12 @@
from appwrite.client import Client
client = Client()
client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
client.set_project('5df5acd0d48c2') # Your project ID
client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
health = Health(client)
result = health.get_queue_usage_dump(
threshold = None # optional
)

View file

@ -0,0 +1,7 @@
GET /v1/health/queue/usage-dump HTTP/1.1
Host: cloud.appwrite.io
Content-Type: application/json
X-Appwrite-Response-Format: 1.5.0
X-Appwrite-Project: 5df5acd0d48c2
X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2

View file

@ -1,4 +1,4 @@
GET /v1/health/queue/usage-dump HTTP/1.1
GET /v1/health/queue/usage HTTP/1.1
Host: cloud.appwrite.io
Content-Type: application/json
X-Appwrite-Response-Format: 1.5.0

View file

@ -0,0 +1,14 @@
require 'appwrite'
include Appwrite
client = Client.new
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
.set_project('5df5acd0d48c2') # Your project ID
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
health = Health.new(client)
result = health.get_queue_usage_dump(
threshold: null # optional
)

View file

@ -0,0 +1,13 @@
import Appwrite
let client = Client()
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
.setProject("5df5acd0d48c2") // Your project ID
.setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
let health = Health(client)
let healthQueue = try await health.getQueueUsageDump(
threshold: 0 // optional
)

View file

@ -1,3 +1,11 @@
## 11.0.0
* Added enum support
* Added SSR support
* Added messaging service support
* Added contains query support
* Added or query support
## 10.1.0
* Add new queue health endpoints

View file

@ -1,3 +1,11 @@
## 12.0.0
* Added enum support
* Added SSR support
* Added messaging service support
* Added contains query support
* Added or query support
## 11.0.1
* Fix between queries