1
0
Fork 0
mirror of synced 2024-06-30 12:10:51 +12:00

Add GraphQL platform

This commit is contained in:
Jake Barnby 2022-10-20 16:21:16 +13:00
parent 19123257fc
commit 2eed73395a
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C
4 changed files with 50 additions and 25 deletions

View file

@ -135,21 +135,24 @@ return [
'Java' => 'java',
],
],
// [
// 'key' => 'java',
// 'name' => 'Java',
// 'url' => '',
// 'enabled' => false,
// 'beta' => false,
// 'dev' => false,
// 'hidden' => false,
// 'family' => APP_PLATFORM_CLIENT,
// 'prism' => 'java',
// 'source' => false,
// 'gitUrl' => 'git@github.com:appwrite/sdk-for-java.git',
// 'gitRepoName' => 'sdk-for-java',
// 'gitUserName' => 'appwrite',
// ],
[
'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/client-graphql'),
'gitUrl' => '',
'gitRepoName' => '',
'gitUserName' => '',
'gitBranch' => '',
],
],
],
@ -407,6 +410,24 @@ return [
'gitUserName' => 'appwrite',
'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' => '',
],
],
],
];

View file

@ -1,5 +1,6 @@
<?php
use Appwrite\SDK\Language\GraphQL;
use Utopia\Config\Config;
use Utopia\CLI\Console;
use Appwrite\Spec\Swagger2;
@ -30,7 +31,7 @@ $cli
$production = ($git) ? (Console::confirm('Type "Appwrite" to push code to production git repos') == 'Appwrite') : false;
$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');
}
@ -161,6 +162,9 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
$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)";
break;
case 'graphql':
$config = new GraphQL();
break;
default:
throw new Exception('Language "' . $language['key'] . '" not supported');
break;

View file

@ -78,7 +78,7 @@
}
],
"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": "*",
"phpunit/phpunit": "9.5.20",
"squizlabs/php_codesniffer": "^3.6",

16
composer.lock generated
View file

@ -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": "173c9d860d0013e328c3bef1502ccd96",
"content-hash": "d1ae54b92f40b76122e3d42bf87b4e67",
"packages": [
{
"name": "adhocore/jwt",
@ -2877,16 +2877,16 @@
"packages-dev": [
{
"name": "appwrite/sdk-generator",
"version": "dev-feat-graphql-method-type",
"version": "dev-feat-graphql",
"source": {
"type": "git",
"url": "https://github.com/appwrite/sdk-generator.git",
"reference": "01232419c20fb80d741200ae1b1fae2646115b77"
"reference": "07bef0877274d8db3691b84b0439f1be59bdc46e"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/01232419c20fb80d741200ae1b1fae2646115b77",
"reference": "01232419c20fb80d741200ae1b1fae2646115b77",
"url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/07bef0877274d8db3691b84b0439f1be59bdc46e",
"reference": "07bef0877274d8db3691b84b0439f1be59bdc46e",
"shasum": ""
},
"require": {
@ -2921,9 +2921,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/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",
@ -5403,7 +5403,7 @@
"aliases": [
{
"package": "appwrite/sdk-generator",
"version": "dev-feat-graphql-method-type",
"version": "dev-feat-graphql",
"alias": "0.28.1",
"alias_normalized": "0.28.1.0"
}