Skip to content

Commit

Permalink
Update OpenAPI.
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianStehle committed Sep 20, 2023
1 parent ac4e7a9 commit c90bb5b
Show file tree
Hide file tree
Showing 26 changed files with 9,442 additions and 4,029 deletions.
7 changes: 5 additions & 2 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ lib/Model/AppDto.php
lib/Model/AppLanguageDto.php
lib/Model/AppLanguagesDto.php
lib/Model/AppSettingsDto.php
lib/Model/ArrayCalculatedDefaultValue.php
lib/Model/ArrayFieldPropertiesDto.php
lib/Model/AskDto.php
lib/Model/AssetChangedRuleTriggerDto.php
lib/Model/AssetDto.php
lib/Model/AssetFolderDto.php
Expand Down Expand Up @@ -96,6 +98,7 @@ lib/Model/CurrentStorageDto.php
lib/Model/DateTimeCalculatedDefaultValue.php
lib/Model/DateTimeFieldEditor.php
lib/Model/DateTimeFieldPropertiesDto.php
lib/Model/DeepDetectRuleActionDto.php
lib/Model/DiscourseRuleActionDto.php
lib/Model/EditorDto.php
lib/Model/ElasticSearchRuleActionDto.php
Expand Down Expand Up @@ -195,18 +198,18 @@ lib/Model/TemplatesDto.php
lib/Model/TransferToTeamDto.php
lib/Model/TranslateDto.php
lib/Model/TranslationDto.php
lib/Model/TranslationResultCode.php
lib/Model/TranslationStatus.php
lib/Model/TweetRuleActionDto.php
lib/Model/TypesenseRuleActionDto.php
lib/Model/UIFieldEditor.php
lib/Model/UIFieldPropertiesDto.php
lib/Model/UISettingsDto.php
lib/Model/UpdateAppDto.php
lib/Model/UpdateAppSettingsDto.php
lib/Model/UpdateAssetScriptsDto.php
lib/Model/UpdateClientDto.php
lib/Model/UpdateFieldDto.php
lib/Model/UpdateLanguageDto.php
lib/Model/UpdateProfileDto.php
lib/Model/UpdateRoleDto.php
lib/Model/UpdateRuleDto.php
lib/Model/UpdateSchemaDto.php
Expand Down
768 changes: 448 additions & 320 deletions lib/Api/AppsApi.php

Large diffs are not rendered by default.

480 changes: 291 additions & 189 deletions lib/Api/AssetsApi.php

Large diffs are not rendered by default.

119 changes: 70 additions & 49 deletions lib/Api/BackupsApi.php

Large diffs are not rendered by default.

120 changes: 70 additions & 50 deletions lib/Api/CommentsApi.php

Large diffs are not rendered by default.

2,496 changes: 2,246 additions & 250 deletions lib/Api/ContentsApi.php

Large diffs are not rendered by default.

24 changes: 14 additions & 10 deletions lib/Api/HistoryApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,16 +127,17 @@ public function getConfig()
*
* Get historical events.
*
* @param string $app The name of the app. (required)
* @param string $channel The name of the channel. (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAppHistory'] to see the possible values for this operation
*
* @throws \Squidex\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return \Squidex\Client\Model\HistoryEventDto[]|\Squidex\Client\Model\ErrorDto
*/
public function getAppHistory($channel = null, string $contentType = self::contentTypes['getAppHistory'][0])
public function getAppHistory($app, $channel = null, string $contentType = self::contentTypes['getAppHistory'][0])
{
list($response) = $this->getAppHistoryWithHttpInfo($channel, $contentType);
list($response) = $this->getAppHistoryWithHttpInfo($app, $channel, $contentType);
return $response;
}

Expand All @@ -145,16 +146,17 @@ public function getAppHistory($channel = null, string $contentType = self::conte
*
* Get historical events.
*
* @param string $app The name of the app. (required)
* @param string $channel The name of the channel. (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAppHistory'] to see the possible values for this operation
*
* @throws \Squidex\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return array of \Squidex\Client\Model\HistoryEventDto[]|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings)
*/
public function getAppHistoryWithHttpInfo($channel = null, string $contentType = self::contentTypes['getAppHistory'][0])
public function getAppHistoryWithHttpInfo($app, $channel = null, string $contentType = self::contentTypes['getAppHistory'][0])
{
$request = $this->getAppHistoryRequest($channel, $contentType);
$request = $this->getAppHistoryRequest($app, $channel, $contentType);

try {
$options = $this->createHttpClientOption();
Expand Down Expand Up @@ -268,15 +270,16 @@ public function getAppHistoryWithHttpInfo($channel = null, string $contentType =
*
* Get historical events.
*
* @param string $app The name of the app. (required)
* @param string $channel The name of the channel. (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAppHistory'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
public function getAppHistoryAsync($channel = null, string $contentType = self::contentTypes['getAppHistory'][0])
public function getAppHistoryAsync($app, $channel = null, string $contentType = self::contentTypes['getAppHistory'][0])
{
return $this->getAppHistoryAsyncWithHttpInfo($channel, $contentType)
return $this->getAppHistoryAsyncWithHttpInfo($app, $channel, $contentType)
->then(
function ($response) {
return $response[0];
Expand All @@ -289,16 +292,17 @@ function ($response) {
*
* Get historical events.
*
* @param string $app The name of the app. (required)
* @param string $channel The name of the channel. (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAppHistory'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
public function getAppHistoryAsyncWithHttpInfo($channel = null, string $contentType = self::contentTypes['getAppHistory'][0])
public function getAppHistoryAsyncWithHttpInfo($app, $channel = null, string $contentType = self::contentTypes['getAppHistory'][0])
{
$returnType = '\Squidex\Client\Model\HistoryEventDto[]';
$request = $this->getAppHistoryRequest($channel, $contentType);
$request = $this->getAppHistoryRequest($app, $channel, $contentType);

return $this->client
->sendAsync($request, $this->createHttpClientOption())
Expand Down Expand Up @@ -339,17 +343,17 @@ function ($exception) {
/**
* Create request for operation 'getAppHistory'
*
* @param string $app The name of the app. (required)
* @param string $channel The name of the channel. (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAppHistory'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
public function getAppHistoryRequest($channel = null, string $contentType = self::contentTypes['getAppHistory'][0])
public function getAppHistoryRequest($app, $channel = null, string $contentType = self::contentTypes['getAppHistory'][0])
{

// verify the required parameter 'app' is set
$app = $this->config->getAppName();
if ($app === null || (is_array($app) && count($app) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $app when calling '
Expand Down
24 changes: 14 additions & 10 deletions lib/Api/PingApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,31 +130,33 @@ public function getConfig()
*
* Get ping status.
*
* @param string $app The name of the app. (required)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAppPing'] to see the possible values for this operation
*
* @throws \Squidex\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return void
*/
public function getAppPing(string $contentType = self::contentTypes['getAppPing'][0])
public function getAppPing($app, string $contentType = self::contentTypes['getAppPing'][0])
{
$this->getAppPingWithHttpInfo($contentType);
$this->getAppPingWithHttpInfo($app, $contentType);
}

/**
* Operation getAppPingWithHttpInfo
*
* Get ping status.
*
* @param string $app The name of the app. (required)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAppPing'] to see the possible values for this operation
*
* @throws \Squidex\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return array of null, HTTP status code, HTTP response headers (array of strings)
*/
public function getAppPingWithHttpInfo(string $contentType = self::contentTypes['getAppPing'][0])
public function getAppPingWithHttpInfo($app, string $contentType = self::contentTypes['getAppPing'][0])
{
$request = $this->getAppPingRequest($contentType);
$request = $this->getAppPingRequest($app, $contentType);

try {
$options = $this->createHttpClientOption();
Expand Down Expand Up @@ -213,14 +215,15 @@ public function getAppPingWithHttpInfo(string $contentType = self::contentTypes[
*
* Get ping status.
*
* @param string $app The name of the app. (required)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAppPing'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
public function getAppPingAsync(string $contentType = self::contentTypes['getAppPing'][0])
public function getAppPingAsync($app, string $contentType = self::contentTypes['getAppPing'][0])
{
return $this->getAppPingAsyncWithHttpInfo($contentType)
return $this->getAppPingAsyncWithHttpInfo($app, $contentType)
->then(
function ($response) {
return $response[0];
Expand All @@ -233,15 +236,16 @@ function ($response) {
*
* Get ping status.
*
* @param string $app The name of the app. (required)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAppPing'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
public function getAppPingAsyncWithHttpInfo(string $contentType = self::contentTypes['getAppPing'][0])
public function getAppPingAsyncWithHttpInfo($app, string $contentType = self::contentTypes['getAppPing'][0])
{
$returnType = '';
$request = $this->getAppPingRequest($contentType);
$request = $this->getAppPingRequest($app, $contentType);

return $this->client
->sendAsync($request, $this->createHttpClientOption())
Expand Down Expand Up @@ -269,16 +273,16 @@ function ($exception) {
/**
* Create request for operation 'getAppPing'
*
* @param string $app The name of the app. (required)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAppPing'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
public function getAppPingRequest(string $contentType = self::contentTypes['getAppPing'][0])
public function getAppPingRequest($app, string $contentType = self::contentTypes['getAppPing'][0])
{

// verify the required parameter 'app' is set
$app = $this->config->getAppName();
if ($app === null || (is_array($app) && count($app) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $app when calling '
Expand Down
Loading

0 comments on commit c90bb5b

Please sign in to comment.