Merge pull request #6099 from appwrite/chore-update-sdks
Chore update sdks
This commit is contained in:
commit
3c9f8530f9
|
@ -15,7 +15,7 @@ return [
|
|||
[
|
||||
'key' => 'web',
|
||||
'name' => 'Web',
|
||||
'version' => '12.0.0',
|
||||
'version' => '13.0.0',
|
||||
'url' => 'https://github.com/appwrite/sdk-for-web',
|
||||
'package' => 'https://www.npmjs.com/package/appwrite',
|
||||
'enabled' => true,
|
||||
|
@ -63,7 +63,7 @@ return [
|
|||
[
|
||||
'key' => 'flutter',
|
||||
'name' => 'Flutter',
|
||||
'version' => '10.0.0',
|
||||
'version' => '11.0.0',
|
||||
'url' => 'https://github.com/appwrite/sdk-for-flutter',
|
||||
'package' => 'https://pub.dev/packages/appwrite',
|
||||
'enabled' => true,
|
||||
|
@ -81,7 +81,7 @@ return [
|
|||
[
|
||||
'key' => 'apple',
|
||||
'name' => 'Apple',
|
||||
'version' => '3.0.0',
|
||||
'version' => '4.0.0',
|
||||
'url' => 'https://github.com/appwrite/sdk-for-apple',
|
||||
'package' => 'https://github.com/appwrite/sdk-for-apple',
|
||||
'enabled' => true,
|
||||
|
@ -116,7 +116,7 @@ return [
|
|||
[
|
||||
'key' => 'android',
|
||||
'name' => 'Android',
|
||||
'version' => '3.0.0',
|
||||
'version' => '4.0.0',
|
||||
'url' => 'https://github.com/appwrite/sdk-for-android',
|
||||
'package' => 'https://search.maven.org/artifact/io.appwrite/sdk-for-android',
|
||||
'enabled' => true,
|
||||
|
@ -203,7 +203,7 @@ return [
|
|||
[
|
||||
'key' => 'cli',
|
||||
'name' => 'Command Line',
|
||||
'version' => '3.0.0',
|
||||
'version' => '4.0.0',
|
||||
'url' => 'https://github.com/appwrite/sdk-for-cli',
|
||||
'package' => 'https://www.npmjs.com/package/appwrite-cli',
|
||||
'enabled' => true,
|
||||
|
@ -231,7 +231,7 @@ return [
|
|||
[
|
||||
'key' => 'nodejs',
|
||||
'name' => 'Node.js',
|
||||
'version' => '10.0.0',
|
||||
'version' => '11.0.0',
|
||||
'url' => 'https://github.com/appwrite/sdk-for-node',
|
||||
'package' => 'https://www.npmjs.com/package/node-appwrite',
|
||||
'enabled' => true,
|
||||
|
@ -249,7 +249,7 @@ return [
|
|||
[
|
||||
'key' => 'deno',
|
||||
'name' => 'Deno',
|
||||
'version' => '8.0.0',
|
||||
'version' => '9.0.0',
|
||||
'url' => 'https://github.com/appwrite/sdk-for-deno',
|
||||
'package' => 'https://deno.land/x/appwrite',
|
||||
'enabled' => true,
|
||||
|
@ -267,7 +267,7 @@ return [
|
|||
[
|
||||
'key' => 'php',
|
||||
'name' => 'PHP',
|
||||
'version' => '9.0.0',
|
||||
'version' => '10.0.0',
|
||||
'url' => 'https://github.com/appwrite/sdk-for-php',
|
||||
'package' => 'https://packagist.org/packages/appwrite/appwrite',
|
||||
'enabled' => true,
|
||||
|
@ -285,7 +285,7 @@ return [
|
|||
[
|
||||
'key' => 'python',
|
||||
'name' => 'Python',
|
||||
'version' => '3.0.0',
|
||||
'version' => '4.0.0',
|
||||
'url' => 'https://github.com/appwrite/sdk-for-python',
|
||||
'package' => 'https://pypi.org/project/appwrite/',
|
||||
'enabled' => true,
|
||||
|
@ -303,7 +303,7 @@ return [
|
|||
[
|
||||
'key' => 'ruby',
|
||||
'name' => 'Ruby',
|
||||
'version' => '9.0.0',
|
||||
'version' => '10.0.0',
|
||||
'url' => 'https://github.com/appwrite/sdk-for-ruby',
|
||||
'package' => 'https://rubygems.org/gems/appwrite',
|
||||
'enabled' => true,
|
||||
|
@ -321,7 +321,7 @@ return [
|
|||
[
|
||||
'key' => 'go',
|
||||
'name' => 'Go',
|
||||
'version' => '2.0.0',
|
||||
'version' => '3.0.0',
|
||||
'url' => 'https://github.com/appwrite/sdk-for-go',
|
||||
'package' => '',
|
||||
'enabled' => false,
|
||||
|
@ -339,7 +339,7 @@ return [
|
|||
[
|
||||
'key' => 'java',
|
||||
'name' => 'Java',
|
||||
'version' => '2.0.0',
|
||||
'version' => '3.0.0',
|
||||
'url' => 'https://github.com/appwrite/sdk-for-java',
|
||||
'package' => '',
|
||||
'enabled' => false,
|
||||
|
@ -357,7 +357,7 @@ return [
|
|||
[
|
||||
'key' => 'dotnet',
|
||||
'name' => '.NET',
|
||||
'version' => '0.5.0',
|
||||
'version' => '0.6.0',
|
||||
'url' => 'https://github.com/appwrite/sdk-for-dotnet',
|
||||
'package' => 'https://www.nuget.org/packages/Appwrite',
|
||||
'enabled' => true,
|
||||
|
@ -375,7 +375,7 @@ return [
|
|||
[
|
||||
'key' => 'dart',
|
||||
'name' => 'Dart',
|
||||
'version' => '9.0.0',
|
||||
'version' => '10.0.0',
|
||||
'url' => 'https://github.com/appwrite/sdk-for-dart',
|
||||
'package' => 'https://pub.dev/packages/dart_appwrite',
|
||||
'enabled' => true,
|
||||
|
@ -393,7 +393,7 @@ return [
|
|||
[
|
||||
'key' => 'kotlin',
|
||||
'name' => 'Kotlin',
|
||||
'version' => '3.0.0',
|
||||
'version' => '4.0.0',
|
||||
'url' => 'https://github.com/appwrite/sdk-for-kotlin',
|
||||
'package' => 'https://search.maven.org/artifact/io.appwrite/sdk-for-kotlin',
|
||||
'enabled' => true,
|
||||
|
@ -415,7 +415,7 @@ return [
|
|||
[
|
||||
'key' => 'swift',
|
||||
'name' => 'Swift',
|
||||
'version' => '3.0.0',
|
||||
'version' => '4.0.0',
|
||||
'url' => 'https://github.com/appwrite/sdk-for-swift',
|
||||
'package' => 'https://github.com/appwrite/sdk-for-swift',
|
||||
'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": {
|
||||
"appwrite/sdk-generator": "0.34.*",
|
||||
"appwrite/sdk-generator": "0.35.0",
|
||||
"ext-fileinfo": "*",
|
||||
"phpunit/phpunit": "9.5.20",
|
||||
"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",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "d165291f1be92644ba081f9c39050602",
|
||||
"content-hash": "1fe72c576bd9209f9db6e56cac8cd16a",
|
||||
"packages": [
|
||||
{
|
||||
"name": "adhocore/jwt",
|
||||
|
@ -3460,16 +3460,16 @@
|
|||
"packages-dev": [
|
||||
{
|
||||
"name": "appwrite/sdk-generator",
|
||||
"version": "0.34.2",
|
||||
"version": "0.35.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/appwrite/sdk-generator.git",
|
||||
"reference": "06ea25aace27790e42d57fdbc7ccf97e0b31a6ba"
|
||||
"reference": "edd5da6763d7f8f28155b77200682c69d08c9954"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/06ea25aace27790e42d57fdbc7ccf97e0b31a6ba",
|
||||
"reference": "06ea25aace27790e42d57fdbc7ccf97e0b31a6ba",
|
||||
"url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/edd5da6763d7f8f28155b77200682c69d08c9954",
|
||||
"reference": "edd5da6763d7f8f28155b77200682c69d08c9954",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
@ -3505,9 +3505,9 @@
|
|||
"description": "Appwrite PHP library for generating API SDKs for multiple programming languages and platforms",
|
||||
"support": {
|
||||
"issues": "https://github.com/appwrite/sdk-generator/issues",
|
||||
"source": "https://github.com/appwrite/sdk-generator/tree/0.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",
|
||||
|
@ -4214,16 +4214,16 @@
|
|||
},
|
||||
{
|
||||
"name": "phpstan/phpdoc-parser",
|
||||
"version": "1.23.1",
|
||||
"version": "1.24.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/phpstan/phpdoc-parser.git",
|
||||
"reference": "846ae76eef31c6d7790fac9bc399ecee45160b26"
|
||||
"reference": "3510b0a6274cc42f7219367cb3abfc123ffa09d6"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/846ae76eef31c6d7790fac9bc399ecee45160b26",
|
||||
"reference": "846ae76eef31c6d7790fac9bc399ecee45160b26",
|
||||
"url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/3510b0a6274cc42f7219367cb3abfc123ffa09d6",
|
||||
"reference": "3510b0a6274cc42f7219367cb3abfc123ffa09d6",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
@ -4255,9 +4255,9 @@
|
|||
"description": "PHPDoc parser with support for nullable, intersection and generic types",
|
||||
"support": {
|
||||
"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",
|
||||
|
|
|
@ -11,7 +11,6 @@ Teams teams = new Teams(client);
|
|||
teams.createMembership(
|
||||
"[TEAM_ID]",
|
||||
listOf(),
|
||||
"https://example.com",
|
||||
new CoroutineCallback<>((result, error) -> {
|
||||
if (error != null) {
|
||||
error.printStackTrace();
|
||||
|
|
|
@ -10,5 +10,4 @@ val teams = Teams(client)
|
|||
val response = teams.createMembership(
|
||||
teamId = "[TEAM_ID]",
|
||||
roles = listOf(),
|
||||
url = "https://example.com",
|
||||
)
|
||||
|
|
|
@ -8,7 +8,6 @@ let teams = Teams(client)
|
|||
|
||||
let membership = try await teams.createMembership(
|
||||
teamId: "[TEAM_ID]",
|
||||
roles: [],
|
||||
url: "https://example.com"
|
||||
roles: []
|
||||
)
|
||||
|
||||
|
|
|
@ -11,7 +11,6 @@ void main() { // Init SDK
|
|||
Future result = teams.createMembership(
|
||||
teamId: '[TEAM_ID]',
|
||||
roles: [],
|
||||
url: 'https://example.com',
|
||||
);
|
||||
|
||||
result
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
mutation {
|
||||
teamsCreateMembership(
|
||||
teamId: "[TEAM_ID]",
|
||||
roles: [],
|
||||
url: "https://example.com"
|
||||
roles: []
|
||||
) {
|
||||
_id
|
||||
_createdAt
|
||||
|
|
|
@ -9,7 +9,7 @@ client
|
|||
.setProject('5df5acd0d48c2') // Your project ID
|
||||
;
|
||||
|
||||
const promise = teams.createMembership('[TEAM_ID]', [], 'https://example.com');
|
||||
const promise = teams.createMembership('[TEAM_ID]', []);
|
||||
|
||||
promise.then(function (response) {
|
||||
console.log(response); // Success
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
appwrite functions create \
|
||||
--functionId [FUNCTION_ID] \
|
||||
--name [NAME] \
|
||||
--runtime node-14.5 \
|
||||
--runtime node-18.0 \
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
appwrite functions update \
|
||||
--functionId [FUNCTION_ID] \
|
||||
--name [NAME] \
|
||||
--runtime node-14.5 \
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
appwrite teams createMembership \
|
||||
--teamId [TEAM_ID] \
|
||||
--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
|
||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
||||
.setProject('5df5acd0d48c2') // Your project ID
|
||||
;
|
||||
|
||||
const promise = assistant.chat('[PROMPT]');
|
||||
|
|
|
@ -9,7 +9,7 @@ client
|
|||
.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) {
|
||||
console.log(response); // Success
|
||||
|
|
|
@ -9,7 +9,7 @@ client
|
|||
.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) {
|
||||
console.log(response); // Success
|
||||
|
|
|
@ -6,6 +6,7 @@ const migrations = new Migrations(client);
|
|||
|
||||
client
|
||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
||||
.setProject('5df5acd0d48c2') // Your project ID
|
||||
;
|
||||
|
||||
const promise = migrations.deleteFirebaseAuth();
|
||||
|
|
|
@ -6,6 +6,7 @@ const migrations = new Migrations(client);
|
|||
|
||||
client
|
||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
||||
.setProject('5df5acd0d48c2') // Your project ID
|
||||
;
|
||||
|
||||
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
|
||||
;
|
||||
|
||||
const promise = teams.createMembership('[TEAM_ID]', [], 'https://example.com');
|
||||
const promise = teams.createMembership('[TEAM_ID]', []);
|
||||
|
||||
promise.then(function (response) {
|
||||
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
|
||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
||||
.setProject('5df5acd0d48c2') // Your project ID
|
||||
;
|
||||
|
||||
const promise = vcs.createRepositoryDetection('[INSTALLATION_ID]', '[PROVIDER_REPOSITORY_ID]');
|
||||
|
|
|
@ -6,6 +6,7 @@ const vcs = new Vcs(client);
|
|||
|
||||
client
|
||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
||||
.setProject('5df5acd0d48c2') // Your project ID
|
||||
;
|
||||
|
||||
const promise = vcs.createRepository('[INSTALLATION_ID]', '[NAME]', false);
|
||||
|
|
|
@ -6,6 +6,7 @@ const vcs = new Vcs(client);
|
|||
|
||||
client
|
||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
||||
.setProject('5df5acd0d48c2') // Your project ID
|
||||
;
|
||||
|
||||
const promise = vcs.deleteInstallation('[INSTALLATION_ID]');
|
||||
|
|
|
@ -6,6 +6,7 @@ const vcs = new Vcs(client);
|
|||
|
||||
client
|
||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
||||
.setProject('5df5acd0d48c2') // Your project ID
|
||||
;
|
||||
|
||||
const promise = vcs.getInstallation('[INSTALLATION_ID]');
|
||||
|
|
|
@ -6,6 +6,7 @@ const vcs = new Vcs(client);
|
|||
|
||||
client
|
||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
||||
.setProject('5df5acd0d48c2') // Your project ID
|
||||
;
|
||||
|
||||
const promise = vcs.getRepository('[INSTALLATION_ID]', '[PROVIDER_REPOSITORY_ID]');
|
||||
|
|
|
@ -6,6 +6,7 @@ const vcs = new Vcs(client);
|
|||
|
||||
client
|
||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
||||
.setProject('5df5acd0d48c2') // Your project ID
|
||||
;
|
||||
|
||||
const promise = vcs.listInstallations();
|
||||
|
|
|
@ -6,6 +6,7 @@ const vcs = new Vcs(client);
|
|||
|
||||
client
|
||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
||||
.setProject('5df5acd0d48c2') // Your project ID
|
||||
;
|
||||
|
||||
const promise = vcs.listRepositories('[INSTALLATION_ID]');
|
||||
|
|
|
@ -6,6 +6,7 @@ const vcs = new Vcs(client);
|
|||
|
||||
client
|
||||
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
|
||||
.setProject('5df5acd0d48c2') // Your project ID
|
||||
;
|
||||
|
||||
const promise = vcs.listRepositoryBranches('[INSTALLATION_ID]', '[PROVIDER_REPOSITORY_ID]');
|
||||
|
|
|
@ -6,6 +6,7 @@ const vcs = new Vcs(client);
|
|||
|
||||
client
|
||||
.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]');
|
||||
|
|
|
@ -13,7 +13,7 @@ void main() { // Init SDK
|
|||
Future result = functions.create(
|
||||
functionId: '[FUNCTION_ID]',
|
||||
name: '[NAME]',
|
||||
runtime: 'node-14.5',
|
||||
runtime: 'node-18.0',
|
||||
);
|
||||
|
||||
result
|
||||
|
|
|
@ -13,7 +13,6 @@ void main() { // Init SDK
|
|||
Future result = functions.update(
|
||||
functionId: '[FUNCTION_ID]',
|
||||
name: '[NAME]',
|
||||
runtime: 'node-14.5',
|
||||
);
|
||||
|
||||
result
|
||||
|
|
|
@ -13,7 +13,6 @@ void main() { // Init SDK
|
|||
Future result = teams.createMembership(
|
||||
teamId: '[TEAM_ID]',
|
||||
roles: [],
|
||||
url: 'https://example.com',
|
||||
);
|
||||
|
||||
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) {
|
||||
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) {
|
||||
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) {
|
||||
console.log(response);
|
||||
|
|
|
@ -12,4 +12,4 @@ var functions = new Functions(client);
|
|||
Function result = await functions.Create(
|
||||
functionId: "[FUNCTION_ID]",
|
||||
name: "[NAME]",
|
||||
runtime: "node-14.5");
|
||||
runtime: "node-18.0");
|
|
@ -11,5 +11,4 @@ var functions = new Functions(client);
|
|||
|
||||
Function result = await functions.Update(
|
||||
functionId: "[FUNCTION_ID]",
|
||||
name: "[NAME]",
|
||||
runtime: "node-14.5");
|
||||
name: "[NAME]");
|
|
@ -11,5 +11,4 @@ var teams = new Teams(client);
|
|||
|
||||
Membership result = await teams.CreateMembership(
|
||||
teamId: "[TEAM_ID]",
|
||||
roles: new List<string> {},
|
||||
url: "https://example.com");
|
||||
roles: new List<string> {});
|
|
@ -2,7 +2,7 @@ mutation {
|
|||
functionsCreate(
|
||||
functionId: "[FUNCTION_ID]",
|
||||
name: "[NAME]",
|
||||
runtime: "node-14.5"
|
||||
runtime: "node-18.0"
|
||||
) {
|
||||
_id
|
||||
_createdAt
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
mutation {
|
||||
functionsUpdate(
|
||||
functionId: "[FUNCTION_ID]",
|
||||
name: "[NAME]",
|
||||
runtime: "node-14.5"
|
||||
name: "[NAME]"
|
||||
) {
|
||||
_id
|
||||
_createdAt
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
mutation {
|
||||
teamsCreateMembership(
|
||||
teamId: "[TEAM_ID]",
|
||||
roles: [],
|
||||
url: "https://example.com"
|
||||
roles: []
|
||||
) {
|
||||
_id
|
||||
_createdAt
|
||||
|
|
|
@ -12,7 +12,7 @@ Functions functions = new Functions(client);
|
|||
functions.create(
|
||||
"[FUNCTION_ID]",
|
||||
"[NAME]",
|
||||
"node-14.5",
|
||||
"node-18.0",
|
||||
new CoroutineCallback<>((result, error) -> {
|
||||
if (error != null) {
|
||||
error.printStackTrace();
|
||||
|
|
|
@ -12,7 +12,6 @@ Functions functions = new Functions(client);
|
|||
functions.update(
|
||||
"[FUNCTION_ID]",
|
||||
"[NAME]",
|
||||
"node-14.5",
|
||||
new CoroutineCallback<>((result, error) -> {
|
||||
if (error != null) {
|
||||
error.printStackTrace();
|
||||
|
|
|
@ -12,7 +12,6 @@ Teams teams = new Teams(client);
|
|||
teams.createMembership(
|
||||
"[TEAM_ID]",
|
||||
listOf(),
|
||||
"https://example.com",
|
||||
new CoroutineCallback<>((result, error) -> {
|
||||
if (error != null) {
|
||||
error.printStackTrace();
|
||||
|
|
|
@ -11,5 +11,5 @@ val functions = Functions(client)
|
|||
val response = functions.create(
|
||||
functionId = "[FUNCTION_ID]",
|
||||
name = "[NAME]",
|
||||
runtime = "node-14.5",
|
||||
runtime = "node-18.0",
|
||||
)
|
||||
|
|
|
@ -11,5 +11,4 @@ val functions = Functions(client)
|
|||
val response = functions.update(
|
||||
functionId = "[FUNCTION_ID]",
|
||||
name = "[NAME]",
|
||||
runtime = "node-14.5",
|
||||
)
|
||||
|
|
|
@ -11,5 +11,4 @@ val teams = Teams(client)
|
|||
val response = teams.createMembership(
|
||||
teamId = "[TEAM_ID]",
|
||||
roles = listOf(),
|
||||
url = "https://example.com",
|
||||
)
|
||||
|
|
|
@ -11,7 +11,7 @@ client
|
|||
.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) {
|
||||
console.log(response);
|
||||
|
|
|
@ -11,7 +11,7 @@ client
|
|||
.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) {
|
||||
console.log(response);
|
||||
|
|
|
@ -11,7 +11,7 @@ client
|
|||
.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) {
|
||||
console.log(response);
|
||||
|
|
|
@ -13,4 +13,4 @@ $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);
|
||||
|
||||
$result = $functions->update('[FUNCTION_ID]', '[NAME]', 'node-14.5');
|
||||
$result = $functions->update('[FUNCTION_ID]', '[NAME]');
|
|
@ -13,4 +13,4 @@ $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)
|
||||
|
||||
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)
|
||||
|
||||
result = functions.update('[FUNCTION_ID]', '[NAME]', 'node-14.5')
|
||||
result = functions.update('[FUNCTION_ID]', '[NAME]')
|
||||
|
|
|
@ -11,4 +11,4 @@ client = 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]",
|
||||
"name": "[NAME]",
|
||||
"runtime": "node-14.5",
|
||||
"runtime": "node-18.0",
|
||||
"execute": ["any"],
|
||||
"events": [],
|
||||
"schedule": ,
|
||||
|
|
|
@ -7,7 +7,7 @@ X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2
|
|||
|
||||
{
|
||||
"name": "[NAME]",
|
||||
"runtime": "node-14.5",
|
||||
"runtime": "node-18.0",
|
||||
"execute": ["any"],
|
||||
"events": [],
|
||||
"schedule": ,
|
||||
|
|
|
@ -9,6 +9,6 @@ client = Client.new
|
|||
|
||||
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
|
|
@ -9,6 +9,6 @@ client = Client.new
|
|||
|
||||
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
|
|
@ -9,6 +9,6 @@ client = Client.new
|
|||
|
||||
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
|
|
@ -10,6 +10,6 @@ let functions = Functions(client)
|
|||
let function = try await functions.create(
|
||||
functionId: "[FUNCTION_ID]",
|
||||
name: "[NAME]",
|
||||
runtime: "node-14.5"
|
||||
runtime: "node-18.0"
|
||||
)
|
||||
|
||||
|
|
|
@ -9,7 +9,6 @@ let functions = Functions(client)
|
|||
|
||||
let function = try await functions.update(
|
||||
functionId: "[FUNCTION_ID]",
|
||||
name: "[NAME]",
|
||||
runtime: "node-14.5"
|
||||
name: "[NAME]"
|
||||
)
|
||||
|
||||
|
|
|
@ -9,7 +9,6 @@ let teams = Teams(client)
|
|||
|
||||
let membership = try await teams.createMembership(
|
||||
teamId: "[TEAM_ID]",
|
||||
roles: [],
|
||||
url: "https://example.com"
|
||||
roles: []
|
||||
)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
* Support for Appwrite 1.4.0
|
||||
|
@ -13,6 +24,12 @@
|
|||
* The `updateFile` method now includes the ability to update the file name.
|
||||
* The `updateMembershipRoles` method has been renamed to `updateMembership`.
|
||||
|
||||
## 8.0.1
|
||||
|
||||
* Added documentation comments
|
||||
* Added unit tests
|
||||
* Upgraded dependencies
|
||||
|
||||
## 8.0.0
|
||||
|
||||
* 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
|
||||
|
||||
* Support for Appwrite 1.4.0
|
||||
|
|
Loading…
Reference in a new issue