Skip to content

Commit cb2dbc7

Browse files
Merge pull request #13 from lepidus/main
Update GraphQL client to Thoth Schema 1.0.0
2 parents efa646a + 28042fa commit cb2dbc7

63 files changed

Lines changed: 5228 additions & 2703 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

LICENSE

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,8 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright 2024 Thiago Matos
189+
Copyright 2026 Thoth Open Metadata
190+
Copyright 2026 Lepidus Tecnologia
190191

191192
Licensed under the Apache License, Version 2.0 (the "License");
192193
you may not use this file except in compliance with the License.

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ $works = $client->works([
7575

7676
#### Mutations
7777

78-
To execute mutations, authentication with a Thoth account's credentials is required.
78+
To execute mutations, provide a valid personal access token to the client.
7979

8080
```php
81-
$client->login($email, $password);
81+
$client->setToken($token);
8282
```
8383

8484
Mutations can be executed by providing an instance of the model class corresponding to the mutation type. To delete mutations, only the object's ID is required. When the operation is successful, the object's ID is returned.
@@ -104,8 +104,7 @@ A QueryException is thrown in case of an error in the request to the GraphQL API
104104
```php
105105
try {
106106
$work = new \ThothApi\GraphQL\Models\Work([
107-
'fullTitle' => 'Foo Bar',
108-
'title' => 'Foo',
107+
'doi' => 'https://doi.org/10.00000/00000000',
109108
]);
110109
$workId = $client->createWork($work);
111110
} catch (\ThothApi\Exception\QueryException $exception) {
@@ -220,6 +219,6 @@ Developed by [Lepidus Tecnologia](https://github.com/lepidus).
220219

221220
Licensed under the Apache License, Version 2.0 - [See the License file.](/LICENSE)
222221

223-
Copyright (c) 2024 Lepidus Tecnologia
222+
Copyright (c) 2024-2026 Lepidus Tecnologia
224223

225-
Copyright (c) 2024 Thoth
224+
Copyright (c) 2024-2026 Thoth Open Metadata

docs/README-es.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ $works = $client->works([
6767

6868
#### Mutaciones
6969

70-
Para ejecutar mutaciones es necesario autenticarse con las credenciales de una cuenta de Thoth.
70+
Para ejecutar mutaciones, proporcione al cliente un personal access token valido.
7171

7272
```php
73-
$client->login($email, $password);
73+
$client->setToken($token);
7474
```
7575

7676
Las mutaciones pueden ejecutarse proporcionando una instancia de la clase modelo correspondiente al tipo de mutación. Para las mutaciones de eliminación, solo es necesario proporcionar la ID del objeto. Cuando la operación se realiza con éxito, se devuelve la ID del objeto.
@@ -96,8 +96,7 @@ Se lanza una excepción del tipo *QueryException* en caso de error en la solicit
9696
```php
9797
try {
9898
$work = new \ThothApi\GraphQL\Models\Work([
99-
'fullTitle' => 'Foo Bar',
100-
'title' => 'Foo',
99+
'doi' => 'https://doi.org/10.00000/00000000',
101100
]);
102101
$workId = $client->createWork($work);
103102
} catch (\ThothApi\Exception\QueryException $exception) {
@@ -212,6 +211,6 @@ Desarrollado por [Lepidus Tecnologia](https://github.com/lepidus).
212211

213212
Licenciado bajo la Licencia Apache, Versión 2.0 - [Consulta el archivo de licencia.](/LICENSE)
214213

215-
Copyright (c) 2024 Lepidus Tecnologia
214+
Copyright (c) 2024-2026 Lepidus Tecnologia
216215

217-
Copyright (c) 2024 Thoth
216+
Copyright (c) 2024-2026 Thoth Open Metadata

docs/README-pt_BR.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ $works = $client->works([
6767

6868
#### Mutações
6969

70-
Para executar mutações é necessário realizar a autenticação com as credenciais de uma conta Thoth.
70+
Para executar mutações, forneça ao cliente um personal access token válido.
7171

7272
```php
73-
$client->login($email, $password);
73+
$client->setToken($token);
7474
```
7575

7676
Mutações podem ser executadas fornecendo uma instância da classe modelo correspondente ao tipo da mutação. Para mutações de exclusão, é necessário apenas fornecer o ID do objeto. Quando a operação é bem-sucedida, o ID do objeto é retornado.
@@ -96,8 +96,7 @@ Uma exceção do tipo *QueryException* é lançada em caso de erro na solicitaç
9696
```php
9797
try {
9898
$work = new \ThothApi\GraphQL\Models\Work([
99-
'fullTitle' => 'Foo Bar',
100-
'title' => 'Foo',
99+
'doi' => 'https://doi.org/10.00000/00000000',
101100
]);
102101
$workId = $client->createWork($work);
103102
} catch (\ThothApi\Exception\QueryException $exception) {
@@ -212,6 +211,6 @@ Desenvolvido por [Lepidus Tecnologia](https://github.com/lepidus).
212211

213212
Licenciado sob a Licença Apache, Versão 2.0 - [Veja o arquivo de licença.](/LICENSE)
214213

215-
Copyright (c) 2024 Lepidus Tecnologia
214+
Copyright (c) 2024-2026 Lepidus Tecnologia
216215

217-
Copyright (c) 2024 Thoth
216+
Copyright (c) 2024-2026 Thoth Open Metadata

src/GraphQL/Account.php

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)