Add GraphQL platform
This commit is contained in:
parent
19123257fc
commit
2eed73395a
4 changed files with 50 additions and 25 deletions
|
@ -135,21 +135,24 @@ return [
|
||||||
'Java' => 'java',
|
'Java' => 'java',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
// [
|
[
|
||||||
// 'key' => 'java',
|
'key' => 'graphql',
|
||||||
// 'name' => 'Java',
|
'name' => 'GraphQL',
|
||||||
// 'url' => '',
|
'version' => 'October 2021',
|
||||||
// 'enabled' => false,
|
'url' => '',
|
||||||
// 'beta' => false,
|
'package' => '',
|
||||||
// 'dev' => false,
|
'enabled' => true,
|
||||||
// 'hidden' => false,
|
'beta' => false,
|
||||||
// 'family' => APP_PLATFORM_CLIENT,
|
'dev' => false,
|
||||||
// 'prism' => 'java',
|
'hidden' => true,
|
||||||
// 'source' => false,
|
'family' => APP_PLATFORM_SERVER,
|
||||||
// 'gitUrl' => 'git@github.com:appwrite/sdk-for-java.git',
|
'prism' => 'graphql',
|
||||||
// 'gitRepoName' => 'sdk-for-java',
|
'source' => \realpath(__DIR__ . '/../sdks/client-graphql'),
|
||||||
// 'gitUserName' => 'appwrite',
|
'gitUrl' => '',
|
||||||
// ],
|
'gitRepoName' => '',
|
||||||
|
'gitUserName' => '',
|
||||||
|
'gitBranch' => '',
|
||||||
|
],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|
||||||
|
@ -407,6 +410,24 @@ return [
|
||||||
'gitUserName' => 'appwrite',
|
'gitUserName' => 'appwrite',
|
||||||
'gitBranch' => 'main',
|
'gitBranch' => 'main',
|
||||||
],
|
],
|
||||||
|
[
|
||||||
|
'key' => 'graphql',
|
||||||
|
'name' => 'GraphQL',
|
||||||
|
'version' => 'October 2021',
|
||||||
|
'url' => '',
|
||||||
|
'package' => '',
|
||||||
|
'enabled' => true,
|
||||||
|
'beta' => false,
|
||||||
|
'dev' => false,
|
||||||
|
'hidden' => true,
|
||||||
|
'family' => APP_PLATFORM_SERVER,
|
||||||
|
'prism' => 'graphql',
|
||||||
|
'source' => \realpath(__DIR__ . '/../sdks/server-graphql'),
|
||||||
|
'gitUrl' => '',
|
||||||
|
'gitRepoName' => '',
|
||||||
|
'gitUserName' => '',
|
||||||
|
'gitBranch' => '',
|
||||||
|
],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
use Appwrite\SDK\Language\GraphQL;
|
||||||
use Utopia\Config\Config;
|
use Utopia\Config\Config;
|
||||||
use Utopia\CLI\Console;
|
use Utopia\CLI\Console;
|
||||||
use Appwrite\Spec\Swagger2;
|
use Appwrite\Spec\Swagger2;
|
||||||
|
@ -30,7 +31,7 @@ $cli
|
||||||
$production = ($git) ? (Console::confirm('Type "Appwrite" to push code to production git repos') == 'Appwrite') : false;
|
$production = ($git) ? (Console::confirm('Type "Appwrite" to push code to production git repos') == 'Appwrite') : false;
|
||||||
$message = ($git) ? Console::confirm('Please enter your commit message:') : '';
|
$message = ($git) ? Console::confirm('Please enter your commit message:') : '';
|
||||||
|
|
||||||
if (!in_array($version, ['0.6.x', '0.7.x', '0.8.x', '0.9.x', '0.10.x', '0.11.x', '0.12.x', '0.13.x', '0.14.x', '0.15.x', '1.0.x', 'latest'])) {
|
if (!in_array($version, ['0.6.x', '0.7.x', '0.8.x', '0.9.x', '0.10.x', '0.11.x', '0.12.x', '0.13.x', '0.14.x', '0.15.x', '1.0.x', '1.1.x', '1.2.x', 'latest'])) {
|
||||||
throw new Exception('Unknown version given');
|
throw new Exception('Unknown version given');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -161,6 +162,9 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||||
$config = new Kotlin();
|
$config = new Kotlin();
|
||||||
$warning = $warning . "\n\n > This is the Kotlin SDK for integrating with Appwrite from your Kotlin server-side code. If you're looking for the Android SDK you should check [appwrite/sdk-for-android](https://github.com/appwrite/sdk-for-android)";
|
$warning = $warning . "\n\n > This is the Kotlin SDK for integrating with Appwrite from your Kotlin server-side code. If you're looking for the Android SDK you should check [appwrite/sdk-for-android](https://github.com/appwrite/sdk-for-android)";
|
||||||
break;
|
break;
|
||||||
|
case 'graphql':
|
||||||
|
$config = new GraphQL();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
throw new Exception('Language "' . $language['key'] . '" not supported');
|
throw new Exception('Language "' . $language['key'] . '" not supported');
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -78,7 +78,7 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"appwrite/sdk-generator": "dev-feat-graphql-method-type as 0.28.1",
|
"appwrite/sdk-generator": "dev-feat-graphql as 0.28.1",
|
||||||
"ext-fileinfo": "*",
|
"ext-fileinfo": "*",
|
||||||
"phpunit/phpunit": "9.5.20",
|
"phpunit/phpunit": "9.5.20",
|
||||||
"squizlabs/php_codesniffer": "^3.6",
|
"squizlabs/php_codesniffer": "^3.6",
|
||||||
|
|
16
composer.lock
generated
16
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": "173c9d860d0013e328c3bef1502ccd96",
|
"content-hash": "d1ae54b92f40b76122e3d42bf87b4e67",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "adhocore/jwt",
|
"name": "adhocore/jwt",
|
||||||
|
@ -2877,16 +2877,16 @@
|
||||||
"packages-dev": [
|
"packages-dev": [
|
||||||
{
|
{
|
||||||
"name": "appwrite/sdk-generator",
|
"name": "appwrite/sdk-generator",
|
||||||
"version": "dev-feat-graphql-method-type",
|
"version": "dev-feat-graphql",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/appwrite/sdk-generator.git",
|
"url": "https://github.com/appwrite/sdk-generator.git",
|
||||||
"reference": "01232419c20fb80d741200ae1b1fae2646115b77"
|
"reference": "07bef0877274d8db3691b84b0439f1be59bdc46e"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/01232419c20fb80d741200ae1b1fae2646115b77",
|
"url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/07bef0877274d8db3691b84b0439f1be59bdc46e",
|
||||||
"reference": "01232419c20fb80d741200ae1b1fae2646115b77",
|
"reference": "07bef0877274d8db3691b84b0439f1be59bdc46e",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
|
@ -2921,9 +2921,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/feat-graphql-method-type"
|
"source": "https://github.com/appwrite/sdk-generator/tree/feat-graphql"
|
||||||
},
|
},
|
||||||
"time": "2022-10-17T01:43:03+00:00"
|
"time": "2022-10-20T02:51:43+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "doctrine/instantiator",
|
"name": "doctrine/instantiator",
|
||||||
|
@ -5403,7 +5403,7 @@
|
||||||
"aliases": [
|
"aliases": [
|
||||||
{
|
{
|
||||||
"package": "appwrite/sdk-generator",
|
"package": "appwrite/sdk-generator",
|
||||||
"version": "dev-feat-graphql-method-type",
|
"version": "dev-feat-graphql",
|
||||||
"alias": "0.28.1",
|
"alias": "0.28.1",
|
||||||
"alias_normalized": "0.28.1.0"
|
"alias_normalized": "0.28.1.0"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue