Skip to content

fix: remove demo content from create rows example #22

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions generated/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -1948,7 +1948,7 @@ public function listDatabaseTableRows(int $tableId, array $queryParameters = [],
* @throws Exception\CreateDatabaseTableRowUnauthorizedException
* @throws Exception\CreateDatabaseTableRowNotFoundException
*/
public function createDatabaseTableRow(int $tableId, ?Model\ExampleRowRequestSerializerWithUserFieldNames $requestBody = null, array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT)
public function createDatabaseTableRow(int $tableId, ?Model\CreateRowRequest $requestBody = null, array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new Endpoint\CreateDatabaseTableRow($tableId, $requestBody, $queryParameters, $headerParameters), $fetch);
}
Expand Down Expand Up @@ -2161,7 +2161,7 @@ public function batchUpdateDatabaseTableRows(int $tableId, ?Model\PatchRowsReque
* @throws Exception\BatchCreateDatabaseTableRowsUnauthorizedException
* @throws Exception\BatchCreateDatabaseTableRowsNotFoundException
*/
public function batchCreateDatabaseTableRows(int $tableId, Model\ExampleBatchRowsRequest $requestBody, array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT)
public function batchCreateDatabaseTableRows(int $tableId, Model\BatchCreateRowRequest $requestBody, array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT)
{
return $this->executeEndpoint(new Endpoint\BatchCreateDatabaseTableRows($tableId, $requestBody, $queryParameters, $headerParameters), $fetch);
}
Expand Down
8 changes: 4 additions & 4 deletions generated/Endpoint/BatchCreateDatabaseTableRows.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class BatchCreateDatabaseTableRows 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\ExampleBatchRowsRequest $requestBody, array $queryParameters = [], array $headerParameters = [])
public function __construct(int $tableId, \CedricZiel\Baserow\Generated\Model\BatchCreateRowRequest $requestBody, array $queryParameters = [], array $headerParameters = [])
{
$this->table_id = $tableId;
$this->body = $requestBody;
Expand All @@ -52,13 +52,13 @@ public function getUri(): string

public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
{
if ($this->body instanceof \CedricZiel\Baserow\Generated\Model\ExampleBatchRowsRequest) {
if ($this->body instanceof \CedricZiel\Baserow\Generated\Model\BatchCreateRowRequest) {
return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')];
}
if ($this->body instanceof \CedricZiel\Baserow\Generated\Model\ExampleBatchRowsRequest) {
if ($this->body instanceof \CedricZiel\Baserow\Generated\Model\BatchCreateRowRequest) {
return [['Content-Type' => ['application/x-www-form-urlencoded']], http_build_query($serializer->normalize($this->body, 'json'))];
}
if ($this->body instanceof \CedricZiel\Baserow\Generated\Model\ExampleBatchRowsRequest) {
if ($this->body instanceof \CedricZiel\Baserow\Generated\Model\BatchCreateRowRequest) {
$bodyBuilder = new \Http\Message\MultipartStream\MultipartStreamBuilder($streamFactory);
$formParameters = $serializer->normalize($this->body, 'json');
foreach ($formParameters as $key => $value) {
Expand Down
8 changes: 4 additions & 4 deletions generated/Endpoint/CreateDatabaseTableRow.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class CreateDatabaseTableRow 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 $tableId, ?\CedricZiel\Baserow\Generated\Model\ExampleRowRequestSerializerWithUserFieldNames $requestBody = null, array $queryParameters = [], array $headerParameters = [])
public function __construct(int $tableId, ?\CedricZiel\Baserow\Generated\Model\CreateRowRequest $requestBody = null, array $queryParameters = [], array $headerParameters = [])
{
$this->table_id = $tableId;
$this->body = $requestBody;
Expand All @@ -51,13 +51,13 @@ public function getUri(): string

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

namespace CedricZiel\Baserow\Generated\Model;

class ExampleBatchRowsRequest extends \ArrayObject
class BatchCreateRowRequest extends \ArrayObject
{
/**
* @var array
Expand All @@ -22,20 +22,20 @@ public function isInitialized($property): bool
return array_key_exists($property, $this->initialized);
}
/**
* @var list<ExampleRowRequestSerializerWithUserFieldNames>
* @var list<CreateRowRequest>
*/
protected $items;

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

/**
* @param list<ExampleRowRequestSerializerWithUserFieldNames> $items
* @param list<CreateRowRequest> $items
*/
public function setItems(array $items): self
{
Expand Down
24 changes: 24 additions & 0 deletions generated/Model/CreateRowRequest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

declare(strict_types=1);

/*
* This file has been auto generated by Jane,
*
* Do no edit it directly.
*/

namespace CedricZiel\Baserow\Generated\Model;

class CreateRowRequest extends \ArrayObject
{
/**
* @var array
*/
protected $initialized = [];

public function isInitialized($property): bool
{
return array_key_exists($property, $this->initialized);
}
}
Loading