Skip to content

Commit

Permalink
fix: remove demo columns and allow additional properties (#20)
Browse files Browse the repository at this point in the history
* fix: remove demo columns and allow additional properties

* fix: remove demo columns and allow additional properties

* fix: remove demo columns and allow additional properties
  • Loading branch information
cedricziel authored Aug 6, 2024
1 parent 1b5eae1 commit ebc39ea
Show file tree
Hide file tree
Showing 29 changed files with 216 additions and 3,697 deletions.
16 changes: 8 additions & 8 deletions generated/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -1913,7 +1913,7 @@ public function listDatabaseTableRowNames(array $queryParameters = [], string $f
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return Model\PaginationSerializerExampleRowResponseSerializerWithUserFieldNames|\Psr\Http\Message\ResponseInterface|null
* @return Model\PaginationRowResponse|\Psr\Http\Message\ResponseInterface|null
*
* @throws Exception\ListDatabaseTableRowsBadRequestException
* @throws Exception\ListDatabaseTableRowsUnauthorizedException
Expand Down Expand Up @@ -1942,7 +1942,7 @@ public function listDatabaseTableRows(int $tableId, array $queryParameters = [],
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return Model\ExampleRowResponseSerializerWithUserFieldNames|\Psr\Http\Message\ResponseInterface|null
* @return Model\RowResponse|\Psr\Http\Message\ResponseInterface|null
*
* @throws Exception\CreateDatabaseTableRowBadRequestException
* @throws Exception\CreateDatabaseTableRowUnauthorizedException
Expand Down Expand Up @@ -1988,7 +1988,7 @@ public function deleteDatabaseTableRow(int $rowId, int $tableId, array $headerPa
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return Model\ExampleRowResponseSerializerWithUserFieldNames|\Psr\Http\Message\ResponseInterface|null
* @return Model\RowResponse|\Psr\Http\Message\ResponseInterface|null
*
* @throws Exception\GetDatabaseTableRowBadRequestException
* @throws Exception\GetDatabaseTableRowUnauthorizedException
Expand Down Expand Up @@ -2017,13 +2017,13 @@ public function getDatabaseTableRow(int $rowId, int $tableId, array $queryParame
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return Model\ExampleRowResponseSerializerWithUserFieldNames|\Psr\Http\Message\ResponseInterface|null
* @return Model\RowResponse|\Psr\Http\Message\ResponseInterface|null
*
* @throws Exception\UpdateDatabaseTableRowBadRequestException
* @throws Exception\UpdateDatabaseTableRowUnauthorizedException
* @throws Exception\UpdateDatabaseTableRowNotFoundException
*/
public function updateDatabaseTableRow(int $rowId, int $tableId, ?Model\PatchedExampleUpdateRowRequestSerializerWithUserFieldNames $requestBody = null, array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT)
public function updateDatabaseTableRow(int $rowId, int $tableId, ?Model\PatchRowRequest $requestBody = null, array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new Endpoint\UpdateDatabaseTableRow($rowId, $tableId, $requestBody, $queryParameters, $headerParameters), $fetch);
}
Expand All @@ -2044,7 +2044,7 @@ public function updateDatabaseTableRow(int $rowId, int $tableId, ?Model\PatchedE
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return Model\ExampleRowResponseSerializerWithUserFieldNames|\Psr\Http\Message\ResponseInterface|null
* @return Model\RowResponse|\Psr\Http\Message\ResponseInterface|null
*
* @throws Exception\GetAdjacentDatabaseTableRowBadRequestException
* @throws Exception\GetAdjacentDatabaseTableRowNotFoundException
Expand Down Expand Up @@ -2096,7 +2096,7 @@ public function getDatabaseTableRowHistory(int $rowId, int $tableId, array $quer
*
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return Model\ExampleRowResponseSerializerWithUserFieldNames|\Psr\Http\Message\ResponseInterface|null
* @return Model\RowResponse|\Psr\Http\Message\ResponseInterface|null
*
* @throws Exception\MoveDatabaseTableRowBadRequestException
* @throws Exception\MoveDatabaseTableRowUnauthorizedException
Expand Down Expand Up @@ -2131,7 +2131,7 @@ public function moveDatabaseTableRow(int $rowId, int $tableId, array $queryParam
* @throws Exception\BatchUpdateDatabaseTableRowsUnauthorizedException
* @throws Exception\BatchUpdateDatabaseTableRowsNotFoundException
*/
public function batchUpdateDatabaseTableRows(int $tableId, ?Model\PatchedExampleBatchUpdateRowsRequest $requestBody = null, array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT)
public function batchUpdateDatabaseTableRows(int $tableId, ?Model\PatchRowsRequest $requestBody = null, array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new Endpoint\BatchUpdateDatabaseTableRows($tableId, $requestBody, $queryParameters, $headerParameters), $fetch);
}
Expand Down
8 changes: 4 additions & 4 deletions generated/Endpoint/BatchUpdateDatabaseTableRows.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class BatchUpdateDatabaseTableRows extends \CedricZiel\Baserow\Generated\Runtime
* @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.
* }
*/
public function __construct(int $tableId, ?\CedricZiel\Baserow\Generated\Model\PatchedExampleBatchUpdateRowsRequest $requestBody = null, array $queryParameters = [], array $headerParameters = [])
public function __construct(int $tableId, ?\CedricZiel\Baserow\Generated\Model\PatchRowsRequest $requestBody = null, array $queryParameters = [], array $headerParameters = [])
{
$this->table_id = $tableId;
$this->body = $requestBody;
Expand All @@ -51,13 +51,13 @@ public function getUri(): string

public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
{
if ($this->body instanceof \CedricZiel\Baserow\Generated\Model\PatchedExampleBatchUpdateRowsRequest) {
if ($this->body instanceof \CedricZiel\Baserow\Generated\Model\PatchRowsRequest) {
return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')];
}
if ($this->body instanceof \CedricZiel\Baserow\Generated\Model\PatchedExampleBatchUpdateRowsRequest) {
if ($this->body instanceof \CedricZiel\Baserow\Generated\Model\PatchRowsRequest) {
return [['Content-Type' => ['application/x-www-form-urlencoded']], http_build_query($serializer->normalize($this->body, 'json'))];
}
if ($this->body instanceof \CedricZiel\Baserow\Generated\Model\PatchedExampleBatchUpdateRowsRequest) {
if ($this->body instanceof \CedricZiel\Baserow\Generated\Model\PatchRowsRequest) {
$bodyBuilder = new \Http\Message\MultipartStream\MultipartStreamBuilder($streamFactory);
$formParameters = $serializer->normalize($this->body, 'json');
foreach ($formParameters as $key => $value) {
Expand Down
4 changes: 2 additions & 2 deletions generated/Endpoint/CreateDatabaseTableRow.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv
}

/**
* @return \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNames|null
* @return \CedricZiel\Baserow\Generated\Model\RowResponse|null
*
* @throws \CedricZiel\Baserow\Generated\Exception\CreateDatabaseTableRowBadRequestException
* @throws \CedricZiel\Baserow\Generated\Exception\CreateDatabaseTableRowUnauthorizedException
Expand All @@ -112,7 +112,7 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re
$status = $response->getStatusCode();
$body = (string) $response->getBody();
if (false === is_null($contentType) && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) {
return $serializer->deserialize($body, 'CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNames', 'json');
return $serializer->deserialize($body, 'CedricZiel\Baserow\Generated\Model\RowResponse', 'json');
}
if (false === is_null($contentType) && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) {
throw new \CedricZiel\Baserow\Generated\Exception\CreateDatabaseTableRowBadRequestException($serializer->deserialize($body, 'CedricZiel\Baserow\Generated\Model\ApiDatabaseRowsTableTableIdPostResponse400', 'json'), $response);
Expand Down
4 changes: 2 additions & 2 deletions generated/Endpoint/GetAdjacentDatabaseTableRow.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver
}

/**
* @return \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNames|null
* @return \CedricZiel\Baserow\Generated\Model\RowResponse|null
*
* @throws \CedricZiel\Baserow\Generated\Exception\GetAdjacentDatabaseTableRowBadRequestException
* @throws \CedricZiel\Baserow\Generated\Exception\GetAdjacentDatabaseTableRowNotFoundException
Expand All @@ -83,7 +83,7 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re
$status = $response->getStatusCode();
$body = (string) $response->getBody();
if (false === is_null($contentType) && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) {
return $serializer->deserialize($body, 'CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNames', 'json');
return $serializer->deserialize($body, 'CedricZiel\Baserow\Generated\Model\RowResponse', 'json');
}
if (204 === $status) {
return null;
Expand Down
4 changes: 2 additions & 2 deletions generated/Endpoint/GetDatabaseTableRow.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver
}

/**
* @return \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNames|null
* @return \CedricZiel\Baserow\Generated\Model\RowResponse|null
*
* @throws \CedricZiel\Baserow\Generated\Exception\GetDatabaseTableRowBadRequestException
* @throws \CedricZiel\Baserow\Generated\Exception\GetDatabaseTableRowUnauthorizedException
Expand All @@ -76,7 +76,7 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re
$status = $response->getStatusCode();
$body = (string) $response->getBody();
if (false === is_null($contentType) && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) {
return $serializer->deserialize($body, 'CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNames', 'json');
return $serializer->deserialize($body, 'CedricZiel\Baserow\Generated\Model\RowResponse', 'json');
}
if (false === is_null($contentType) && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) {
throw new \CedricZiel\Baserow\Generated\Exception\GetDatabaseTableRowBadRequestException($serializer->deserialize($body, 'CedricZiel\Baserow\Generated\Model\ApiDatabaseRowsTableTableIdRowIdGetResponse400', 'json'), $response);
Expand Down
4 changes: 2 additions & 2 deletions generated/Endpoint/ListDatabaseTableRows.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver
}

/**
* @return \CedricZiel\Baserow\Generated\Model\PaginationSerializerExampleRowResponseSerializerWithUserFieldNames|null
* @return \CedricZiel\Baserow\Generated\Model\PaginationRowResponse|null
*
* @throws \CedricZiel\Baserow\Generated\Exception\ListDatabaseTableRowsBadRequestException
* @throws \CedricZiel\Baserow\Generated\Exception\ListDatabaseTableRowsUnauthorizedException
Expand All @@ -110,7 +110,7 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re
$status = $response->getStatusCode();
$body = (string) $response->getBody();
if (false === is_null($contentType) && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) {
return $serializer->deserialize($body, 'CedricZiel\Baserow\Generated\Model\PaginationSerializerExampleRowResponseSerializerWithUserFieldNames', 'json');
return $serializer->deserialize($body, 'CedricZiel\Baserow\Generated\Model\PaginationRowResponse', 'json');
}
if (false === is_null($contentType) && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) {
throw new \CedricZiel\Baserow\Generated\Exception\ListDatabaseTableRowsBadRequestException($serializer->deserialize($body, 'CedricZiel\Baserow\Generated\Model\ApiDatabaseRowsTableTableIdGetResponse400', 'json'), $response);
Expand Down
4 changes: 2 additions & 2 deletions generated/Endpoint/MoveDatabaseTableRow.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv
}

/**
* @return \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNames|null
* @return \CedricZiel\Baserow\Generated\Model\RowResponse|null
*
* @throws \CedricZiel\Baserow\Generated\Exception\MoveDatabaseTableRowBadRequestException
* @throws \CedricZiel\Baserow\Generated\Exception\MoveDatabaseTableRowUnauthorizedException
Expand All @@ -97,7 +97,7 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re
$status = $response->getStatusCode();
$body = (string) $response->getBody();
if (false === is_null($contentType) && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) {
return $serializer->deserialize($body, 'CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNames', 'json');
return $serializer->deserialize($body, 'CedricZiel\Baserow\Generated\Model\RowResponse', 'json');
}
if (false === is_null($contentType) && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) {
throw new \CedricZiel\Baserow\Generated\Exception\MoveDatabaseTableRowBadRequestException($serializer->deserialize($body, 'CedricZiel\Baserow\Generated\Model\ApiDatabaseRowsTableTableIdRowIdMovePatchResponse400', 'json'), $response);
Expand Down
12 changes: 6 additions & 6 deletions generated/Endpoint/UpdateDatabaseTableRow.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class UpdateDatabaseTableRow extends \CedricZiel\Baserow\Generated\Runtime\Clien
* @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.
* }
*/
public function __construct(int $rowId, int $tableId, ?\CedricZiel\Baserow\Generated\Model\PatchedExampleUpdateRowRequestSerializerWithUserFieldNames $requestBody = null, array $queryParameters = [], array $headerParameters = [])
public function __construct(int $rowId, int $tableId, ?\CedricZiel\Baserow\Generated\Model\PatchRowRequest $requestBody = null, array $queryParameters = [], array $headerParameters = [])
{
$this->row_id = $rowId;
$this->table_id = $tableId;
Expand All @@ -53,13 +53,13 @@ public function getUri(): string

public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
{
if ($this->body instanceof \CedricZiel\Baserow\Generated\Model\PatchedExampleUpdateRowRequestSerializerWithUserFieldNames) {
if ($this->body instanceof \CedricZiel\Baserow\Generated\Model\PatchRowRequest) {
return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')];
}
if ($this->body instanceof \CedricZiel\Baserow\Generated\Model\PatchedExampleUpdateRowRequestSerializerWithUserFieldNames) {
if ($this->body instanceof \CedricZiel\Baserow\Generated\Model\PatchRowRequest) {
return [['Content-Type' => ['application/x-www-form-urlencoded']], http_build_query($serializer->normalize($this->body, 'json'))];
}
if ($this->body instanceof \CedricZiel\Baserow\Generated\Model\PatchedExampleUpdateRowRequestSerializerWithUserFieldNames) {
if ($this->body instanceof \CedricZiel\Baserow\Generated\Model\PatchRowRequest) {
$bodyBuilder = new \Http\Message\MultipartStream\MultipartStreamBuilder($streamFactory);
$formParameters = $serializer->normalize($this->body, 'json');
foreach ($formParameters as $key => $value) {
Expand Down Expand Up @@ -102,7 +102,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv
}

/**
* @return \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNames|null
* @return \CedricZiel\Baserow\Generated\Model\RowResponse|null
*
* @throws \CedricZiel\Baserow\Generated\Exception\UpdateDatabaseTableRowBadRequestException
* @throws \CedricZiel\Baserow\Generated\Exception\UpdateDatabaseTableRowUnauthorizedException
Expand All @@ -113,7 +113,7 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re
$status = $response->getStatusCode();
$body = (string) $response->getBody();
if (false === is_null($contentType) && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) {
return $serializer->deserialize($body, 'CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNames', 'json');
return $serializer->deserialize($body, 'CedricZiel\Baserow\Generated\Model\RowResponse', 'json');
}
if (false === is_null($contentType) && (400 === $status && false !== mb_strpos($contentType, 'application/json'))) {
throw new \CedricZiel\Baserow\Generated\Exception\UpdateDatabaseTableRowBadRequestException($serializer->deserialize($body, 'CedricZiel\Baserow\Generated\Model\ApiDatabaseRowsTableTableIdRowIdPatchResponse400', 'json'), $response);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace CedricZiel\Baserow\Generated\Model;

class ExampleRowResponseSerializerWithUserFieldNamesField10 extends \ArrayObject
class BatchUpdateRow extends \ArrayObject
{
/**
* @var array
Expand All @@ -22,37 +22,28 @@ public function isInitialized($property): bool
return array_key_exists($property, $this->initialized);
}
/**
* The unique identifier of the row in the table.
*
* @var int
*/
protected $id;

/**
* @var string
* The unique identifier of the row in the table.
*/
protected $name;

public function getId(): int
{
return $this->id;
}

/**
* The unique identifier of the row in the table.
*/
public function setId(int $id): self
{
$this->initialized['id'] = true;
$this->id = $id;

return $this;
}

public function getName(): string
{
return $this->name;
}

public function setName(string $name): self
{
$this->initialized['name'] = true;
$this->name = $name;

return $this;
}
}
6 changes: 3 additions & 3 deletions generated/Model/ExampleBatchRowsResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,20 @@ public function isInitialized($property): bool
return array_key_exists($property, $this->initialized);
}
/**
* @var list<ExampleRowResponseSerializerWithUserFieldNames>
* @var list<RowResponse>
*/
protected $items;

/**
* @return list<ExampleRowResponseSerializerWithUserFieldNames>
* @return list<RowResponse>
*/
public function getItems(): array
{
return $this->items;
}

/**
* @param list<ExampleRowResponseSerializerWithUserFieldNames> $items
* @param list<RowResponse> $items
*/
public function setItems(array $items): self
{
Expand Down
Loading

0 comments on commit ebc39ea

Please sign in to comment.