mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
Merge pull request #6099 from appwrite/chore-update-sdks
Chore update sdks
This commit is contained in:
commit
3c9f8530f9
83 changed files with 245 additions and 97 deletions
|
|
@ -15,7 +15,7 @@ return [
|
||||||
[
|
[
|
||||||
'key' => 'web',
|
'key' => 'web',
|
||||||
'name' => 'Web',
|
'name' => 'Web',
|
||||||
'version' => '12.0.0',
|
'version' => '13.0.0',
|
||||||
'url' => 'https://github.com/appwrite/sdk-for-web',
|
'url' => 'https://github.com/appwrite/sdk-for-web',
|
||||||
'package' => 'https://www.npmjs.com/package/appwrite',
|
'package' => 'https://www.npmjs.com/package/appwrite',
|
||||||
'enabled' => true,
|
'enabled' => true,
|
||||||
|
|
@ -63,7 +63,7 @@ return [
|
||||||
[
|
[
|
||||||
'key' => 'flutter',
|
'key' => 'flutter',
|
||||||
'name' => 'Flutter',
|
'name' => 'Flutter',
|
||||||
'version' => '10.0.0',
|
'version' => '11.0.0',
|
||||||
'url' => 'https://github.com/appwrite/sdk-for-flutter',
|
'url' => 'https://github.com/appwrite/sdk-for-flutter',
|
||||||
'package' => 'https://pub.dev/packages/appwrite',
|
'package' => 'https://pub.dev/packages/appwrite',
|
||||||
'enabled' => true,
|
'enabled' => true,
|
||||||
|
|
@ -81,7 +81,7 @@ return [
|
||||||
[
|
[
|
||||||
'key' => 'apple',
|
'key' => 'apple',
|
||||||
'name' => 'Apple',
|
'name' => 'Apple',
|
||||||
'version' => '3.0.0',
|
'version' => '4.0.0',
|
||||||
'url' => 'https://github.com/appwrite/sdk-for-apple',
|
'url' => 'https://github.com/appwrite/sdk-for-apple',
|
||||||
'package' => 'https://github.com/appwrite/sdk-for-apple',
|
'package' => 'https://github.com/appwrite/sdk-for-apple',
|
||||||
'enabled' => true,
|
'enabled' => true,
|
||||||
|
|
@ -116,7 +116,7 @@ return [
|
||||||
[
|
[
|
||||||
'key' => 'android',
|
'key' => 'android',
|
||||||
'name' => 'Android',
|
'name' => 'Android',
|
||||||
'version' => '3.0.0',
|
'version' => '4.0.0',
|
||||||
'url' => 'https://github.com/appwrite/sdk-for-android',
|
'url' => 'https://github.com/appwrite/sdk-for-android',
|
||||||
'package' => 'https://search.maven.org/artifact/io.appwrite/sdk-for-android',
|
'package' => 'https://search.maven.org/artifact/io.appwrite/sdk-for-android',
|
||||||
'enabled' => true,
|
'enabled' => true,
|
||||||
|
|
@ -203,7 +203,7 @@ return [
|
||||||
[
|
[
|
||||||
'key' => 'cli',
|
'key' => 'cli',
|
||||||
'name' => 'Command Line',
|
'name' => 'Command Line',
|
||||||
'version' => '3.0.0',
|
'version' => '4.0.0',
|
||||||
'url' => 'https://github.com/appwrite/sdk-for-cli',
|
'url' => 'https://github.com/appwrite/sdk-for-cli',
|
||||||
'package' => 'https://www.npmjs.com/package/appwrite-cli',
|
'package' => 'https://www.npmjs.com/package/appwrite-cli',
|
||||||
'enabled' => true,
|
'enabled' => true,
|
||||||
|
|
@ -231,7 +231,7 @@ return [
|
||||||
[
|
[
|
||||||
'key' => 'nodejs',
|
'key' => 'nodejs',
|
||||||
'name' => 'Node.js',
|
'name' => 'Node.js',
|
||||||
'version' => '10.0.0',
|
'version' => '11.0.0',
|
||||||
'url' => 'https://github.com/appwrite/sdk-for-node',
|
'url' => 'https://github.com/appwrite/sdk-for-node',
|
||||||
'package' => 'https://www.npmjs.com/package/node-appwrite',
|
'package' => 'https://www.npmjs.com/package/node-appwrite',
|
||||||
'enabled' => true,
|
'enabled' => true,
|
||||||
|
|
@ -249,7 +249,7 @@ return [
|
||||||
[
|
[
|
||||||
'key' => 'deno',
|
'key' => 'deno',
|
||||||
'name' => 'Deno',
|
'name' => 'Deno',
|
||||||
'version' => '8.0.0',
|
'version' => '9.0.0',
|
||||||
'url' => 'https://github.com/appwrite/sdk-for-deno',
|
'url' => 'https://github.com/appwrite/sdk-for-deno',
|
||||||
'package' => 'https://deno.land/x/appwrite',
|
'package' => 'https://deno.land/x/appwrite',
|
||||||
'enabled' => true,
|
'enabled' => true,
|
||||||
|
|
@ -267,7 +267,7 @@ return [
|
||||||
[
|
[
|
||||||
'key' => 'php',
|
'key' => 'php',
|
||||||
'name' => 'PHP',
|
'name' => 'PHP',
|
||||||
'version' => '9.0.0',
|
'version' => '10.0.0',
|
||||||
'url' => 'https://github.com/appwrite/sdk-for-php',
|
'url' => 'https://github.com/appwrite/sdk-for-php',
|
||||||
'package' => 'https://packagist.org/packages/appwrite/appwrite',
|
'package' => 'https://packagist.org/packages/appwrite/appwrite',
|
||||||
'enabled' => true,
|
'enabled' => true,
|
||||||
|
|
@ -285,7 +285,7 @@ return [
|
||||||
[
|
[
|
||||||
'key' => 'python',
|
'key' => 'python',
|
||||||
'name' => 'Python',
|
'name' => 'Python',
|
||||||
'version' => '3.0.0',
|
'version' => '4.0.0',
|
||||||
'url' => 'https://github.com/appwrite/sdk-for-python',
|
'url' => 'https://github.com/appwrite/sdk-for-python',
|
||||||
'package' => 'https://pypi.org/project/appwrite/',
|
'package' => 'https://pypi.org/project/appwrite/',
|
||||||
'enabled' => true,
|
'enabled' => true,
|
||||||
|
|
@ -303,7 +303,7 @@ return [
|
||||||
[
|
[
|
||||||
'key' => 'ruby',
|
'key' => 'ruby',
|
||||||
'name' => 'Ruby',
|
'name' => 'Ruby',
|
||||||
'version' => '9.0.0',
|
'version' => '10.0.0',
|
||||||
'url' => 'https://github.com/appwrite/sdk-for-ruby',
|
'url' => 'https://github.com/appwrite/sdk-for-ruby',
|
||||||
'package' => 'https://rubygems.org/gems/appwrite',
|
'package' => 'https://rubygems.org/gems/appwrite',
|
||||||
'enabled' => true,
|
'enabled' => true,
|
||||||
|
|
@ -321,7 +321,7 @@ return [
|
||||||
[
|
[
|
||||||
'key' => 'go',
|
'key' => 'go',
|
||||||
'name' => 'Go',
|
'name' => 'Go',
|
||||||
'version' => '2.0.0',
|
'version' => '3.0.0',
|
||||||
'url' => 'https://github.com/appwrite/sdk-for-go',
|
'url' => 'https://github.com/appwrite/sdk-for-go',
|
||||||
'package' => '',
|
'package' => '',
|
||||||
'enabled' => false,
|
'enabled' => false,
|
||||||
|
|
@ -339,7 +339,7 @@ return [
|
||||||
[
|
[
|
||||||
'key' => 'java',
|
'key' => 'java',
|
||||||
'name' => 'Java',
|
'name' => 'Java',
|
||||||
'version' => '2.0.0',
|
'version' => '3.0.0',
|
||||||
'url' => 'https://github.com/appwrite/sdk-for-java',
|
'url' => 'https://github.com/appwrite/sdk-for-java',
|
||||||
'package' => '',
|
'package' => '',
|
||||||
'enabled' => false,
|
'enabled' => false,
|
||||||
|
|
@ -357,7 +357,7 @@ return [
|
||||||
[
|
[
|
||||||
'key' => 'dotnet',
|
'key' => 'dotnet',
|
||||||
'name' => '.NET',
|
'name' => '.NET',
|
||||||
'version' => '0.5.0',
|
'version' => '0.6.0',
|
||||||
'url' => 'https://github.com/appwrite/sdk-for-dotnet',
|
'url' => 'https://github.com/appwrite/sdk-for-dotnet',
|
||||||
'package' => 'https://www.nuget.org/packages/Appwrite',
|
'package' => 'https://www.nuget.org/packages/Appwrite',
|
||||||
'enabled' => true,
|
'enabled' => true,
|
||||||
|
|
@ -375,7 +375,7 @@ return [
|
||||||
[
|
[
|
||||||
'key' => 'dart',
|
'key' => 'dart',
|
||||||
'name' => 'Dart',
|
'name' => 'Dart',
|
||||||
'version' => '9.0.0',
|
'version' => '10.0.0',
|
||||||
'url' => 'https://github.com/appwrite/sdk-for-dart',
|
'url' => 'https://github.com/appwrite/sdk-for-dart',
|
||||||
'package' => 'https://pub.dev/packages/dart_appwrite',
|
'package' => 'https://pub.dev/packages/dart_appwrite',
|
||||||
'enabled' => true,
|
'enabled' => true,
|
||||||
|
|
@ -393,7 +393,7 @@ return [
|
||||||
[
|
[
|
||||||
'key' => 'kotlin',
|
'key' => 'kotlin',
|
||||||
'name' => 'Kotlin',
|
'name' => 'Kotlin',
|
||||||
'version' => '3.0.0',
|
'version' => '4.0.0',
|
||||||
'url' => 'https://github.com/appwrite/sdk-for-kotlin',
|
'url' => 'https://github.com/appwrite/sdk-for-kotlin',
|
||||||
'package' => 'https://search.maven.org/artifact/io.appwrite/sdk-for-kotlin',
|
'package' => 'https://search.maven.org/artifact/io.appwrite/sdk-for-kotlin',
|
||||||
'enabled' => true,
|
'enabled' => true,
|
||||||
|
|
@ -415,7 +415,7 @@ return [
|
||||||
[
|
[
|
||||||
'key' => 'swift',
|
'key' => 'swift',
|
||||||
'name' => 'Swift',
|
'name' => 'Swift',
|
||||||
'version' => '3.0.0',
|
'version' => '4.0.0',
|
||||||
'url' => 'https://github.com/appwrite/sdk-for-swift',
|
'url' => 'https://github.com/appwrite/sdk-for-swift',
|
||||||
'package' => 'https://github.com/appwrite/sdk-for-swift',
|
'package' => 'https://github.com/appwrite/sdk-for-swift',
|
||||||
'enabled' => true,
|
'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
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
|
|
@ -86,7 +86,7 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"appwrite/sdk-generator": "0.34.*",
|
"appwrite/sdk-generator": "0.35.0",
|
||||||
"ext-fileinfo": "*",
|
"ext-fileinfo": "*",
|
||||||
"phpunit/phpunit": "9.5.20",
|
"phpunit/phpunit": "9.5.20",
|
||||||
"squizlabs/php_codesniffer": "^3.7",
|
"squizlabs/php_codesniffer": "^3.7",
|
||||||
|
|
|
||||||
26
composer.lock
generated
26
composer.lock
generated
|
|
@ -4,7 +4,7 @@
|
||||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||||
"This file is @generated automatically"
|
"This file is @generated automatically"
|
||||||
],
|
],
|
||||||
"content-hash": "d165291f1be92644ba081f9c39050602",
|
"content-hash": "1fe72c576bd9209f9db6e56cac8cd16a",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "adhocore/jwt",
|
"name": "adhocore/jwt",
|
||||||
|
|
@ -3460,16 +3460,16 @@
|
||||||
"packages-dev": [
|
"packages-dev": [
|
||||||
{
|
{
|
||||||
"name": "appwrite/sdk-generator",
|
"name": "appwrite/sdk-generator",
|
||||||
"version": "0.34.2",
|
"version": "0.35.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/appwrite/sdk-generator.git",
|
"url": "https://github.com/appwrite/sdk-generator.git",
|
||||||
"reference": "06ea25aace27790e42d57fdbc7ccf97e0b31a6ba"
|
"reference": "edd5da6763d7f8f28155b77200682c69d08c9954"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/06ea25aace27790e42d57fdbc7ccf97e0b31a6ba",
|
"url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/edd5da6763d7f8f28155b77200682c69d08c9954",
|
||||||
"reference": "06ea25aace27790e42d57fdbc7ccf97e0b31a6ba",
|
"reference": "edd5da6763d7f8f28155b77200682c69d08c9954",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
|
|
@ -3505,9 +3505,9 @@
|
||||||
"description": "Appwrite PHP library for generating API SDKs for multiple programming languages and platforms",
|
"description": "Appwrite PHP library for generating API SDKs for multiple programming languages and platforms",
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/appwrite/sdk-generator/issues",
|
"issues": "https://github.com/appwrite/sdk-generator/issues",
|
||||||
"source": "https://github.com/appwrite/sdk-generator/tree/0.34.2"
|
"source": "https://github.com/appwrite/sdk-generator/tree/0.35.0"
|
||||||
},
|
},
|
||||||
"time": "2023-08-31T14:10:33+00:00"
|
"time": "2023-09-07T17:13:18+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "doctrine/deprecations",
|
"name": "doctrine/deprecations",
|
||||||
|
|
@ -4214,16 +4214,16 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "phpstan/phpdoc-parser",
|
"name": "phpstan/phpdoc-parser",
|
||||||
"version": "1.23.1",
|
"version": "1.24.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/phpstan/phpdoc-parser.git",
|
"url": "https://github.com/phpstan/phpdoc-parser.git",
|
||||||
"reference": "846ae76eef31c6d7790fac9bc399ecee45160b26"
|
"reference": "3510b0a6274cc42f7219367cb3abfc123ffa09d6"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/846ae76eef31c6d7790fac9bc399ecee45160b26",
|
"url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/3510b0a6274cc42f7219367cb3abfc123ffa09d6",
|
||||||
"reference": "846ae76eef31c6d7790fac9bc399ecee45160b26",
|
"reference": "3510b0a6274cc42f7219367cb3abfc123ffa09d6",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
|
|
@ -4255,9 +4255,9 @@
|
||||||
"description": "PHPDoc parser with support for nullable, intersection and generic types",
|
"description": "PHPDoc parser with support for nullable, intersection and generic types",
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/phpstan/phpdoc-parser/issues",
|
"issues": "https://github.com/phpstan/phpdoc-parser/issues",
|
||||||
"source": "https://github.com/phpstan/phpdoc-parser/tree/1.23.1"
|
"source": "https://github.com/phpstan/phpdoc-parser/tree/1.24.0"
|
||||||
},
|
},
|
||||||
"time": "2023-08-03T16:32:59+00:00"
|
"time": "2023-09-07T20:46:32+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "phpunit/php-code-coverage",
|
"name": "phpunit/php-code-coverage",
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,6 @@ Teams teams = new Teams(client);
|
||||||
teams.createMembership(
|
teams.createMembership(
|
||||||
"[TEAM_ID]",
|
"[TEAM_ID]",
|
||||||
listOf(),
|
listOf(),
|
||||||
"https://example.com",
|
|
||||||
new CoroutineCallback<>((result, error) -> {
|
new CoroutineCallback<>((result, error) -> {
|
||||||
if (error != null) {
|
if (error != null) {
|
||||||
error.printStackTrace();
|
error.printStackTrace();
|
||||||
|
|
|
||||||
|
|
@ -10,5 +10,4 @@ val teams = Teams(client)
|
||||||
val response = teams.createMembership(
|
val response = teams.createMembership(
|
||||||
teamId = "[TEAM_ID]",
|
teamId = "[TEAM_ID]",
|
||||||
roles = listOf(),
|
roles = listOf(),
|
||||||
url = "https://example.com",
|
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,6 @@ let teams = Teams(client)
|
||||||
|
|
||||||
let membership = try await teams.createMembership(
|
let membership = try await teams.createMembership(
|
||||||
teamId: "[TEAM_ID]",
|
teamId: "[TEAM_ID]",
|
||||||
roles: [],
|
roles: []
|
||||||
url: "https://example.com"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,6 @@ void main() { // Init SDK
|
||||||
Future result = teams.createMembership(
|
Future result = teams.createMembership(
|
||||||
teamId: '[TEAM_ID]',
|
teamId: '[TEAM_ID]',
|
||||||
roles: [],
|
roles: [],
|
||||||
url: 'https://example.com',
|
|
||||||
);
|
);
|
||||||
|
|
||||||
result
|
result
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
mutation {
|
mutation {
|
||||||
teamsCreateMembership(
|
teamsCreateMembership(
|
||||||
teamId: "[TEAM_ID]",
|
teamId: "[TEAM_ID]",
|
||||||
roles: [],
|
roles: []
|
||||||
url: "https://example.com"
|
|
||||||
) {
|
) {
|
||||||
_id
|
_id
|
||||||
_createdAt
|
_createdAt
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ client
|
||||||
.setProject('5df5acd0d48c2') // Your project ID
|
.setProject('5df5acd0d48c2') // Your project ID
|
||||||
;
|
;
|
||||||
|
|
||||||
const promise = teams.createMembership('[TEAM_ID]', [], 'https://example.com');
|
const promise = teams.createMembership('[TEAM_ID]', []);
|
||||||
|
|
||||||
promise.then(function (response) {
|
promise.then(function (response) {
|
||||||
console.log(response); // Success
|
console.log(response); // Success
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
appwrite functions create \
|
appwrite functions create \
|
||||||
--functionId [FUNCTION_ID] \
|
--functionId [FUNCTION_ID] \
|
||||||
--name [NAME] \
|
--name [NAME] \
|
||||||
--runtime node-14.5 \
|
--runtime node-18.0 \
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
appwrite functions update \
|
appwrite functions update \
|
||||||
--functionId [FUNCTION_ID] \
|
--functionId [FUNCTION_ID] \
|
||||||
--name [NAME] \
|
--name [NAME] \
|
||||||
--runtime node-14.5 \
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
appwrite teams createMembership \
|
appwrite teams createMembership \
|
||||||
--teamId [TEAM_ID] \
|
--teamId [TEAM_ID] \
|
||||||
--roles one two three \
|
--roles one two three \
|
||||||
--url https://example.com \
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
import { Client, Account } from "@appwrite.io/console";
|
||||||
|
|
||||||
|
const client = new Client();
|
||||||
|
|
||||||
|
const account = new Account(client);
|
||||||
|
|
||||||
|
client
|
||||||
|
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
|
.setProject('5df5acd0d48c2') // Your project ID
|
||||||
|
;
|
||||||
|
|
||||||
|
const promise = account.createWithInviteCode('[USER_ID]', 'email@example.com', 'password');
|
||||||
|
|
||||||
|
promise.then(function (response) {
|
||||||
|
console.log(response); // Success
|
||||||
|
}, function (error) {
|
||||||
|
console.log(error); // Failure
|
||||||
|
});
|
||||||
|
|
@ -6,6 +6,7 @@ const assistant = new Assistant(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
|
.setProject('5df5acd0d48c2') // Your project ID
|
||||||
;
|
;
|
||||||
|
|
||||||
const promise = assistant.chat('[PROMPT]');
|
const promise = assistant.chat('[PROMPT]');
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ client
|
||||||
.setProject('5df5acd0d48c2') // Your project ID
|
.setProject('5df5acd0d48c2') // Your project ID
|
||||||
;
|
;
|
||||||
|
|
||||||
const promise = functions.create('[FUNCTION_ID]', '[NAME]', 'node-14.5');
|
const promise = functions.create('[FUNCTION_ID]', '[NAME]', 'node-18.0');
|
||||||
|
|
||||||
promise.then(function (response) {
|
promise.then(function (response) {
|
||||||
console.log(response); // Success
|
console.log(response); // Success
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ client
|
||||||
.setProject('5df5acd0d48c2') // Your project ID
|
.setProject('5df5acd0d48c2') // Your project ID
|
||||||
;
|
;
|
||||||
|
|
||||||
const promise = functions.update('[FUNCTION_ID]', '[NAME]', 'node-14.5');
|
const promise = functions.update('[FUNCTION_ID]', '[NAME]');
|
||||||
|
|
||||||
promise.then(function (response) {
|
promise.then(function (response) {
|
||||||
console.log(response); // Success
|
console.log(response); // Success
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ const migrations = new Migrations(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
|
.setProject('5df5acd0d48c2') // Your project ID
|
||||||
;
|
;
|
||||||
|
|
||||||
const promise = migrations.deleteFirebaseAuth();
|
const promise = migrations.deleteFirebaseAuth();
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ const migrations = new Migrations(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
|
.setProject('5df5acd0d48c2') // Your project ID
|
||||||
;
|
;
|
||||||
|
|
||||||
const promise = migrations.listFirebaseProjects();
|
const promise = migrations.listFirebaseProjects();
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
import { Client, Projects } from "@appwrite.io/console";
|
||||||
|
|
||||||
|
const client = new Client();
|
||||||
|
|
||||||
|
const projects = new Projects(client);
|
||||||
|
|
||||||
|
client
|
||||||
|
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
|
.setProject('5df5acd0d48c2') // Your project ID
|
||||||
|
;
|
||||||
|
|
||||||
|
const promise = projects.createDomain('[PROJECT_ID]', '');
|
||||||
|
|
||||||
|
promise.then(function (response) {
|
||||||
|
console.log(response); // Success
|
||||||
|
}, function (error) {
|
||||||
|
console.log(error); // Failure
|
||||||
|
});
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
import { Client, Projects } from "@appwrite.io/console";
|
||||||
|
|
||||||
|
const client = new Client();
|
||||||
|
|
||||||
|
const projects = new Projects(client);
|
||||||
|
|
||||||
|
client
|
||||||
|
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
|
.setProject('5df5acd0d48c2') // Your project ID
|
||||||
|
;
|
||||||
|
|
||||||
|
const promise = projects.deleteDomain('[PROJECT_ID]', '[DOMAIN_ID]');
|
||||||
|
|
||||||
|
promise.then(function (response) {
|
||||||
|
console.log(response); // Success
|
||||||
|
}, function (error) {
|
||||||
|
console.log(error); // Failure
|
||||||
|
});
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
import { Client, Projects } from "@appwrite.io/console";
|
||||||
|
|
||||||
|
const client = new Client();
|
||||||
|
|
||||||
|
const projects = new Projects(client);
|
||||||
|
|
||||||
|
client
|
||||||
|
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
|
.setProject('5df5acd0d48c2') // Your project ID
|
||||||
|
;
|
||||||
|
|
||||||
|
const promise = projects.getDomain('[PROJECT_ID]', '[DOMAIN_ID]');
|
||||||
|
|
||||||
|
promise.then(function (response) {
|
||||||
|
console.log(response); // Success
|
||||||
|
}, function (error) {
|
||||||
|
console.log(error); // Failure
|
||||||
|
});
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
import { Client, Projects } from "@appwrite.io/console";
|
||||||
|
|
||||||
|
const client = new Client();
|
||||||
|
|
||||||
|
const projects = new Projects(client);
|
||||||
|
|
||||||
|
client
|
||||||
|
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
|
.setProject('5df5acd0d48c2') // Your project ID
|
||||||
|
;
|
||||||
|
|
||||||
|
const promise = projects.listDomains('[PROJECT_ID]');
|
||||||
|
|
||||||
|
promise.then(function (response) {
|
||||||
|
console.log(response); // Success
|
||||||
|
}, function (error) {
|
||||||
|
console.log(error); // Failure
|
||||||
|
});
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
import { Client, Projects } from "@appwrite.io/console";
|
||||||
|
|
||||||
|
const client = new Client();
|
||||||
|
|
||||||
|
const projects = new Projects(client);
|
||||||
|
|
||||||
|
client
|
||||||
|
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
|
.setProject('5df5acd0d48c2') // Your project ID
|
||||||
|
;
|
||||||
|
|
||||||
|
const promise = projects.updateDomainVerification('[PROJECT_ID]', '[DOMAIN_ID]');
|
||||||
|
|
||||||
|
promise.then(function (response) {
|
||||||
|
console.log(response); // Success
|
||||||
|
}, function (error) {
|
||||||
|
console.log(error); // Failure
|
||||||
|
});
|
||||||
|
|
@ -9,7 +9,7 @@ client
|
||||||
.setProject('5df5acd0d48c2') // Your project ID
|
.setProject('5df5acd0d48c2') // Your project ID
|
||||||
;
|
;
|
||||||
|
|
||||||
const promise = teams.createMembership('[TEAM_ID]', [], 'https://example.com');
|
const promise = teams.createMembership('[TEAM_ID]', []);
|
||||||
|
|
||||||
promise.then(function (response) {
|
promise.then(function (response) {
|
||||||
console.log(response); // Success
|
console.log(response); // Success
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
import { Client, Teams } from "@appwrite.io/console";
|
||||||
|
|
||||||
|
const client = new Client();
|
||||||
|
|
||||||
|
const teams = new Teams(client);
|
||||||
|
|
||||||
|
client
|
||||||
|
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
|
.setProject('5df5acd0d48c2') // Your project ID
|
||||||
|
;
|
||||||
|
|
||||||
|
const promise = teams.updateMembershipRoles('[TEAM_ID]', '[MEMBERSHIP_ID]', []);
|
||||||
|
|
||||||
|
promise.then(function (response) {
|
||||||
|
console.log(response); // Success
|
||||||
|
}, function (error) {
|
||||||
|
console.log(error); // Failure
|
||||||
|
});
|
||||||
|
|
@ -6,6 +6,7 @@ const vcs = new Vcs(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
|
.setProject('5df5acd0d48c2') // Your project ID
|
||||||
;
|
;
|
||||||
|
|
||||||
const promise = vcs.createRepositoryDetection('[INSTALLATION_ID]', '[PROVIDER_REPOSITORY_ID]');
|
const promise = vcs.createRepositoryDetection('[INSTALLATION_ID]', '[PROVIDER_REPOSITORY_ID]');
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ const vcs = new Vcs(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
|
.setProject('5df5acd0d48c2') // Your project ID
|
||||||
;
|
;
|
||||||
|
|
||||||
const promise = vcs.createRepository('[INSTALLATION_ID]', '[NAME]', false);
|
const promise = vcs.createRepository('[INSTALLATION_ID]', '[NAME]', false);
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ const vcs = new Vcs(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
|
.setProject('5df5acd0d48c2') // Your project ID
|
||||||
;
|
;
|
||||||
|
|
||||||
const promise = vcs.deleteInstallation('[INSTALLATION_ID]');
|
const promise = vcs.deleteInstallation('[INSTALLATION_ID]');
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ const vcs = new Vcs(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
|
.setProject('5df5acd0d48c2') // Your project ID
|
||||||
;
|
;
|
||||||
|
|
||||||
const promise = vcs.getInstallation('[INSTALLATION_ID]');
|
const promise = vcs.getInstallation('[INSTALLATION_ID]');
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ const vcs = new Vcs(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
|
.setProject('5df5acd0d48c2') // Your project ID
|
||||||
;
|
;
|
||||||
|
|
||||||
const promise = vcs.getRepository('[INSTALLATION_ID]', '[PROVIDER_REPOSITORY_ID]');
|
const promise = vcs.getRepository('[INSTALLATION_ID]', '[PROVIDER_REPOSITORY_ID]');
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ const vcs = new Vcs(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
|
.setProject('5df5acd0d48c2') // Your project ID
|
||||||
;
|
;
|
||||||
|
|
||||||
const promise = vcs.listInstallations();
|
const promise = vcs.listInstallations();
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ const vcs = new Vcs(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
|
.setProject('5df5acd0d48c2') // Your project ID
|
||||||
;
|
;
|
||||||
|
|
||||||
const promise = vcs.listRepositories('[INSTALLATION_ID]');
|
const promise = vcs.listRepositories('[INSTALLATION_ID]');
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ const vcs = new Vcs(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
|
.setProject('5df5acd0d48c2') // Your project ID
|
||||||
;
|
;
|
||||||
|
|
||||||
const promise = vcs.listRepositoryBranches('[INSTALLATION_ID]', '[PROVIDER_REPOSITORY_ID]');
|
const promise = vcs.listRepositoryBranches('[INSTALLATION_ID]', '[PROVIDER_REPOSITORY_ID]');
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ const vcs = new Vcs(client);
|
||||||
|
|
||||||
client
|
client
|
||||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
||||||
|
.setProject('5df5acd0d48c2') // Your project ID
|
||||||
;
|
;
|
||||||
|
|
||||||
const promise = vcs.updateExternalDeployments('[INSTALLATION_ID]', '[REPOSITORY_ID]', '[PROVIDER_PULL_REQUEST_ID]');
|
const promise = vcs.updateExternalDeployments('[INSTALLATION_ID]', '[REPOSITORY_ID]', '[PROVIDER_PULL_REQUEST_ID]');
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ void main() { // Init SDK
|
||||||
Future result = functions.create(
|
Future result = functions.create(
|
||||||
functionId: '[FUNCTION_ID]',
|
functionId: '[FUNCTION_ID]',
|
||||||
name: '[NAME]',
|
name: '[NAME]',
|
||||||
runtime: 'node-14.5',
|
runtime: 'node-18.0',
|
||||||
);
|
);
|
||||||
|
|
||||||
result
|
result
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,6 @@ void main() { // Init SDK
|
||||||
Future result = functions.update(
|
Future result = functions.update(
|
||||||
functionId: '[FUNCTION_ID]',
|
functionId: '[FUNCTION_ID]',
|
||||||
name: '[NAME]',
|
name: '[NAME]',
|
||||||
runtime: 'node-14.5',
|
|
||||||
);
|
);
|
||||||
|
|
||||||
result
|
result
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,6 @@ void main() { // Init SDK
|
||||||
Future result = teams.createMembership(
|
Future result = teams.createMembership(
|
||||||
teamId: '[TEAM_ID]',
|
teamId: '[TEAM_ID]',
|
||||||
roles: [],
|
roles: [],
|
||||||
url: 'https://example.com',
|
|
||||||
);
|
);
|
||||||
|
|
||||||
result
|
result
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ client
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
||||||
let promise = functions.create('[FUNCTION_ID]', '[NAME]', 'node-14.5');
|
let promise = functions.create('[FUNCTION_ID]', '[NAME]', 'node-18.0');
|
||||||
|
|
||||||
promise.then(function (response) {
|
promise.then(function (response) {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ client
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
||||||
let promise = functions.update('[FUNCTION_ID]', '[NAME]', 'node-14.5');
|
let promise = functions.update('[FUNCTION_ID]', '[NAME]');
|
||||||
|
|
||||||
promise.then(function (response) {
|
promise.then(function (response) {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ client
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
||||||
let promise = teams.createMembership('[TEAM_ID]', [], 'https://example.com');
|
let promise = teams.createMembership('[TEAM_ID]', []);
|
||||||
|
|
||||||
promise.then(function (response) {
|
promise.then(function (response) {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
|
|
|
||||||
|
|
@ -12,4 +12,4 @@ var functions = new Functions(client);
|
||||||
Function result = await functions.Create(
|
Function result = await functions.Create(
|
||||||
functionId: "[FUNCTION_ID]",
|
functionId: "[FUNCTION_ID]",
|
||||||
name: "[NAME]",
|
name: "[NAME]",
|
||||||
runtime: "node-14.5");
|
runtime: "node-18.0");
|
||||||
|
|
@ -11,5 +11,4 @@ var functions = new Functions(client);
|
||||||
|
|
||||||
Function result = await functions.Update(
|
Function result = await functions.Update(
|
||||||
functionId: "[FUNCTION_ID]",
|
functionId: "[FUNCTION_ID]",
|
||||||
name: "[NAME]",
|
name: "[NAME]");
|
||||||
runtime: "node-14.5");
|
|
||||||
|
|
@ -11,5 +11,4 @@ var teams = new Teams(client);
|
||||||
|
|
||||||
Membership result = await teams.CreateMembership(
|
Membership result = await teams.CreateMembership(
|
||||||
teamId: "[TEAM_ID]",
|
teamId: "[TEAM_ID]",
|
||||||
roles: new List<string> {},
|
roles: new List<string> {});
|
||||||
url: "https://example.com");
|
|
||||||
|
|
@ -2,7 +2,7 @@ mutation {
|
||||||
functionsCreate(
|
functionsCreate(
|
||||||
functionId: "[FUNCTION_ID]",
|
functionId: "[FUNCTION_ID]",
|
||||||
name: "[NAME]",
|
name: "[NAME]",
|
||||||
runtime: "node-14.5"
|
runtime: "node-18.0"
|
||||||
) {
|
) {
|
||||||
_id
|
_id
|
||||||
_createdAt
|
_createdAt
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
mutation {
|
mutation {
|
||||||
functionsUpdate(
|
functionsUpdate(
|
||||||
functionId: "[FUNCTION_ID]",
|
functionId: "[FUNCTION_ID]",
|
||||||
name: "[NAME]",
|
name: "[NAME]"
|
||||||
runtime: "node-14.5"
|
|
||||||
) {
|
) {
|
||||||
_id
|
_id
|
||||||
_createdAt
|
_createdAt
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
mutation {
|
mutation {
|
||||||
teamsCreateMembership(
|
teamsCreateMembership(
|
||||||
teamId: "[TEAM_ID]",
|
teamId: "[TEAM_ID]",
|
||||||
roles: [],
|
roles: []
|
||||||
url: "https://example.com"
|
|
||||||
) {
|
) {
|
||||||
_id
|
_id
|
||||||
_createdAt
|
_createdAt
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ Functions functions = new Functions(client);
|
||||||
functions.create(
|
functions.create(
|
||||||
"[FUNCTION_ID]",
|
"[FUNCTION_ID]",
|
||||||
"[NAME]",
|
"[NAME]",
|
||||||
"node-14.5",
|
"node-18.0",
|
||||||
new CoroutineCallback<>((result, error) -> {
|
new CoroutineCallback<>((result, error) -> {
|
||||||
if (error != null) {
|
if (error != null) {
|
||||||
error.printStackTrace();
|
error.printStackTrace();
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,6 @@ Functions functions = new Functions(client);
|
||||||
functions.update(
|
functions.update(
|
||||||
"[FUNCTION_ID]",
|
"[FUNCTION_ID]",
|
||||||
"[NAME]",
|
"[NAME]",
|
||||||
"node-14.5",
|
|
||||||
new CoroutineCallback<>((result, error) -> {
|
new CoroutineCallback<>((result, error) -> {
|
||||||
if (error != null) {
|
if (error != null) {
|
||||||
error.printStackTrace();
|
error.printStackTrace();
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,6 @@ Teams teams = new Teams(client);
|
||||||
teams.createMembership(
|
teams.createMembership(
|
||||||
"[TEAM_ID]",
|
"[TEAM_ID]",
|
||||||
listOf(),
|
listOf(),
|
||||||
"https://example.com",
|
|
||||||
new CoroutineCallback<>((result, error) -> {
|
new CoroutineCallback<>((result, error) -> {
|
||||||
if (error != null) {
|
if (error != null) {
|
||||||
error.printStackTrace();
|
error.printStackTrace();
|
||||||
|
|
|
||||||
|
|
@ -11,5 +11,5 @@ val functions = Functions(client)
|
||||||
val response = functions.create(
|
val response = functions.create(
|
||||||
functionId = "[FUNCTION_ID]",
|
functionId = "[FUNCTION_ID]",
|
||||||
name = "[NAME]",
|
name = "[NAME]",
|
||||||
runtime = "node-14.5",
|
runtime = "node-18.0",
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -11,5 +11,4 @@ val functions = Functions(client)
|
||||||
val response = functions.update(
|
val response = functions.update(
|
||||||
functionId = "[FUNCTION_ID]",
|
functionId = "[FUNCTION_ID]",
|
||||||
name = "[NAME]",
|
name = "[NAME]",
|
||||||
runtime = "node-14.5",
|
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -11,5 +11,4 @@ val teams = Teams(client)
|
||||||
val response = teams.createMembership(
|
val response = teams.createMembership(
|
||||||
teamId = "[TEAM_ID]",
|
teamId = "[TEAM_ID]",
|
||||||
roles = listOf(),
|
roles = listOf(),
|
||||||
url = "https://example.com",
|
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ client
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
|
|
||||||
const promise = functions.create('[FUNCTION_ID]', '[NAME]', 'node-14.5');
|
const promise = functions.create('[FUNCTION_ID]', '[NAME]', 'node-18.0');
|
||||||
|
|
||||||
promise.then(function (response) {
|
promise.then(function (response) {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ client
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
|
|
||||||
const promise = functions.update('[FUNCTION_ID]', '[NAME]', 'node-14.5');
|
const promise = functions.update('[FUNCTION_ID]', '[NAME]');
|
||||||
|
|
||||||
promise.then(function (response) {
|
promise.then(function (response) {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ client
|
||||||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||||
;
|
;
|
||||||
|
|
||||||
const promise = teams.createMembership('[TEAM_ID]', [], 'https://example.com');
|
const promise = teams.createMembership('[TEAM_ID]', []);
|
||||||
|
|
||||||
promise.then(function (response) {
|
promise.then(function (response) {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
|
|
|
||||||
|
|
@ -13,4 +13,4 @@ $client
|
||||||
|
|
||||||
$functions = new Functions($client);
|
$functions = new Functions($client);
|
||||||
|
|
||||||
$result = $functions->create('[FUNCTION_ID]', '[NAME]', 'node-14.5');
|
$result = $functions->create('[FUNCTION_ID]', '[NAME]', 'node-18.0');
|
||||||
|
|
@ -13,4 +13,4 @@ $client
|
||||||
|
|
||||||
$functions = new Functions($client);
|
$functions = new Functions($client);
|
||||||
|
|
||||||
$result = $functions->update('[FUNCTION_ID]', '[NAME]', 'node-14.5');
|
$result = $functions->update('[FUNCTION_ID]', '[NAME]');
|
||||||
|
|
@ -13,4 +13,4 @@ $client
|
||||||
|
|
||||||
$teams = new Teams($client);
|
$teams = new Teams($client);
|
||||||
|
|
||||||
$result = $teams->createMembership('[TEAM_ID]', [], 'https://example.com');
|
$result = $teams->createMembership('[TEAM_ID]', []);
|
||||||
|
|
@ -11,4 +11,4 @@ client = Client()
|
||||||
|
|
||||||
functions = Functions(client)
|
functions = Functions(client)
|
||||||
|
|
||||||
result = functions.create('[FUNCTION_ID]', '[NAME]', 'node-14.5')
|
result = functions.create('[FUNCTION_ID]', '[NAME]', 'node-18.0')
|
||||||
|
|
|
||||||
|
|
@ -11,4 +11,4 @@ client = Client()
|
||||||
|
|
||||||
functions = Functions(client)
|
functions = Functions(client)
|
||||||
|
|
||||||
result = functions.update('[FUNCTION_ID]', '[NAME]', 'node-14.5')
|
result = functions.update('[FUNCTION_ID]', '[NAME]')
|
||||||
|
|
|
||||||
|
|
@ -11,4 +11,4 @@ client = Client()
|
||||||
|
|
||||||
teams = Teams(client)
|
teams = Teams(client)
|
||||||
|
|
||||||
result = teams.create_membership('[TEAM_ID]', [], 'https://example.com')
|
result = teams.create_membership('[TEAM_ID]', [])
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2
|
||||||
{
|
{
|
||||||
"functionId": "[FUNCTION_ID]",
|
"functionId": "[FUNCTION_ID]",
|
||||||
"name": "[NAME]",
|
"name": "[NAME]",
|
||||||
"runtime": "node-14.5",
|
"runtime": "node-18.0",
|
||||||
"execute": ["any"],
|
"execute": ["any"],
|
||||||
"events": [],
|
"events": [],
|
||||||
"schedule": ,
|
"schedule": ,
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2
|
||||||
|
|
||||||
{
|
{
|
||||||
"name": "[NAME]",
|
"name": "[NAME]",
|
||||||
"runtime": "node-14.5",
|
"runtime": "node-18.0",
|
||||||
"execute": ["any"],
|
"execute": ["any"],
|
||||||
"events": [],
|
"events": [],
|
||||||
"schedule": ,
|
"schedule": ,
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,6 @@ client = Client.new
|
||||||
|
|
||||||
functions = Functions.new(client)
|
functions = Functions.new(client)
|
||||||
|
|
||||||
response = functions.create(function_id: '[FUNCTION_ID]', name: '[NAME]', runtime: 'node-14.5')
|
response = functions.create(function_id: '[FUNCTION_ID]', name: '[NAME]', runtime: 'node-18.0')
|
||||||
|
|
||||||
puts response.inspect
|
puts response.inspect
|
||||||
|
|
@ -9,6 +9,6 @@ client = Client.new
|
||||||
|
|
||||||
functions = Functions.new(client)
|
functions = Functions.new(client)
|
||||||
|
|
||||||
response = functions.update(function_id: '[FUNCTION_ID]', name: '[NAME]', runtime: 'node-14.5')
|
response = functions.update(function_id: '[FUNCTION_ID]', name: '[NAME]')
|
||||||
|
|
||||||
puts response.inspect
|
puts response.inspect
|
||||||
|
|
@ -9,6 +9,6 @@ client = Client.new
|
||||||
|
|
||||||
teams = Teams.new(client)
|
teams = Teams.new(client)
|
||||||
|
|
||||||
response = teams.create_membership(team_id: '[TEAM_ID]', roles: [], url: 'https://example.com')
|
response = teams.create_membership(team_id: '[TEAM_ID]', roles: [])
|
||||||
|
|
||||||
puts response.inspect
|
puts response.inspect
|
||||||
|
|
@ -10,6 +10,6 @@ let functions = Functions(client)
|
||||||
let function = try await functions.create(
|
let function = try await functions.create(
|
||||||
functionId: "[FUNCTION_ID]",
|
functionId: "[FUNCTION_ID]",
|
||||||
name: "[NAME]",
|
name: "[NAME]",
|
||||||
runtime: "node-14.5"
|
runtime: "node-18.0"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,6 @@ let functions = Functions(client)
|
||||||
|
|
||||||
let function = try await functions.update(
|
let function = try await functions.update(
|
||||||
functionId: "[FUNCTION_ID]",
|
functionId: "[FUNCTION_ID]",
|
||||||
name: "[NAME]",
|
name: "[NAME]"
|
||||||
runtime: "node-14.5"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,6 @@ let teams = Teams(client)
|
||||||
|
|
||||||
let membership = try await teams.createMembership(
|
let membership = try await teams.createMembership(
|
||||||
teamId: "[TEAM_ID]",
|
teamId: "[TEAM_ID]",
|
||||||
roles: [],
|
roles: []
|
||||||
url: "https://example.com"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,14 @@
|
||||||
|
## 10.0.0
|
||||||
|
|
||||||
|
* Parameter `url` is now optional in the `createMembership` endpoint
|
||||||
|
* Parameter `runtime` is now optional in the `update` endpoint of the `Functions` class
|
||||||
|
|
||||||
|
## 9.0.1
|
||||||
|
|
||||||
|
* Added a new `label` function to the `Role` helper class
|
||||||
|
* Update internal variable names to prevent name collision
|
||||||
|
* Fix: content range header inconsistency in chunked uploads [#648](https://github.com/appwrite/sdk-generator/pull/648)
|
||||||
|
|
||||||
## 9.0.0
|
## 9.0.0
|
||||||
|
|
||||||
* Support for Appwrite 1.4.0
|
* Support for Appwrite 1.4.0
|
||||||
|
|
@ -13,6 +24,12 @@
|
||||||
* The `updateFile` method now includes the ability to update the file name.
|
* The `updateFile` method now includes the ability to update the file name.
|
||||||
* The `updateMembershipRoles` method has been renamed to `updateMembership`.
|
* The `updateMembershipRoles` method has been renamed to `updateMembership`.
|
||||||
|
|
||||||
|
## 8.0.1
|
||||||
|
|
||||||
|
* Added documentation comments
|
||||||
|
* Added unit tests
|
||||||
|
* Upgraded dependencies
|
||||||
|
|
||||||
## 8.0.0
|
## 8.0.0
|
||||||
|
|
||||||
* Added relationships support
|
* Added relationships support
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,13 @@
|
||||||
|
## 11.0.0
|
||||||
|
|
||||||
|
* Parameter `url` is now optional in the `createMembership` endpoint
|
||||||
|
|
||||||
|
## 10.0.1
|
||||||
|
|
||||||
|
* Added a new `label` function to the `Role` helper class
|
||||||
|
* Update internal variable names to prevent name collision
|
||||||
|
* Fix: content range header inconsistency in chunked uploads [#648](https://github.com/appwrite/sdk-generator/pull/648)
|
||||||
|
|
||||||
## 10.0.0
|
## 10.0.0
|
||||||
|
|
||||||
* Support for Appwrite 1.4.0
|
* Support for Appwrite 1.4.0
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue