From ebc39ea6062256c8b4eb5680f025ab45bf5e9b2d Mon Sep 17 00:00:00 2001 From: Cedric Ziel Date: Tue, 6 Aug 2024 08:59:51 +0200 Subject: [PATCH] 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 --- generated/Client.php | 16 +- .../Endpoint/BatchUpdateDatabaseTableRows.php | 8 +- generated/Endpoint/CreateDatabaseTableRow.php | 4 +- .../Endpoint/GetAdjacentDatabaseTableRow.php | 4 +- generated/Endpoint/GetDatabaseTableRow.php | 4 +- generated/Endpoint/ListDatabaseTableRows.php | 4 +- generated/Endpoint/MoveDatabaseTableRow.php | 4 +- generated/Endpoint/UpdateDatabaseTableRow.php | 12 +- ...eldNamesField10.php => BatchUpdateRow.php} | 25 +- generated/Model/ExampleBatchRowsResponse.php | 6 +- ...RowRequestSerializerWithUserFieldNames.php | 490 ----------- ...owResponseSerializerWithUserFieldNames.php | 765 ------------------ ...nseSerializerWithUserFieldNamesField12.php | 58 -- ...eldNames.php => PaginationRowResponse.php} | 8 +- generated/Model/PatchRowRequest.php | 24 + ...teRowsRequest.php => PatchRowsRequest.php} | 8 +- ...RowRequestSerializerWithUserFieldNames.php | 465 ----------- ...rFieldNamesField16.php => RowResponse.php} | 45 +- ...lizer.php => BatchUpdateRowNormalizer.php} | 28 +- .../ExampleBatchRowsResponseNormalizer.php | 4 +- ...SerializerWithUserFieldNamesNormalizer.php | 505 ------------ ...SerializerWithUserFieldNamesNormalizer.php | 671 --------------- generated/Normalizer/JaneObjectNormalizer.php | 58 +- ...hp => PaginationRowResponseNormalizer.php} | 24 +- ...izer.php => PatchRowRequestNormalizer.php} | 54 +- ...zer.php => PatchRowsRequestNormalizer.php} | 24 +- ...SerializerWithUserFieldNamesNormalizer.php | 495 ------------ ...rmalizer.php => RowResponseNormalizer.php} | 38 +- openapi.json | 62 +- 29 files changed, 216 insertions(+), 3697 deletions(-) rename generated/Model/{ExampleRowResponseSerializerWithUserFieldNamesField10.php => BatchUpdateRow.php} (64%) delete mode 100644 generated/Model/ExampleBatchUpdateRowRequestSerializerWithUserFieldNames.php delete mode 100644 generated/Model/ExampleRowResponseSerializerWithUserFieldNames.php delete mode 100644 generated/Model/ExampleRowResponseSerializerWithUserFieldNamesField12.php rename generated/Model/{PaginationSerializerExampleRowResponseSerializerWithUserFieldNames.php => PaginationRowResponse.php} (86%) create mode 100644 generated/Model/PatchRowRequest.php rename generated/Model/{PatchedExampleBatchUpdateRowsRequest.php => PatchRowsRequest.php} (69%) delete mode 100644 generated/Model/PatchedExampleUpdateRowRequestSerializerWithUserFieldNames.php rename generated/Model/{ExampleRowResponseSerializerWithUserFieldNamesField16.php => RowResponse.php} (51%) rename generated/Normalizer/{ExampleRowResponseSerializerWithUserFieldNamesField12Normalizer.php => BatchUpdateRowNormalizer.php} (74%) delete mode 100644 generated/Normalizer/ExampleBatchUpdateRowRequestSerializerWithUserFieldNamesNormalizer.php delete mode 100644 generated/Normalizer/ExampleRowResponseSerializerWithUserFieldNamesNormalizer.php rename generated/Normalizer/{PaginationSerializerExampleRowResponseSerializerWithUserFieldNamesNormalizer.php => PaginationRowResponseNormalizer.php} (85%) rename generated/Normalizer/{ExampleRowResponseSerializerWithUserFieldNamesField16Normalizer.php => PatchRowRequestNormalizer.php} (61%) rename generated/Normalizer/{PatchedExampleBatchUpdateRowsRequestNormalizer.php => PatchRowsRequestNormalizer.php} (82%) delete mode 100644 generated/Normalizer/PatchedExampleUpdateRowRequestSerializerWithUserFieldNamesNormalizer.php rename generated/Normalizer/{ExampleRowResponseSerializerWithUserFieldNamesField10Normalizer.php => RowResponseNormalizer.php} (75%) diff --git a/generated/Client.php b/generated/Client.php index ae865fd..16dfb4e 100644 --- a/generated/Client.php +++ b/generated/Client.php @@ -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 @@ -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 @@ -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 @@ -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); } @@ -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 @@ -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 @@ -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); } diff --git a/generated/Endpoint/BatchUpdateDatabaseTableRows.php b/generated/Endpoint/BatchUpdateDatabaseTableRows.php index 440efa9..bf867e4 100644 --- a/generated/Endpoint/BatchUpdateDatabaseTableRows.php +++ b/generated/Endpoint/BatchUpdateDatabaseTableRows.php @@ -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; @@ -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) { diff --git a/generated/Endpoint/CreateDatabaseTableRow.php b/generated/Endpoint/CreateDatabaseTableRow.php index d4036bd..2cdc46e 100644 --- a/generated/Endpoint/CreateDatabaseTableRow.php +++ b/generated/Endpoint/CreateDatabaseTableRow.php @@ -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 @@ -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); diff --git a/generated/Endpoint/GetAdjacentDatabaseTableRow.php b/generated/Endpoint/GetAdjacentDatabaseTableRow.php index ea40519..46506c6 100644 --- a/generated/Endpoint/GetAdjacentDatabaseTableRow.php +++ b/generated/Endpoint/GetAdjacentDatabaseTableRow.php @@ -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 @@ -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; diff --git a/generated/Endpoint/GetDatabaseTableRow.php b/generated/Endpoint/GetDatabaseTableRow.php index c6b1a8f..5f7cc41 100644 --- a/generated/Endpoint/GetDatabaseTableRow.php +++ b/generated/Endpoint/GetDatabaseTableRow.php @@ -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 @@ -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); diff --git a/generated/Endpoint/ListDatabaseTableRows.php b/generated/Endpoint/ListDatabaseTableRows.php index 72b3673..44acdb5 100644 --- a/generated/Endpoint/ListDatabaseTableRows.php +++ b/generated/Endpoint/ListDatabaseTableRows.php @@ -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 @@ -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); diff --git a/generated/Endpoint/MoveDatabaseTableRow.php b/generated/Endpoint/MoveDatabaseTableRow.php index 77ad243..93bdce8 100644 --- a/generated/Endpoint/MoveDatabaseTableRow.php +++ b/generated/Endpoint/MoveDatabaseTableRow.php @@ -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 @@ -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); diff --git a/generated/Endpoint/UpdateDatabaseTableRow.php b/generated/Endpoint/UpdateDatabaseTableRow.php index 7f86d8c..2c16fc0 100644 --- a/generated/Endpoint/UpdateDatabaseTableRow.php +++ b/generated/Endpoint/UpdateDatabaseTableRow.php @@ -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; @@ -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) { @@ -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 @@ -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); diff --git a/generated/Model/ExampleRowResponseSerializerWithUserFieldNamesField10.php b/generated/Model/BatchUpdateRow.php similarity index 64% rename from generated/Model/ExampleRowResponseSerializerWithUserFieldNamesField10.php rename to generated/Model/BatchUpdateRow.php index 5bdd531..7c7c20a 100644 --- a/generated/Model/ExampleRowResponseSerializerWithUserFieldNamesField10.php +++ b/generated/Model/BatchUpdateRow.php @@ -10,7 +10,7 @@ namespace CedricZiel\Baserow\Generated\Model; -class ExampleRowResponseSerializerWithUserFieldNamesField10 extends \ArrayObject +class BatchUpdateRow extends \ArrayObject { /** * @var array @@ -22,19 +22,23 @@ 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; @@ -42,17 +46,4 @@ public function setId(int $id): self return $this; } - - public function getName(): string - { - return $this->name; - } - - public function setName(string $name): self - { - $this->initialized['name'] = true; - $this->name = $name; - - return $this; - } } diff --git a/generated/Model/ExampleBatchRowsResponse.php b/generated/Model/ExampleBatchRowsResponse.php index 104927a..bb0c51a 100644 --- a/generated/Model/ExampleBatchRowsResponse.php +++ b/generated/Model/ExampleBatchRowsResponse.php @@ -22,12 +22,12 @@ public function isInitialized($property): bool return array_key_exists($property, $this->initialized); } /** - * @var list + * @var list */ protected $items; /** - * @return list + * @return list */ public function getItems(): array { @@ -35,7 +35,7 @@ public function getItems(): array } /** - * @param list $items + * @param list $items */ public function setItems(array $items): self { diff --git a/generated/Model/ExampleBatchUpdateRowRequestSerializerWithUserFieldNames.php b/generated/Model/ExampleBatchUpdateRowRequestSerializerWithUserFieldNames.php deleted file mode 100644 index e27fc51..0000000 --- a/generated/Model/ExampleBatchUpdateRowRequestSerializerWithUserFieldNames.php +++ /dev/null @@ -1,490 +0,0 @@ -initialized); - } - /** - * The unique identifier of the row in the table. - * - * @var int - */ - protected $id; - /** - * This field represents the `text` field. The number in field_1 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - * - * @var string|null - */ - protected $field1; - /** - * This field represents the `long_text` field. The number in field_2 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - * - * @var string|null - */ - protected $field2; - /** - * This field represents the `url` field. The number in field_3 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - * - * @var string|null - */ - protected $field3; - /** - * This field represents the `email` field. The number in field_4 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - * - * @var string|null - */ - protected $field4; - /** - * This field represents the `number` field. The number in field_5 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - * - * @var string|null - */ - protected $field5; - /** - * This field represents the `rating` field. The number in field_6 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - * - * @var int - */ - protected $field6 = 0; - /** - * This field represents the `boolean` field. The number in field_7 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - * - * @var bool - */ - protected $field7 = false; - /** - * This field represents the `date` field. The number in field_8 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - * - * @var \DateTime|null - */ - protected $field8; - /** - * This field represents the `duration` field. The number in field_13 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. The provided value can be a string in one of the available formats or a number representing the duration in seconds. In any case, the value will be rounded to match the field's duration format. - * - * @var float|null - */ - protected $field13; - /** - * This field represents the `link_row` field. The number in field_14 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. This field accepts an `array` containing the ids or the names of the related rows. A name is the value of the primary key of the related row. This field also accepts a string with names separated by a comma or an array of row names. You can also provide a unique row Id.The response contains a list of objects containing the `id` and the primary field's `value` as a string for display purposes. - * - * @var list - */ - protected $field14; - /** - * This field represents the `file` field. The number in field_15 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. This field accepts an `array` containing objects with the name of the file. The response contains an `array` of more detailed objects related to the files. - * - * @var list|null - */ - protected $field15; - /** - * This field represents the `single_select` field. The number in field_16 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. This field accepts an `integer` representing the chosen select option id related to the field. Available ids can be found when getting or listing the field. The response represents chosen field, but also the value and color is exposed. - * - * @var int|null - */ - protected $field16; - /** - * This field represents the `multiple_select` field. The number in field_17 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. This field accepts a list of `integer` each of which representing the chosen select option id related to the field. Available ids can be foundwhen getting or listing the field. You can also send a list of option names in which case the option are searched by name. The first one that matches is used. This field also accepts a string with names separated by a comma or an array of file names. The response represents chosen field, but also the value and color is exposed. - * - * @var list - */ - protected $field17; - /** - * This field represents the `phone_number` field. The number in field_18 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - * - * @var string|null - */ - protected $field18; - /** - * This field represents the `multiple_collaborators` field. The number in field_23 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. This field accepts a list of objects representing the chosen collaborators through the object's `id` property. The id is Baserow user id. The response objects also contains the collaborator name directly along with its id. - * - * @var list - */ - protected $field23; - /** - * This field represents the `password` field. The number in field_26 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. Allows setting a write only password value. Providing a string will set the password, `null` will unset it, `true` will be ignored. The response will respond with `true` is a password is set, but will never expose the password itself. - * - * @var string|null - */ - protected $field26; - /** - * This field represents the `ai` field. The number in field_27 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. Holds a text value that is generated by a generative AI model using a dynamic prompt. - * - * @var string|null - */ - protected $field27; - - /** - * The unique identifier of the row in the table. - */ - 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; - } - - /** - * This field represents the `text` field. The number in field_1 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function getField1(): ?string - { - return $this->field1; - } - - /** - * This field represents the `text` field. The number in field_1 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function setField1(?string $field1): self - { - $this->initialized['field1'] = true; - $this->field1 = $field1; - - return $this; - } - - /** - * This field represents the `long_text` field. The number in field_2 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function getField2(): ?string - { - return $this->field2; - } - - /** - * This field represents the `long_text` field. The number in field_2 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function setField2(?string $field2): self - { - $this->initialized['field2'] = true; - $this->field2 = $field2; - - return $this; - } - - /** - * This field represents the `url` field. The number in field_3 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function getField3(): ?string - { - return $this->field3; - } - - /** - * This field represents the `url` field. The number in field_3 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function setField3(?string $field3): self - { - $this->initialized['field3'] = true; - $this->field3 = $field3; - - return $this; - } - - /** - * This field represents the `email` field. The number in field_4 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function getField4(): ?string - { - return $this->field4; - } - - /** - * This field represents the `email` field. The number in field_4 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function setField4(?string $field4): self - { - $this->initialized['field4'] = true; - $this->field4 = $field4; - - return $this; - } - - /** - * This field represents the `number` field. The number in field_5 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function getField5(): ?string - { - return $this->field5; - } - - /** - * This field represents the `number` field. The number in field_5 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function setField5(?string $field5): self - { - $this->initialized['field5'] = true; - $this->field5 = $field5; - - return $this; - } - - /** - * This field represents the `rating` field. The number in field_6 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function getField6(): int - { - return $this->field6; - } - - /** - * This field represents the `rating` field. The number in field_6 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function setField6(int $field6): self - { - $this->initialized['field6'] = true; - $this->field6 = $field6; - - return $this; - } - - /** - * This field represents the `boolean` field. The number in field_7 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function getField7(): bool - { - return $this->field7; - } - - /** - * This field represents the `boolean` field. The number in field_7 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function setField7(bool $field7): self - { - $this->initialized['field7'] = true; - $this->field7 = $field7; - - return $this; - } - - /** - * This field represents the `date` field. The number in field_8 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function getField8(): ?\DateTime - { - return $this->field8; - } - - /** - * This field represents the `date` field. The number in field_8 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function setField8(?\DateTime $field8): self - { - $this->initialized['field8'] = true; - $this->field8 = $field8; - - return $this; - } - - /** - * This field represents the `duration` field. The number in field_13 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. The provided value can be a string in one of the available formats or a number representing the duration in seconds. In any case, the value will be rounded to match the field's duration format. - */ - public function getField13(): ?float - { - return $this->field13; - } - - /** - * This field represents the `duration` field. The number in field_13 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. The provided value can be a string in one of the available formats or a number representing the duration in seconds. In any case, the value will be rounded to match the field's duration format. - */ - public function setField13(?float $field13): self - { - $this->initialized['field13'] = true; - $this->field13 = $field13; - - return $this; - } - - /** - * This field represents the `link_row` field. The number in field_14 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. This field accepts an `array` containing the ids or the names of the related rows. A name is the value of the primary key of the related row. This field also accepts a string with names separated by a comma or an array of row names. You can also provide a unique row Id.The response contains a list of objects containing the `id` and the primary field's `value` as a string for display purposes. - * - * @return list - */ - public function getField14(): array - { - return $this->field14; - } - - /** - * This field represents the `link_row` field. The number in field_14 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. This field accepts an `array` containing the ids or the names of the related rows. A name is the value of the primary key of the related row. This field also accepts a string with names separated by a comma or an array of row names. You can also provide a unique row Id.The response contains a list of objects containing the `id` and the primary field's `value` as a string for display purposes. - * - * @param list $field14 - */ - public function setField14(array $field14): self - { - $this->initialized['field14'] = true; - $this->field14 = $field14; - - return $this; - } - - /** - * This field represents the `file` field. The number in field_15 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. This field accepts an `array` containing objects with the name of the file. The response contains an `array` of more detailed objects related to the files. - * - * @return list|null - */ - public function getField15(): ?array - { - return $this->field15; - } - - /** - * This field represents the `file` field. The number in field_15 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. This field accepts an `array` containing objects with the name of the file. The response contains an `array` of more detailed objects related to the files. - * - * @param list|null $field15 - */ - public function setField15(?array $field15): self - { - $this->initialized['field15'] = true; - $this->field15 = $field15; - - return $this; - } - - /** - * This field represents the `single_select` field. The number in field_16 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. This field accepts an `integer` representing the chosen select option id related to the field. Available ids can be found when getting or listing the field. The response represents chosen field, but also the value and color is exposed. - */ - public function getField16(): ?int - { - return $this->field16; - } - - /** - * This field represents the `single_select` field. The number in field_16 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. This field accepts an `integer` representing the chosen select option id related to the field. Available ids can be found when getting or listing the field. The response represents chosen field, but also the value and color is exposed. - */ - public function setField16(?int $field16): self - { - $this->initialized['field16'] = true; - $this->field16 = $field16; - - return $this; - } - - /** - * This field represents the `multiple_select` field. The number in field_17 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. This field accepts a list of `integer` each of which representing the chosen select option id related to the field. Available ids can be foundwhen getting or listing the field. You can also send a list of option names in which case the option are searched by name. The first one that matches is used. This field also accepts a string with names separated by a comma or an array of file names. The response represents chosen field, but also the value and color is exposed. - * - * @return list - */ - public function getField17(): array - { - return $this->field17; - } - - /** - * This field represents the `multiple_select` field. The number in field_17 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. This field accepts a list of `integer` each of which representing the chosen select option id related to the field. Available ids can be foundwhen getting or listing the field. You can also send a list of option names in which case the option are searched by name. The first one that matches is used. This field also accepts a string with names separated by a comma or an array of file names. The response represents chosen field, but also the value and color is exposed. - * - * @param list $field17 - */ - public function setField17(array $field17): self - { - $this->initialized['field17'] = true; - $this->field17 = $field17; - - return $this; - } - - /** - * This field represents the `phone_number` field. The number in field_18 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function getField18(): ?string - { - return $this->field18; - } - - /** - * This field represents the `phone_number` field. The number in field_18 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function setField18(?string $field18): self - { - $this->initialized['field18'] = true; - $this->field18 = $field18; - - return $this; - } - - /** - * This field represents the `multiple_collaborators` field. The number in field_23 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. This field accepts a list of objects representing the chosen collaborators through the object's `id` property. The id is Baserow user id. The response objects also contains the collaborator name directly along with its id. - * - * @return list - */ - public function getField23(): array - { - return $this->field23; - } - - /** - * This field represents the `multiple_collaborators` field. The number in field_23 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. This field accepts a list of objects representing the chosen collaborators through the object's `id` property. The id is Baserow user id. The response objects also contains the collaborator name directly along with its id. - * - * @param list $field23 - */ - public function setField23(array $field23): self - { - $this->initialized['field23'] = true; - $this->field23 = $field23; - - return $this; - } - - /** - * This field represents the `password` field. The number in field_26 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. Allows setting a write only password value. Providing a string will set the password, `null` will unset it, `true` will be ignored. The response will respond with `true` is a password is set, but will never expose the password itself. - */ - public function getField26(): ?string - { - return $this->field26; - } - - /** - * This field represents the `password` field. The number in field_26 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. Allows setting a write only password value. Providing a string will set the password, `null` will unset it, `true` will be ignored. The response will respond with `true` is a password is set, but will never expose the password itself. - */ - public function setField26(?string $field26): self - { - $this->initialized['field26'] = true; - $this->field26 = $field26; - - return $this; - } - - /** - * This field represents the `ai` field. The number in field_27 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. Holds a text value that is generated by a generative AI model using a dynamic prompt. - */ - public function getField27(): ?string - { - return $this->field27; - } - - /** - * This field represents the `ai` field. The number in field_27 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. Holds a text value that is generated by a generative AI model using a dynamic prompt. - */ - public function setField27(?string $field27): self - { - $this->initialized['field27'] = true; - $this->field27 = $field27; - - return $this; - } -} diff --git a/generated/Model/ExampleRowResponseSerializerWithUserFieldNames.php b/generated/Model/ExampleRowResponseSerializerWithUserFieldNames.php deleted file mode 100644 index 9a72e7b..0000000 --- a/generated/Model/ExampleRowResponseSerializerWithUserFieldNames.php +++ /dev/null @@ -1,765 +0,0 @@ -initialized); - } - /** - * The unique identifier of the row in the table. - * - * @var int - */ - protected $id; - /** - * Indicates the position of the row, lowest first and highest last. - * - * @var string - */ - protected $order; - /** - * This field represents the `text` field. The number in field_1 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - * - * @var string|null - */ - protected $field1; - /** - * This field represents the `long_text` field. The number in field_2 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - * - * @var string|null - */ - protected $field2; - /** - * This field represents the `url` field. The number in field_3 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - * - * @var string|null - */ - protected $field3; - /** - * This field represents the `email` field. The number in field_4 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - * - * @var string|null - */ - protected $field4; - /** - * This field represents the `number` field. The number in field_5 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - * - * @var string|null - */ - protected $field5; - /** - * This field represents the `rating` field. The number in field_6 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - * - * @var int - */ - protected $field6 = 0; - /** - * This field represents the `boolean` field. The number in field_7 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - * - * @var bool - */ - protected $field7 = false; - /** - * This field represents the `date` field. The number in field_8 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - * - * @var \DateTime|null - */ - protected $field8; - /** - * This field represents the `last_modified` field. The number in field_9 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - * - * @var \DateTime - */ - protected $field9; - /** - * This field represents the `last_modified_by` field. The number in field_10 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - * - * @var ExampleRowResponseSerializerWithUserFieldNamesField10 - */ - protected $field10; - /** - * This field represents the `created_on` field. The number in field_11 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - * - * @var \DateTime - */ - protected $field11; - /** - * This field represents the `created_by` field. The number in field_12 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - * - * @var ExampleRowResponseSerializerWithUserFieldNamesField12 - */ - protected $field12; - /** - * This field represents the `duration` field. The number in field_13 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. The provided value can be a string in one of the available formats or a number representing the duration in seconds. In any case, the value will be rounded to match the field's duration format. - * - * @var float|null - */ - protected $field13; - /** - * This field represents the `link_row` field. The number in field_14 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. This field accepts an `array` containing the ids or the names of the related rows. A name is the value of the primary key of the related row. This field also accepts a string with names separated by a comma or an array of row names. You can also provide a unique row Id.The response contains a list of objects containing the `id` and the primary field's `value` as a string for display purposes. - * - * @var list - */ - protected $field14; - /** - * This field represents the `file` field. The number in field_15 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. This field accepts an `array` containing objects with the name of the file. The response contains an `array` of more detailed objects related to the files. - * - * @var list - */ - protected $field15; - /** - * This field represents the `single_select` field. The number in field_16 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. This field accepts an `integer` representing the chosen select option id related to the field. Available ids can be found when getting or listing the field. The response represents chosen field, but also the value and color is exposed. - * - * @var ExampleRowResponseSerializerWithUserFieldNamesField16|null - */ - protected $field16; - /** - * This field represents the `multiple_select` field. The number in field_17 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. This field accepts a list of `integer` each of which representing the chosen select option id related to the field. Available ids can be foundwhen getting or listing the field. You can also send a list of option names in which case the option are searched by name. The first one that matches is used. This field also accepts a string with names separated by a comma or an array of file names. The response represents chosen field, but also the value and color is exposed. - * - * @var list|null - */ - protected $field17; - /** - * This field represents the `phone_number` field. The number in field_18 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - * - * @var string|null - */ - protected $field18; - /** - * This field represents the `formula` field. The number in field_19 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - * - * @var string|null - */ - protected $field19; - /** - * This field represents the `count` field. The number in field_20 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - * - * @var string|null - */ - protected $field20; - /** - * This field represents the `rollup` field. The number in field_21 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - * - * @var string|null - */ - protected $field21; - /** - * This field represents the `lookup` field. The number in field_22 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - * - * @var string|null - */ - protected $field22; - /** - * This field represents the `multiple_collaborators` field. The number in field_23 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. This field accepts a list of objects representing the chosen collaborators through the object's `id` property. The id is Baserow user id. The response objects also contains the collaborator name directly along with its id. - * - * @var list - */ - protected $field23; - /** - * This field represents the `uuid` field. The number in field_24 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. Contains a unique and persistent UUID for every row. - * - * @var string - */ - protected $field24; - /** - * This field represents the `autonumber` field. The number in field_25 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. Contains a unique and persistent incremental integer number for every row. - * - * @var int - */ - protected $field25; - /** - * This field represents the `password` field. The number in field_26 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. Allows setting a write only password value. Providing a string will set the password, `null` will unset it, `true` will be ignored. The response will respond with `true` is a password is set, but will never expose the password itself. - * - * @var bool - */ - protected $field26; - /** - * This field represents the `ai` field. The number in field_27 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. Holds a text value that is generated by a generative AI model using a dynamic prompt. - * - * @var string|null - */ - protected $field27; - - /** - * The unique identifier of the row in the table. - */ - 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; - } - - /** - * Indicates the position of the row, lowest first and highest last. - */ - public function getOrder(): string - { - return $this->order; - } - - /** - * Indicates the position of the row, lowest first and highest last. - */ - public function setOrder(string $order): self - { - $this->initialized['order'] = true; - $this->order = $order; - - return $this; - } - - /** - * This field represents the `text` field. The number in field_1 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function getField1(): ?string - { - return $this->field1; - } - - /** - * This field represents the `text` field. The number in field_1 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function setField1(?string $field1): self - { - $this->initialized['field1'] = true; - $this->field1 = $field1; - - return $this; - } - - /** - * This field represents the `long_text` field. The number in field_2 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function getField2(): ?string - { - return $this->field2; - } - - /** - * This field represents the `long_text` field. The number in field_2 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function setField2(?string $field2): self - { - $this->initialized['field2'] = true; - $this->field2 = $field2; - - return $this; - } - - /** - * This field represents the `url` field. The number in field_3 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function getField3(): ?string - { - return $this->field3; - } - - /** - * This field represents the `url` field. The number in field_3 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function setField3(?string $field3): self - { - $this->initialized['field3'] = true; - $this->field3 = $field3; - - return $this; - } - - /** - * This field represents the `email` field. The number in field_4 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function getField4(): ?string - { - return $this->field4; - } - - /** - * This field represents the `email` field. The number in field_4 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function setField4(?string $field4): self - { - $this->initialized['field4'] = true; - $this->field4 = $field4; - - return $this; - } - - /** - * This field represents the `number` field. The number in field_5 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function getField5(): ?string - { - return $this->field5; - } - - /** - * This field represents the `number` field. The number in field_5 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function setField5(?string $field5): self - { - $this->initialized['field5'] = true; - $this->field5 = $field5; - - return $this; - } - - /** - * This field represents the `rating` field. The number in field_6 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function getField6(): int - { - return $this->field6; - } - - /** - * This field represents the `rating` field. The number in field_6 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function setField6(int $field6): self - { - $this->initialized['field6'] = true; - $this->field6 = $field6; - - return $this; - } - - /** - * This field represents the `boolean` field. The number in field_7 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function getField7(): bool - { - return $this->field7; - } - - /** - * This field represents the `boolean` field. The number in field_7 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function setField7(bool $field7): self - { - $this->initialized['field7'] = true; - $this->field7 = $field7; - - return $this; - } - - /** - * This field represents the `date` field. The number in field_8 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function getField8(): ?\DateTime - { - return $this->field8; - } - - /** - * This field represents the `date` field. The number in field_8 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function setField8(?\DateTime $field8): self - { - $this->initialized['field8'] = true; - $this->field8 = $field8; - - return $this; - } - - /** - * This field represents the `last_modified` field. The number in field_9 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function getField9(): \DateTime - { - return $this->field9; - } - - /** - * This field represents the `last_modified` field. The number in field_9 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function setField9(\DateTime $field9): self - { - $this->initialized['field9'] = true; - $this->field9 = $field9; - - return $this; - } - - /** - * This field represents the `last_modified_by` field. The number in field_10 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function getField10(): ExampleRowResponseSerializerWithUserFieldNamesField10 - { - return $this->field10; - } - - /** - * This field represents the `last_modified_by` field. The number in field_10 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function setField10(ExampleRowResponseSerializerWithUserFieldNamesField10 $field10): self - { - $this->initialized['field10'] = true; - $this->field10 = $field10; - - return $this; - } - - /** - * This field represents the `created_on` field. The number in field_11 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function getField11(): \DateTime - { - return $this->field11; - } - - /** - * This field represents the `created_on` field. The number in field_11 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function setField11(\DateTime $field11): self - { - $this->initialized['field11'] = true; - $this->field11 = $field11; - - return $this; - } - - /** - * This field represents the `created_by` field. The number in field_12 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function getField12(): ExampleRowResponseSerializerWithUserFieldNamesField12 - { - return $this->field12; - } - - /** - * This field represents the `created_by` field. The number in field_12 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function setField12(ExampleRowResponseSerializerWithUserFieldNamesField12 $field12): self - { - $this->initialized['field12'] = true; - $this->field12 = $field12; - - return $this; - } - - /** - * This field represents the `duration` field. The number in field_13 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. The provided value can be a string in one of the available formats or a number representing the duration in seconds. In any case, the value will be rounded to match the field's duration format. - */ - public function getField13(): ?float - { - return $this->field13; - } - - /** - * This field represents the `duration` field. The number in field_13 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. The provided value can be a string in one of the available formats or a number representing the duration in seconds. In any case, the value will be rounded to match the field's duration format. - */ - public function setField13(?float $field13): self - { - $this->initialized['field13'] = true; - $this->field13 = $field13; - - return $this; - } - - /** - * This field represents the `link_row` field. The number in field_14 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. This field accepts an `array` containing the ids or the names of the related rows. A name is the value of the primary key of the related row. This field also accepts a string with names separated by a comma or an array of row names. You can also provide a unique row Id.The response contains a list of objects containing the `id` and the primary field's `value` as a string for display purposes. - * - * @return list - */ - public function getField14(): array - { - return $this->field14; - } - - /** - * This field represents the `link_row` field. The number in field_14 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. This field accepts an `array` containing the ids or the names of the related rows. A name is the value of the primary key of the related row. This field also accepts a string with names separated by a comma or an array of row names. You can also provide a unique row Id.The response contains a list of objects containing the `id` and the primary field's `value` as a string for display purposes. - * - * @param list $field14 - */ - public function setField14(array $field14): self - { - $this->initialized['field14'] = true; - $this->field14 = $field14; - - return $this; - } - - /** - * This field represents the `file` field. The number in field_15 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. This field accepts an `array` containing objects with the name of the file. The response contains an `array` of more detailed objects related to the files. - * - * @return list - */ - public function getField15(): array - { - return $this->field15; - } - - /** - * This field represents the `file` field. The number in field_15 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. This field accepts an `array` containing objects with the name of the file. The response contains an `array` of more detailed objects related to the files. - * - * @param list $field15 - */ - public function setField15(array $field15): self - { - $this->initialized['field15'] = true; - $this->field15 = $field15; - - return $this; - } - - /** - * This field represents the `single_select` field. The number in field_16 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. This field accepts an `integer` representing the chosen select option id related to the field. Available ids can be found when getting or listing the field. The response represents chosen field, but also the value and color is exposed. - */ - public function getField16(): ?ExampleRowResponseSerializerWithUserFieldNamesField16 - { - return $this->field16; - } - - /** - * This field represents the `single_select` field. The number in field_16 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. This field accepts an `integer` representing the chosen select option id related to the field. Available ids can be found when getting or listing the field. The response represents chosen field, but also the value and color is exposed. - */ - public function setField16(?ExampleRowResponseSerializerWithUserFieldNamesField16 $field16): self - { - $this->initialized['field16'] = true; - $this->field16 = $field16; - - return $this; - } - - /** - * This field represents the `multiple_select` field. The number in field_17 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. This field accepts a list of `integer` each of which representing the chosen select option id related to the field. Available ids can be foundwhen getting or listing the field. You can also send a list of option names in which case the option are searched by name. The first one that matches is used. This field also accepts a string with names separated by a comma or an array of file names. The response represents chosen field, but also the value and color is exposed. - * - * @return list|null - */ - public function getField17(): ?array - { - return $this->field17; - } - - /** - * This field represents the `multiple_select` field. The number in field_17 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. This field accepts a list of `integer` each of which representing the chosen select option id related to the field. Available ids can be foundwhen getting or listing the field. You can also send a list of option names in which case the option are searched by name. The first one that matches is used. This field also accepts a string with names separated by a comma or an array of file names. The response represents chosen field, but also the value and color is exposed. - * - * @param list|null $field17 - */ - public function setField17(?array $field17): self - { - $this->initialized['field17'] = true; - $this->field17 = $field17; - - return $this; - } - - /** - * This field represents the `phone_number` field. The number in field_18 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function getField18(): ?string - { - return $this->field18; - } - - /** - * This field represents the `phone_number` field. The number in field_18 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function setField18(?string $field18): self - { - $this->initialized['field18'] = true; - $this->field18 = $field18; - - return $this; - } - - /** - * This field represents the `formula` field. The number in field_19 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function getField19(): ?string - { - return $this->field19; - } - - /** - * This field represents the `formula` field. The number in field_19 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function setField19(?string $field19): self - { - $this->initialized['field19'] = true; - $this->field19 = $field19; - - return $this; - } - - /** - * This field represents the `count` field. The number in field_20 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function getField20(): ?string - { - return $this->field20; - } - - /** - * This field represents the `count` field. The number in field_20 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function setField20(?string $field20): self - { - $this->initialized['field20'] = true; - $this->field20 = $field20; - - return $this; - } - - /** - * This field represents the `rollup` field. The number in field_21 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function getField21(): ?string - { - return $this->field21; - } - - /** - * This field represents the `rollup` field. The number in field_21 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function setField21(?string $field21): self - { - $this->initialized['field21'] = true; - $this->field21 = $field21; - - return $this; - } - - /** - * This field represents the `lookup` field. The number in field_22 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function getField22(): ?string - { - return $this->field22; - } - - /** - * This field represents the `lookup` field. The number in field_22 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function setField22(?string $field22): self - { - $this->initialized['field22'] = true; - $this->field22 = $field22; - - return $this; - } - - /** - * This field represents the `multiple_collaborators` field. The number in field_23 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. This field accepts a list of objects representing the chosen collaborators through the object's `id` property. The id is Baserow user id. The response objects also contains the collaborator name directly along with its id. - * - * @return list - */ - public function getField23(): array - { - return $this->field23; - } - - /** - * This field represents the `multiple_collaborators` field. The number in field_23 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. This field accepts a list of objects representing the chosen collaborators through the object's `id` property. The id is Baserow user id. The response objects also contains the collaborator name directly along with its id. - * - * @param list $field23 - */ - public function setField23(array $field23): self - { - $this->initialized['field23'] = true; - $this->field23 = $field23; - - return $this; - } - - /** - * This field represents the `uuid` field. The number in field_24 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. Contains a unique and persistent UUID for every row. - */ - public function getField24(): string - { - return $this->field24; - } - - /** - * This field represents the `uuid` field. The number in field_24 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. Contains a unique and persistent UUID for every row. - */ - public function setField24(string $field24): self - { - $this->initialized['field24'] = true; - $this->field24 = $field24; - - return $this; - } - - /** - * This field represents the `autonumber` field. The number in field_25 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. Contains a unique and persistent incremental integer number for every row. - */ - public function getField25(): int - { - return $this->field25; - } - - /** - * This field represents the `autonumber` field. The number in field_25 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. Contains a unique and persistent incremental integer number for every row. - */ - public function setField25(int $field25): self - { - $this->initialized['field25'] = true; - $this->field25 = $field25; - - return $this; - } - - /** - * This field represents the `password` field. The number in field_26 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. Allows setting a write only password value. Providing a string will set the password, `null` will unset it, `true` will be ignored. The response will respond with `true` is a password is set, but will never expose the password itself. - */ - public function getField26(): bool - { - return $this->field26; - } - - /** - * This field represents the `password` field. The number in field_26 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. Allows setting a write only password value. Providing a string will set the password, `null` will unset it, `true` will be ignored. The response will respond with `true` is a password is set, but will never expose the password itself. - */ - public function setField26(bool $field26): self - { - $this->initialized['field26'] = true; - $this->field26 = $field26; - - return $this; - } - - /** - * This field represents the `ai` field. The number in field_27 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. Holds a text value that is generated by a generative AI model using a dynamic prompt. - */ - public function getField27(): ?string - { - return $this->field27; - } - - /** - * This field represents the `ai` field. The number in field_27 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. Holds a text value that is generated by a generative AI model using a dynamic prompt. - */ - public function setField27(?string $field27): self - { - $this->initialized['field27'] = true; - $this->field27 = $field27; - - return $this; - } -} diff --git a/generated/Model/ExampleRowResponseSerializerWithUserFieldNamesField12.php b/generated/Model/ExampleRowResponseSerializerWithUserFieldNamesField12.php deleted file mode 100644 index 010e89b..0000000 --- a/generated/Model/ExampleRowResponseSerializerWithUserFieldNamesField12.php +++ /dev/null @@ -1,58 +0,0 @@ -initialized); - } - /** - * @var int - */ - protected $id; - /** - * @var string - */ - protected $name; - - public function getId(): int - { - return $this->id; - } - - 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; - } -} diff --git a/generated/Model/PaginationSerializerExampleRowResponseSerializerWithUserFieldNames.php b/generated/Model/PaginationRowResponse.php similarity index 86% rename from generated/Model/PaginationSerializerExampleRowResponseSerializerWithUserFieldNames.php rename to generated/Model/PaginationRowResponse.php index 6baf069..472f843 100644 --- a/generated/Model/PaginationSerializerExampleRowResponseSerializerWithUserFieldNames.php +++ b/generated/Model/PaginationRowResponse.php @@ -10,7 +10,7 @@ namespace CedricZiel\Baserow\Generated\Model; -class PaginationSerializerExampleRowResponseSerializerWithUserFieldNames extends \ArrayObject +class PaginationRowResponse extends \ArrayObject { /** * @var array @@ -40,7 +40,7 @@ public function isInitialized($property): bool */ protected $previous; /** - * @var list + * @var list */ protected $results; @@ -102,7 +102,7 @@ public function setPrevious(?string $previous): self } /** - * @return list + * @return list */ public function getResults(): array { @@ -110,7 +110,7 @@ public function getResults(): array } /** - * @param list $results + * @param list $results */ public function setResults(array $results): self { diff --git a/generated/Model/PatchRowRequest.php b/generated/Model/PatchRowRequest.php new file mode 100644 index 0000000..7f21626 --- /dev/null +++ b/generated/Model/PatchRowRequest.php @@ -0,0 +1,24 @@ +initialized); + } +} diff --git a/generated/Model/PatchedExampleBatchUpdateRowsRequest.php b/generated/Model/PatchRowsRequest.php similarity index 69% rename from generated/Model/PatchedExampleBatchUpdateRowsRequest.php rename to generated/Model/PatchRowsRequest.php index 85ad92a..8f92e63 100644 --- a/generated/Model/PatchedExampleBatchUpdateRowsRequest.php +++ b/generated/Model/PatchRowsRequest.php @@ -10,7 +10,7 @@ namespace CedricZiel\Baserow\Generated\Model; -class PatchedExampleBatchUpdateRowsRequest extends \ArrayObject +class PatchRowsRequest extends \ArrayObject { /** * @var array @@ -22,12 +22,12 @@ public function isInitialized($property): bool return array_key_exists($property, $this->initialized); } /** - * @var list + * @var list */ protected $items; /** - * @return list + * @return list */ public function getItems(): array { @@ -35,7 +35,7 @@ public function getItems(): array } /** - * @param list $items + * @param list $items */ public function setItems(array $items): self { diff --git a/generated/Model/PatchedExampleUpdateRowRequestSerializerWithUserFieldNames.php b/generated/Model/PatchedExampleUpdateRowRequestSerializerWithUserFieldNames.php deleted file mode 100644 index bf8e7dc..0000000 --- a/generated/Model/PatchedExampleUpdateRowRequestSerializerWithUserFieldNames.php +++ /dev/null @@ -1,465 +0,0 @@ -initialized); - } - /** - * This field represents the `text` field. The number in field_1 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - * - * @var string|null - */ - protected $field1; - /** - * This field represents the `long_text` field. The number in field_2 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - * - * @var string|null - */ - protected $field2; - /** - * This field represents the `url` field. The number in field_3 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - * - * @var string|null - */ - protected $field3; - /** - * This field represents the `email` field. The number in field_4 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - * - * @var string|null - */ - protected $field4; - /** - * This field represents the `number` field. The number in field_5 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - * - * @var string|null - */ - protected $field5; - /** - * This field represents the `rating` field. The number in field_6 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - * - * @var int - */ - protected $field6 = 0; - /** - * This field represents the `boolean` field. The number in field_7 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - * - * @var bool - */ - protected $field7 = false; - /** - * This field represents the `date` field. The number in field_8 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - * - * @var \DateTime|null - */ - protected $field8; - /** - * This field represents the `duration` field. The number in field_13 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. The provided value can be a string in one of the available formats or a number representing the duration in seconds. In any case, the value will be rounded to match the field's duration format. - * - * @var float|null - */ - protected $field13; - /** - * This field represents the `link_row` field. The number in field_14 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. This field accepts an `array` containing the ids or the names of the related rows. A name is the value of the primary key of the related row. This field also accepts a string with names separated by a comma or an array of row names. You can also provide a unique row Id.The response contains a list of objects containing the `id` and the primary field's `value` as a string for display purposes. - * - * @var list - */ - protected $field14; - /** - * This field represents the `file` field. The number in field_15 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. This field accepts an `array` containing objects with the name of the file. The response contains an `array` of more detailed objects related to the files. - * - * @var list|null - */ - protected $field15; - /** - * This field represents the `single_select` field. The number in field_16 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. This field accepts an `integer` representing the chosen select option id related to the field. Available ids can be found when getting or listing the field. The response represents chosen field, but also the value and color is exposed. - * - * @var int|null - */ - protected $field16; - /** - * This field represents the `multiple_select` field. The number in field_17 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. This field accepts a list of `integer` each of which representing the chosen select option id related to the field. Available ids can be foundwhen getting or listing the field. You can also send a list of option names in which case the option are searched by name. The first one that matches is used. This field also accepts a string with names separated by a comma or an array of file names. The response represents chosen field, but also the value and color is exposed. - * - * @var list - */ - protected $field17; - /** - * This field represents the `phone_number` field. The number in field_18 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - * - * @var string|null - */ - protected $field18; - /** - * This field represents the `multiple_collaborators` field. The number in field_23 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. This field accepts a list of objects representing the chosen collaborators through the object's `id` property. The id is Baserow user id. The response objects also contains the collaborator name directly along with its id. - * - * @var list - */ - protected $field23; - /** - * This field represents the `password` field. The number in field_26 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. Allows setting a write only password value. Providing a string will set the password, `null` will unset it, `true` will be ignored. The response will respond with `true` is a password is set, but will never expose the password itself. - * - * @var string|null - */ - protected $field26; - /** - * This field represents the `ai` field. The number in field_27 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. Holds a text value that is generated by a generative AI model using a dynamic prompt. - * - * @var string|null - */ - protected $field27; - - /** - * This field represents the `text` field. The number in field_1 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function getField1(): ?string - { - return $this->field1; - } - - /** - * This field represents the `text` field. The number in field_1 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function setField1(?string $field1): self - { - $this->initialized['field1'] = true; - $this->field1 = $field1; - - return $this; - } - - /** - * This field represents the `long_text` field. The number in field_2 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function getField2(): ?string - { - return $this->field2; - } - - /** - * This field represents the `long_text` field. The number in field_2 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function setField2(?string $field2): self - { - $this->initialized['field2'] = true; - $this->field2 = $field2; - - return $this; - } - - /** - * This field represents the `url` field. The number in field_3 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function getField3(): ?string - { - return $this->field3; - } - - /** - * This field represents the `url` field. The number in field_3 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function setField3(?string $field3): self - { - $this->initialized['field3'] = true; - $this->field3 = $field3; - - return $this; - } - - /** - * This field represents the `email` field. The number in field_4 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function getField4(): ?string - { - return $this->field4; - } - - /** - * This field represents the `email` field. The number in field_4 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function setField4(?string $field4): self - { - $this->initialized['field4'] = true; - $this->field4 = $field4; - - return $this; - } - - /** - * This field represents the `number` field. The number in field_5 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function getField5(): ?string - { - return $this->field5; - } - - /** - * This field represents the `number` field. The number in field_5 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function setField5(?string $field5): self - { - $this->initialized['field5'] = true; - $this->field5 = $field5; - - return $this; - } - - /** - * This field represents the `rating` field. The number in field_6 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function getField6(): int - { - return $this->field6; - } - - /** - * This field represents the `rating` field. The number in field_6 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function setField6(int $field6): self - { - $this->initialized['field6'] = true; - $this->field6 = $field6; - - return $this; - } - - /** - * This field represents the `boolean` field. The number in field_7 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function getField7(): bool - { - return $this->field7; - } - - /** - * This field represents the `boolean` field. The number in field_7 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function setField7(bool $field7): self - { - $this->initialized['field7'] = true; - $this->field7 = $field7; - - return $this; - } - - /** - * This field represents the `date` field. The number in field_8 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function getField8(): ?\DateTime - { - return $this->field8; - } - - /** - * This field represents the `date` field. The number in field_8 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function setField8(?\DateTime $field8): self - { - $this->initialized['field8'] = true; - $this->field8 = $field8; - - return $this; - } - - /** - * This field represents the `duration` field. The number in field_13 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. The provided value can be a string in one of the available formats or a number representing the duration in seconds. In any case, the value will be rounded to match the field's duration format. - */ - public function getField13(): ?float - { - return $this->field13; - } - - /** - * This field represents the `duration` field. The number in field_13 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. The provided value can be a string in one of the available formats or a number representing the duration in seconds. In any case, the value will be rounded to match the field's duration format. - */ - public function setField13(?float $field13): self - { - $this->initialized['field13'] = true; - $this->field13 = $field13; - - return $this; - } - - /** - * This field represents the `link_row` field. The number in field_14 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. This field accepts an `array` containing the ids or the names of the related rows. A name is the value of the primary key of the related row. This field also accepts a string with names separated by a comma or an array of row names. You can also provide a unique row Id.The response contains a list of objects containing the `id` and the primary field's `value` as a string for display purposes. - * - * @return list - */ - public function getField14(): array - { - return $this->field14; - } - - /** - * This field represents the `link_row` field. The number in field_14 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. This field accepts an `array` containing the ids or the names of the related rows. A name is the value of the primary key of the related row. This field also accepts a string with names separated by a comma or an array of row names. You can also provide a unique row Id.The response contains a list of objects containing the `id` and the primary field's `value` as a string for display purposes. - * - * @param list $field14 - */ - public function setField14(array $field14): self - { - $this->initialized['field14'] = true; - $this->field14 = $field14; - - return $this; - } - - /** - * This field represents the `file` field. The number in field_15 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. This field accepts an `array` containing objects with the name of the file. The response contains an `array` of more detailed objects related to the files. - * - * @return list|null - */ - public function getField15(): ?array - { - return $this->field15; - } - - /** - * This field represents the `file` field. The number in field_15 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. This field accepts an `array` containing objects with the name of the file. The response contains an `array` of more detailed objects related to the files. - * - * @param list|null $field15 - */ - public function setField15(?array $field15): self - { - $this->initialized['field15'] = true; - $this->field15 = $field15; - - return $this; - } - - /** - * This field represents the `single_select` field. The number in field_16 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. This field accepts an `integer` representing the chosen select option id related to the field. Available ids can be found when getting or listing the field. The response represents chosen field, but also the value and color is exposed. - */ - public function getField16(): ?int - { - return $this->field16; - } - - /** - * This field represents the `single_select` field. The number in field_16 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. This field accepts an `integer` representing the chosen select option id related to the field. Available ids can be found when getting or listing the field. The response represents chosen field, but also the value and color is exposed. - */ - public function setField16(?int $field16): self - { - $this->initialized['field16'] = true; - $this->field16 = $field16; - - return $this; - } - - /** - * This field represents the `multiple_select` field. The number in field_17 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. This field accepts a list of `integer` each of which representing the chosen select option id related to the field. Available ids can be foundwhen getting or listing the field. You can also send a list of option names in which case the option are searched by name. The first one that matches is used. This field also accepts a string with names separated by a comma or an array of file names. The response represents chosen field, but also the value and color is exposed. - * - * @return list - */ - public function getField17(): array - { - return $this->field17; - } - - /** - * This field represents the `multiple_select` field. The number in field_17 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. This field accepts a list of `integer` each of which representing the chosen select option id related to the field. Available ids can be foundwhen getting or listing the field. You can also send a list of option names in which case the option are searched by name. The first one that matches is used. This field also accepts a string with names separated by a comma or an array of file names. The response represents chosen field, but also the value and color is exposed. - * - * @param list $field17 - */ - public function setField17(array $field17): self - { - $this->initialized['field17'] = true; - $this->field17 = $field17; - - return $this; - } - - /** - * This field represents the `phone_number` field. The number in field_18 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function getField18(): ?string - { - return $this->field18; - } - - /** - * This field represents the `phone_number` field. The number in field_18 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. - */ - public function setField18(?string $field18): self - { - $this->initialized['field18'] = true; - $this->field18 = $field18; - - return $this; - } - - /** - * This field represents the `multiple_collaborators` field. The number in field_23 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. This field accepts a list of objects representing the chosen collaborators through the object's `id` property. The id is Baserow user id. The response objects also contains the collaborator name directly along with its id. - * - * @return list - */ - public function getField23(): array - { - return $this->field23; - } - - /** - * This field represents the `multiple_collaborators` field. The number in field_23 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. This field accepts a list of objects representing the chosen collaborators through the object's `id` property. The id is Baserow user id. The response objects also contains the collaborator name directly along with its id. - * - * @param list $field23 - */ - public function setField23(array $field23): self - { - $this->initialized['field23'] = true; - $this->field23 = $field23; - - return $this; - } - - /** - * This field represents the `password` field. The number in field_26 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. Allows setting a write only password value. Providing a string will set the password, `null` will unset it, `true` will be ignored. The response will respond with `true` is a password is set, but will never expose the password itself. - */ - public function getField26(): ?string - { - return $this->field26; - } - - /** - * This field represents the `password` field. The number in field_26 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. Allows setting a write only password value. Providing a string will set the password, `null` will unset it, `true` will be ignored. The response will respond with `true` is a password is set, but will never expose the password itself. - */ - public function setField26(?string $field26): self - { - $this->initialized['field26'] = true; - $this->field26 = $field26; - - return $this; - } - - /** - * This field represents the `ai` field. The number in field_27 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. Holds a text value that is generated by a generative AI model using a dynamic prompt. - */ - public function getField27(): ?string - { - return $this->field27; - } - - /** - * This field represents the `ai` field. The number in field_27 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. Holds a text value that is generated by a generative AI model using a dynamic prompt. - */ - public function setField27(?string $field27): self - { - $this->initialized['field27'] = true; - $this->field27 = $field27; - - return $this; - } -} diff --git a/generated/Model/ExampleRowResponseSerializerWithUserFieldNamesField16.php b/generated/Model/RowResponse.php similarity index 51% rename from generated/Model/ExampleRowResponseSerializerWithUserFieldNamesField16.php rename to generated/Model/RowResponse.php index 6630e6e..5340496 100644 --- a/generated/Model/ExampleRowResponseSerializerWithUserFieldNamesField16.php +++ b/generated/Model/RowResponse.php @@ -10,7 +10,7 @@ namespace CedricZiel\Baserow\Generated\Model; -class ExampleRowResponseSerializerWithUserFieldNamesField16 extends \ArrayObject +class RowResponse extends \ArrayObject { /** * @var array @@ -22,23 +22,29 @@ 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; /** + * Indicates the position of the row, lowest first and highest last. + * * @var string */ - protected $value; + protected $order; + /** - * @var string + * The unique identifier of the row in the table. */ - protected $color; - 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; @@ -47,28 +53,21 @@ public function setId(int $id): self return $this; } - public function getValue(): string - { - return $this->value; - } - - public function setValue(string $value): self - { - $this->initialized['value'] = true; - $this->value = $value; - - return $this; - } - - public function getColor(): string + /** + * Indicates the position of the row, lowest first and highest last. + */ + public function getOrder(): string { - return $this->color; + return $this->order; } - public function setColor(string $color): self + /** + * Indicates the position of the row, lowest first and highest last. + */ + public function setOrder(string $order): self { - $this->initialized['color'] = true; - $this->color = $color; + $this->initialized['order'] = true; + $this->order = $order; return $this; } diff --git a/generated/Normalizer/ExampleRowResponseSerializerWithUserFieldNamesField12Normalizer.php b/generated/Normalizer/BatchUpdateRowNormalizer.php similarity index 74% rename from generated/Normalizer/ExampleRowResponseSerializerWithUserFieldNamesField12Normalizer.php rename to generated/Normalizer/BatchUpdateRowNormalizer.php index c1b0245..2fb1d43 100644 --- a/generated/Normalizer/ExampleRowResponseSerializerWithUserFieldNamesField12Normalizer.php +++ b/generated/Normalizer/BatchUpdateRowNormalizer.php @@ -22,7 +22,7 @@ use Symfony\Component\Serializer\Normalizer\NormalizerInterface; if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { - class ExampleRowResponseSerializerWithUserFieldNamesField12Normalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + class BatchUpdateRowNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { use DenormalizerAwareTrait; use NormalizerAwareTrait; @@ -31,12 +31,12 @@ class ExampleRowResponseSerializerWithUserFieldNamesField12Normalizer implements public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNamesField12::class === $type; + return \CedricZiel\Baserow\Generated\Model\BatchUpdateRow::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return is_object($data) && \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNamesField12::class === get_class($data); + return is_object($data) && \CedricZiel\Baserow\Generated\Model\BatchUpdateRow::class === get_class($data); } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -47,7 +47,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNamesField12(); + $object = new \CedricZiel\Baserow\Generated\Model\BatchUpdateRow(); if (null === $data || false === \is_array($data)) { return $object; } @@ -55,10 +55,6 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setId($data['id']); unset($data['id']); } - if (\array_key_exists('name', $data)) { - $object->setName($data['name']); - unset($data['name']); - } foreach ($data as $key => $value) { if (preg_match('/.*/', (string) $key)) { $object[$key] = $value; @@ -83,11 +79,11 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return [\CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNamesField12::class => false]; + return [\CedricZiel\Baserow\Generated\Model\BatchUpdateRow::class => false]; } } } else { - class ExampleRowResponseSerializerWithUserFieldNamesField12Normalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + class BatchUpdateRowNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { use DenormalizerAwareTrait; use NormalizerAwareTrait; @@ -96,12 +92,12 @@ class ExampleRowResponseSerializerWithUserFieldNamesField12Normalizer implements public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNamesField12::class === $type; + return \CedricZiel\Baserow\Generated\Model\BatchUpdateRow::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return is_object($data) && \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNamesField12::class === get_class($data); + return is_object($data) && \CedricZiel\Baserow\Generated\Model\BatchUpdateRow::class === get_class($data); } public function denormalize($data, $type, $format = null, array $context = []) @@ -112,7 +108,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNamesField12(); + $object = new \CedricZiel\Baserow\Generated\Model\BatchUpdateRow(); if (null === $data || false === \is_array($data)) { return $object; } @@ -120,10 +116,6 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setId($data['id']); unset($data['id']); } - if (\array_key_exists('name', $data)) { - $object->setName($data['name']); - unset($data['name']); - } foreach ($data as $key => $value) { if (preg_match('/.*/', (string) $key)) { $object[$key] = $value; @@ -151,7 +143,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return [\CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNamesField12::class => false]; + return [\CedricZiel\Baserow\Generated\Model\BatchUpdateRow::class => false]; } } } diff --git a/generated/Normalizer/ExampleBatchRowsResponseNormalizer.php b/generated/Normalizer/ExampleBatchRowsResponseNormalizer.php index 00c71b3..8dc5909 100644 --- a/generated/Normalizer/ExampleBatchRowsResponseNormalizer.php +++ b/generated/Normalizer/ExampleBatchRowsResponseNormalizer.php @@ -54,7 +54,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (\array_key_exists('items', $data)) { $values = []; foreach ($data['items'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNames::class, 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \CedricZiel\Baserow\Generated\Model\RowResponse::class, 'json', $context); } $object->setItems($values); unset($data['items']); @@ -123,7 +123,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('items', $data)) { $values = []; foreach ($data['items'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNames::class, 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \CedricZiel\Baserow\Generated\Model\RowResponse::class, 'json', $context); } $object->setItems($values); unset($data['items']); diff --git a/generated/Normalizer/ExampleBatchUpdateRowRequestSerializerWithUserFieldNamesNormalizer.php b/generated/Normalizer/ExampleBatchUpdateRowRequestSerializerWithUserFieldNamesNormalizer.php deleted file mode 100644 index 4a43161..0000000 --- a/generated/Normalizer/ExampleBatchUpdateRowRequestSerializerWithUserFieldNamesNormalizer.php +++ /dev/null @@ -1,505 +0,0 @@ -= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { - class ExampleBatchUpdateRowRequestSerializerWithUserFieldNamesNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface - { - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - - public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool - { - return \CedricZiel\Baserow\Generated\Model\ExampleBatchUpdateRowRequestSerializerWithUserFieldNames::class === $type; - } - - public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool - { - return is_object($data) && \CedricZiel\Baserow\Generated\Model\ExampleBatchUpdateRowRequestSerializerWithUserFieldNames::class === get_class($data); - } - - public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); - } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); - } - $object = new \CedricZiel\Baserow\Generated\Model\ExampleBatchUpdateRowRequestSerializerWithUserFieldNames(); - if (\array_key_exists('field_13', $data) && \is_int($data['field_13'])) { - $data['field_13'] = (float) $data['field_13']; - } - if (null === $data || false === \is_array($data)) { - return $object; - } - if (\array_key_exists('id', $data)) { - $object->setId($data['id']); - unset($data['id']); - } - if (\array_key_exists('field_1', $data) && null !== $data['field_1']) { - $object->setField1($data['field_1']); - unset($data['field_1']); - } elseif (\array_key_exists('field_1', $data) && null === $data['field_1']) { - $object->setField1(null); - } - if (\array_key_exists('field_2', $data) && null !== $data['field_2']) { - $object->setField2($data['field_2']); - unset($data['field_2']); - } elseif (\array_key_exists('field_2', $data) && null === $data['field_2']) { - $object->setField2(null); - } - if (\array_key_exists('field_3', $data) && null !== $data['field_3']) { - $object->setField3($data['field_3']); - unset($data['field_3']); - } elseif (\array_key_exists('field_3', $data) && null === $data['field_3']) { - $object->setField3(null); - } - if (\array_key_exists('field_4', $data) && null !== $data['field_4']) { - $object->setField4($data['field_4']); - unset($data['field_4']); - } elseif (\array_key_exists('field_4', $data) && null === $data['field_4']) { - $object->setField4(null); - } - if (\array_key_exists('field_5', $data) && null !== $data['field_5']) { - $object->setField5($data['field_5']); - unset($data['field_5']); - } elseif (\array_key_exists('field_5', $data) && null === $data['field_5']) { - $object->setField5(null); - } - if (\array_key_exists('field_6', $data)) { - $object->setField6($data['field_6']); - unset($data['field_6']); - } - if (\array_key_exists('field_7', $data)) { - $object->setField7($data['field_7']); - unset($data['field_7']); - } - if (\array_key_exists('field_8', $data) && null !== $data['field_8']) { - $object->setField8(\DateTime::createFromFormat('Y-m-d', $data['field_8'])->setTime(0, 0, 0)); - unset($data['field_8']); - } elseif (\array_key_exists('field_8', $data) && null === $data['field_8']) { - $object->setField8(null); - } - if (\array_key_exists('field_13', $data) && null !== $data['field_13']) { - $object->setField13($data['field_13']); - unset($data['field_13']); - } elseif (\array_key_exists('field_13', $data) && null === $data['field_13']) { - $object->setField13(null); - } - if (\array_key_exists('field_14', $data)) { - $values = []; - foreach ($data['field_14'] as $value) { - $values[] = $value; - } - $object->setField14($values); - unset($data['field_14']); - } - if (\array_key_exists('field_15', $data) && null !== $data['field_15']) { - $values_1 = []; - foreach ($data['field_15'] as $value_1) { - $values_1[] = $value_1; - } - $object->setField15($values_1); - unset($data['field_15']); - } elseif (\array_key_exists('field_15', $data) && null === $data['field_15']) { - $object->setField15(null); - } - if (\array_key_exists('field_16', $data) && null !== $data['field_16']) { - $object->setField16($data['field_16']); - unset($data['field_16']); - } elseif (\array_key_exists('field_16', $data) && null === $data['field_16']) { - $object->setField16(null); - } - if (\array_key_exists('field_17', $data)) { - $values_2 = []; - foreach ($data['field_17'] as $value_2) { - $values_2[] = $value_2; - } - $object->setField17($values_2); - unset($data['field_17']); - } - if (\array_key_exists('field_18', $data) && null !== $data['field_18']) { - $object->setField18($data['field_18']); - unset($data['field_18']); - } elseif (\array_key_exists('field_18', $data) && null === $data['field_18']) { - $object->setField18(null); - } - if (\array_key_exists('field_23', $data)) { - $values_3 = []; - foreach ($data['field_23'] as $value_3) { - $values_3[] = $this->denormalizer->denormalize($value_3, \CedricZiel\Baserow\Generated\Model\Collaborator::class, 'json', $context); - } - $object->setField23($values_3); - unset($data['field_23']); - } - if (\array_key_exists('field_26', $data) && null !== $data['field_26']) { - $object->setField26($data['field_26']); - unset($data['field_26']); - } elseif (\array_key_exists('field_26', $data) && null === $data['field_26']) { - $object->setField26(null); - } - if (\array_key_exists('field_27', $data) && null !== $data['field_27']) { - $object->setField27($data['field_27']); - unset($data['field_27']); - } elseif (\array_key_exists('field_27', $data) && null === $data['field_27']) { - $object->setField27(null); - } - foreach ($data as $key => $value_4) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value_4; - } - } - - return $object; - } - - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null - { - $data = []; - $data['id'] = $object->getId(); - if ($object->isInitialized('field1') && null !== $object->getField1()) { - $data['field_1'] = $object->getField1(); - } - if ($object->isInitialized('field2') && null !== $object->getField2()) { - $data['field_2'] = $object->getField2(); - } - if ($object->isInitialized('field3') && null !== $object->getField3()) { - $data['field_3'] = $object->getField3(); - } - if ($object->isInitialized('field4') && null !== $object->getField4()) { - $data['field_4'] = $object->getField4(); - } - if ($object->isInitialized('field5') && null !== $object->getField5()) { - $data['field_5'] = $object->getField5(); - } - if ($object->isInitialized('field6') && null !== $object->getField6()) { - $data['field_6'] = $object->getField6(); - } - if ($object->isInitialized('field7') && null !== $object->getField7()) { - $data['field_7'] = $object->getField7(); - } - if ($object->isInitialized('field8') && null !== $object->getField8()) { - $data['field_8'] = $object->getField8()->format('Y-m-d'); - } - if ($object->isInitialized('field13') && null !== $object->getField13()) { - $data['field_13'] = $object->getField13(); - } - if ($object->isInitialized('field14') && null !== $object->getField14()) { - $values = []; - foreach ($object->getField14() as $value) { - $values[] = $value; - } - $data['field_14'] = $values; - } - if ($object->isInitialized('field15') && null !== $object->getField15()) { - $values_1 = []; - foreach ($object->getField15() as $value_1) { - $values_1[] = $value_1; - } - $data['field_15'] = $values_1; - } - if ($object->isInitialized('field16') && null !== $object->getField16()) { - $data['field_16'] = $object->getField16(); - } - if ($object->isInitialized('field17') && null !== $object->getField17()) { - $values_2 = []; - foreach ($object->getField17() as $value_2) { - $values_2[] = $value_2; - } - $data['field_17'] = $values_2; - } - if ($object->isInitialized('field18') && null !== $object->getField18()) { - $data['field_18'] = $object->getField18(); - } - if ($object->isInitialized('field23') && null !== $object->getField23()) { - $values_3 = []; - foreach ($object->getField23() as $value_3) { - $values_3[] = $this->normalizer->normalize($value_3, 'json', $context); - } - $data['field_23'] = $values_3; - } - if ($object->isInitialized('field26') && null !== $object->getField26()) { - $data['field_26'] = $object->getField26(); - } - if ($object->isInitialized('field27') && null !== $object->getField27()) { - $data['field_27'] = $object->getField27(); - } - foreach ($object as $key => $value_4) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value_4; - } - } - - return $data; - } - - public function getSupportedTypes(?string $format = null): array - { - return [\CedricZiel\Baserow\Generated\Model\ExampleBatchUpdateRowRequestSerializerWithUserFieldNames::class => false]; - } - } -} else { - class ExampleBatchUpdateRowRequestSerializerWithUserFieldNamesNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface - { - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - - public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool - { - return \CedricZiel\Baserow\Generated\Model\ExampleBatchUpdateRowRequestSerializerWithUserFieldNames::class === $type; - } - - public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool - { - return is_object($data) && \CedricZiel\Baserow\Generated\Model\ExampleBatchUpdateRowRequestSerializerWithUserFieldNames::class === get_class($data); - } - - public function denormalize($data, $type, $format = null, array $context = []) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); - } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); - } - $object = new \CedricZiel\Baserow\Generated\Model\ExampleBatchUpdateRowRequestSerializerWithUserFieldNames(); - if (\array_key_exists('field_13', $data) && \is_int($data['field_13'])) { - $data['field_13'] = (float) $data['field_13']; - } - if (null === $data || false === \is_array($data)) { - return $object; - } - if (\array_key_exists('id', $data)) { - $object->setId($data['id']); - unset($data['id']); - } - if (\array_key_exists('field_1', $data) && null !== $data['field_1']) { - $object->setField1($data['field_1']); - unset($data['field_1']); - } elseif (\array_key_exists('field_1', $data) && null === $data['field_1']) { - $object->setField1(null); - } - if (\array_key_exists('field_2', $data) && null !== $data['field_2']) { - $object->setField2($data['field_2']); - unset($data['field_2']); - } elseif (\array_key_exists('field_2', $data) && null === $data['field_2']) { - $object->setField2(null); - } - if (\array_key_exists('field_3', $data) && null !== $data['field_3']) { - $object->setField3($data['field_3']); - unset($data['field_3']); - } elseif (\array_key_exists('field_3', $data) && null === $data['field_3']) { - $object->setField3(null); - } - if (\array_key_exists('field_4', $data) && null !== $data['field_4']) { - $object->setField4($data['field_4']); - unset($data['field_4']); - } elseif (\array_key_exists('field_4', $data) && null === $data['field_4']) { - $object->setField4(null); - } - if (\array_key_exists('field_5', $data) && null !== $data['field_5']) { - $object->setField5($data['field_5']); - unset($data['field_5']); - } elseif (\array_key_exists('field_5', $data) && null === $data['field_5']) { - $object->setField5(null); - } - if (\array_key_exists('field_6', $data)) { - $object->setField6($data['field_6']); - unset($data['field_6']); - } - if (\array_key_exists('field_7', $data)) { - $object->setField7($data['field_7']); - unset($data['field_7']); - } - if (\array_key_exists('field_8', $data) && null !== $data['field_8']) { - $object->setField8(\DateTime::createFromFormat('Y-m-d', $data['field_8'])->setTime(0, 0, 0)); - unset($data['field_8']); - } elseif (\array_key_exists('field_8', $data) && null === $data['field_8']) { - $object->setField8(null); - } - if (\array_key_exists('field_13', $data) && null !== $data['field_13']) { - $object->setField13($data['field_13']); - unset($data['field_13']); - } elseif (\array_key_exists('field_13', $data) && null === $data['field_13']) { - $object->setField13(null); - } - if (\array_key_exists('field_14', $data)) { - $values = []; - foreach ($data['field_14'] as $value) { - $values[] = $value; - } - $object->setField14($values); - unset($data['field_14']); - } - if (\array_key_exists('field_15', $data) && null !== $data['field_15']) { - $values_1 = []; - foreach ($data['field_15'] as $value_1) { - $values_1[] = $value_1; - } - $object->setField15($values_1); - unset($data['field_15']); - } elseif (\array_key_exists('field_15', $data) && null === $data['field_15']) { - $object->setField15(null); - } - if (\array_key_exists('field_16', $data) && null !== $data['field_16']) { - $object->setField16($data['field_16']); - unset($data['field_16']); - } elseif (\array_key_exists('field_16', $data) && null === $data['field_16']) { - $object->setField16(null); - } - if (\array_key_exists('field_17', $data)) { - $values_2 = []; - foreach ($data['field_17'] as $value_2) { - $values_2[] = $value_2; - } - $object->setField17($values_2); - unset($data['field_17']); - } - if (\array_key_exists('field_18', $data) && null !== $data['field_18']) { - $object->setField18($data['field_18']); - unset($data['field_18']); - } elseif (\array_key_exists('field_18', $data) && null === $data['field_18']) { - $object->setField18(null); - } - if (\array_key_exists('field_23', $data)) { - $values_3 = []; - foreach ($data['field_23'] as $value_3) { - $values_3[] = $this->denormalizer->denormalize($value_3, \CedricZiel\Baserow\Generated\Model\Collaborator::class, 'json', $context); - } - $object->setField23($values_3); - unset($data['field_23']); - } - if (\array_key_exists('field_26', $data) && null !== $data['field_26']) { - $object->setField26($data['field_26']); - unset($data['field_26']); - } elseif (\array_key_exists('field_26', $data) && null === $data['field_26']) { - $object->setField26(null); - } - if (\array_key_exists('field_27', $data) && null !== $data['field_27']) { - $object->setField27($data['field_27']); - unset($data['field_27']); - } elseif (\array_key_exists('field_27', $data) && null === $data['field_27']) { - $object->setField27(null); - } - foreach ($data as $key => $value_4) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value_4; - } - } - - return $object; - } - - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $data['id'] = $object->getId(); - if ($object->isInitialized('field1') && null !== $object->getField1()) { - $data['field_1'] = $object->getField1(); - } - if ($object->isInitialized('field2') && null !== $object->getField2()) { - $data['field_2'] = $object->getField2(); - } - if ($object->isInitialized('field3') && null !== $object->getField3()) { - $data['field_3'] = $object->getField3(); - } - if ($object->isInitialized('field4') && null !== $object->getField4()) { - $data['field_4'] = $object->getField4(); - } - if ($object->isInitialized('field5') && null !== $object->getField5()) { - $data['field_5'] = $object->getField5(); - } - if ($object->isInitialized('field6') && null !== $object->getField6()) { - $data['field_6'] = $object->getField6(); - } - if ($object->isInitialized('field7') && null !== $object->getField7()) { - $data['field_7'] = $object->getField7(); - } - if ($object->isInitialized('field8') && null !== $object->getField8()) { - $data['field_8'] = $object->getField8()->format('Y-m-d'); - } - if ($object->isInitialized('field13') && null !== $object->getField13()) { - $data['field_13'] = $object->getField13(); - } - if ($object->isInitialized('field14') && null !== $object->getField14()) { - $values = []; - foreach ($object->getField14() as $value) { - $values[] = $value; - } - $data['field_14'] = $values; - } - if ($object->isInitialized('field15') && null !== $object->getField15()) { - $values_1 = []; - foreach ($object->getField15() as $value_1) { - $values_1[] = $value_1; - } - $data['field_15'] = $values_1; - } - if ($object->isInitialized('field16') && null !== $object->getField16()) { - $data['field_16'] = $object->getField16(); - } - if ($object->isInitialized('field17') && null !== $object->getField17()) { - $values_2 = []; - foreach ($object->getField17() as $value_2) { - $values_2[] = $value_2; - } - $data['field_17'] = $values_2; - } - if ($object->isInitialized('field18') && null !== $object->getField18()) { - $data['field_18'] = $object->getField18(); - } - if ($object->isInitialized('field23') && null !== $object->getField23()) { - $values_3 = []; - foreach ($object->getField23() as $value_3) { - $values_3[] = $this->normalizer->normalize($value_3, 'json', $context); - } - $data['field_23'] = $values_3; - } - if ($object->isInitialized('field26') && null !== $object->getField26()) { - $data['field_26'] = $object->getField26(); - } - if ($object->isInitialized('field27') && null !== $object->getField27()) { - $data['field_27'] = $object->getField27(); - } - foreach ($object as $key => $value_4) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value_4; - } - } - - return $data; - } - - public function getSupportedTypes(?string $format = null): array - { - return [\CedricZiel\Baserow\Generated\Model\ExampleBatchUpdateRowRequestSerializerWithUserFieldNames::class => false]; - } - } -} diff --git a/generated/Normalizer/ExampleRowResponseSerializerWithUserFieldNamesNormalizer.php b/generated/Normalizer/ExampleRowResponseSerializerWithUserFieldNamesNormalizer.php deleted file mode 100644 index 0d1eaa0..0000000 --- a/generated/Normalizer/ExampleRowResponseSerializerWithUserFieldNamesNormalizer.php +++ /dev/null @@ -1,671 +0,0 @@ -= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { - class ExampleRowResponseSerializerWithUserFieldNamesNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface - { - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - - public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool - { - return \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNames::class === $type; - } - - public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool - { - return is_object($data) && \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNames::class === get_class($data); - } - - public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); - } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); - } - $object = new \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNames(); - if (\array_key_exists('field_13', $data) && \is_int($data['field_13'])) { - $data['field_13'] = (float) $data['field_13']; - } - if (null === $data || false === \is_array($data)) { - return $object; - } - if (\array_key_exists('id', $data)) { - $object->setId($data['id']); - unset($data['id']); - } - if (\array_key_exists('order', $data)) { - $object->setOrder($data['order']); - unset($data['order']); - } - if (\array_key_exists('field_1', $data) && null !== $data['field_1']) { - $object->setField1($data['field_1']); - unset($data['field_1']); - } elseif (\array_key_exists('field_1', $data) && null === $data['field_1']) { - $object->setField1(null); - } - if (\array_key_exists('field_2', $data) && null !== $data['field_2']) { - $object->setField2($data['field_2']); - unset($data['field_2']); - } elseif (\array_key_exists('field_2', $data) && null === $data['field_2']) { - $object->setField2(null); - } - if (\array_key_exists('field_3', $data) && null !== $data['field_3']) { - $object->setField3($data['field_3']); - unset($data['field_3']); - } elseif (\array_key_exists('field_3', $data) && null === $data['field_3']) { - $object->setField3(null); - } - if (\array_key_exists('field_4', $data) && null !== $data['field_4']) { - $object->setField4($data['field_4']); - unset($data['field_4']); - } elseif (\array_key_exists('field_4', $data) && null === $data['field_4']) { - $object->setField4(null); - } - if (\array_key_exists('field_5', $data) && null !== $data['field_5']) { - $object->setField5($data['field_5']); - unset($data['field_5']); - } elseif (\array_key_exists('field_5', $data) && null === $data['field_5']) { - $object->setField5(null); - } - if (\array_key_exists('field_6', $data)) { - $object->setField6($data['field_6']); - unset($data['field_6']); - } - if (\array_key_exists('field_7', $data)) { - $object->setField7($data['field_7']); - unset($data['field_7']); - } - if (\array_key_exists('field_8', $data) && null !== $data['field_8']) { - $object->setField8(\DateTime::createFromFormat('Y-m-d', $data['field_8'])->setTime(0, 0, 0)); - unset($data['field_8']); - } elseif (\array_key_exists('field_8', $data) && null === $data['field_8']) { - $object->setField8(null); - } - if (\array_key_exists('field_9', $data)) { - $object->setField9(\DateTime::createFromFormat('Y-m-d\TH:i:sP', $data['field_9'])); - unset($data['field_9']); - } - if (\array_key_exists('field_10', $data)) { - $object->setField10($this->denormalizer->denormalize($data['field_10'], \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNamesField10::class, 'json', $context)); - unset($data['field_10']); - } - if (\array_key_exists('field_11', $data)) { - $object->setField11(\DateTime::createFromFormat('Y-m-d\TH:i:sP', $data['field_11'])); - unset($data['field_11']); - } - if (\array_key_exists('field_12', $data)) { - $object->setField12($this->denormalizer->denormalize($data['field_12'], \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNamesField12::class, 'json', $context)); - unset($data['field_12']); - } - if (\array_key_exists('field_13', $data) && null !== $data['field_13']) { - $object->setField13($data['field_13']); - unset($data['field_13']); - } elseif (\array_key_exists('field_13', $data) && null === $data['field_13']) { - $object->setField13(null); - } - if (\array_key_exists('field_14', $data)) { - $values = []; - foreach ($data['field_14'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \CedricZiel\Baserow\Generated\Model\LinkRowValue::class, 'json', $context); - } - $object->setField14($values); - unset($data['field_14']); - } - if (\array_key_exists('field_15', $data)) { - $values_1 = []; - foreach ($data['field_15'] as $value_1) { - $values_1[] = $this->denormalizer->denormalize($value_1, \CedricZiel\Baserow\Generated\Model\FileFieldResponse::class, 'json', $context); - } - $object->setField15($values_1); - unset($data['field_15']); - } - if (\array_key_exists('field_16', $data) && null !== $data['field_16']) { - $object->setField16($this->denormalizer->denormalize($data['field_16'], \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNamesField16::class, 'json', $context)); - unset($data['field_16']); - } elseif (\array_key_exists('field_16', $data) && null === $data['field_16']) { - $object->setField16(null); - } - if (\array_key_exists('field_17', $data) && null !== $data['field_17']) { - $values_2 = []; - foreach ($data['field_17'] as $value_2) { - $values_2[] = $this->denormalizer->denormalize($value_2, \CedricZiel\Baserow\Generated\Model\SelectOption::class, 'json', $context); - } - $object->setField17($values_2); - unset($data['field_17']); - } elseif (\array_key_exists('field_17', $data) && null === $data['field_17']) { - $object->setField17(null); - } - if (\array_key_exists('field_18', $data) && null !== $data['field_18']) { - $object->setField18($data['field_18']); - unset($data['field_18']); - } elseif (\array_key_exists('field_18', $data) && null === $data['field_18']) { - $object->setField18(null); - } - if (\array_key_exists('field_19', $data) && null !== $data['field_19']) { - $object->setField19($data['field_19']); - unset($data['field_19']); - } elseif (\array_key_exists('field_19', $data) && null === $data['field_19']) { - $object->setField19(null); - } - if (\array_key_exists('field_20', $data) && null !== $data['field_20']) { - $object->setField20($data['field_20']); - unset($data['field_20']); - } elseif (\array_key_exists('field_20', $data) && null === $data['field_20']) { - $object->setField20(null); - } - if (\array_key_exists('field_21', $data) && null !== $data['field_21']) { - $object->setField21($data['field_21']); - unset($data['field_21']); - } elseif (\array_key_exists('field_21', $data) && null === $data['field_21']) { - $object->setField21(null); - } - if (\array_key_exists('field_22', $data) && null !== $data['field_22']) { - $object->setField22($data['field_22']); - unset($data['field_22']); - } elseif (\array_key_exists('field_22', $data) && null === $data['field_22']) { - $object->setField22(null); - } - if (\array_key_exists('field_23', $data)) { - $values_3 = []; - foreach ($data['field_23'] as $value_3) { - $values_3[] = $this->denormalizer->denormalize($value_3, \CedricZiel\Baserow\Generated\Model\Collaborator::class, 'json', $context); - } - $object->setField23($values_3); - unset($data['field_23']); - } - if (\array_key_exists('field_24', $data)) { - $object->setField24($data['field_24']); - unset($data['field_24']); - } - if (\array_key_exists('field_25', $data)) { - $object->setField25($data['field_25']); - unset($data['field_25']); - } - if (\array_key_exists('field_26', $data)) { - $object->setField26($data['field_26']); - unset($data['field_26']); - } - if (\array_key_exists('field_27', $data) && null !== $data['field_27']) { - $object->setField27($data['field_27']); - unset($data['field_27']); - } elseif (\array_key_exists('field_27', $data) && null === $data['field_27']) { - $object->setField27(null); - } - foreach ($data as $key => $value_4) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value_4; - } - } - - return $object; - } - - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null - { - $data = []; - $data['id'] = $object->getId(); - if ($object->isInitialized('order') && null !== $object->getOrder()) { - $data['order'] = $object->getOrder(); - } - if ($object->isInitialized('field1') && null !== $object->getField1()) { - $data['field_1'] = $object->getField1(); - } - if ($object->isInitialized('field2') && null !== $object->getField2()) { - $data['field_2'] = $object->getField2(); - } - if ($object->isInitialized('field3') && null !== $object->getField3()) { - $data['field_3'] = $object->getField3(); - } - if ($object->isInitialized('field4') && null !== $object->getField4()) { - $data['field_4'] = $object->getField4(); - } - if ($object->isInitialized('field5') && null !== $object->getField5()) { - $data['field_5'] = $object->getField5(); - } - if ($object->isInitialized('field6') && null !== $object->getField6()) { - $data['field_6'] = $object->getField6(); - } - if ($object->isInitialized('field7') && null !== $object->getField7()) { - $data['field_7'] = $object->getField7(); - } - if ($object->isInitialized('field8') && null !== $object->getField8()) { - $data['field_8'] = $object->getField8()->format('Y-m-d'); - } - if ($object->isInitialized('field9') && null !== $object->getField9()) { - $data['field_9'] = $object->getField9()?->format('Y-m-d\TH:i:sP'); - } - if ($object->isInitialized('field10') && null !== $object->getField10()) { - $data['field_10'] = $this->normalizer->normalize($object->getField10(), 'json', $context); - } - if ($object->isInitialized('field11') && null !== $object->getField11()) { - $data['field_11'] = $object->getField11()?->format('Y-m-d\TH:i:sP'); - } - if ($object->isInitialized('field12') && null !== $object->getField12()) { - $data['field_12'] = $this->normalizer->normalize($object->getField12(), 'json', $context); - } - if ($object->isInitialized('field13') && null !== $object->getField13()) { - $data['field_13'] = $object->getField13(); - } - if ($object->isInitialized('field14') && null !== $object->getField14()) { - $values = []; - foreach ($object->getField14() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['field_14'] = $values; - } - if ($object->isInitialized('field15') && null !== $object->getField15()) { - $values_1 = []; - foreach ($object->getField15() as $value_1) { - $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); - } - $data['field_15'] = $values_1; - } - if ($object->isInitialized('field16') && null !== $object->getField16()) { - $data['field_16'] = $this->normalizer->normalize($object->getField16(), 'json', $context); - } - if ($object->isInitialized('field17') && null !== $object->getField17()) { - $values_2 = []; - foreach ($object->getField17() as $value_2) { - $values_2[] = $this->normalizer->normalize($value_2, 'json', $context); - } - $data['field_17'] = $values_2; - } - if ($object->isInitialized('field18') && null !== $object->getField18()) { - $data['field_18'] = $object->getField18(); - } - if ($object->isInitialized('field19') && null !== $object->getField19()) { - $data['field_19'] = $object->getField19(); - } - if ($object->isInitialized('field20') && null !== $object->getField20()) { - $data['field_20'] = $object->getField20(); - } - if ($object->isInitialized('field21') && null !== $object->getField21()) { - $data['field_21'] = $object->getField21(); - } - if ($object->isInitialized('field22') && null !== $object->getField22()) { - $data['field_22'] = $object->getField22(); - } - if ($object->isInitialized('field23') && null !== $object->getField23()) { - $values_3 = []; - foreach ($object->getField23() as $value_3) { - $values_3[] = $this->normalizer->normalize($value_3, 'json', $context); - } - $data['field_23'] = $values_3; - } - if ($object->isInitialized('field24') && null !== $object->getField24()) { - $data['field_24'] = $object->getField24(); - } - if ($object->isInitialized('field25') && null !== $object->getField25()) { - $data['field_25'] = $object->getField25(); - } - if ($object->isInitialized('field26') && null !== $object->getField26()) { - $data['field_26'] = $object->getField26(); - } - if ($object->isInitialized('field27') && null !== $object->getField27()) { - $data['field_27'] = $object->getField27(); - } - foreach ($object as $key => $value_4) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value_4; - } - } - - return $data; - } - - public function getSupportedTypes(?string $format = null): array - { - return [\CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNames::class => false]; - } - } -} else { - class ExampleRowResponseSerializerWithUserFieldNamesNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface - { - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - - public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool - { - return \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNames::class === $type; - } - - public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool - { - return is_object($data) && \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNames::class === get_class($data); - } - - public function denormalize($data, $type, $format = null, array $context = []) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); - } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); - } - $object = new \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNames(); - if (\array_key_exists('field_13', $data) && \is_int($data['field_13'])) { - $data['field_13'] = (float) $data['field_13']; - } - if (null === $data || false === \is_array($data)) { - return $object; - } - if (\array_key_exists('id', $data)) { - $object->setId($data['id']); - unset($data['id']); - } - if (\array_key_exists('order', $data)) { - $object->setOrder($data['order']); - unset($data['order']); - } - if (\array_key_exists('field_1', $data) && null !== $data['field_1']) { - $object->setField1($data['field_1']); - unset($data['field_1']); - } elseif (\array_key_exists('field_1', $data) && null === $data['field_1']) { - $object->setField1(null); - } - if (\array_key_exists('field_2', $data) && null !== $data['field_2']) { - $object->setField2($data['field_2']); - unset($data['field_2']); - } elseif (\array_key_exists('field_2', $data) && null === $data['field_2']) { - $object->setField2(null); - } - if (\array_key_exists('field_3', $data) && null !== $data['field_3']) { - $object->setField3($data['field_3']); - unset($data['field_3']); - } elseif (\array_key_exists('field_3', $data) && null === $data['field_3']) { - $object->setField3(null); - } - if (\array_key_exists('field_4', $data) && null !== $data['field_4']) { - $object->setField4($data['field_4']); - unset($data['field_4']); - } elseif (\array_key_exists('field_4', $data) && null === $data['field_4']) { - $object->setField4(null); - } - if (\array_key_exists('field_5', $data) && null !== $data['field_5']) { - $object->setField5($data['field_5']); - unset($data['field_5']); - } elseif (\array_key_exists('field_5', $data) && null === $data['field_5']) { - $object->setField5(null); - } - if (\array_key_exists('field_6', $data)) { - $object->setField6($data['field_6']); - unset($data['field_6']); - } - if (\array_key_exists('field_7', $data)) { - $object->setField7($data['field_7']); - unset($data['field_7']); - } - if (\array_key_exists('field_8', $data) && null !== $data['field_8']) { - $object->setField8(\DateTime::createFromFormat('Y-m-d', $data['field_8'])->setTime(0, 0, 0)); - unset($data['field_8']); - } elseif (\array_key_exists('field_8', $data) && null === $data['field_8']) { - $object->setField8(null); - } - if (\array_key_exists('field_9', $data)) { - $object->setField9(\DateTime::createFromFormat('Y-m-d\TH:i:sP', $data['field_9'])); - unset($data['field_9']); - } - if (\array_key_exists('field_10', $data)) { - $object->setField10($this->denormalizer->denormalize($data['field_10'], \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNamesField10::class, 'json', $context)); - unset($data['field_10']); - } - if (\array_key_exists('field_11', $data)) { - $object->setField11(\DateTime::createFromFormat('Y-m-d\TH:i:sP', $data['field_11'])); - unset($data['field_11']); - } - if (\array_key_exists('field_12', $data)) { - $object->setField12($this->denormalizer->denormalize($data['field_12'], \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNamesField12::class, 'json', $context)); - unset($data['field_12']); - } - if (\array_key_exists('field_13', $data) && null !== $data['field_13']) { - $object->setField13($data['field_13']); - unset($data['field_13']); - } elseif (\array_key_exists('field_13', $data) && null === $data['field_13']) { - $object->setField13(null); - } - if (\array_key_exists('field_14', $data)) { - $values = []; - foreach ($data['field_14'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \CedricZiel\Baserow\Generated\Model\LinkRowValue::class, 'json', $context); - } - $object->setField14($values); - unset($data['field_14']); - } - if (\array_key_exists('field_15', $data)) { - $values_1 = []; - foreach ($data['field_15'] as $value_1) { - $values_1[] = $this->denormalizer->denormalize($value_1, \CedricZiel\Baserow\Generated\Model\FileFieldResponse::class, 'json', $context); - } - $object->setField15($values_1); - unset($data['field_15']); - } - if (\array_key_exists('field_16', $data) && null !== $data['field_16']) { - $object->setField16($this->denormalizer->denormalize($data['field_16'], \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNamesField16::class, 'json', $context)); - unset($data['field_16']); - } elseif (\array_key_exists('field_16', $data) && null === $data['field_16']) { - $object->setField16(null); - } - if (\array_key_exists('field_17', $data) && null !== $data['field_17']) { - $values_2 = []; - foreach ($data['field_17'] as $value_2) { - $values_2[] = $this->denormalizer->denormalize($value_2, \CedricZiel\Baserow\Generated\Model\SelectOption::class, 'json', $context); - } - $object->setField17($values_2); - unset($data['field_17']); - } elseif (\array_key_exists('field_17', $data) && null === $data['field_17']) { - $object->setField17(null); - } - if (\array_key_exists('field_18', $data) && null !== $data['field_18']) { - $object->setField18($data['field_18']); - unset($data['field_18']); - } elseif (\array_key_exists('field_18', $data) && null === $data['field_18']) { - $object->setField18(null); - } - if (\array_key_exists('field_19', $data) && null !== $data['field_19']) { - $object->setField19($data['field_19']); - unset($data['field_19']); - } elseif (\array_key_exists('field_19', $data) && null === $data['field_19']) { - $object->setField19(null); - } - if (\array_key_exists('field_20', $data) && null !== $data['field_20']) { - $object->setField20($data['field_20']); - unset($data['field_20']); - } elseif (\array_key_exists('field_20', $data) && null === $data['field_20']) { - $object->setField20(null); - } - if (\array_key_exists('field_21', $data) && null !== $data['field_21']) { - $object->setField21($data['field_21']); - unset($data['field_21']); - } elseif (\array_key_exists('field_21', $data) && null === $data['field_21']) { - $object->setField21(null); - } - if (\array_key_exists('field_22', $data) && null !== $data['field_22']) { - $object->setField22($data['field_22']); - unset($data['field_22']); - } elseif (\array_key_exists('field_22', $data) && null === $data['field_22']) { - $object->setField22(null); - } - if (\array_key_exists('field_23', $data)) { - $values_3 = []; - foreach ($data['field_23'] as $value_3) { - $values_3[] = $this->denormalizer->denormalize($value_3, \CedricZiel\Baserow\Generated\Model\Collaborator::class, 'json', $context); - } - $object->setField23($values_3); - unset($data['field_23']); - } - if (\array_key_exists('field_24', $data)) { - $object->setField24($data['field_24']); - unset($data['field_24']); - } - if (\array_key_exists('field_25', $data)) { - $object->setField25($data['field_25']); - unset($data['field_25']); - } - if (\array_key_exists('field_26', $data)) { - $object->setField26($data['field_26']); - unset($data['field_26']); - } - if (\array_key_exists('field_27', $data) && null !== $data['field_27']) { - $object->setField27($data['field_27']); - unset($data['field_27']); - } elseif (\array_key_exists('field_27', $data) && null === $data['field_27']) { - $object->setField27(null); - } - foreach ($data as $key => $value_4) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value_4; - } - } - - return $object; - } - - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - $data['id'] = $object->getId(); - if ($object->isInitialized('order') && null !== $object->getOrder()) { - $data['order'] = $object->getOrder(); - } - if ($object->isInitialized('field1') && null !== $object->getField1()) { - $data['field_1'] = $object->getField1(); - } - if ($object->isInitialized('field2') && null !== $object->getField2()) { - $data['field_2'] = $object->getField2(); - } - if ($object->isInitialized('field3') && null !== $object->getField3()) { - $data['field_3'] = $object->getField3(); - } - if ($object->isInitialized('field4') && null !== $object->getField4()) { - $data['field_4'] = $object->getField4(); - } - if ($object->isInitialized('field5') && null !== $object->getField5()) { - $data['field_5'] = $object->getField5(); - } - if ($object->isInitialized('field6') && null !== $object->getField6()) { - $data['field_6'] = $object->getField6(); - } - if ($object->isInitialized('field7') && null !== $object->getField7()) { - $data['field_7'] = $object->getField7(); - } - if ($object->isInitialized('field8') && null !== $object->getField8()) { - $data['field_8'] = $object->getField8()->format('Y-m-d'); - } - if ($object->isInitialized('field9') && null !== $object->getField9()) { - $data['field_9'] = $object->getField9()?->format('Y-m-d\TH:i:sP'); - } - if ($object->isInitialized('field10') && null !== $object->getField10()) { - $data['field_10'] = $this->normalizer->normalize($object->getField10(), 'json', $context); - } - if ($object->isInitialized('field11') && null !== $object->getField11()) { - $data['field_11'] = $object->getField11()?->format('Y-m-d\TH:i:sP'); - } - if ($object->isInitialized('field12') && null !== $object->getField12()) { - $data['field_12'] = $this->normalizer->normalize($object->getField12(), 'json', $context); - } - if ($object->isInitialized('field13') && null !== $object->getField13()) { - $data['field_13'] = $object->getField13(); - } - if ($object->isInitialized('field14') && null !== $object->getField14()) { - $values = []; - foreach ($object->getField14() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); - } - $data['field_14'] = $values; - } - if ($object->isInitialized('field15') && null !== $object->getField15()) { - $values_1 = []; - foreach ($object->getField15() as $value_1) { - $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); - } - $data['field_15'] = $values_1; - } - if ($object->isInitialized('field16') && null !== $object->getField16()) { - $data['field_16'] = $this->normalizer->normalize($object->getField16(), 'json', $context); - } - if ($object->isInitialized('field17') && null !== $object->getField17()) { - $values_2 = []; - foreach ($object->getField17() as $value_2) { - $values_2[] = $this->normalizer->normalize($value_2, 'json', $context); - } - $data['field_17'] = $values_2; - } - if ($object->isInitialized('field18') && null !== $object->getField18()) { - $data['field_18'] = $object->getField18(); - } - if ($object->isInitialized('field19') && null !== $object->getField19()) { - $data['field_19'] = $object->getField19(); - } - if ($object->isInitialized('field20') && null !== $object->getField20()) { - $data['field_20'] = $object->getField20(); - } - if ($object->isInitialized('field21') && null !== $object->getField21()) { - $data['field_21'] = $object->getField21(); - } - if ($object->isInitialized('field22') && null !== $object->getField22()) { - $data['field_22'] = $object->getField22(); - } - if ($object->isInitialized('field23') && null !== $object->getField23()) { - $values_3 = []; - foreach ($object->getField23() as $value_3) { - $values_3[] = $this->normalizer->normalize($value_3, 'json', $context); - } - $data['field_23'] = $values_3; - } - if ($object->isInitialized('field24') && null !== $object->getField24()) { - $data['field_24'] = $object->getField24(); - } - if ($object->isInitialized('field25') && null !== $object->getField25()) { - $data['field_25'] = $object->getField25(); - } - if ($object->isInitialized('field26') && null !== $object->getField26()) { - $data['field_26'] = $object->getField26(); - } - if ($object->isInitialized('field27') && null !== $object->getField27()) { - $data['field_27'] = $object->getField27(); - } - foreach ($object as $key => $value_4) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value_4; - } - } - - return $data; - } - - public function getSupportedTypes(?string $format = null): array - { - return [\CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNames::class => false]; - } - } -} diff --git a/generated/Normalizer/JaneObjectNormalizer.php b/generated/Normalizer/JaneObjectNormalizer.php index 60b52c7..c2443de 100644 --- a/generated/Normalizer/JaneObjectNormalizer.php +++ b/generated/Normalizer/JaneObjectNormalizer.php @@ -352,7 +352,7 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface \CedricZiel\Baserow\Generated\Model\ExampleBatchRowsResponse::class => ExampleBatchRowsResponseNormalizer::class, - \CedricZiel\Baserow\Generated\Model\ExampleBatchUpdateRowRequestSerializerWithUserFieldNames::class => ExampleBatchUpdateRowRequestSerializerWithUserFieldNamesNormalizer::class, + \CedricZiel\Baserow\Generated\Model\BatchUpdateRow::class => BatchUpdateRowNormalizer::class, \CedricZiel\Baserow\Generated\Model\ExampleRowRequest::class => ExampleRowRequestNormalizer::class, @@ -366,13 +366,7 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface \CedricZiel\Baserow\Generated\Model\ExampleRowResponseField16::class => ExampleRowResponseField16Normalizer::class, - \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNames::class => ExampleRowResponseSerializerWithUserFieldNamesNormalizer::class, - - \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNamesField10::class => ExampleRowResponseSerializerWithUserFieldNamesField10Normalizer::class, - - \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNamesField12::class => ExampleRowResponseSerializerWithUserFieldNamesField12Normalizer::class, - - \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNamesField16::class => ExampleRowResponseSerializerWithUserFieldNamesField16Normalizer::class, + \CedricZiel\Baserow\Generated\Model\RowResponse::class => RowResponseNormalizer::class, \CedricZiel\Baserow\Generated\Model\ExportJob::class => ExportJobNormalizer::class, @@ -836,7 +830,7 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface \CedricZiel\Baserow\Generated\Model\PaginationSerializerAuditLogWorkspace::class => PaginationSerializerAuditLogWorkspaceNormalizer::class, - \CedricZiel\Baserow\Generated\Model\PaginationSerializerExampleRowResponseSerializerWithUserFieldNames::class => PaginationSerializerExampleRowResponseSerializerWithUserFieldNamesNormalizer::class, + \CedricZiel\Baserow\Generated\Model\PaginationRowResponse::class => PaginationRowResponseNormalizer::class, \CedricZiel\Baserow\Generated\Model\PaginationSerializerLicenseUserLookup::class => PaginationSerializerLicenseUserLookupNormalizer::class, @@ -874,9 +868,9 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface \CedricZiel\Baserow\Generated\Model\PatchedCombinedThemeConfigBlocksPageBackgroundFile::class => PatchedCombinedThemeConfigBlocksPageBackgroundFileNormalizer::class, - \CedricZiel\Baserow\Generated\Model\PatchedExampleBatchUpdateRowsRequest::class => PatchedExampleBatchUpdateRowsRequestNormalizer::class, + \CedricZiel\Baserow\Generated\Model\PatchRowsRequest::class => PatchRowsRequestNormalizer::class, - \CedricZiel\Baserow\Generated\Model\PatchedExampleUpdateRowRequestSerializerWithUserFieldNames::class => PatchedExampleUpdateRowRequestSerializerWithUserFieldNamesNormalizer::class, + \CedricZiel\Baserow\Generated\Model\PatchRowRequest::class => PatchRowRequestNormalizer::class, \CedricZiel\Baserow\Generated\Model\PatchedGenerativeAISettings::class => PatchedGenerativeAISettingsNormalizer::class, @@ -2552,17 +2546,14 @@ public function getSupportedTypes(?string $format = null): array \CedricZiel\Baserow\Generated\Model\EmailTesterResponse::class => false, \CedricZiel\Baserow\Generated\Model\ExampleBatchRowsRequest::class => false, \CedricZiel\Baserow\Generated\Model\ExampleBatchRowsResponse::class => false, - \CedricZiel\Baserow\Generated\Model\ExampleBatchUpdateRowRequestSerializerWithUserFieldNames::class => false, + \CedricZiel\Baserow\Generated\Model\BatchUpdateRow::class => false, \CedricZiel\Baserow\Generated\Model\ExampleRowRequest::class => false, \CedricZiel\Baserow\Generated\Model\ExampleRowRequestSerializerWithUserFieldNames::class => false, \CedricZiel\Baserow\Generated\Model\ExampleRowResponse::class => false, \CedricZiel\Baserow\Generated\Model\ExampleRowResponseField10::class => false, \CedricZiel\Baserow\Generated\Model\ExampleRowResponseField12::class => false, \CedricZiel\Baserow\Generated\Model\ExampleRowResponseField16::class => false, - \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNames::class => false, - \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNamesField10::class => false, - \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNamesField12::class => false, - \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNamesField16::class => false, + \CedricZiel\Baserow\Generated\Model\RowResponse::class => false, \CedricZiel\Baserow\Generated\Model\ExportJob::class => false, \CedricZiel\Baserow\Generated\Model\FacebookAuthProviderModelAuthProvider::class => false, \CedricZiel\Baserow\Generated\Model\Field::class => false, @@ -2794,7 +2785,7 @@ public function getSupportedTypes(?string $format = null): array \CedricZiel\Baserow\Generated\Model\PaginationSerializerAuditLog::class => false, \CedricZiel\Baserow\Generated\Model\PaginationSerializerAuditLogUser::class => false, \CedricZiel\Baserow\Generated\Model\PaginationSerializerAuditLogWorkspace::class => false, - \CedricZiel\Baserow\Generated\Model\PaginationSerializerExampleRowResponseSerializerWithUserFieldNames::class => false, + \CedricZiel\Baserow\Generated\Model\PaginationRowResponse::class => false, \CedricZiel\Baserow\Generated\Model\PaginationSerializerLicenseUserLookup::class => false, \CedricZiel\Baserow\Generated\Model\PaginationSerializerLinkRowValue::class => false, \CedricZiel\Baserow\Generated\Model\PaginationSerializerNotificationRecipient::class => false, @@ -2813,8 +2804,8 @@ public function getSupportedTypes(?string $format = null): array \CedricZiel\Baserow\Generated\Model\PatchedAccount::class => false, \CedricZiel\Baserow\Generated\Model\PatchedCombinedThemeConfigBlocks::class => false, \CedricZiel\Baserow\Generated\Model\PatchedCombinedThemeConfigBlocksPageBackgroundFile::class => false, - \CedricZiel\Baserow\Generated\Model\PatchedExampleBatchUpdateRowsRequest::class => false, - \CedricZiel\Baserow\Generated\Model\PatchedExampleUpdateRowRequestSerializerWithUserFieldNames::class => false, + \CedricZiel\Baserow\Generated\Model\PatchRowsRequest::class => false, + \CedricZiel\Baserow\Generated\Model\PatchRowRequest::class => false, \CedricZiel\Baserow\Generated\Model\PatchedGenerativeAISettings::class => false, \CedricZiel\Baserow\Generated\Model\PatchedMoveDataSource::class => false, \CedricZiel\Baserow\Generated\Model\PatchedMoveElement::class => false, @@ -3883,7 +3874,7 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface \CedricZiel\Baserow\Generated\Model\ExampleBatchRowsResponse::class => ExampleBatchRowsResponseNormalizer::class, - \CedricZiel\Baserow\Generated\Model\ExampleBatchUpdateRowRequestSerializerWithUserFieldNames::class => ExampleBatchUpdateRowRequestSerializerWithUserFieldNamesNormalizer::class, + \CedricZiel\Baserow\Generated\Model\BatchUpdateRow::class => BatchUpdateRowNormalizer::class, \CedricZiel\Baserow\Generated\Model\ExampleRowRequest::class => ExampleRowRequestNormalizer::class, @@ -3897,13 +3888,7 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface \CedricZiel\Baserow\Generated\Model\ExampleRowResponseField16::class => ExampleRowResponseField16Normalizer::class, - \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNames::class => ExampleRowResponseSerializerWithUserFieldNamesNormalizer::class, - - \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNamesField10::class => ExampleRowResponseSerializerWithUserFieldNamesField10Normalizer::class, - - \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNamesField12::class => ExampleRowResponseSerializerWithUserFieldNamesField12Normalizer::class, - - \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNamesField16::class => ExampleRowResponseSerializerWithUserFieldNamesField16Normalizer::class, + \CedricZiel\Baserow\Generated\Model\RowResponse::class => RowResponseNormalizer::class, \CedricZiel\Baserow\Generated\Model\ExportJob::class => ExportJobNormalizer::class, @@ -4367,7 +4352,7 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface \CedricZiel\Baserow\Generated\Model\PaginationSerializerAuditLogWorkspace::class => PaginationSerializerAuditLogWorkspaceNormalizer::class, - \CedricZiel\Baserow\Generated\Model\PaginationSerializerExampleRowResponseSerializerWithUserFieldNames::class => PaginationSerializerExampleRowResponseSerializerWithUserFieldNamesNormalizer::class, + \CedricZiel\Baserow\Generated\Model\PaginationRowResponse::class => PaginationRowResponseNormalizer::class, \CedricZiel\Baserow\Generated\Model\PaginationSerializerLicenseUserLookup::class => PaginationSerializerLicenseUserLookupNormalizer::class, @@ -4405,9 +4390,9 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface \CedricZiel\Baserow\Generated\Model\PatchedCombinedThemeConfigBlocksPageBackgroundFile::class => PatchedCombinedThemeConfigBlocksPageBackgroundFileNormalizer::class, - \CedricZiel\Baserow\Generated\Model\PatchedExampleBatchUpdateRowsRequest::class => PatchedExampleBatchUpdateRowsRequestNormalizer::class, + \CedricZiel\Baserow\Generated\Model\PatchRowsRequest::class => PatchRowsRequestNormalizer::class, - \CedricZiel\Baserow\Generated\Model\PatchedExampleUpdateRowRequestSerializerWithUserFieldNames::class => PatchedExampleUpdateRowRequestSerializerWithUserFieldNamesNormalizer::class, + \CedricZiel\Baserow\Generated\Model\PatchRowRequest::class => PatchRowRequestNormalizer::class, \CedricZiel\Baserow\Generated\Model\PatchedGenerativeAISettings::class => PatchedGenerativeAISettingsNormalizer::class, @@ -6086,17 +6071,14 @@ public function getSupportedTypes(?string $format = null): array \CedricZiel\Baserow\Generated\Model\EmailTesterResponse::class => false, \CedricZiel\Baserow\Generated\Model\ExampleBatchRowsRequest::class => false, \CedricZiel\Baserow\Generated\Model\ExampleBatchRowsResponse::class => false, - \CedricZiel\Baserow\Generated\Model\ExampleBatchUpdateRowRequestSerializerWithUserFieldNames::class => false, + \CedricZiel\Baserow\Generated\Model\BatchUpdateRow::class => false, \CedricZiel\Baserow\Generated\Model\ExampleRowRequest::class => false, \CedricZiel\Baserow\Generated\Model\ExampleRowRequestSerializerWithUserFieldNames::class => false, \CedricZiel\Baserow\Generated\Model\ExampleRowResponse::class => false, \CedricZiel\Baserow\Generated\Model\ExampleRowResponseField10::class => false, \CedricZiel\Baserow\Generated\Model\ExampleRowResponseField12::class => false, \CedricZiel\Baserow\Generated\Model\ExampleRowResponseField16::class => false, - \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNames::class => false, - \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNamesField10::class => false, - \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNamesField12::class => false, - \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNamesField16::class => false, + \CedricZiel\Baserow\Generated\Model\RowResponse::class => false, \CedricZiel\Baserow\Generated\Model\ExportJob::class => false, \CedricZiel\Baserow\Generated\Model\FacebookAuthProviderModelAuthProvider::class => false, \CedricZiel\Baserow\Generated\Model\Field::class => false, @@ -6328,7 +6310,7 @@ public function getSupportedTypes(?string $format = null): array \CedricZiel\Baserow\Generated\Model\PaginationSerializerAuditLog::class => false, \CedricZiel\Baserow\Generated\Model\PaginationSerializerAuditLogUser::class => false, \CedricZiel\Baserow\Generated\Model\PaginationSerializerAuditLogWorkspace::class => false, - \CedricZiel\Baserow\Generated\Model\PaginationSerializerExampleRowResponseSerializerWithUserFieldNames::class => false, + \CedricZiel\Baserow\Generated\Model\PaginationRowResponse::class => false, \CedricZiel\Baserow\Generated\Model\PaginationSerializerLicenseUserLookup::class => false, \CedricZiel\Baserow\Generated\Model\PaginationSerializerLinkRowValue::class => false, \CedricZiel\Baserow\Generated\Model\PaginationSerializerNotificationRecipient::class => false, @@ -6347,8 +6329,8 @@ public function getSupportedTypes(?string $format = null): array \CedricZiel\Baserow\Generated\Model\PatchedAccount::class => false, \CedricZiel\Baserow\Generated\Model\PatchedCombinedThemeConfigBlocks::class => false, \CedricZiel\Baserow\Generated\Model\PatchedCombinedThemeConfigBlocksPageBackgroundFile::class => false, - \CedricZiel\Baserow\Generated\Model\PatchedExampleBatchUpdateRowsRequest::class => false, - \CedricZiel\Baserow\Generated\Model\PatchedExampleUpdateRowRequestSerializerWithUserFieldNames::class => false, + \CedricZiel\Baserow\Generated\Model\PatchRowsRequest::class => false, + \CedricZiel\Baserow\Generated\Model\PatchRowRequest::class => false, \CedricZiel\Baserow\Generated\Model\PatchedGenerativeAISettings::class => false, \CedricZiel\Baserow\Generated\Model\PatchedMoveDataSource::class => false, \CedricZiel\Baserow\Generated\Model\PatchedMoveElement::class => false, diff --git a/generated/Normalizer/PaginationSerializerExampleRowResponseSerializerWithUserFieldNamesNormalizer.php b/generated/Normalizer/PaginationRowResponseNormalizer.php similarity index 85% rename from generated/Normalizer/PaginationSerializerExampleRowResponseSerializerWithUserFieldNamesNormalizer.php rename to generated/Normalizer/PaginationRowResponseNormalizer.php index 12ee5c3..1b578a5 100644 --- a/generated/Normalizer/PaginationSerializerExampleRowResponseSerializerWithUserFieldNamesNormalizer.php +++ b/generated/Normalizer/PaginationRowResponseNormalizer.php @@ -22,7 +22,7 @@ use Symfony\Component\Serializer\Normalizer\NormalizerInterface; if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { - class PaginationSerializerExampleRowResponseSerializerWithUserFieldNamesNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + class PaginationRowResponseNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { use DenormalizerAwareTrait; use NormalizerAwareTrait; @@ -31,12 +31,12 @@ class PaginationSerializerExampleRowResponseSerializerWithUserFieldNamesNormaliz public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return \CedricZiel\Baserow\Generated\Model\PaginationSerializerExampleRowResponseSerializerWithUserFieldNames::class === $type; + return \CedricZiel\Baserow\Generated\Model\PaginationRowResponse::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return is_object($data) && \CedricZiel\Baserow\Generated\Model\PaginationSerializerExampleRowResponseSerializerWithUserFieldNames::class === get_class($data); + return is_object($data) && \CedricZiel\Baserow\Generated\Model\PaginationRowResponse::class === get_class($data); } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -47,7 +47,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \CedricZiel\Baserow\Generated\Model\PaginationSerializerExampleRowResponseSerializerWithUserFieldNames(); + $object = new \CedricZiel\Baserow\Generated\Model\PaginationRowResponse(); if (null === $data || false === \is_array($data)) { return $object; } @@ -70,7 +70,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (\array_key_exists('results', $data)) { $values = []; foreach ($data['results'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNames::class, 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \CedricZiel\Baserow\Generated\Model\RowResponse::class, 'json', $context); } $object->setResults($values); unset($data['results']); @@ -106,11 +106,11 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return [\CedricZiel\Baserow\Generated\Model\PaginationSerializerExampleRowResponseSerializerWithUserFieldNames::class => false]; + return [\CedricZiel\Baserow\Generated\Model\PaginationRowResponse::class => false]; } } } else { - class PaginationSerializerExampleRowResponseSerializerWithUserFieldNamesNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + class PaginationRowResponseNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { use DenormalizerAwareTrait; use NormalizerAwareTrait; @@ -119,12 +119,12 @@ class PaginationSerializerExampleRowResponseSerializerWithUserFieldNamesNormaliz public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return \CedricZiel\Baserow\Generated\Model\PaginationSerializerExampleRowResponseSerializerWithUserFieldNames::class === $type; + return \CedricZiel\Baserow\Generated\Model\PaginationRowResponse::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return is_object($data) && \CedricZiel\Baserow\Generated\Model\PaginationSerializerExampleRowResponseSerializerWithUserFieldNames::class === get_class($data); + return is_object($data) && \CedricZiel\Baserow\Generated\Model\PaginationRowResponse::class === get_class($data); } public function denormalize($data, $type, $format = null, array $context = []) @@ -135,7 +135,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \CedricZiel\Baserow\Generated\Model\PaginationSerializerExampleRowResponseSerializerWithUserFieldNames(); + $object = new \CedricZiel\Baserow\Generated\Model\PaginationRowResponse(); if (null === $data || false === \is_array($data)) { return $object; } @@ -158,7 +158,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('results', $data)) { $values = []; foreach ($data['results'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNames::class, 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \CedricZiel\Baserow\Generated\Model\RowResponse::class, 'json', $context); } $object->setResults($values); unset($data['results']); @@ -197,7 +197,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return [\CedricZiel\Baserow\Generated\Model\PaginationSerializerExampleRowResponseSerializerWithUserFieldNames::class => false]; + return [\CedricZiel\Baserow\Generated\Model\PaginationRowResponse::class => false]; } } } diff --git a/generated/Normalizer/ExampleRowResponseSerializerWithUserFieldNamesField16Normalizer.php b/generated/Normalizer/PatchRowRequestNormalizer.php similarity index 61% rename from generated/Normalizer/ExampleRowResponseSerializerWithUserFieldNamesField16Normalizer.php rename to generated/Normalizer/PatchRowRequestNormalizer.php index 7e545c2..a4695ae 100644 --- a/generated/Normalizer/ExampleRowResponseSerializerWithUserFieldNamesField16Normalizer.php +++ b/generated/Normalizer/PatchRowRequestNormalizer.php @@ -22,7 +22,7 @@ use Symfony\Component\Serializer\Normalizer\NormalizerInterface; if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { - class ExampleRowResponseSerializerWithUserFieldNamesField16Normalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + class PatchRowRequestNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { use DenormalizerAwareTrait; use NormalizerAwareTrait; @@ -31,12 +31,12 @@ class ExampleRowResponseSerializerWithUserFieldNamesField16Normalizer implements public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNamesField16::class === $type; + return \CedricZiel\Baserow\Generated\Model\PatchRowRequest::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return is_object($data) && \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNamesField16::class === get_class($data); + return is_object($data) && \CedricZiel\Baserow\Generated\Model\PatchRowRequest::class === get_class($data); } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -47,22 +47,10 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNamesField16(); + $object = new \CedricZiel\Baserow\Generated\Model\PatchRowRequest(); if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data)) { - $object->setId($data['id']); - unset($data['id']); - } - if (\array_key_exists('value', $data)) { - $object->setValue($data['value']); - unset($data['value']); - } - if (\array_key_exists('color', $data)) { - $object->setColor($data['color']); - unset($data['color']); - } foreach ($data as $key => $value) { if (preg_match('/.*/', (string) $key)) { $object[$key] = $value; @@ -75,11 +63,6 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; - if ($object->isInitialized('id') && null !== $object->getId()) { - $data['id'] = $object->getId(); - } - $data['value'] = $object->getValue(); - $data['color'] = $object->getColor(); foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { $data[$key] = $value; @@ -91,11 +74,11 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return [\CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNamesField16::class => false]; + return [\CedricZiel\Baserow\Generated\Model\PatchRowRequest::class => false]; } } } else { - class ExampleRowResponseSerializerWithUserFieldNamesField16Normalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + class PatchRowRequestNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { use DenormalizerAwareTrait; use NormalizerAwareTrait; @@ -104,12 +87,12 @@ class ExampleRowResponseSerializerWithUserFieldNamesField16Normalizer implements public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNamesField16::class === $type; + return \CedricZiel\Baserow\Generated\Model\PatchRowRequest::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return is_object($data) && \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNamesField16::class === get_class($data); + return is_object($data) && \CedricZiel\Baserow\Generated\Model\PatchRowRequest::class === get_class($data); } public function denormalize($data, $type, $format = null, array $context = []) @@ -120,22 +103,10 @@ public function denormalize($data, $type, $format = null, array $context = []) if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNamesField16(); + $object = new \CedricZiel\Baserow\Generated\Model\PatchRowRequest(); if (null === $data || false === \is_array($data)) { return $object; } - if (\array_key_exists('id', $data)) { - $object->setId($data['id']); - unset($data['id']); - } - if (\array_key_exists('value', $data)) { - $object->setValue($data['value']); - unset($data['value']); - } - if (\array_key_exists('color', $data)) { - $object->setColor($data['color']); - unset($data['color']); - } foreach ($data as $key => $value) { if (preg_match('/.*/', (string) $key)) { $object[$key] = $value; @@ -151,11 +122,6 @@ public function denormalize($data, $type, $format = null, array $context = []) public function normalize($object, $format = null, array $context = []) { $data = []; - if ($object->isInitialized('id') && null !== $object->getId()) { - $data['id'] = $object->getId(); - } - $data['value'] = $object->getValue(); - $data['color'] = $object->getColor(); foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { $data[$key] = $value; @@ -167,7 +133,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return [\CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNamesField16::class => false]; + return [\CedricZiel\Baserow\Generated\Model\PatchRowRequest::class => false]; } } } diff --git a/generated/Normalizer/PatchedExampleBatchUpdateRowsRequestNormalizer.php b/generated/Normalizer/PatchRowsRequestNormalizer.php similarity index 82% rename from generated/Normalizer/PatchedExampleBatchUpdateRowsRequestNormalizer.php rename to generated/Normalizer/PatchRowsRequestNormalizer.php index cc76f52..709c891 100644 --- a/generated/Normalizer/PatchedExampleBatchUpdateRowsRequestNormalizer.php +++ b/generated/Normalizer/PatchRowsRequestNormalizer.php @@ -22,7 +22,7 @@ use Symfony\Component\Serializer\Normalizer\NormalizerInterface; if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { - class PatchedExampleBatchUpdateRowsRequestNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + class PatchRowsRequestNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { use DenormalizerAwareTrait; use NormalizerAwareTrait; @@ -31,12 +31,12 @@ class PatchedExampleBatchUpdateRowsRequestNormalizer implements DenormalizerInte public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return \CedricZiel\Baserow\Generated\Model\PatchedExampleBatchUpdateRowsRequest::class === $type; + return \CedricZiel\Baserow\Generated\Model\PatchRowsRequest::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return is_object($data) && \CedricZiel\Baserow\Generated\Model\PatchedExampleBatchUpdateRowsRequest::class === get_class($data); + return is_object($data) && \CedricZiel\Baserow\Generated\Model\PatchRowsRequest::class === get_class($data); } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -47,14 +47,14 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \CedricZiel\Baserow\Generated\Model\PatchedExampleBatchUpdateRowsRequest(); + $object = new \CedricZiel\Baserow\Generated\Model\PatchRowsRequest(); if (null === $data || false === \is_array($data)) { return $object; } if (\array_key_exists('items', $data)) { $values = []; foreach ($data['items'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \CedricZiel\Baserow\Generated\Model\ExampleBatchUpdateRowRequestSerializerWithUserFieldNames::class, 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \CedricZiel\Baserow\Generated\Model\BatchUpdateRow::class, 'json', $context); } $object->setItems($values); unset($data['items']); @@ -89,11 +89,11 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return [\CedricZiel\Baserow\Generated\Model\PatchedExampleBatchUpdateRowsRequest::class => false]; + return [\CedricZiel\Baserow\Generated\Model\PatchRowsRequest::class => false]; } } } else { - class PatchedExampleBatchUpdateRowsRequestNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + class PatchRowsRequestNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { use DenormalizerAwareTrait; use NormalizerAwareTrait; @@ -102,12 +102,12 @@ class PatchedExampleBatchUpdateRowsRequestNormalizer implements DenormalizerInte public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return \CedricZiel\Baserow\Generated\Model\PatchedExampleBatchUpdateRowsRequest::class === $type; + return \CedricZiel\Baserow\Generated\Model\PatchRowsRequest::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return is_object($data) && \CedricZiel\Baserow\Generated\Model\PatchedExampleBatchUpdateRowsRequest::class === get_class($data); + return is_object($data) && \CedricZiel\Baserow\Generated\Model\PatchRowsRequest::class === get_class($data); } public function denormalize($data, $type, $format = null, array $context = []) @@ -118,14 +118,14 @@ public function denormalize($data, $type, $format = null, array $context = []) if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \CedricZiel\Baserow\Generated\Model\PatchedExampleBatchUpdateRowsRequest(); + $object = new \CedricZiel\Baserow\Generated\Model\PatchRowsRequest(); if (null === $data || false === \is_array($data)) { return $object; } if (\array_key_exists('items', $data)) { $values = []; foreach ($data['items'] as $value) { - $values[] = $this->denormalizer->denormalize($value, \CedricZiel\Baserow\Generated\Model\ExampleBatchUpdateRowRequestSerializerWithUserFieldNames::class, 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \CedricZiel\Baserow\Generated\Model\BatchUpdateRow::class, 'json', $context); } $object->setItems($values); unset($data['items']); @@ -163,7 +163,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return [\CedricZiel\Baserow\Generated\Model\PatchedExampleBatchUpdateRowsRequest::class => false]; + return [\CedricZiel\Baserow\Generated\Model\PatchRowsRequest::class => false]; } } } diff --git a/generated/Normalizer/PatchedExampleUpdateRowRequestSerializerWithUserFieldNamesNormalizer.php b/generated/Normalizer/PatchedExampleUpdateRowRequestSerializerWithUserFieldNamesNormalizer.php deleted file mode 100644 index 94cd6fb..0000000 --- a/generated/Normalizer/PatchedExampleUpdateRowRequestSerializerWithUserFieldNamesNormalizer.php +++ /dev/null @@ -1,495 +0,0 @@ -= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { - class PatchedExampleUpdateRowRequestSerializerWithUserFieldNamesNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface - { - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - - public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool - { - return \CedricZiel\Baserow\Generated\Model\PatchedExampleUpdateRowRequestSerializerWithUserFieldNames::class === $type; - } - - public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool - { - return is_object($data) && \CedricZiel\Baserow\Generated\Model\PatchedExampleUpdateRowRequestSerializerWithUserFieldNames::class === get_class($data); - } - - public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); - } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); - } - $object = new \CedricZiel\Baserow\Generated\Model\PatchedExampleUpdateRowRequestSerializerWithUserFieldNames(); - if (\array_key_exists('field_13', $data) && \is_int($data['field_13'])) { - $data['field_13'] = (float) $data['field_13']; - } - if (null === $data || false === \is_array($data)) { - return $object; - } - if (\array_key_exists('field_1', $data) && null !== $data['field_1']) { - $object->setField1($data['field_1']); - unset($data['field_1']); - } elseif (\array_key_exists('field_1', $data) && null === $data['field_1']) { - $object->setField1(null); - } - if (\array_key_exists('field_2', $data) && null !== $data['field_2']) { - $object->setField2($data['field_2']); - unset($data['field_2']); - } elseif (\array_key_exists('field_2', $data) && null === $data['field_2']) { - $object->setField2(null); - } - if (\array_key_exists('field_3', $data) && null !== $data['field_3']) { - $object->setField3($data['field_3']); - unset($data['field_3']); - } elseif (\array_key_exists('field_3', $data) && null === $data['field_3']) { - $object->setField3(null); - } - if (\array_key_exists('field_4', $data) && null !== $data['field_4']) { - $object->setField4($data['field_4']); - unset($data['field_4']); - } elseif (\array_key_exists('field_4', $data) && null === $data['field_4']) { - $object->setField4(null); - } - if (\array_key_exists('field_5', $data) && null !== $data['field_5']) { - $object->setField5($data['field_5']); - unset($data['field_5']); - } elseif (\array_key_exists('field_5', $data) && null === $data['field_5']) { - $object->setField5(null); - } - if (\array_key_exists('field_6', $data)) { - $object->setField6($data['field_6']); - unset($data['field_6']); - } - if (\array_key_exists('field_7', $data)) { - $object->setField7($data['field_7']); - unset($data['field_7']); - } - if (\array_key_exists('field_8', $data) && null !== $data['field_8']) { - $object->setField8(\DateTime::createFromFormat('Y-m-d', $data['field_8'])->setTime(0, 0, 0)); - unset($data['field_8']); - } elseif (\array_key_exists('field_8', $data) && null === $data['field_8']) { - $object->setField8(null); - } - if (\array_key_exists('field_13', $data) && null !== $data['field_13']) { - $object->setField13($data['field_13']); - unset($data['field_13']); - } elseif (\array_key_exists('field_13', $data) && null === $data['field_13']) { - $object->setField13(null); - } - if (\array_key_exists('field_14', $data)) { - $values = []; - foreach ($data['field_14'] as $value) { - $values[] = $value; - } - $object->setField14($values); - unset($data['field_14']); - } - if (\array_key_exists('field_15', $data) && null !== $data['field_15']) { - $values_1 = []; - foreach ($data['field_15'] as $value_1) { - $values_1[] = $value_1; - } - $object->setField15($values_1); - unset($data['field_15']); - } elseif (\array_key_exists('field_15', $data) && null === $data['field_15']) { - $object->setField15(null); - } - if (\array_key_exists('field_16', $data) && null !== $data['field_16']) { - $object->setField16($data['field_16']); - unset($data['field_16']); - } elseif (\array_key_exists('field_16', $data) && null === $data['field_16']) { - $object->setField16(null); - } - if (\array_key_exists('field_17', $data)) { - $values_2 = []; - foreach ($data['field_17'] as $value_2) { - $values_2[] = $value_2; - } - $object->setField17($values_2); - unset($data['field_17']); - } - if (\array_key_exists('field_18', $data) && null !== $data['field_18']) { - $object->setField18($data['field_18']); - unset($data['field_18']); - } elseif (\array_key_exists('field_18', $data) && null === $data['field_18']) { - $object->setField18(null); - } - if (\array_key_exists('field_23', $data)) { - $values_3 = []; - foreach ($data['field_23'] as $value_3) { - $values_3[] = $this->denormalizer->denormalize($value_3, \CedricZiel\Baserow\Generated\Model\Collaborator::class, 'json', $context); - } - $object->setField23($values_3); - unset($data['field_23']); - } - if (\array_key_exists('field_26', $data) && null !== $data['field_26']) { - $object->setField26($data['field_26']); - unset($data['field_26']); - } elseif (\array_key_exists('field_26', $data) && null === $data['field_26']) { - $object->setField26(null); - } - if (\array_key_exists('field_27', $data) && null !== $data['field_27']) { - $object->setField27($data['field_27']); - unset($data['field_27']); - } elseif (\array_key_exists('field_27', $data) && null === $data['field_27']) { - $object->setField27(null); - } - foreach ($data as $key => $value_4) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value_4; - } - } - - return $object; - } - - public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null - { - $data = []; - if ($object->isInitialized('field1') && null !== $object->getField1()) { - $data['field_1'] = $object->getField1(); - } - if ($object->isInitialized('field2') && null !== $object->getField2()) { - $data['field_2'] = $object->getField2(); - } - if ($object->isInitialized('field3') && null !== $object->getField3()) { - $data['field_3'] = $object->getField3(); - } - if ($object->isInitialized('field4') && null !== $object->getField4()) { - $data['field_4'] = $object->getField4(); - } - if ($object->isInitialized('field5') && null !== $object->getField5()) { - $data['field_5'] = $object->getField5(); - } - if ($object->isInitialized('field6') && null !== $object->getField6()) { - $data['field_6'] = $object->getField6(); - } - if ($object->isInitialized('field7') && null !== $object->getField7()) { - $data['field_7'] = $object->getField7(); - } - if ($object->isInitialized('field8') && null !== $object->getField8()) { - $data['field_8'] = $object->getField8()->format('Y-m-d'); - } - if ($object->isInitialized('field13') && null !== $object->getField13()) { - $data['field_13'] = $object->getField13(); - } - if ($object->isInitialized('field14') && null !== $object->getField14()) { - $values = []; - foreach ($object->getField14() as $value) { - $values[] = $value; - } - $data['field_14'] = $values; - } - if ($object->isInitialized('field15') && null !== $object->getField15()) { - $values_1 = []; - foreach ($object->getField15() as $value_1) { - $values_1[] = $value_1; - } - $data['field_15'] = $values_1; - } - if ($object->isInitialized('field16') && null !== $object->getField16()) { - $data['field_16'] = $object->getField16(); - } - if ($object->isInitialized('field17') && null !== $object->getField17()) { - $values_2 = []; - foreach ($object->getField17() as $value_2) { - $values_2[] = $value_2; - } - $data['field_17'] = $values_2; - } - if ($object->isInitialized('field18') && null !== $object->getField18()) { - $data['field_18'] = $object->getField18(); - } - if ($object->isInitialized('field23') && null !== $object->getField23()) { - $values_3 = []; - foreach ($object->getField23() as $value_3) { - $values_3[] = $this->normalizer->normalize($value_3, 'json', $context); - } - $data['field_23'] = $values_3; - } - if ($object->isInitialized('field26') && null !== $object->getField26()) { - $data['field_26'] = $object->getField26(); - } - if ($object->isInitialized('field27') && null !== $object->getField27()) { - $data['field_27'] = $object->getField27(); - } - foreach ($object as $key => $value_4) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value_4; - } - } - - return $data; - } - - public function getSupportedTypes(?string $format = null): array - { - return [\CedricZiel\Baserow\Generated\Model\PatchedExampleUpdateRowRequestSerializerWithUserFieldNames::class => false]; - } - } -} else { - class PatchedExampleUpdateRowRequestSerializerWithUserFieldNamesNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface - { - use DenormalizerAwareTrait; - use NormalizerAwareTrait; - use CheckArray; - use ValidatorTrait; - - public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool - { - return \CedricZiel\Baserow\Generated\Model\PatchedExampleUpdateRowRequestSerializerWithUserFieldNames::class === $type; - } - - public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool - { - return is_object($data) && \CedricZiel\Baserow\Generated\Model\PatchedExampleUpdateRowRequestSerializerWithUserFieldNames::class === get_class($data); - } - - public function denormalize($data, $type, $format = null, array $context = []) - { - if (isset($data['$ref'])) { - return new Reference($data['$ref'], $context['document-origin']); - } - if (isset($data['$recursiveRef'])) { - return new Reference($data['$recursiveRef'], $context['document-origin']); - } - $object = new \CedricZiel\Baserow\Generated\Model\PatchedExampleUpdateRowRequestSerializerWithUserFieldNames(); - if (\array_key_exists('field_13', $data) && \is_int($data['field_13'])) { - $data['field_13'] = (float) $data['field_13']; - } - if (null === $data || false === \is_array($data)) { - return $object; - } - if (\array_key_exists('field_1', $data) && null !== $data['field_1']) { - $object->setField1($data['field_1']); - unset($data['field_1']); - } elseif (\array_key_exists('field_1', $data) && null === $data['field_1']) { - $object->setField1(null); - } - if (\array_key_exists('field_2', $data) && null !== $data['field_2']) { - $object->setField2($data['field_2']); - unset($data['field_2']); - } elseif (\array_key_exists('field_2', $data) && null === $data['field_2']) { - $object->setField2(null); - } - if (\array_key_exists('field_3', $data) && null !== $data['field_3']) { - $object->setField3($data['field_3']); - unset($data['field_3']); - } elseif (\array_key_exists('field_3', $data) && null === $data['field_3']) { - $object->setField3(null); - } - if (\array_key_exists('field_4', $data) && null !== $data['field_4']) { - $object->setField4($data['field_4']); - unset($data['field_4']); - } elseif (\array_key_exists('field_4', $data) && null === $data['field_4']) { - $object->setField4(null); - } - if (\array_key_exists('field_5', $data) && null !== $data['field_5']) { - $object->setField5($data['field_5']); - unset($data['field_5']); - } elseif (\array_key_exists('field_5', $data) && null === $data['field_5']) { - $object->setField5(null); - } - if (\array_key_exists('field_6', $data)) { - $object->setField6($data['field_6']); - unset($data['field_6']); - } - if (\array_key_exists('field_7', $data)) { - $object->setField7($data['field_7']); - unset($data['field_7']); - } - if (\array_key_exists('field_8', $data) && null !== $data['field_8']) { - $object->setField8(\DateTime::createFromFormat('Y-m-d', $data['field_8'])->setTime(0, 0, 0)); - unset($data['field_8']); - } elseif (\array_key_exists('field_8', $data) && null === $data['field_8']) { - $object->setField8(null); - } - if (\array_key_exists('field_13', $data) && null !== $data['field_13']) { - $object->setField13($data['field_13']); - unset($data['field_13']); - } elseif (\array_key_exists('field_13', $data) && null === $data['field_13']) { - $object->setField13(null); - } - if (\array_key_exists('field_14', $data)) { - $values = []; - foreach ($data['field_14'] as $value) { - $values[] = $value; - } - $object->setField14($values); - unset($data['field_14']); - } - if (\array_key_exists('field_15', $data) && null !== $data['field_15']) { - $values_1 = []; - foreach ($data['field_15'] as $value_1) { - $values_1[] = $value_1; - } - $object->setField15($values_1); - unset($data['field_15']); - } elseif (\array_key_exists('field_15', $data) && null === $data['field_15']) { - $object->setField15(null); - } - if (\array_key_exists('field_16', $data) && null !== $data['field_16']) { - $object->setField16($data['field_16']); - unset($data['field_16']); - } elseif (\array_key_exists('field_16', $data) && null === $data['field_16']) { - $object->setField16(null); - } - if (\array_key_exists('field_17', $data)) { - $values_2 = []; - foreach ($data['field_17'] as $value_2) { - $values_2[] = $value_2; - } - $object->setField17($values_2); - unset($data['field_17']); - } - if (\array_key_exists('field_18', $data) && null !== $data['field_18']) { - $object->setField18($data['field_18']); - unset($data['field_18']); - } elseif (\array_key_exists('field_18', $data) && null === $data['field_18']) { - $object->setField18(null); - } - if (\array_key_exists('field_23', $data)) { - $values_3 = []; - foreach ($data['field_23'] as $value_3) { - $values_3[] = $this->denormalizer->denormalize($value_3, \CedricZiel\Baserow\Generated\Model\Collaborator::class, 'json', $context); - } - $object->setField23($values_3); - unset($data['field_23']); - } - if (\array_key_exists('field_26', $data) && null !== $data['field_26']) { - $object->setField26($data['field_26']); - unset($data['field_26']); - } elseif (\array_key_exists('field_26', $data) && null === $data['field_26']) { - $object->setField26(null); - } - if (\array_key_exists('field_27', $data) && null !== $data['field_27']) { - $object->setField27($data['field_27']); - unset($data['field_27']); - } elseif (\array_key_exists('field_27', $data) && null === $data['field_27']) { - $object->setField27(null); - } - foreach ($data as $key => $value_4) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value_4; - } - } - - return $object; - } - - /** - * @return array|string|int|float|bool|\ArrayObject|null - */ - public function normalize($object, $format = null, array $context = []) - { - $data = []; - if ($object->isInitialized('field1') && null !== $object->getField1()) { - $data['field_1'] = $object->getField1(); - } - if ($object->isInitialized('field2') && null !== $object->getField2()) { - $data['field_2'] = $object->getField2(); - } - if ($object->isInitialized('field3') && null !== $object->getField3()) { - $data['field_3'] = $object->getField3(); - } - if ($object->isInitialized('field4') && null !== $object->getField4()) { - $data['field_4'] = $object->getField4(); - } - if ($object->isInitialized('field5') && null !== $object->getField5()) { - $data['field_5'] = $object->getField5(); - } - if ($object->isInitialized('field6') && null !== $object->getField6()) { - $data['field_6'] = $object->getField6(); - } - if ($object->isInitialized('field7') && null !== $object->getField7()) { - $data['field_7'] = $object->getField7(); - } - if ($object->isInitialized('field8') && null !== $object->getField8()) { - $data['field_8'] = $object->getField8()->format('Y-m-d'); - } - if ($object->isInitialized('field13') && null !== $object->getField13()) { - $data['field_13'] = $object->getField13(); - } - if ($object->isInitialized('field14') && null !== $object->getField14()) { - $values = []; - foreach ($object->getField14() as $value) { - $values[] = $value; - } - $data['field_14'] = $values; - } - if ($object->isInitialized('field15') && null !== $object->getField15()) { - $values_1 = []; - foreach ($object->getField15() as $value_1) { - $values_1[] = $value_1; - } - $data['field_15'] = $values_1; - } - if ($object->isInitialized('field16') && null !== $object->getField16()) { - $data['field_16'] = $object->getField16(); - } - if ($object->isInitialized('field17') && null !== $object->getField17()) { - $values_2 = []; - foreach ($object->getField17() as $value_2) { - $values_2[] = $value_2; - } - $data['field_17'] = $values_2; - } - if ($object->isInitialized('field18') && null !== $object->getField18()) { - $data['field_18'] = $object->getField18(); - } - if ($object->isInitialized('field23') && null !== $object->getField23()) { - $values_3 = []; - foreach ($object->getField23() as $value_3) { - $values_3[] = $this->normalizer->normalize($value_3, 'json', $context); - } - $data['field_23'] = $values_3; - } - if ($object->isInitialized('field26') && null !== $object->getField26()) { - $data['field_26'] = $object->getField26(); - } - if ($object->isInitialized('field27') && null !== $object->getField27()) { - $data['field_27'] = $object->getField27(); - } - foreach ($object as $key => $value_4) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value_4; - } - } - - return $data; - } - - public function getSupportedTypes(?string $format = null): array - { - return [\CedricZiel\Baserow\Generated\Model\PatchedExampleUpdateRowRequestSerializerWithUserFieldNames::class => false]; - } - } -} diff --git a/generated/Normalizer/ExampleRowResponseSerializerWithUserFieldNamesField10Normalizer.php b/generated/Normalizer/RowResponseNormalizer.php similarity index 75% rename from generated/Normalizer/ExampleRowResponseSerializerWithUserFieldNamesField10Normalizer.php rename to generated/Normalizer/RowResponseNormalizer.php index 5ac2795..24d95b3 100644 --- a/generated/Normalizer/ExampleRowResponseSerializerWithUserFieldNamesField10Normalizer.php +++ b/generated/Normalizer/RowResponseNormalizer.php @@ -22,7 +22,7 @@ use Symfony\Component\Serializer\Normalizer\NormalizerInterface; if (!class_exists(Kernel::class) or (Kernel::MAJOR_VERSION >= 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { - class ExampleRowResponseSerializerWithUserFieldNamesField10Normalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + class RowResponseNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { use DenormalizerAwareTrait; use NormalizerAwareTrait; @@ -31,12 +31,12 @@ class ExampleRowResponseSerializerWithUserFieldNamesField10Normalizer implements public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNamesField10::class === $type; + return \CedricZiel\Baserow\Generated\Model\RowResponse::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return is_object($data) && \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNamesField10::class === get_class($data); + return is_object($data) && \CedricZiel\Baserow\Generated\Model\RowResponse::class === get_class($data); } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -47,7 +47,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNamesField10(); + $object = new \CedricZiel\Baserow\Generated\Model\RowResponse(); if (null === $data || false === \is_array($data)) { return $object; } @@ -55,9 +55,9 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setId($data['id']); unset($data['id']); } - if (\array_key_exists('name', $data)) { - $object->setName($data['name']); - unset($data['name']); + if (\array_key_exists('order', $data)) { + $object->setOrder($data['order']); + unset($data['order']); } foreach ($data as $key => $value) { if (preg_match('/.*/', (string) $key)) { @@ -72,6 +72,9 @@ public function normalize(mixed $object, ?string $format = null, array $context { $data = []; $data['id'] = $object->getId(); + if ($object->isInitialized('order') && null !== $object->getOrder()) { + $data['order'] = $object->getOrder(); + } foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { $data[$key] = $value; @@ -83,11 +86,11 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return [\CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNamesField10::class => false]; + return [\CedricZiel\Baserow\Generated\Model\RowResponse::class => false]; } } } else { - class ExampleRowResponseSerializerWithUserFieldNamesField10Normalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + class RowResponseNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface { use DenormalizerAwareTrait; use NormalizerAwareTrait; @@ -96,12 +99,12 @@ class ExampleRowResponseSerializerWithUserFieldNamesField10Normalizer implements public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNamesField10::class === $type; + return \CedricZiel\Baserow\Generated\Model\RowResponse::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return is_object($data) && \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNamesField10::class === get_class($data); + return is_object($data) && \CedricZiel\Baserow\Generated\Model\RowResponse::class === get_class($data); } public function denormalize($data, $type, $format = null, array $context = []) @@ -112,7 +115,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (isset($data['$recursiveRef'])) { return new Reference($data['$recursiveRef'], $context['document-origin']); } - $object = new \CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNamesField10(); + $object = new \CedricZiel\Baserow\Generated\Model\RowResponse(); if (null === $data || false === \is_array($data)) { return $object; } @@ -120,9 +123,9 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setId($data['id']); unset($data['id']); } - if (\array_key_exists('name', $data)) { - $object->setName($data['name']); - unset($data['name']); + if (\array_key_exists('order', $data)) { + $object->setOrder($data['order']); + unset($data['order']); } foreach ($data as $key => $value) { if (preg_match('/.*/', (string) $key)) { @@ -140,6 +143,9 @@ public function normalize($object, $format = null, array $context = []) { $data = []; $data['id'] = $object->getId(); + if ($object->isInitialized('order') && null !== $object->getOrder()) { + $data['order'] = $object->getOrder(); + } foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { $data[$key] = $value; @@ -151,7 +157,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return [\CedricZiel\Baserow\Generated\Model\ExampleRowResponseSerializerWithUserFieldNamesField10::class => false]; + return [\CedricZiel\Baserow\Generated\Model\RowResponse::class => false]; } } } diff --git a/openapi.json b/openapi.json index 0ea8379..d45e05c 100644 --- a/openapi.json +++ b/openapi.json @@ -9823,7 +9823,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PaginationSerializerExampleRowResponseSerializerWithUserFieldNames" + "$ref": "#/components/schemas/PaginationRowResponse" } } }, @@ -10024,7 +10024,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ExampleRowResponseSerializerWithUserFieldNames" + "$ref": "#/components/schemas/RowResponse" } } }, @@ -10183,7 +10183,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ExampleRowResponseSerializerWithUserFieldNames" + "$ref": "#/components/schemas/RowResponse" } } }, @@ -10348,17 +10348,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PatchedExampleUpdateRowRequestSerializerWithUserFieldNames" + "$ref": "#/components/schemas/PatchRowRequest" } }, "application/x-www-form-urlencoded": { "schema": { - "$ref": "#/components/schemas/PatchedExampleUpdateRowRequestSerializerWithUserFieldNames" + "$ref": "#/components/schemas/PatchRowRequest" } }, "multipart/form-data": { "schema": { - "$ref": "#/components/schemas/PatchedExampleUpdateRowRequestSerializerWithUserFieldNames" + "$ref": "#/components/schemas/PatchRowRequest" } } } @@ -10376,7 +10376,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ExampleRowResponseSerializerWithUserFieldNames" + "$ref": "#/components/schemas/RowResponse" } } }, @@ -10689,7 +10689,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ExampleRowResponseSerializerWithUserFieldNames" + "$ref": "#/components/schemas/RowResponse" } } }, @@ -10976,7 +10976,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ExampleRowResponseSerializerWithUserFieldNames" + "$ref": "#/components/schemas/RowResponse" } } }, @@ -11328,17 +11328,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PatchedExampleBatchUpdateRowsRequest" + "$ref": "#/components/schemas/PatchRowsRequest" } }, "application/x-www-form-urlencoded": { "schema": { - "$ref": "#/components/schemas/PatchedExampleBatchUpdateRowsRequest" + "$ref": "#/components/schemas/PatchRowsRequest" } }, "multipart/form-data": { "schema": { - "$ref": "#/components/schemas/PatchedExampleBatchUpdateRowsRequest" + "$ref": "#/components/schemas/PatchRowsRequest" } } } @@ -42833,7 +42833,7 @@ "items": { "type": "array", "items": { - "$ref": "#/components/schemas/ExampleRowResponseSerializerWithUserFieldNames" + "$ref": "#/components/schemas/RowResponse" }, "maxItems": 200, "minItems": 1 @@ -42843,13 +42843,16 @@ "items" ] }, - "ExampleBatchUpdateRowRequestSerializerWithUserFieldNames": { + "BatchUpdateRow": { "type": "object", "properties": { "id": { "type": "integer", "description": "The unique identifier of the row in the table." - }, + } + }, + "additionalProperties": true, + "example" : { "field_1": { "type": "string", "nullable": true, @@ -43343,7 +43346,7 @@ "id" ] }, - "ExampleRowResponseSerializerWithUserFieldNames": { + "RowResponse": { "type": "object", "properties": { "id": { @@ -43355,7 +43358,13 @@ "format": "decimal", "pattern": "^-?\\d{0,20}(?:\\.\\d{0,20})?$", "description": "Indicates the position of the row, lowest first and highest last." - }, + } + }, + "required": [ + "id" + ], + "additionalProperties": true, + "example": { "field_1": { "type": "string", "nullable": true, @@ -43516,10 +43525,7 @@ "nullable": true, "description": "This field represents the `ai` field. The number in field_27 is in a normal request or response the id of the field. If the GET parameter `user_field_names` is provided then the key will instead be the actual name of the field. Holds a text value that is generated by a generative AI model using a dynamic prompt." } - }, - "required": [ - "id" - ] + } }, "Export": { "oneOf": [ @@ -57704,7 +57710,7 @@ "results" ] }, - "PaginationSerializerExampleRowResponseSerializerWithUserFieldNames": { + "PaginationRowResponse": { "type": "object", "properties": { "count": { @@ -57726,7 +57732,7 @@ "results": { "type": "array", "items": { - "$ref": "#/components/schemas/ExampleRowResponseSerializerWithUserFieldNames" + "$ref": "#/components/schemas/RowResponse" } } }, @@ -58677,22 +58683,24 @@ } ] }, - "PatchedExampleBatchUpdateRowsRequest": { + "PatchRowsRequest": { "type": "object", "properties": { "items": { "type": "array", "items": { - "$ref": "#/components/schemas/ExampleBatchUpdateRowRequestSerializerWithUserFieldNames" + "$ref": "#/components/schemas/BatchUpdateRow" }, "maxItems": 200, "minItems": 1 } } }, - "PatchedExampleUpdateRowRequestSerializerWithUserFieldNames": { + "PatchRowRequest": { "type": "object", - "properties": { + "additionalProperties": true, + "properties": {}, + "example": { "field_1": { "type": "string", "nullable": true,