Skip to content

Commit 960746c

Browse files
authored
fix: remove demo content from create rows example (#22)
* fix: remove demo content from create rows example * fix: remove demo content from create rows example
1 parent 18947ae commit 960746c

11 files changed

+209
-1004
lines changed

generated/Client.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1948,7 +1948,7 @@ public function listDatabaseTableRows(int $tableId, array $queryParameters = [],
19481948
* @throws Exception\CreateDatabaseTableRowUnauthorizedException
19491949
* @throws Exception\CreateDatabaseTableRowNotFoundException
19501950
*/
1951-
public function createDatabaseTableRow(int $tableId, ?Model\ExampleRowRequestSerializerWithUserFieldNames $requestBody = null, array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT)
1951+
public function createDatabaseTableRow(int $tableId, ?Model\CreateRowRequest $requestBody = null, array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT)
19521952
{
19531953
return $this->executeEndpoint(new Endpoint\CreateDatabaseTableRow($tableId, $requestBody, $queryParameters, $headerParameters), $fetch);
19541954
}
@@ -2161,7 +2161,7 @@ public function batchUpdateDatabaseTableRows(int $tableId, ?Model\PatchRowsReque
21612161
* @throws Exception\BatchCreateDatabaseTableRowsUnauthorizedException
21622162
* @throws Exception\BatchCreateDatabaseTableRowsNotFoundException
21632163
*/
2164-
public function batchCreateDatabaseTableRows(int $tableId, Model\ExampleBatchRowsRequest $requestBody, array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT)
2164+
public function batchCreateDatabaseTableRows(int $tableId, Model\BatchCreateRowRequest $requestBody, array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT)
21652165
{
21662166
return $this->executeEndpoint(new Endpoint\BatchCreateDatabaseTableRows($tableId, $requestBody, $queryParameters, $headerParameters), $fetch);
21672167
}

generated/Endpoint/BatchCreateDatabaseTableRows.php

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

5353
public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
5454
{
55-
if ($this->body instanceof \CedricZiel\Baserow\Generated\Model\ExampleBatchRowsRequest) {
55+
if ($this->body instanceof \CedricZiel\Baserow\Generated\Model\BatchCreateRowRequest) {
5656
return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')];
5757
}
58-
if ($this->body instanceof \CedricZiel\Baserow\Generated\Model\ExampleBatchRowsRequest) {
58+
if ($this->body instanceof \CedricZiel\Baserow\Generated\Model\BatchCreateRowRequest) {
5959
return [['Content-Type' => ['application/x-www-form-urlencoded']], http_build_query($serializer->normalize($this->body, 'json'))];
6060
}
61-
if ($this->body instanceof \CedricZiel\Baserow\Generated\Model\ExampleBatchRowsRequest) {
61+
if ($this->body instanceof \CedricZiel\Baserow\Generated\Model\BatchCreateRowRequest) {
6262
$bodyBuilder = new \Http\Message\MultipartStream\MultipartStreamBuilder($streamFactory);
6363
$formParameters = $serializer->normalize($this->body, 'json');
6464
foreach ($formParameters as $key => $value) {

generated/Endpoint/CreateDatabaseTableRow.php

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

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

generated/Model/ExampleBatchRowsRequest.php renamed to generated/Model/BatchCreateRowRequest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
namespace CedricZiel\Baserow\Generated\Model;
1212

13-
class ExampleBatchRowsRequest extends \ArrayObject
13+
class BatchCreateRowRequest extends \ArrayObject
1414
{
1515
/**
1616
* @var array
@@ -22,20 +22,20 @@ public function isInitialized($property): bool
2222
return array_key_exists($property, $this->initialized);
2323
}
2424
/**
25-
* @var list<ExampleRowRequestSerializerWithUserFieldNames>
25+
* @var list<CreateRowRequest>
2626
*/
2727
protected $items;
2828

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

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

generated/Model/CreateRowRequest.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
/*
6+
* This file has been auto generated by Jane,
7+
*
8+
* Do no edit it directly.
9+
*/
10+
11+
namespace CedricZiel\Baserow\Generated\Model;
12+
13+
class CreateRowRequest extends \ArrayObject
14+
{
15+
/**
16+
* @var array
17+
*/
18+
protected $initialized = [];
19+
20+
public function isInitialized($property): bool
21+
{
22+
return array_key_exists($property, $this->initialized);
23+
}
24+
}

0 commit comments

Comments
 (0)