Skip to content

Commit ebc39ea

Browse files
authored
fix: remove demo columns and allow additional properties (#20)
* fix: remove demo columns and allow additional properties * fix: remove demo columns and allow additional properties * fix: remove demo columns and allow additional properties
1 parent 1b5eae1 commit ebc39ea

29 files changed

+216
-3697
lines changed

generated/Client.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1913,7 +1913,7 @@ public function listDatabaseTableRowNames(array $queryParameters = [], string $f
19131913
*
19141914
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
19151915
*
1916-
* @return Model\PaginationSerializerExampleRowResponseSerializerWithUserFieldNames|\Psr\Http\Message\ResponseInterface|null
1916+
* @return Model\PaginationRowResponse|\Psr\Http\Message\ResponseInterface|null
19171917
*
19181918
* @throws Exception\ListDatabaseTableRowsBadRequestException
19191919
* @throws Exception\ListDatabaseTableRowsUnauthorizedException
@@ -1942,7 +1942,7 @@ public function listDatabaseTableRows(int $tableId, array $queryParameters = [],
19421942
*
19431943
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
19441944
*
1945-
* @return Model\ExampleRowResponseSerializerWithUserFieldNames|\Psr\Http\Message\ResponseInterface|null
1945+
* @return Model\RowResponse|\Psr\Http\Message\ResponseInterface|null
19461946
*
19471947
* @throws Exception\CreateDatabaseTableRowBadRequestException
19481948
* @throws Exception\CreateDatabaseTableRowUnauthorizedException
@@ -1988,7 +1988,7 @@ public function deleteDatabaseTableRow(int $rowId, int $tableId, array $headerPa
19881988
*
19891989
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
19901990
*
1991-
* @return Model\ExampleRowResponseSerializerWithUserFieldNames|\Psr\Http\Message\ResponseInterface|null
1991+
* @return Model\RowResponse|\Psr\Http\Message\ResponseInterface|null
19921992
*
19931993
* @throws Exception\GetDatabaseTableRowBadRequestException
19941994
* @throws Exception\GetDatabaseTableRowUnauthorizedException
@@ -2017,13 +2017,13 @@ public function getDatabaseTableRow(int $rowId, int $tableId, array $queryParame
20172017
*
20182018
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
20192019
*
2020-
* @return Model\ExampleRowResponseSerializerWithUserFieldNames|\Psr\Http\Message\ResponseInterface|null
2020+
* @return Model\RowResponse|\Psr\Http\Message\ResponseInterface|null
20212021
*
20222022
* @throws Exception\UpdateDatabaseTableRowBadRequestException
20232023
* @throws Exception\UpdateDatabaseTableRowUnauthorizedException
20242024
* @throws Exception\UpdateDatabaseTableRowNotFoundException
20252025
*/
2026-
public function updateDatabaseTableRow(int $rowId, int $tableId, ?Model\PatchedExampleUpdateRowRequestSerializerWithUserFieldNames $requestBody = null, array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT)
2026+
public function updateDatabaseTableRow(int $rowId, int $tableId, ?Model\PatchRowRequest $requestBody = null, array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT)
20272027
{
20282028
return $this->executeEndpoint(new Endpoint\UpdateDatabaseTableRow($rowId, $tableId, $requestBody, $queryParameters, $headerParameters), $fetch);
20292029
}
@@ -2044,7 +2044,7 @@ public function updateDatabaseTableRow(int $rowId, int $tableId, ?Model\PatchedE
20442044
*
20452045
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
20462046
*
2047-
* @return Model\ExampleRowResponseSerializerWithUserFieldNames|\Psr\Http\Message\ResponseInterface|null
2047+
* @return Model\RowResponse|\Psr\Http\Message\ResponseInterface|null
20482048
*
20492049
* @throws Exception\GetAdjacentDatabaseTableRowBadRequestException
20502050
* @throws Exception\GetAdjacentDatabaseTableRowNotFoundException
@@ -2096,7 +2096,7 @@ public function getDatabaseTableRowHistory(int $rowId, int $tableId, array $quer
20962096
*
20972097
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
20982098
*
2099-
* @return Model\ExampleRowResponseSerializerWithUserFieldNames|\Psr\Http\Message\ResponseInterface|null
2099+
* @return Model\RowResponse|\Psr\Http\Message\ResponseInterface|null
21002100
*
21012101
* @throws Exception\MoveDatabaseTableRowBadRequestException
21022102
* @throws Exception\MoveDatabaseTableRowUnauthorizedException
@@ -2131,7 +2131,7 @@ public function moveDatabaseTableRow(int $rowId, int $tableId, array $queryParam
21312131
* @throws Exception\BatchUpdateDatabaseTableRowsUnauthorizedException
21322132
* @throws Exception\BatchUpdateDatabaseTableRowsNotFoundException
21332133
*/
2134-
public function batchUpdateDatabaseTableRows(int $tableId, ?Model\PatchedExampleBatchUpdateRowsRequest $requestBody = null, array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT)
2134+
public function batchUpdateDatabaseTableRows(int $tableId, ?Model\PatchRowsRequest $requestBody = null, array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT)
21352135
{
21362136
return $this->executeEndpoint(new Endpoint\BatchUpdateDatabaseTableRows($tableId, $requestBody, $queryParameters, $headerParameters), $fetch);
21372137
}

generated/Endpoint/BatchUpdateDatabaseTableRows.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class BatchUpdateDatabaseTableRows extends \CedricZiel\Baserow\Generated\Runtime
3131
* @var string $ClientUndoRedoActionGroupId An optional header that marks the action performed by this request as having occurred in a particular action group.Then calling the undo/redo endpoint with the same ClientSessionId header, all the actions belonging to the same action group can be undone/redone together in a single API call.
3232
* }
3333
*/
34-
public function __construct(int $tableId, ?\CedricZiel\Baserow\Generated\Model\PatchedExampleBatchUpdateRowsRequest $requestBody = null, array $queryParameters = [], array $headerParameters = [])
34+
public function __construct(int $tableId, ?\CedricZiel\Baserow\Generated\Model\PatchRowsRequest $requestBody = null, array $queryParameters = [], array $headerParameters = [])
3535
{
3636
$this->table_id = $tableId;
3737
$this->body = $requestBody;
@@ -51,13 +51,13 @@ public function getUri(): string
5151

5252
public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
5353
{
54-
if ($this->body instanceof \CedricZiel\Baserow\Generated\Model\PatchedExampleBatchUpdateRowsRequest) {
54+
if ($this->body instanceof \CedricZiel\Baserow\Generated\Model\PatchRowsRequest) {
5555
return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')];
5656
}
57-
if ($this->body instanceof \CedricZiel\Baserow\Generated\Model\PatchedExampleBatchUpdateRowsRequest) {
57+
if ($this->body instanceof \CedricZiel\Baserow\Generated\Model\PatchRowsRequest) {
5858
return [['Content-Type' => ['application/x-www-form-urlencoded']], http_build_query($serializer->normalize($this->body, 'json'))];
5959
}
60-
if ($this->body instanceof \CedricZiel\Baserow\Generated\Model\PatchedExampleBatchUpdateRowsRequest) {
60+
if ($this->body instanceof \CedricZiel\Baserow\Generated\Model\PatchRowsRequest) {
6161
$bodyBuilder = new \Http\Message\MultipartStream\MultipartStreamBuilder($streamFactory);
6262
$formParameters = $serializer->normalize($this->body, 'json');
6363
foreach ($formParameters as $key => $value) {

generated/Endpoint/CreateDatabaseTableRow.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv
101101
}
102102

103103
/**
104-
* @return \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNames|null
104+
* @return \CedricZiel\Baserow\Generated\Model\RowResponse|null
105105
*
106106
* @throws \CedricZiel\Baserow\Generated\Exception\CreateDatabaseTableRowBadRequestException
107107
* @throws \CedricZiel\Baserow\Generated\Exception\CreateDatabaseTableRowUnauthorizedException
@@ -112,7 +112,7 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re
112112
$status = $response->getStatusCode();
113113
$body = (string) $response->getBody();
114114
if (false === is_null($contentType) && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) {
115-
return $serializer->deserialize($body, 'CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNames', 'json');
115+
return $serializer->deserialize($body, 'CedricZiel\Baserow\Generated\Model\RowResponse', 'json');
116116
}
117117
if (false === is_null($contentType) && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) {
118118
throw new \CedricZiel\Baserow\Generated\Exception\CreateDatabaseTableRowBadRequestException($serializer->deserialize($body, 'CedricZiel\Baserow\Generated\Model\ApiDatabaseRowsTableTableIdPostResponse400', 'json'), $response);

generated/Endpoint/GetAdjacentDatabaseTableRow.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver
7373
}
7474

7575
/**
76-
* @return \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNames|null
76+
* @return \CedricZiel\Baserow\Generated\Model\RowResponse|null
7777
*
7878
* @throws \CedricZiel\Baserow\Generated\Exception\GetAdjacentDatabaseTableRowBadRequestException
7979
* @throws \CedricZiel\Baserow\Generated\Exception\GetAdjacentDatabaseTableRowNotFoundException
@@ -83,7 +83,7 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re
8383
$status = $response->getStatusCode();
8484
$body = (string) $response->getBody();
8585
if (false === is_null($contentType) && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) {
86-
return $serializer->deserialize($body, 'CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNames', 'json');
86+
return $serializer->deserialize($body, 'CedricZiel\Baserow\Generated\Model\RowResponse', 'json');
8787
}
8888
if (204 === $status) {
8989
return null;

generated/Endpoint/GetDatabaseTableRow.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver
6565
}
6666

6767
/**
68-
* @return \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNames|null
68+
* @return \CedricZiel\Baserow\Generated\Model\RowResponse|null
6969
*
7070
* @throws \CedricZiel\Baserow\Generated\Exception\GetDatabaseTableRowBadRequestException
7171
* @throws \CedricZiel\Baserow\Generated\Exception\GetDatabaseTableRowUnauthorizedException
@@ -76,7 +76,7 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re
7676
$status = $response->getStatusCode();
7777
$body = (string) $response->getBody();
7878
if (false === is_null($contentType) && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) {
79-
return $serializer->deserialize($body, 'CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNames', 'json');
79+
return $serializer->deserialize($body, 'CedricZiel\Baserow\Generated\Model\RowResponse', 'json');
8080
}
8181
if (false === is_null($contentType) && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) {
8282
throw new \CedricZiel\Baserow\Generated\Exception\GetDatabaseTableRowBadRequestException($serializer->deserialize($body, 'CedricZiel\Baserow\Generated\Model\ApiDatabaseRowsTableTableIdRowIdGetResponse400', 'json'), $response);

generated/Endpoint/ListDatabaseTableRows.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver
9999
}
100100

101101
/**
102-
* @return \CedricZiel\Baserow\Generated\Model\PaginationSerializerExampleRowResponseSerializerWithUserFieldNames|null
102+
* @return \CedricZiel\Baserow\Generated\Model\PaginationRowResponse|null
103103
*
104104
* @throws \CedricZiel\Baserow\Generated\Exception\ListDatabaseTableRowsBadRequestException
105105
* @throws \CedricZiel\Baserow\Generated\Exception\ListDatabaseTableRowsUnauthorizedException
@@ -110,7 +110,7 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re
110110
$status = $response->getStatusCode();
111111
$body = (string) $response->getBody();
112112
if (false === is_null($contentType) && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) {
113-
return $serializer->deserialize($body, 'CedricZiel\Baserow\Generated\Model\PaginationSerializerExampleRowResponseSerializerWithUserFieldNames', 'json');
113+
return $serializer->deserialize($body, 'CedricZiel\Baserow\Generated\Model\PaginationRowResponse', 'json');
114114
}
115115
if (false === is_null($contentType) && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) {
116116
throw new \CedricZiel\Baserow\Generated\Exception\ListDatabaseTableRowsBadRequestException($serializer->deserialize($body, 'CedricZiel\Baserow\Generated\Model\ApiDatabaseRowsTableTableIdGetResponse400', 'json'), $response);

generated/Endpoint/MoveDatabaseTableRow.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv
8686
}
8787

8888
/**
89-
* @return \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNames|null
89+
* @return \CedricZiel\Baserow\Generated\Model\RowResponse|null
9090
*
9191
* @throws \CedricZiel\Baserow\Generated\Exception\MoveDatabaseTableRowBadRequestException
9292
* @throws \CedricZiel\Baserow\Generated\Exception\MoveDatabaseTableRowUnauthorizedException
@@ -97,7 +97,7 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re
9797
$status = $response->getStatusCode();
9898
$body = (string) $response->getBody();
9999
if (false === is_null($contentType) && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) {
100-
return $serializer->deserialize($body, 'CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNames', 'json');
100+
return $serializer->deserialize($body, 'CedricZiel\Baserow\Generated\Model\RowResponse', 'json');
101101
}
102102
if (false === is_null($contentType) && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) {
103103
throw new \CedricZiel\Baserow\Generated\Exception\MoveDatabaseTableRowBadRequestException($serializer->deserialize($body, 'CedricZiel\Baserow\Generated\Model\ApiDatabaseRowsTableTableIdRowIdMovePatchResponse400', 'json'), $response);

generated/Endpoint/UpdateDatabaseTableRow.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class UpdateDatabaseTableRow extends \CedricZiel\Baserow\Generated\Runtime\Clien
3232
* @var string $ClientUndoRedoActionGroupId An optional header that marks the action performed by this request as having occurred in a particular action group.Then calling the undo/redo endpoint with the same ClientSessionId header, all the actions belonging to the same action group can be undone/redone together in a single API call.
3333
* }
3434
*/
35-
public function __construct(int $rowId, int $tableId, ?\CedricZiel\Baserow\Generated\Model\PatchedExampleUpdateRowRequestSerializerWithUserFieldNames $requestBody = null, array $queryParameters = [], array $headerParameters = [])
35+
public function __construct(int $rowId, int $tableId, ?\CedricZiel\Baserow\Generated\Model\PatchRowRequest $requestBody = null, array $queryParameters = [], array $headerParameters = [])
3636
{
3737
$this->row_id = $rowId;
3838
$this->table_id = $tableId;
@@ -53,13 +53,13 @@ public function getUri(): string
5353

5454
public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
5555
{
56-
if ($this->body instanceof \CedricZiel\Baserow\Generated\Model\PatchedExampleUpdateRowRequestSerializerWithUserFieldNames) {
56+
if ($this->body instanceof \CedricZiel\Baserow\Generated\Model\PatchRowRequest) {
5757
return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')];
5858
}
59-
if ($this->body instanceof \CedricZiel\Baserow\Generated\Model\PatchedExampleUpdateRowRequestSerializerWithUserFieldNames) {
59+
if ($this->body instanceof \CedricZiel\Baserow\Generated\Model\PatchRowRequest) {
6060
return [['Content-Type' => ['application/x-www-form-urlencoded']], http_build_query($serializer->normalize($this->body, 'json'))];
6161
}
62-
if ($this->body instanceof \CedricZiel\Baserow\Generated\Model\PatchedExampleUpdateRowRequestSerializerWithUserFieldNames) {
62+
if ($this->body instanceof \CedricZiel\Baserow\Generated\Model\PatchRowRequest) {
6363
$bodyBuilder = new \Http\Message\MultipartStream\MultipartStreamBuilder($streamFactory);
6464
$formParameters = $serializer->normalize($this->body, 'json');
6565
foreach ($formParameters as $key => $value) {
@@ -102,7 +102,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv
102102
}
103103

104104
/**
105-
* @return \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNames|null
105+
* @return \CedricZiel\Baserow\Generated\Model\RowResponse|null
106106
*
107107
* @throws \CedricZiel\Baserow\Generated\Exception\UpdateDatabaseTableRowBadRequestException
108108
* @throws \CedricZiel\Baserow\Generated\Exception\UpdateDatabaseTableRowUnauthorizedException
@@ -113,7 +113,7 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re
113113
$status = $response->getStatusCode();
114114
$body = (string) $response->getBody();
115115
if (false === is_null($contentType) && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) {
116-
return $serializer->deserialize($body, 'CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNames', 'json');
116+
return $serializer->deserialize($body, 'CedricZiel\Baserow\Generated\Model\RowResponse', 'json');
117117
}
118118
if (false === is_null($contentType) && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) {
119119
throw new \CedricZiel\Baserow\Generated\Exception\UpdateDatabaseTableRowBadRequestException($serializer->deserialize($body, 'CedricZiel\Baserow\Generated\Model\ApiDatabaseRowsTableTableIdRowIdPatchResponse400', 'json'), $response);
Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
namespace CedricZiel\Baserow\Generated\Model;
1212

13-
class ExampleRowResponseSerializerWithUserFieldNamesField10 extends \ArrayObject
13+
class BatchUpdateRow extends \ArrayObject
1414
{
1515
/**
1616
* @var array
@@ -22,37 +22,28 @@ public function isInitialized($property): bool
2222
return array_key_exists($property, $this->initialized);
2323
}
2424
/**
25+
* The unique identifier of the row in the table.
26+
*
2527
* @var int
2628
*/
2729
protected $id;
30+
2831
/**
29-
* @var string
32+
* The unique identifier of the row in the table.
3033
*/
31-
protected $name;
32-
3334
public function getId(): int
3435
{
3536
return $this->id;
3637
}
3738

39+
/**
40+
* The unique identifier of the row in the table.
41+
*/
3842
public function setId(int $id): self
3943
{
4044
$this->initialized['id'] = true;
4145
$this->id = $id;
4246

4347
return $this;
4448
}
45-
46-
public function getName(): string
47-
{
48-
return $this->name;
49-
}
50-
51-
public function setName(string $name): self
52-
{
53-
$this->initialized['name'] = true;
54-
$this->name = $name;
55-
56-
return $this;
57-
}
5849
}

generated/Model/ExampleBatchRowsResponse.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,20 @@ public function isInitialized($property): bool
2222
return array_key_exists($property, $this->initialized);
2323
}
2424
/**
25-
* @var list<ExampleRowResponseSerializerWithUserFieldNames>
25+
* @var list<RowResponse>
2626
*/
2727
protected $items;
2828

2929
/**
30-
* @return list<ExampleRowResponseSerializerWithUserFieldNames>
30+
* @return list<RowResponse>
3131
*/
3232
public function getItems(): array
3333
{
3434
return $this->items;
3535
}
3636

3737
/**
38-
* @param list<ExampleRowResponseSerializerWithUserFieldNames> $items
38+
* @param list<RowResponse> $items
3939
*/
4040
public function setItems(array $items): self
4141
{

0 commit comments

Comments
 (0)