mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
fix: a lot of enum examples generated
This commit is contained in:
+1
-1
@@ -88,7 +88,7 @@
|
||||
},
|
||||
"require-dev": {
|
||||
"ext-fileinfo": "*",
|
||||
"appwrite/sdk-generator": "*",
|
||||
"appwrite/sdk-generator": "dev-fix-enum-rendering",
|
||||
"phpunit/phpunit": "9.*",
|
||||
"swoole/ide-helper": "5.1.2",
|
||||
"phpstan/phpstan": "1.8.*",
|
||||
|
||||
Generated
+17
-15
@@ -4,7 +4,7 @@
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "3b502f78f5e31f2ea7b4c69e3301283a",
|
||||
"content-hash": "bc877cc8bf639e146710e0d7656adbec",
|
||||
"packages": [
|
||||
{
|
||||
"name": "adhocore/jwt",
|
||||
@@ -5383,16 +5383,16 @@
|
||||
"packages-dev": [
|
||||
{
|
||||
"name": "appwrite/sdk-generator",
|
||||
"version": "1.5.5",
|
||||
"version": "dev-fix-enum-rendering",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/appwrite/sdk-generator.git",
|
||||
"reference": "1f3686e41a2d10829220b74f54c80a770e9f968a"
|
||||
"reference": "3f39061b0db19057219bab6352afa2201306eedf"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/1f3686e41a2d10829220b74f54c80a770e9f968a",
|
||||
"reference": "1f3686e41a2d10829220b74f54c80a770e9f968a",
|
||||
"url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/3f39061b0db19057219bab6352afa2201306eedf",
|
||||
"reference": "3f39061b0db19057219bab6352afa2201306eedf",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -5428,9 +5428,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/1.5.5"
|
||||
"source": "https://github.com/appwrite/sdk-generator/tree/fix-enum-rendering"
|
||||
},
|
||||
"time": "2025-11-14T05:56:33+00:00"
|
||||
"time": "2025-11-18T05:35:14+00:00"
|
||||
},
|
||||
{
|
||||
"name": "doctrine/annotations",
|
||||
@@ -8718,16 +8718,16 @@
|
||||
},
|
||||
{
|
||||
"name": "theseer/tokenizer",
|
||||
"version": "1.3.0",
|
||||
"version": "1.3.1",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/theseer/tokenizer.git",
|
||||
"reference": "d74205c497bfbca49f34d4bc4c19c17e22db4ebb"
|
||||
"reference": "b7489ce515e168639d17feec34b8847c326b0b3c"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/theseer/tokenizer/zipball/d74205c497bfbca49f34d4bc4c19c17e22db4ebb",
|
||||
"reference": "d74205c497bfbca49f34d4bc4c19c17e22db4ebb",
|
||||
"url": "https://api.github.com/repos/theseer/tokenizer/zipball/b7489ce515e168639d17feec34b8847c326b0b3c",
|
||||
"reference": "b7489ce515e168639d17feec34b8847c326b0b3c",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -8756,7 +8756,7 @@
|
||||
"description": "A small library for converting tokenized PHP source code into XML and potentially other formats",
|
||||
"support": {
|
||||
"issues": "https://github.com/theseer/tokenizer/issues",
|
||||
"source": "https://github.com/theseer/tokenizer/tree/1.3.0"
|
||||
"source": "https://github.com/theseer/tokenizer/tree/1.3.1"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@@ -8764,7 +8764,7 @@
|
||||
"type": "github"
|
||||
}
|
||||
],
|
||||
"time": "2025-11-13T13:44:09+00:00"
|
||||
"time": "2025-11-17T20:03:58+00:00"
|
||||
},
|
||||
{
|
||||
"name": "twig/twig",
|
||||
@@ -8897,7 +8897,9 @@
|
||||
],
|
||||
"aliases": [],
|
||||
"minimum-stability": "stable",
|
||||
"stability-flags": [],
|
||||
"stability-flags": {
|
||||
"appwrite/sdk-generator": 20
|
||||
},
|
||||
"prefer-stable": false,
|
||||
"prefer-lowest": false,
|
||||
"platform": {
|
||||
@@ -8921,5 +8923,5 @@
|
||||
"platform-overrides": {
|
||||
"php": "8.3"
|
||||
},
|
||||
"plugin-api-version": "2.3.0"
|
||||
"plugin-api-version": "2.6.0"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
import io.appwrite.Client;
|
||||
import io.appwrite.coroutines.CoroutineCallback;
|
||||
import io.appwrite.services.Avatars;
|
||||
import io.appwrite.enums.Theme;
|
||||
import io.appwrite.enums.Timezone;
|
||||
import io.appwrite.enums.Output;
|
||||
|
||||
Client client = new Client(context)
|
||||
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
@@ -14,11 +17,11 @@ avatars.getScreenshot(
|
||||
1, // viewportWidth (optional)
|
||||
1, // viewportHeight (optional)
|
||||
0.1, // scale (optional)
|
||||
theme.LIGHT, // theme (optional)
|
||||
Theme.LIGHT, // theme (optional)
|
||||
"<USER_AGENT>", // userAgent (optional)
|
||||
false, // fullpage (optional)
|
||||
"<LOCALE>", // locale (optional)
|
||||
timezone.AFRICA_ABIDJAN, // timezone (optional)
|
||||
Timezone.AFRICA_ABIDJAN, // timezone (optional)
|
||||
-90, // latitude (optional)
|
||||
-180, // longitude (optional)
|
||||
0, // accuracy (optional)
|
||||
@@ -28,7 +31,7 @@ avatars.getScreenshot(
|
||||
0, // width (optional)
|
||||
0, // height (optional)
|
||||
-1, // quality (optional)
|
||||
output.JPG, // output (optional)
|
||||
Output.JPG, // output (optional)
|
||||
new CoroutineCallback<>((result, error) -> {
|
||||
if (error != null) {
|
||||
error.printStackTrace();
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import io.appwrite.Client;
|
||||
import io.appwrite.coroutines.CoroutineCallback;
|
||||
import io.appwrite.services.Functions;
|
||||
import io.appwrite.enums.ExecutionMethod;
|
||||
|
||||
Client client = new Client(context)
|
||||
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
import io.appwrite.Client;
|
||||
import io.appwrite.coroutines.CoroutineCallback;
|
||||
import io.appwrite.services.Storage;
|
||||
import io.appwrite.enums.ImageGravity;
|
||||
import io.appwrite.enums.ImageFormat;
|
||||
|
||||
Client client = new Client(context)
|
||||
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
import io.appwrite.Client
|
||||
import io.appwrite.coroutines.CoroutineCallback
|
||||
import io.appwrite.services.Avatars
|
||||
import io.appwrite.enums.Theme
|
||||
import io.appwrite.enums.Timezone
|
||||
import io.appwrite.enums.Output
|
||||
|
||||
val client = Client(context)
|
||||
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import io.appwrite.Client
|
||||
import io.appwrite.coroutines.CoroutineCallback
|
||||
import io.appwrite.services.Functions
|
||||
import io.appwrite.enums.ExecutionMethod
|
||||
|
||||
val client = Client(context)
|
||||
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
import io.appwrite.Client
|
||||
import io.appwrite.coroutines.CoroutineCallback
|
||||
import io.appwrite.services.Storage
|
||||
import io.appwrite.enums.ImageGravity
|
||||
import io.appwrite.enums.ImageFormat
|
||||
|
||||
val client = Client(context)
|
||||
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
|
||||
@@ -7,7 +7,7 @@ Client client = Client()
|
||||
Avatars avatars = Avatars(client);
|
||||
|
||||
// Downloading file
|
||||
UInt8List bytes = await avatars.getBrowser(
|
||||
Uint8List bytes = await avatars.getBrowser(
|
||||
code: Browser.avantBrowser,
|
||||
width: 0, // optional
|
||||
height: 0, // optional
|
||||
|
||||
@@ -7,7 +7,7 @@ Client client = Client()
|
||||
Avatars avatars = Avatars(client);
|
||||
|
||||
// Downloading file
|
||||
UInt8List bytes = await avatars.getCreditCard(
|
||||
Uint8List bytes = await avatars.getCreditCard(
|
||||
code: CreditCard.americanExpress,
|
||||
width: 0, // optional
|
||||
height: 0, // optional
|
||||
|
||||
@@ -7,7 +7,7 @@ Client client = Client()
|
||||
Avatars avatars = Avatars(client);
|
||||
|
||||
// Downloading file
|
||||
UInt8List bytes = await avatars.getFavicon(
|
||||
Uint8List bytes = await avatars.getFavicon(
|
||||
url: 'https://example.com',
|
||||
)
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ Client client = Client()
|
||||
Avatars avatars = Avatars(client);
|
||||
|
||||
// Downloading file
|
||||
UInt8List bytes = await avatars.getFlag(
|
||||
Uint8List bytes = await avatars.getFlag(
|
||||
code: Flag.afghanistan,
|
||||
width: 0, // optional
|
||||
height: 0, // optional
|
||||
|
||||
@@ -7,7 +7,7 @@ Client client = Client()
|
||||
Avatars avatars = Avatars(client);
|
||||
|
||||
// Downloading file
|
||||
UInt8List bytes = await avatars.getImage(
|
||||
Uint8List bytes = await avatars.getImage(
|
||||
url: 'https://example.com',
|
||||
width: 0, // optional
|
||||
height: 0, // optional
|
||||
|
||||
@@ -7,7 +7,7 @@ Client client = Client()
|
||||
Avatars avatars = Avatars(client);
|
||||
|
||||
// Downloading file
|
||||
UInt8List bytes = await avatars.getInitials(
|
||||
Uint8List bytes = await avatars.getInitials(
|
||||
name: '<NAME>', // optional
|
||||
width: 0, // optional
|
||||
height: 0, // optional
|
||||
|
||||
@@ -7,7 +7,7 @@ Client client = Client()
|
||||
Avatars avatars = Avatars(client);
|
||||
|
||||
// Downloading file
|
||||
UInt8List bytes = await avatars.getQR(
|
||||
Uint8List bytes = await avatars.getQR(
|
||||
text: '<TEXT>',
|
||||
size: 1, // optional
|
||||
margin: 0, // optional
|
||||
|
||||
@@ -7,17 +7,17 @@ Client client = Client()
|
||||
Avatars avatars = Avatars(client);
|
||||
|
||||
// Downloading file
|
||||
UInt8List bytes = await avatars.getScreenshot(
|
||||
Uint8List bytes = await avatars.getScreenshot(
|
||||
url: 'https://example.com',
|
||||
headers: {}, // optional
|
||||
viewportWidth: 1, // optional
|
||||
viewportHeight: 1, // optional
|
||||
scale: 0.1, // optional
|
||||
theme: .light, // optional
|
||||
theme: Theme.light, // optional
|
||||
userAgent: '<USER_AGENT>', // optional
|
||||
fullpage: false, // optional
|
||||
locale: '<LOCALE>', // optional
|
||||
timezone: .africaAbidjan, // optional
|
||||
timezone: Timezone.africaAbidjan, // optional
|
||||
latitude: -90, // optional
|
||||
longitude: -180, // optional
|
||||
accuracy: 0, // optional
|
||||
@@ -27,7 +27,7 @@ UInt8List bytes = await avatars.getScreenshot(
|
||||
width: 0, // optional
|
||||
height: 0, // optional
|
||||
quality: -1, // optional
|
||||
output: .jpg, // optional
|
||||
output: Output.jpg, // optional
|
||||
)
|
||||
|
||||
final file = File('path_to_file/filename.ext');
|
||||
@@ -41,11 +41,11 @@ FutureBuilder(
|
||||
viewportWidth:1 , // optional
|
||||
viewportHeight:1 , // optional
|
||||
scale:0.1 , // optional
|
||||
theme: .light, // optional
|
||||
theme: Theme.light, // optional
|
||||
userAgent:'<USER_AGENT>' , // optional
|
||||
fullpage:false , // optional
|
||||
locale:'<LOCALE>' , // optional
|
||||
timezone: .africaAbidjan, // optional
|
||||
timezone: Timezone.africaAbidjan, // optional
|
||||
latitude:-90 , // optional
|
||||
longitude:-180 , // optional
|
||||
accuracy:0 , // optional
|
||||
@@ -55,7 +55,7 @@ FutureBuilder(
|
||||
width:0 , // optional
|
||||
height:0 , // optional
|
||||
quality:-1 , // optional
|
||||
output: .jpg, // optional
|
||||
output: Output.jpg, // optional
|
||||
), // Works for both public file and private file, for private files you need to be logged in
|
||||
builder: (context, snapshot) {
|
||||
return snapshot.hasData && snapshot.data != null
|
||||
|
||||
@@ -7,7 +7,7 @@ Client client = Client()
|
||||
Storage storage = Storage(client);
|
||||
|
||||
// Downloading file
|
||||
UInt8List bytes = await storage.getFileDownload(
|
||||
Uint8List bytes = await storage.getFileDownload(
|
||||
bucketId: '<BUCKET_ID>',
|
||||
fileId: '<FILE_ID>',
|
||||
token: '<TOKEN>', // optional
|
||||
|
||||
@@ -7,7 +7,7 @@ Client client = Client()
|
||||
Storage storage = Storage(client);
|
||||
|
||||
// Downloading file
|
||||
UInt8List bytes = await storage.getFilePreview(
|
||||
Uint8List bytes = await storage.getFilePreview(
|
||||
bucketId: '<BUCKET_ID>',
|
||||
fileId: '<FILE_ID>',
|
||||
width: 0, // optional
|
||||
|
||||
@@ -7,7 +7,7 @@ Client client = Client()
|
||||
Storage storage = Storage(client);
|
||||
|
||||
// Downloading file
|
||||
UInt8List bytes = await storage.getFileView(
|
||||
Uint8List bytes = await storage.getFileView(
|
||||
bucketId: '<BUCKET_ID>',
|
||||
fileId: '<FILE_ID>',
|
||||
token: '<TOKEN>', // optional
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Client, Avatars, , , } from "react-native-appwrite";
|
||||
import { Client, Avatars, Theme, Timezone, Output } from "react-native-appwrite";
|
||||
|
||||
const client = new Client()
|
||||
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
||||
@@ -12,11 +12,11 @@ const result = avatars.getScreenshot({
|
||||
viewportWidth: 1, // optional
|
||||
viewportHeight: 1, // optional
|
||||
scale: 0.1, // optional
|
||||
theme: .Light, // optional
|
||||
theme: Theme.Light, // optional
|
||||
userAgent: '<USER_AGENT>', // optional
|
||||
fullpage: false, // optional
|
||||
locale: '<LOCALE>', // optional
|
||||
timezone: .AfricaAbidjan, // optional
|
||||
timezone: Timezone.AfricaAbidjan, // optional
|
||||
latitude: -90, // optional
|
||||
longitude: -180, // optional
|
||||
accuracy: 0, // optional
|
||||
@@ -26,7 +26,7 @@ const result = avatars.getScreenshot({
|
||||
width: 0, // optional
|
||||
height: 0, // optional
|
||||
quality: -1, // optional
|
||||
output: .Jpg // optional
|
||||
output: Output.Jpg // optional
|
||||
});
|
||||
|
||||
console.log(result);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Client, Avatars, , , } from "appwrite";
|
||||
import { Client, Avatars, Theme, Timezone, Output } from "appwrite";
|
||||
|
||||
const client = new Client()
|
||||
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
||||
@@ -12,11 +12,11 @@ const result = avatars.getScreenshot({
|
||||
viewportWidth: 1, // optional
|
||||
viewportHeight: 1, // optional
|
||||
scale: 0.1, // optional
|
||||
theme: .Light, // optional
|
||||
theme: Theme.Light, // optional
|
||||
userAgent: '<USER_AGENT>', // optional
|
||||
fullpage: false, // optional
|
||||
locale: '<LOCALE>', // optional
|
||||
timezone: .AfricaAbidjan, // optional
|
||||
timezone: Timezone.AfricaAbidjan, // optional
|
||||
latitude: -90, // optional
|
||||
longitude: -180, // optional
|
||||
accuracy: 0, // optional
|
||||
@@ -26,7 +26,7 @@ const result = avatars.getScreenshot({
|
||||
width: 0, // optional
|
||||
height: 0, // optional
|
||||
quality: -1, // optional
|
||||
output: .Jpg // optional
|
||||
output: Output.Jpg // optional
|
||||
});
|
||||
|
||||
console.log(result);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Client, Avatars, , , } from "@appwrite.io/console";
|
||||
import { Client, Avatars, Theme, Timezone, Output } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client()
|
||||
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
||||
@@ -12,11 +12,11 @@ const result = avatars.getScreenshot({
|
||||
viewportWidth: 1, // optional
|
||||
viewportHeight: 1, // optional
|
||||
scale: 0.1, // optional
|
||||
theme: .Light, // optional
|
||||
theme: Theme.Light, // optional
|
||||
userAgent: '<USER_AGENT>', // optional
|
||||
fullpage: false, // optional
|
||||
locale: '<LOCALE>', // optional
|
||||
timezone: .AfricaAbidjan, // optional
|
||||
timezone: Timezone.AfricaAbidjan, // optional
|
||||
latitude: -90, // optional
|
||||
longitude: -180, // optional
|
||||
accuracy: 0, // optional
|
||||
@@ -26,7 +26,7 @@ const result = avatars.getScreenshot({
|
||||
width: 0, // optional
|
||||
height: 0, // optional
|
||||
quality: -1, // optional
|
||||
output: .Jpg // optional
|
||||
output: Output.Jpg // optional
|
||||
});
|
||||
|
||||
console.log(result);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Client, Functions, } from "@appwrite.io/console";
|
||||
import { Client, Functions, Runtime } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client()
|
||||
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
||||
@@ -9,7 +9,7 @@ const functions = new Functions(client);
|
||||
const result = await functions.create({
|
||||
functionId: '<FUNCTION_ID>',
|
||||
name: '<NAME>',
|
||||
runtime: .Node145,
|
||||
runtime: Runtime.Node145,
|
||||
execute: ["any"], // optional
|
||||
events: [], // optional
|
||||
schedule: '', // optional
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Client, Functions, } from "@appwrite.io/console";
|
||||
import { Client, Functions, Runtime } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client()
|
||||
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
||||
@@ -9,7 +9,7 @@ const functions = new Functions(client);
|
||||
const result = await functions.update({
|
||||
functionId: '<FUNCTION_ID>',
|
||||
name: '<NAME>',
|
||||
runtime: .Node145, // optional
|
||||
runtime: Runtime.Node145, // optional
|
||||
execute: ["any"], // optional
|
||||
events: [], // optional
|
||||
schedule: '', // optional
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Client, Health, } from "@appwrite.io/console";
|
||||
import { Client, Health, Name } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client()
|
||||
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
||||
@@ -7,7 +7,7 @@ const client = new Client()
|
||||
const health = new Health(client);
|
||||
|
||||
const result = await health.getFailedJobs({
|
||||
name: .V1Database,
|
||||
name: Name.V1Database,
|
||||
threshold: null // optional
|
||||
});
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Client, Projects, } from "@appwrite.io/console";
|
||||
import { Client, Projects, Region } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client()
|
||||
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
||||
@@ -10,7 +10,7 @@ const result = await projects.create({
|
||||
projectId: '',
|
||||
name: '<NAME>',
|
||||
teamId: '<TEAM_ID>',
|
||||
region: .Default, // optional
|
||||
region: Region.Default, // optional
|
||||
description: '<DESCRIPTION>', // optional
|
||||
logo: '<LOGO>', // optional
|
||||
url: 'https://example.com', // optional
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Client, Projects, } from "@appwrite.io/console";
|
||||
import { Client, Projects, Api } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client()
|
||||
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
||||
@@ -8,7 +8,7 @@ const projects = new Projects(client);
|
||||
|
||||
const result = await projects.updateAPIStatus({
|
||||
projectId: '<PROJECT_ID>',
|
||||
api: .Rest,
|
||||
api: Api.Rest,
|
||||
status: false
|
||||
});
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Client, Proxy, , ProxyResourceType } from "@appwrite.io/console";
|
||||
import { Client, Proxy, StatusCode, ProxyResourceType } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client()
|
||||
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
||||
@@ -9,7 +9,7 @@ const proxy = new Proxy(client);
|
||||
const result = await proxy.createRedirectRule({
|
||||
domain: '',
|
||||
url: 'https://example.com',
|
||||
statusCode: .MovedPermanently301,
|
||||
statusCode: StatusCode.MovedPermanently301,
|
||||
resourceId: '<RESOURCE_ID>',
|
||||
resourceType: ProxyResourceType.Site
|
||||
});
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Client, Sites, , , } from "@appwrite.io/console";
|
||||
import { Client, Sites, Framework, BuildRuntime, Adapter } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client()
|
||||
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
||||
@@ -9,15 +9,15 @@ const sites = new Sites(client);
|
||||
const result = await sites.create({
|
||||
siteId: '<SITE_ID>',
|
||||
name: '<NAME>',
|
||||
framework: .Analog,
|
||||
buildRuntime: .Node145,
|
||||
framework: Framework.Analog,
|
||||
buildRuntime: BuildRuntime.Node145,
|
||||
enabled: false, // optional
|
||||
logging: false, // optional
|
||||
timeout: 1, // optional
|
||||
installCommand: '<INSTALL_COMMAND>', // optional
|
||||
buildCommand: '<BUILD_COMMAND>', // optional
|
||||
outputDirectory: '<OUTPUT_DIRECTORY>', // optional
|
||||
adapter: .Static, // optional
|
||||
adapter: Adapter.Static, // optional
|
||||
installationId: '<INSTALLATION_ID>', // optional
|
||||
fallbackFile: '<FALLBACK_FILE>', // optional
|
||||
providerRepositoryId: '<PROVIDER_REPOSITORY_ID>', // optional
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Client, Sites, , , } from "@appwrite.io/console";
|
||||
import { Client, Sites, Framework, BuildRuntime, Adapter } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client()
|
||||
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
||||
@@ -9,15 +9,15 @@ const sites = new Sites(client);
|
||||
const result = await sites.update({
|
||||
siteId: '<SITE_ID>',
|
||||
name: '<NAME>',
|
||||
framework: .Analog,
|
||||
framework: Framework.Analog,
|
||||
enabled: false, // optional
|
||||
logging: false, // optional
|
||||
timeout: 1, // optional
|
||||
installCommand: '<INSTALL_COMMAND>', // optional
|
||||
buildCommand: '<BUILD_COMMAND>', // optional
|
||||
outputDirectory: '<OUTPUT_DIRECTORY>', // optional
|
||||
buildRuntime: .Node145, // optional
|
||||
adapter: .Static, // optional
|
||||
buildRuntime: BuildRuntime.Node145, // optional
|
||||
adapter: Adapter.Static, // optional
|
||||
fallbackFile: '<FALLBACK_FILE>', // optional
|
||||
installationId: '<INSTALLATION_ID>', // optional
|
||||
providerRepositoryId: '<PROVIDER_REPOSITORY_ID>', // optional
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Client, Storage, , Permission, Role } from "@appwrite.io/console";
|
||||
import { Client, Storage, Compression, Permission, Role } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client()
|
||||
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
||||
@@ -14,7 +14,7 @@ const result = await storage.createBucket({
|
||||
enabled: false, // optional
|
||||
maximumFileSize: 1, // optional
|
||||
allowedFileExtensions: [], // optional
|
||||
compression: .None, // optional
|
||||
compression: Compression.None, // optional
|
||||
encryption: false, // optional
|
||||
antivirus: false // optional
|
||||
});
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Client, Storage, , Permission, Role } from "@appwrite.io/console";
|
||||
import { Client, Storage, Compression, Permission, Role } from "@appwrite.io/console";
|
||||
|
||||
const client = new Client()
|
||||
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
||||
@@ -14,7 +14,7 @@ const result = await storage.updateBucket({
|
||||
enabled: false, // optional
|
||||
maximumFileSize: 1, // optional
|
||||
allowedFileExtensions: [], // optional
|
||||
compression: .None, // optional
|
||||
compression: Compression.None, // optional
|
||||
encryption: false, // optional
|
||||
antivirus: false // optional
|
||||
});
|
||||
|
||||
@@ -7,7 +7,7 @@ Client client = Client()
|
||||
|
||||
Avatars avatars = Avatars(client);
|
||||
|
||||
UInt8List result = await avatars.getBrowser(
|
||||
Uint8List result = await avatars.getBrowser(
|
||||
code: Browser.avantBrowser,
|
||||
width: 0, // (optional)
|
||||
height: 0, // (optional)
|
||||
|
||||
@@ -7,7 +7,7 @@ Client client = Client()
|
||||
|
||||
Avatars avatars = Avatars(client);
|
||||
|
||||
UInt8List result = await avatars.getCreditCard(
|
||||
Uint8List result = await avatars.getCreditCard(
|
||||
code: CreditCard.americanExpress,
|
||||
width: 0, // (optional)
|
||||
height: 0, // (optional)
|
||||
|
||||
@@ -7,6 +7,6 @@ Client client = Client()
|
||||
|
||||
Avatars avatars = Avatars(client);
|
||||
|
||||
UInt8List result = await avatars.getFavicon(
|
||||
Uint8List result = await avatars.getFavicon(
|
||||
url: 'https://example.com',
|
||||
);
|
||||
|
||||
@@ -7,7 +7,7 @@ Client client = Client()
|
||||
|
||||
Avatars avatars = Avatars(client);
|
||||
|
||||
UInt8List result = await avatars.getFlag(
|
||||
Uint8List result = await avatars.getFlag(
|
||||
code: Flag.afghanistan,
|
||||
width: 0, // (optional)
|
||||
height: 0, // (optional)
|
||||
|
||||
@@ -7,7 +7,7 @@ Client client = Client()
|
||||
|
||||
Avatars avatars = Avatars(client);
|
||||
|
||||
UInt8List result = await avatars.getImage(
|
||||
Uint8List result = await avatars.getImage(
|
||||
url: 'https://example.com',
|
||||
width: 0, // (optional)
|
||||
height: 0, // (optional)
|
||||
|
||||
@@ -7,7 +7,7 @@ Client client = Client()
|
||||
|
||||
Avatars avatars = Avatars(client);
|
||||
|
||||
UInt8List result = await avatars.getInitials(
|
||||
Uint8List result = await avatars.getInitials(
|
||||
name: '<NAME>', // (optional)
|
||||
width: 0, // (optional)
|
||||
height: 0, // (optional)
|
||||
|
||||
@@ -7,7 +7,7 @@ Client client = Client()
|
||||
|
||||
Avatars avatars = Avatars(client);
|
||||
|
||||
UInt8List result = await avatars.getQR(
|
||||
Uint8List result = await avatars.getQR(
|
||||
text: '<TEXT>',
|
||||
size: 1, // (optional)
|
||||
margin: 0, // (optional)
|
||||
|
||||
@@ -7,17 +7,17 @@ Client client = Client()
|
||||
|
||||
Avatars avatars = Avatars(client);
|
||||
|
||||
UInt8List result = await avatars.getScreenshot(
|
||||
Uint8List result = await avatars.getScreenshot(
|
||||
url: 'https://example.com',
|
||||
headers: {}, // (optional)
|
||||
viewportWidth: 1, // (optional)
|
||||
viewportHeight: 1, // (optional)
|
||||
scale: 0.1, // (optional)
|
||||
theme: .light, // (optional)
|
||||
theme: Theme.light, // (optional)
|
||||
userAgent: '<USER_AGENT>', // (optional)
|
||||
fullpage: false, // (optional)
|
||||
locale: '<LOCALE>', // (optional)
|
||||
timezone: .africaAbidjan, // (optional)
|
||||
timezone: Timezone.africaAbidjan, // (optional)
|
||||
latitude: -90, // (optional)
|
||||
longitude: -180, // (optional)
|
||||
accuracy: 0, // (optional)
|
||||
@@ -27,5 +27,5 @@ UInt8List result = await avatars.getScreenshot(
|
||||
width: 0, // (optional)
|
||||
height: 0, // (optional)
|
||||
quality: -1, // (optional)
|
||||
output: .jpg, // (optional)
|
||||
output: Output.jpg, // (optional)
|
||||
);
|
||||
|
||||
@@ -10,7 +10,7 @@ Functions functions = Functions(client);
|
||||
Func result = await functions.create(
|
||||
functionId: '<FUNCTION_ID>',
|
||||
name: '<NAME>',
|
||||
runtime: .node145,
|
||||
runtime: Runtime.node145,
|
||||
execute: ["any"], // (optional)
|
||||
events: [], // (optional)
|
||||
schedule: '', // (optional)
|
||||
|
||||
@@ -7,7 +7,7 @@ Client client = Client()
|
||||
|
||||
Functions functions = Functions(client);
|
||||
|
||||
UInt8List result = await functions.getDeploymentDownload(
|
||||
Uint8List result = await functions.getDeploymentDownload(
|
||||
functionId: '<FUNCTION_ID>',
|
||||
deploymentId: '<DEPLOYMENT_ID>',
|
||||
type: DeploymentDownloadType.source, // (optional)
|
||||
|
||||
@@ -10,7 +10,7 @@ Functions functions = Functions(client);
|
||||
Func result = await functions.update(
|
||||
functionId: '<FUNCTION_ID>',
|
||||
name: '<NAME>',
|
||||
runtime: .node145, // (optional)
|
||||
runtime: Runtime.node145, // (optional)
|
||||
execute: ["any"], // (optional)
|
||||
events: [], // (optional)
|
||||
schedule: '', // (optional)
|
||||
|
||||
@@ -8,6 +8,6 @@ Client client = Client()
|
||||
Health health = Health(client);
|
||||
|
||||
HealthQueue result = await health.getFailedJobs(
|
||||
name: .v1Database,
|
||||
name: Name.v1Database,
|
||||
threshold: 0, // (optional)
|
||||
);
|
||||
|
||||
@@ -10,15 +10,15 @@ Sites sites = Sites(client);
|
||||
Site result = await sites.create(
|
||||
siteId: '<SITE_ID>',
|
||||
name: '<NAME>',
|
||||
framework: .analog,
|
||||
buildRuntime: .node145,
|
||||
framework: Framework.analog,
|
||||
buildRuntime: BuildRuntime.node145,
|
||||
enabled: false, // (optional)
|
||||
logging: false, // (optional)
|
||||
timeout: 1, // (optional)
|
||||
installCommand: '<INSTALL_COMMAND>', // (optional)
|
||||
buildCommand: '<BUILD_COMMAND>', // (optional)
|
||||
outputDirectory: '<OUTPUT_DIRECTORY>', // (optional)
|
||||
adapter: .static, // (optional)
|
||||
adapter: Adapter.static, // (optional)
|
||||
installationId: '<INSTALLATION_ID>', // (optional)
|
||||
fallbackFile: '<FALLBACK_FILE>', // (optional)
|
||||
providerRepositoryId: '<PROVIDER_REPOSITORY_ID>', // (optional)
|
||||
|
||||
@@ -7,7 +7,7 @@ Client client = Client()
|
||||
|
||||
Sites sites = Sites(client);
|
||||
|
||||
UInt8List result = await sites.getDeploymentDownload(
|
||||
Uint8List result = await sites.getDeploymentDownload(
|
||||
siteId: '<SITE_ID>',
|
||||
deploymentId: '<DEPLOYMENT_ID>',
|
||||
type: DeploymentDownloadType.source, // (optional)
|
||||
|
||||
@@ -10,15 +10,15 @@ Sites sites = Sites(client);
|
||||
Site result = await sites.update(
|
||||
siteId: '<SITE_ID>',
|
||||
name: '<NAME>',
|
||||
framework: .analog,
|
||||
framework: Framework.analog,
|
||||
enabled: false, // (optional)
|
||||
logging: false, // (optional)
|
||||
timeout: 1, // (optional)
|
||||
installCommand: '<INSTALL_COMMAND>', // (optional)
|
||||
buildCommand: '<BUILD_COMMAND>', // (optional)
|
||||
outputDirectory: '<OUTPUT_DIRECTORY>', // (optional)
|
||||
buildRuntime: .node145, // (optional)
|
||||
adapter: .static, // (optional)
|
||||
buildRuntime: BuildRuntime.node145, // (optional)
|
||||
adapter: Adapter.static, // (optional)
|
||||
fallbackFile: '<FALLBACK_FILE>', // (optional)
|
||||
installationId: '<INSTALLATION_ID>', // (optional)
|
||||
providerRepositoryId: '<PROVIDER_REPOSITORY_ID>', // (optional)
|
||||
|
||||
@@ -17,7 +17,7 @@ Bucket result = await storage.createBucket(
|
||||
enabled: false, // (optional)
|
||||
maximumFileSize: 1, // (optional)
|
||||
allowedFileExtensions: [], // (optional)
|
||||
compression: .none, // (optional)
|
||||
compression: Compression.none, // (optional)
|
||||
encryption: false, // (optional)
|
||||
antivirus: false, // (optional)
|
||||
);
|
||||
|
||||
@@ -7,7 +7,7 @@ Client client = Client()
|
||||
|
||||
Storage storage = Storage(client);
|
||||
|
||||
UInt8List result = await storage.getFileDownload(
|
||||
Uint8List result = await storage.getFileDownload(
|
||||
bucketId: '<BUCKET_ID>',
|
||||
fileId: '<FILE_ID>',
|
||||
token: '<TOKEN>', // (optional)
|
||||
|
||||
@@ -7,7 +7,7 @@ Client client = Client()
|
||||
|
||||
Storage storage = Storage(client);
|
||||
|
||||
UInt8List result = await storage.getFilePreview(
|
||||
Uint8List result = await storage.getFilePreview(
|
||||
bucketId: '<BUCKET_ID>',
|
||||
fileId: '<FILE_ID>',
|
||||
width: 0, // (optional)
|
||||
|
||||
@@ -7,7 +7,7 @@ Client client = Client()
|
||||
|
||||
Storage storage = Storage(client);
|
||||
|
||||
UInt8List result = await storage.getFileView(
|
||||
Uint8List result = await storage.getFileView(
|
||||
bucketId: '<BUCKET_ID>',
|
||||
fileId: '<FILE_ID>',
|
||||
token: '<TOKEN>', // (optional)
|
||||
|
||||
@@ -17,7 +17,7 @@ Bucket result = await storage.updateBucket(
|
||||
enabled: false, // (optional)
|
||||
maximumFileSize: 1, // (optional)
|
||||
allowedFileExtensions: [], // (optional)
|
||||
compression: .none, // (optional)
|
||||
compression: Compression.none, // (optional)
|
||||
encryption: false, // (optional)
|
||||
antivirus: false, // (optional)
|
||||
);
|
||||
|
||||
@@ -16,11 +16,11 @@ byte[] result = await avatars.GetScreenshot(
|
||||
viewportWidth: 1, // optional
|
||||
viewportHeight: 1, // optional
|
||||
scale: 0.1, // optional
|
||||
theme: .Light, // optional
|
||||
theme: Theme.Light, // optional
|
||||
userAgent: "<USER_AGENT>", // optional
|
||||
fullpage: false, // optional
|
||||
locale: "<LOCALE>", // optional
|
||||
timezone: .AfricaAbidjan, // optional
|
||||
timezone: Timezone.AfricaAbidjan, // optional
|
||||
latitude: -90, // optional
|
||||
longitude: -180, // optional
|
||||
accuracy: 0, // optional
|
||||
@@ -30,5 +30,5 @@ byte[] result = await avatars.GetScreenshot(
|
||||
width: 0, // optional
|
||||
height: 0, // optional
|
||||
quality: -1, // optional
|
||||
output: .Jpg // optional
|
||||
output: Output.Jpg // optional
|
||||
);
|
||||
@@ -13,7 +13,7 @@ Functions functions = new Functions(client);
|
||||
Function result = await functions.Create(
|
||||
functionId: "<FUNCTION_ID>",
|
||||
name: "<NAME>",
|
||||
runtime: .Node145,
|
||||
runtime: Runtime.Node145,
|
||||
execute: ["any"], // optional
|
||||
events: new List<string>(), // optional
|
||||
schedule: "", // optional
|
||||
|
||||
@@ -13,7 +13,7 @@ Functions functions = new Functions(client);
|
||||
Function result = await functions.Update(
|
||||
functionId: "<FUNCTION_ID>",
|
||||
name: "<NAME>",
|
||||
runtime: .Node145, // optional
|
||||
runtime: Runtime.Node145, // optional
|
||||
execute: ["any"], // optional
|
||||
events: new List<string>(), // optional
|
||||
schedule: "", // optional
|
||||
|
||||
@@ -11,6 +11,6 @@ Client client = new Client()
|
||||
Health health = new Health(client);
|
||||
|
||||
HealthQueue result = await health.GetFailedJobs(
|
||||
name: .V1Database,
|
||||
name: Name.V1Database,
|
||||
threshold: 0 // optional
|
||||
);
|
||||
@@ -13,15 +13,15 @@ Sites sites = new Sites(client);
|
||||
Site result = await sites.Create(
|
||||
siteId: "<SITE_ID>",
|
||||
name: "<NAME>",
|
||||
framework: .Analog,
|
||||
buildRuntime: .Node145,
|
||||
framework: Framework.Analog,
|
||||
buildRuntime: BuildRuntime.Node145,
|
||||
enabled: false, // optional
|
||||
logging: false, // optional
|
||||
timeout: 1, // optional
|
||||
installCommand: "<INSTALL_COMMAND>", // optional
|
||||
buildCommand: "<BUILD_COMMAND>", // optional
|
||||
outputDirectory: "<OUTPUT_DIRECTORY>", // optional
|
||||
adapter: .Static, // optional
|
||||
adapter: Adapter.Static, // optional
|
||||
installationId: "<INSTALLATION_ID>", // optional
|
||||
fallbackFile: "<FALLBACK_FILE>", // optional
|
||||
providerRepositoryId: "<PROVIDER_REPOSITORY_ID>", // optional
|
||||
|
||||
@@ -13,15 +13,15 @@ Sites sites = new Sites(client);
|
||||
Site result = await sites.Update(
|
||||
siteId: "<SITE_ID>",
|
||||
name: "<NAME>",
|
||||
framework: .Analog,
|
||||
framework: Framework.Analog,
|
||||
enabled: false, // optional
|
||||
logging: false, // optional
|
||||
timeout: 1, // optional
|
||||
installCommand: "<INSTALL_COMMAND>", // optional
|
||||
buildCommand: "<BUILD_COMMAND>", // optional
|
||||
outputDirectory: "<OUTPUT_DIRECTORY>", // optional
|
||||
buildRuntime: .Node145, // optional
|
||||
adapter: .Static, // optional
|
||||
buildRuntime: BuildRuntime.Node145, // optional
|
||||
adapter: Adapter.Static, // optional
|
||||
fallbackFile: "<FALLBACK_FILE>", // optional
|
||||
installationId: "<INSTALLATION_ID>", // optional
|
||||
providerRepositoryId: "<PROVIDER_REPOSITORY_ID>", // optional
|
||||
|
||||
@@ -18,7 +18,7 @@ Bucket result = await storage.CreateBucket(
|
||||
enabled: false, // optional
|
||||
maximumFileSize: 1, // optional
|
||||
allowedFileExtensions: new List<string>(), // optional
|
||||
compression: .None, // optional
|
||||
compression: Compression.None, // optional
|
||||
encryption: false, // optional
|
||||
antivirus: false // optional
|
||||
);
|
||||
@@ -18,7 +18,7 @@ Bucket result = await storage.UpdateBucket(
|
||||
enabled: false, // optional
|
||||
maximumFileSize: 1, // optional
|
||||
allowedFileExtensions: new List<string>(), // optional
|
||||
compression: .None, // optional
|
||||
compression: Compression.None, // optional
|
||||
encryption: false, // optional
|
||||
antivirus: false // optional
|
||||
);
|
||||
@@ -1,6 +1,9 @@
|
||||
import io.appwrite.Client;
|
||||
import io.appwrite.coroutines.CoroutineCallback;
|
||||
import io.appwrite.services.Avatars;
|
||||
import io.appwrite.enums.Theme;
|
||||
import io.appwrite.enums.Timezone;
|
||||
import io.appwrite.enums.Output;
|
||||
|
||||
Client client = new Client()
|
||||
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
@@ -15,11 +18,11 @@ avatars.getScreenshot(
|
||||
1, // viewportWidth (optional)
|
||||
1, // viewportHeight (optional)
|
||||
0.1, // scale (optional)
|
||||
.LIGHT, // theme (optional)
|
||||
Theme.LIGHT, // theme (optional)
|
||||
"<USER_AGENT>", // userAgent (optional)
|
||||
false, // fullpage (optional)
|
||||
"<LOCALE>", // locale (optional)
|
||||
.AFRICA_ABIDJAN, // timezone (optional)
|
||||
Timezone.AFRICA_ABIDJAN, // timezone (optional)
|
||||
-90, // latitude (optional)
|
||||
-180, // longitude (optional)
|
||||
0, // accuracy (optional)
|
||||
@@ -29,7 +32,7 @@ avatars.getScreenshot(
|
||||
0, // width (optional)
|
||||
0, // height (optional)
|
||||
-1, // quality (optional)
|
||||
.JPG, // output (optional)
|
||||
Output.JPG, // output (optional)
|
||||
new CoroutineCallback<>((result, error) -> {
|
||||
if (error != null) {
|
||||
error.printStackTrace();
|
||||
|
||||
@@ -2,6 +2,7 @@ import io.appwrite.Client;
|
||||
import io.appwrite.coroutines.CoroutineCallback;
|
||||
import io.appwrite.services.Databases;
|
||||
import io.appwrite.enums.RelationshipType;
|
||||
import io.appwrite.enums.RelationMutate;
|
||||
|
||||
Client client = new Client()
|
||||
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import io.appwrite.Client;
|
||||
import io.appwrite.coroutines.CoroutineCallback;
|
||||
import io.appwrite.services.Databases;
|
||||
import io.appwrite.enums.RelationMutate;
|
||||
|
||||
Client client = new Client()
|
||||
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import io.appwrite.Client;
|
||||
import io.appwrite.coroutines.CoroutineCallback;
|
||||
import io.appwrite.services.Functions;
|
||||
import io.appwrite.enums.ExecutionMethod;
|
||||
|
||||
Client client = new Client()
|
||||
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
|
||||
@@ -13,7 +13,7 @@ Functions functions = new Functions(client);
|
||||
functions.create(
|
||||
"<FUNCTION_ID>", // functionId
|
||||
"<NAME>", // name
|
||||
.NODE_14_5, // runtime
|
||||
Runtime.NODE_14_5, // runtime
|
||||
listOf("any"), // execute (optional)
|
||||
listOf(), // events (optional)
|
||||
"", // schedule (optional)
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import io.appwrite.Client;
|
||||
import io.appwrite.coroutines.CoroutineCallback;
|
||||
import io.appwrite.services.Functions;
|
||||
import io.appwrite.enums.DeploymentDownloadType;
|
||||
|
||||
Client client = new Client()
|
||||
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import io.appwrite.Client;
|
||||
import io.appwrite.coroutines.CoroutineCallback;
|
||||
import io.appwrite.services.Functions;
|
||||
import io.appwrite.enums.Runtime;
|
||||
|
||||
Client client = new Client()
|
||||
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
@@ -12,7 +13,7 @@ Functions functions = new Functions(client);
|
||||
functions.update(
|
||||
"<FUNCTION_ID>", // functionId
|
||||
"<NAME>", // name
|
||||
.NODE_14_5, // runtime (optional)
|
||||
Runtime.NODE_14_5, // runtime (optional)
|
||||
listOf("any"), // execute (optional)
|
||||
listOf(), // events (optional)
|
||||
"", // schedule (optional)
|
||||
|
||||
@@ -11,7 +11,7 @@ Client client = new Client()
|
||||
Health health = new Health(client);
|
||||
|
||||
health.getFailedJobs(
|
||||
.V1_DATABASE, // name
|
||||
Name.V1_DATABASE, // name
|
||||
0, // threshold (optional)
|
||||
new CoroutineCallback<>((result, error) -> {
|
||||
if (error != null) {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import io.appwrite.Client;
|
||||
import io.appwrite.coroutines.CoroutineCallback;
|
||||
import io.appwrite.services.Messaging;
|
||||
import io.appwrite.enums.MessagePriority;
|
||||
|
||||
Client client = new Client()
|
||||
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import io.appwrite.Client;
|
||||
import io.appwrite.coroutines.CoroutineCallback;
|
||||
import io.appwrite.services.Messaging;
|
||||
import io.appwrite.enums.SmtpEncryption;
|
||||
|
||||
Client client = new Client()
|
||||
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import io.appwrite.Client;
|
||||
import io.appwrite.coroutines.CoroutineCallback;
|
||||
import io.appwrite.services.Messaging;
|
||||
import io.appwrite.enums.MessagePriority;
|
||||
|
||||
Client client = new Client()
|
||||
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import io.appwrite.Client;
|
||||
import io.appwrite.coroutines.CoroutineCallback;
|
||||
import io.appwrite.services.Messaging;
|
||||
import io.appwrite.enums.SmtpEncryption;
|
||||
|
||||
Client client = new Client()
|
||||
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
|
||||
@@ -3,6 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback;
|
||||
import io.appwrite.services.Sites;
|
||||
import io.appwrite.enums.Framework;
|
||||
import io.appwrite.enums.BuildRuntime;
|
||||
import io.appwrite.enums.Adapter;
|
||||
|
||||
Client client = new Client()
|
||||
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
@@ -14,15 +15,15 @@ Sites sites = new Sites(client);
|
||||
sites.create(
|
||||
"<SITE_ID>", // siteId
|
||||
"<NAME>", // name
|
||||
.ANALOG, // framework
|
||||
.NODE_14_5, // buildRuntime
|
||||
Framework.ANALOG, // framework
|
||||
BuildRuntime.NODE_14_5, // buildRuntime
|
||||
false, // enabled (optional)
|
||||
false, // logging (optional)
|
||||
1, // timeout (optional)
|
||||
"<INSTALL_COMMAND>", // installCommand (optional)
|
||||
"<BUILD_COMMAND>", // buildCommand (optional)
|
||||
"<OUTPUT_DIRECTORY>", // outputDirectory (optional)
|
||||
.STATIC, // adapter (optional)
|
||||
Adapter.STATIC, // adapter (optional)
|
||||
"<INSTALLATION_ID>", // installationId (optional)
|
||||
"<FALLBACK_FILE>", // fallbackFile (optional)
|
||||
"<PROVIDER_REPOSITORY_ID>", // providerRepositoryId (optional)
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import io.appwrite.Client;
|
||||
import io.appwrite.coroutines.CoroutineCallback;
|
||||
import io.appwrite.services.Sites;
|
||||
import io.appwrite.enums.DeploymentDownloadType;
|
||||
|
||||
Client client = new Client()
|
||||
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
|
||||
@@ -2,6 +2,8 @@ import io.appwrite.Client;
|
||||
import io.appwrite.coroutines.CoroutineCallback;
|
||||
import io.appwrite.services.Sites;
|
||||
import io.appwrite.enums.Framework;
|
||||
import io.appwrite.enums.BuildRuntime;
|
||||
import io.appwrite.enums.Adapter;
|
||||
|
||||
Client client = new Client()
|
||||
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
@@ -13,15 +15,15 @@ Sites sites = new Sites(client);
|
||||
sites.update(
|
||||
"<SITE_ID>", // siteId
|
||||
"<NAME>", // name
|
||||
.ANALOG, // framework
|
||||
Framework.ANALOG, // framework
|
||||
false, // enabled (optional)
|
||||
false, // logging (optional)
|
||||
1, // timeout (optional)
|
||||
"<INSTALL_COMMAND>", // installCommand (optional)
|
||||
"<BUILD_COMMAND>", // buildCommand (optional)
|
||||
"<OUTPUT_DIRECTORY>", // outputDirectory (optional)
|
||||
.NODE_14_5, // buildRuntime (optional)
|
||||
.STATIC, // adapter (optional)
|
||||
BuildRuntime.NODE_14_5, // buildRuntime (optional)
|
||||
Adapter.STATIC, // adapter (optional)
|
||||
"<FALLBACK_FILE>", // fallbackFile (optional)
|
||||
"<INSTALLATION_ID>", // installationId (optional)
|
||||
"<PROVIDER_REPOSITORY_ID>", // providerRepositoryId (optional)
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import io.appwrite.Client;
|
||||
import io.appwrite.coroutines.CoroutineCallback;
|
||||
import io.appwrite.services.Storage;
|
||||
import io.appwrite.enums.Compression;
|
||||
import io.appwrite.Permission;
|
||||
import io.appwrite.Role;
|
||||
|
||||
@@ -19,7 +20,7 @@ storage.createBucket(
|
||||
false, // enabled (optional)
|
||||
1, // maximumFileSize (optional)
|
||||
listOf(), // allowedFileExtensions (optional)
|
||||
.NONE, // compression (optional)
|
||||
Compression.NONE, // compression (optional)
|
||||
false, // encryption (optional)
|
||||
false, // antivirus (optional)
|
||||
new CoroutineCallback<>((result, error) -> {
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
import io.appwrite.Client;
|
||||
import io.appwrite.coroutines.CoroutineCallback;
|
||||
import io.appwrite.services.Storage;
|
||||
import io.appwrite.enums.ImageGravity;
|
||||
import io.appwrite.enums.ImageFormat;
|
||||
|
||||
Client client = new Client()
|
||||
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import io.appwrite.Client;
|
||||
import io.appwrite.coroutines.CoroutineCallback;
|
||||
import io.appwrite.services.Storage;
|
||||
import io.appwrite.enums.Compression;
|
||||
import io.appwrite.Permission;
|
||||
import io.appwrite.Role;
|
||||
|
||||
@@ -19,7 +20,7 @@ storage.updateBucket(
|
||||
false, // enabled (optional)
|
||||
1, // maximumFileSize (optional)
|
||||
listOf(), // allowedFileExtensions (optional)
|
||||
.NONE, // compression (optional)
|
||||
Compression.NONE, // compression (optional)
|
||||
false, // encryption (optional)
|
||||
false, // antivirus (optional)
|
||||
new CoroutineCallback<>((result, error) -> {
|
||||
|
||||
@@ -2,6 +2,7 @@ import io.appwrite.Client;
|
||||
import io.appwrite.coroutines.CoroutineCallback;
|
||||
import io.appwrite.services.TablesDB;
|
||||
import io.appwrite.enums.RelationshipType;
|
||||
import io.appwrite.enums.RelationMutate;
|
||||
|
||||
Client client = new Client()
|
||||
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import io.appwrite.Client;
|
||||
import io.appwrite.coroutines.CoroutineCallback;
|
||||
import io.appwrite.services.TablesDB;
|
||||
import io.appwrite.enums.RelationMutate;
|
||||
|
||||
Client client = new Client()
|
||||
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import io.appwrite.Client;
|
||||
import io.appwrite.coroutines.CoroutineCallback;
|
||||
import io.appwrite.services.Users;
|
||||
import io.appwrite.enums.PasswordHash;
|
||||
|
||||
Client client = new Client()
|
||||
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
import io.appwrite.Client
|
||||
import io.appwrite.coroutines.CoroutineCallback
|
||||
import io.appwrite.services.Avatars
|
||||
import io.appwrite.enums.Theme
|
||||
import io.appwrite.enums.Timezone
|
||||
import io.appwrite.enums.Output
|
||||
|
||||
val client = Client()
|
||||
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
|
||||
@@ -2,6 +2,7 @@ import io.appwrite.Client
|
||||
import io.appwrite.coroutines.CoroutineCallback
|
||||
import io.appwrite.services.Databases
|
||||
import io.appwrite.enums.RelationshipType
|
||||
import io.appwrite.enums.RelationMutate
|
||||
|
||||
val client = Client()
|
||||
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import io.appwrite.Client
|
||||
import io.appwrite.coroutines.CoroutineCallback
|
||||
import io.appwrite.services.Databases
|
||||
import io.appwrite.enums.RelationMutate
|
||||
|
||||
val client = Client()
|
||||
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import io.appwrite.Client
|
||||
import io.appwrite.coroutines.CoroutineCallback
|
||||
import io.appwrite.services.Functions
|
||||
import io.appwrite.enums.ExecutionMethod
|
||||
|
||||
val client = Client()
|
||||
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
|
||||
@@ -13,7 +13,7 @@ val functions = Functions(client)
|
||||
val response = functions.create(
|
||||
functionId = "<FUNCTION_ID>",
|
||||
name = "<NAME>",
|
||||
runtime = .NODE_14_5,
|
||||
runtime = Runtime.NODE_14_5,
|
||||
execute = listOf("any"), // optional
|
||||
events = listOf(), // optional
|
||||
schedule = "", // optional
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import io.appwrite.Client
|
||||
import io.appwrite.coroutines.CoroutineCallback
|
||||
import io.appwrite.services.Functions
|
||||
import io.appwrite.enums.DeploymentDownloadType
|
||||
|
||||
val client = Client()
|
||||
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import io.appwrite.Client
|
||||
import io.appwrite.coroutines.CoroutineCallback
|
||||
import io.appwrite.services.Functions
|
||||
import io.appwrite.enums.Runtime
|
||||
|
||||
val client = Client()
|
||||
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
|
||||
@@ -11,6 +11,6 @@ val client = Client()
|
||||
val health = Health(client)
|
||||
|
||||
val response = health.getFailedJobs(
|
||||
name = .V1_DATABASE,
|
||||
name = Name.V1_DATABASE,
|
||||
threshold = 0 // optional
|
||||
)
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import io.appwrite.Client
|
||||
import io.appwrite.coroutines.CoroutineCallback
|
||||
import io.appwrite.services.Messaging
|
||||
import io.appwrite.enums.MessagePriority
|
||||
|
||||
val client = Client()
|
||||
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import io.appwrite.Client
|
||||
import io.appwrite.coroutines.CoroutineCallback
|
||||
import io.appwrite.services.Messaging
|
||||
import io.appwrite.enums.SmtpEncryption
|
||||
|
||||
val client = Client()
|
||||
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import io.appwrite.Client
|
||||
import io.appwrite.coroutines.CoroutineCallback
|
||||
import io.appwrite.services.Messaging
|
||||
import io.appwrite.enums.MessagePriority
|
||||
|
||||
val client = Client()
|
||||
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import io.appwrite.Client
|
||||
import io.appwrite.coroutines.CoroutineCallback
|
||||
import io.appwrite.services.Messaging
|
||||
import io.appwrite.enums.SmtpEncryption
|
||||
|
||||
val client = Client()
|
||||
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
|
||||
@@ -3,6 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback
|
||||
import io.appwrite.services.Sites
|
||||
import io.appwrite.enums.Framework
|
||||
import io.appwrite.enums.BuildRuntime
|
||||
import io.appwrite.enums.Adapter
|
||||
|
||||
val client = Client()
|
||||
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
@@ -14,8 +15,8 @@ val sites = Sites(client)
|
||||
val response = sites.create(
|
||||
siteId = "<SITE_ID>",
|
||||
name = "<NAME>",
|
||||
framework = .ANALOG,
|
||||
buildRuntime = .NODE_14_5,
|
||||
framework = Framework.ANALOG,
|
||||
buildRuntime = BuildRuntime.NODE_14_5,
|
||||
enabled = false, // optional
|
||||
logging = false, // optional
|
||||
timeout = 1, // optional
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import io.appwrite.Client
|
||||
import io.appwrite.coroutines.CoroutineCallback
|
||||
import io.appwrite.services.Sites
|
||||
import io.appwrite.enums.DeploymentDownloadType
|
||||
|
||||
val client = Client()
|
||||
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
|
||||
@@ -2,6 +2,8 @@ import io.appwrite.Client
|
||||
import io.appwrite.coroutines.CoroutineCallback
|
||||
import io.appwrite.services.Sites
|
||||
import io.appwrite.enums.Framework
|
||||
import io.appwrite.enums.BuildRuntime
|
||||
import io.appwrite.enums.Adapter
|
||||
|
||||
val client = Client()
|
||||
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
@@ -13,7 +15,7 @@ val sites = Sites(client)
|
||||
val response = sites.update(
|
||||
siteId = "<SITE_ID>",
|
||||
name = "<NAME>",
|
||||
framework = .ANALOG,
|
||||
framework = Framework.ANALOG,
|
||||
enabled = false, // optional
|
||||
logging = false, // optional
|
||||
timeout = 1, // optional
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import io.appwrite.Client
|
||||
import io.appwrite.coroutines.CoroutineCallback
|
||||
import io.appwrite.services.Storage
|
||||
import io.appwrite.enums.Compression
|
||||
import io.appwrite.Permission
|
||||
import io.appwrite.Role
|
||||
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
import io.appwrite.Client
|
||||
import io.appwrite.coroutines.CoroutineCallback
|
||||
import io.appwrite.services.Storage
|
||||
import io.appwrite.enums.ImageGravity
|
||||
import io.appwrite.enums.ImageFormat
|
||||
|
||||
val client = Client()
|
||||
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import io.appwrite.Client
|
||||
import io.appwrite.coroutines.CoroutineCallback
|
||||
import io.appwrite.services.Storage
|
||||
import io.appwrite.enums.Compression
|
||||
import io.appwrite.Permission
|
||||
import io.appwrite.Role
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@ import io.appwrite.Client
|
||||
import io.appwrite.coroutines.CoroutineCallback
|
||||
import io.appwrite.services.TablesDB
|
||||
import io.appwrite.enums.RelationshipType
|
||||
import io.appwrite.enums.RelationMutate
|
||||
|
||||
val client = Client()
|
||||
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user