diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index e24bf93..276be79 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -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 @@ -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 @@ -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 diff --git a/lib/Api/AppsApi.php b/lib/Api/AppsApi.php index 0884353..fb7b340 100644 --- a/lib/Api/AppsApi.php +++ b/lib/Api/AppsApi.php @@ -226,15 +226,16 @@ public function getConfig() * * Get the app asset scripts. * + * @param string $app The name of the app to get the asset scripts for. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAssetScripts'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \Squidex\Client\Model\AssetScriptsDto|\Squidex\Client\Model\ErrorDto */ - public function getAssetScripts(string $contentType = self::contentTypes['getAssetScripts'][0]) + public function getAssetScripts($app, string $contentType = self::contentTypes['getAssetScripts'][0]) { - list($response) = $this->getAssetScriptsWithHttpInfo($contentType); + list($response) = $this->getAssetScriptsWithHttpInfo($app, $contentType); return $response; } @@ -243,15 +244,16 @@ public function getAssetScripts(string $contentType = self::contentTypes['getAss * * Get the app asset scripts. * + * @param string $app The name of the app to get the asset scripts for. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAssetScripts'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\AssetScriptsDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getAssetScriptsWithHttpInfo(string $contentType = self::contentTypes['getAssetScripts'][0]) + public function getAssetScriptsWithHttpInfo($app, string $contentType = self::contentTypes['getAssetScripts'][0]) { - $request = $this->getAssetScriptsRequest($contentType); + $request = $this->getAssetScriptsRequest($app, $contentType); try { $options = $this->createHttpClientOption(); @@ -365,14 +367,15 @@ public function getAssetScriptsWithHttpInfo(string $contentType = self::contentT * * Get the app asset scripts. * + * @param string $app The name of the app to get the asset scripts for. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAssetScripts'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getAssetScriptsAsync(string $contentType = self::contentTypes['getAssetScripts'][0]) + public function getAssetScriptsAsync($app, string $contentType = self::contentTypes['getAssetScripts'][0]) { - return $this->getAssetScriptsAsyncWithHttpInfo($contentType) + return $this->getAssetScriptsAsyncWithHttpInfo($app, $contentType) ->then( function ($response) { return $response[0]; @@ -385,15 +388,16 @@ function ($response) { * * Get the app asset scripts. * + * @param string $app The name of the app to get the asset scripts for. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAssetScripts'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getAssetScriptsAsyncWithHttpInfo(string $contentType = self::contentTypes['getAssetScripts'][0]) + public function getAssetScriptsAsyncWithHttpInfo($app, string $contentType = self::contentTypes['getAssetScripts'][0]) { $returnType = '\Squidex\Client\Model\AssetScriptsDto'; - $request = $this->getAssetScriptsRequest($contentType); + $request = $this->getAssetScriptsRequest($app, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -434,16 +438,16 @@ function ($exception) { /** * Create request for operation 'getAssetScripts' * + * @param string $app The name of the app to get the asset scripts for. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAssetScripts'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getAssetScriptsRequest(string $contentType = self::contentTypes['getAssetScripts'][0]) + public function getAssetScriptsRequest($app, string $contentType = self::contentTypes['getAssetScripts'][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 ' @@ -528,6 +532,7 @@ public function getAssetScriptsRequest(string $contentType = self::contentTypes[ * * Update the app asset scripts. * + * @param string $app The name of the app to update. (required) * @param \Squidex\Client\Model\UpdateAssetScriptsDto $update_asset_scripts_dto The values to update. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAssetScripts'] to see the possible values for this operation * @@ -535,9 +540,9 @@ public function getAssetScriptsRequest(string $contentType = self::contentTypes[ * @throws \InvalidArgumentException * @return \Squidex\Client\Model\AssetScriptsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putAssetScripts($update_asset_scripts_dto, string $contentType = self::contentTypes['putAssetScripts'][0]) + public function putAssetScripts($app, $update_asset_scripts_dto, string $contentType = self::contentTypes['putAssetScripts'][0]) { - list($response) = $this->putAssetScriptsWithHttpInfo($update_asset_scripts_dto, $contentType); + list($response) = $this->putAssetScriptsWithHttpInfo($app, $update_asset_scripts_dto, $contentType); return $response; } @@ -546,6 +551,7 @@ public function putAssetScripts($update_asset_scripts_dto, string $contentType = * * Update the app asset scripts. * + * @param string $app The name of the app to update. (required) * @param \Squidex\Client\Model\UpdateAssetScriptsDto $update_asset_scripts_dto The values to update. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAssetScripts'] to see the possible values for this operation * @@ -553,9 +559,9 @@ public function putAssetScripts($update_asset_scripts_dto, string $contentType = * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\AssetScriptsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putAssetScriptsWithHttpInfo($update_asset_scripts_dto, string $contentType = self::contentTypes['putAssetScripts'][0]) + public function putAssetScriptsWithHttpInfo($app, $update_asset_scripts_dto, string $contentType = self::contentTypes['putAssetScripts'][0]) { - $request = $this->putAssetScriptsRequest($update_asset_scripts_dto, $contentType); + $request = $this->putAssetScriptsRequest($app, $update_asset_scripts_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -692,15 +698,16 @@ public function putAssetScriptsWithHttpInfo($update_asset_scripts_dto, string $c * * Update the app asset scripts. * + * @param string $app The name of the app to update. (required) * @param \Squidex\Client\Model\UpdateAssetScriptsDto $update_asset_scripts_dto The values to update. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAssetScripts'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putAssetScriptsAsync($update_asset_scripts_dto, string $contentType = self::contentTypes['putAssetScripts'][0]) + public function putAssetScriptsAsync($app, $update_asset_scripts_dto, string $contentType = self::contentTypes['putAssetScripts'][0]) { - return $this->putAssetScriptsAsyncWithHttpInfo($update_asset_scripts_dto, $contentType) + return $this->putAssetScriptsAsyncWithHttpInfo($app, $update_asset_scripts_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -713,16 +720,17 @@ function ($response) { * * Update the app asset scripts. * + * @param string $app The name of the app to update. (required) * @param \Squidex\Client\Model\UpdateAssetScriptsDto $update_asset_scripts_dto The values to update. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAssetScripts'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putAssetScriptsAsyncWithHttpInfo($update_asset_scripts_dto, string $contentType = self::contentTypes['putAssetScripts'][0]) + public function putAssetScriptsAsyncWithHttpInfo($app, $update_asset_scripts_dto, string $contentType = self::contentTypes['putAssetScripts'][0]) { $returnType = '\Squidex\Client\Model\AssetScriptsDto'; - $request = $this->putAssetScriptsRequest($update_asset_scripts_dto, $contentType); + $request = $this->putAssetScriptsRequest($app, $update_asset_scripts_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -763,17 +771,17 @@ function ($exception) { /** * Create request for operation 'putAssetScripts' * + * @param string $app The name of the app to update. (required) * @param \Squidex\Client\Model\UpdateAssetScriptsDto $update_asset_scripts_dto The values to update. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAssetScripts'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putAssetScriptsRequest($update_asset_scripts_dto, string $contentType = self::contentTypes['putAssetScripts'][0]) + public function putAssetScriptsRequest($app, $update_asset_scripts_dto, string $contentType = self::contentTypes['putAssetScripts'][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 ' @@ -872,6 +880,7 @@ public function putAssetScriptsRequest($update_asset_scripts_dto, string $conten * * Revoke an app client. * + * @param string $app The name of the app. (required) * @param string $id The ID of the client that must be deleted. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteClient'] to see the possible values for this operation * @@ -879,9 +888,9 @@ public function putAssetScriptsRequest($update_asset_scripts_dto, string $conten * @throws \InvalidArgumentException * @return \Squidex\Client\Model\ClientsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function deleteClient($id, string $contentType = self::contentTypes['deleteClient'][0]) + public function deleteClient($app, $id, string $contentType = self::contentTypes['deleteClient'][0]) { - list($response) = $this->deleteClientWithHttpInfo($id, $contentType); + list($response) = $this->deleteClientWithHttpInfo($app, $id, $contentType); return $response; } @@ -890,6 +899,7 @@ public function deleteClient($id, string $contentType = self::contentTypes['dele * * Revoke an app client. * + * @param string $app The name of the app. (required) * @param string $id The ID of the client that must be deleted. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteClient'] to see the possible values for this operation * @@ -897,9 +907,9 @@ public function deleteClient($id, string $contentType = self::contentTypes['dele * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\ClientsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function deleteClientWithHttpInfo($id, string $contentType = self::contentTypes['deleteClient'][0]) + public function deleteClientWithHttpInfo($app, $id, string $contentType = self::contentTypes['deleteClient'][0]) { - $request = $this->deleteClientRequest($id, $contentType); + $request = $this->deleteClientRequest($app, $id, $contentType); try { $options = $this->createHttpClientOption(); @@ -1036,15 +1046,16 @@ public function deleteClientWithHttpInfo($id, string $contentType = self::conten * * Revoke an app client. * + * @param string $app The name of the app. (required) * @param string $id The ID of the client that must be deleted. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteClient'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteClientAsync($id, string $contentType = self::contentTypes['deleteClient'][0]) + public function deleteClientAsync($app, $id, string $contentType = self::contentTypes['deleteClient'][0]) { - return $this->deleteClientAsyncWithHttpInfo($id, $contentType) + return $this->deleteClientAsyncWithHttpInfo($app, $id, $contentType) ->then( function ($response) { return $response[0]; @@ -1057,16 +1068,17 @@ function ($response) { * * Revoke an app client. * + * @param string $app The name of the app. (required) * @param string $id The ID of the client that must be deleted. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteClient'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteClientAsyncWithHttpInfo($id, string $contentType = self::contentTypes['deleteClient'][0]) + public function deleteClientAsyncWithHttpInfo($app, $id, string $contentType = self::contentTypes['deleteClient'][0]) { $returnType = '\Squidex\Client\Model\ClientsDto'; - $request = $this->deleteClientRequest($id, $contentType); + $request = $this->deleteClientRequest($app, $id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1107,17 +1119,17 @@ function ($exception) { /** * Create request for operation 'deleteClient' * + * @param string $app The name of the app. (required) * @param string $id The ID of the client that must be deleted. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteClient'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function deleteClientRequest($id, string $contentType = self::contentTypes['deleteClient'][0]) + public function deleteClientRequest($app, $id, string $contentType = self::contentTypes['deleteClient'][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 ' @@ -1217,15 +1229,16 @@ public function deleteClientRequest($id, string $contentType = self::contentType * * Get app clients. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getClients'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \Squidex\Client\Model\ClientsDto|\Squidex\Client\Model\ErrorDto */ - public function getClients(string $contentType = self::contentTypes['getClients'][0]) + public function getClients($app, string $contentType = self::contentTypes['getClients'][0]) { - list($response) = $this->getClientsWithHttpInfo($contentType); + list($response) = $this->getClientsWithHttpInfo($app, $contentType); return $response; } @@ -1234,15 +1247,16 @@ public function getClients(string $contentType = self::contentTypes['getClients' * * Get app clients. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getClients'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\ClientsDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getClientsWithHttpInfo(string $contentType = self::contentTypes['getClients'][0]) + public function getClientsWithHttpInfo($app, string $contentType = self::contentTypes['getClients'][0]) { - $request = $this->getClientsRequest($contentType); + $request = $this->getClientsRequest($app, $contentType); try { $options = $this->createHttpClientOption(); @@ -1356,14 +1370,15 @@ public function getClientsWithHttpInfo(string $contentType = self::contentTypes[ * * Get app clients. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getClients'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getClientsAsync(string $contentType = self::contentTypes['getClients'][0]) + public function getClientsAsync($app, string $contentType = self::contentTypes['getClients'][0]) { - return $this->getClientsAsyncWithHttpInfo($contentType) + return $this->getClientsAsyncWithHttpInfo($app, $contentType) ->then( function ($response) { return $response[0]; @@ -1376,15 +1391,16 @@ function ($response) { * * Get app clients. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getClients'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getClientsAsyncWithHttpInfo(string $contentType = self::contentTypes['getClients'][0]) + public function getClientsAsyncWithHttpInfo($app, string $contentType = self::contentTypes['getClients'][0]) { $returnType = '\Squidex\Client\Model\ClientsDto'; - $request = $this->getClientsRequest($contentType); + $request = $this->getClientsRequest($app, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1425,16 +1441,16 @@ function ($exception) { /** * Create request for operation 'getClients' * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getClients'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getClientsRequest(string $contentType = self::contentTypes['getClients'][0]) + public function getClientsRequest($app, string $contentType = self::contentTypes['getClients'][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 ' @@ -1519,6 +1535,7 @@ public function getClientsRequest(string $contentType = self::contentTypes['getC * * Create a new app client. * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\CreateClientDto $create_client_dto Client object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postClient'] to see the possible values for this operation * @@ -1526,9 +1543,9 @@ public function getClientsRequest(string $contentType = self::contentTypes['getC * @throws \InvalidArgumentException * @return \Squidex\Client\Model\ClientsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function postClient($create_client_dto, string $contentType = self::contentTypes['postClient'][0]) + public function postClient($app, $create_client_dto, string $contentType = self::contentTypes['postClient'][0]) { - list($response) = $this->postClientWithHttpInfo($create_client_dto, $contentType); + list($response) = $this->postClientWithHttpInfo($app, $create_client_dto, $contentType); return $response; } @@ -1537,6 +1554,7 @@ public function postClient($create_client_dto, string $contentType = self::conte * * Create a new app client. * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\CreateClientDto $create_client_dto Client object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postClient'] to see the possible values for this operation * @@ -1544,9 +1562,9 @@ public function postClient($create_client_dto, string $contentType = self::conte * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\ClientsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function postClientWithHttpInfo($create_client_dto, string $contentType = self::contentTypes['postClient'][0]) + public function postClientWithHttpInfo($app, $create_client_dto, string $contentType = self::contentTypes['postClient'][0]) { - $request = $this->postClientRequest($create_client_dto, $contentType); + $request = $this->postClientRequest($app, $create_client_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -1683,15 +1701,16 @@ public function postClientWithHttpInfo($create_client_dto, string $contentType = * * Create a new app client. * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\CreateClientDto $create_client_dto Client object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postClient'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postClientAsync($create_client_dto, string $contentType = self::contentTypes['postClient'][0]) + public function postClientAsync($app, $create_client_dto, string $contentType = self::contentTypes['postClient'][0]) { - return $this->postClientAsyncWithHttpInfo($create_client_dto, $contentType) + return $this->postClientAsyncWithHttpInfo($app, $create_client_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -1704,16 +1723,17 @@ function ($response) { * * Create a new app client. * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\CreateClientDto $create_client_dto Client object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postClient'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postClientAsyncWithHttpInfo($create_client_dto, string $contentType = self::contentTypes['postClient'][0]) + public function postClientAsyncWithHttpInfo($app, $create_client_dto, string $contentType = self::contentTypes['postClient'][0]) { $returnType = '\Squidex\Client\Model\ClientsDto'; - $request = $this->postClientRequest($create_client_dto, $contentType); + $request = $this->postClientRequest($app, $create_client_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1754,17 +1774,17 @@ function ($exception) { /** * Create request for operation 'postClient' * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\CreateClientDto $create_client_dto Client object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postClient'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function postClientRequest($create_client_dto, string $contentType = self::contentTypes['postClient'][0]) + public function postClientRequest($app, $create_client_dto, string $contentType = self::contentTypes['postClient'][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 ' @@ -1863,6 +1883,7 @@ public function postClientRequest($create_client_dto, string $contentType = self * * Updates an app client. * + * @param string $app The name of the app. (required) * @param string $id The ID of the client that must be updated. (required) * @param \Squidex\Client\Model\UpdateClientDto $update_client_dto Client object that needs to be updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putClient'] to see the possible values for this operation @@ -1871,9 +1892,9 @@ public function postClientRequest($create_client_dto, string $contentType = self * @throws \InvalidArgumentException * @return \Squidex\Client\Model\ClientsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putClient($id, $update_client_dto, string $contentType = self::contentTypes['putClient'][0]) + public function putClient($app, $id, $update_client_dto, string $contentType = self::contentTypes['putClient'][0]) { - list($response) = $this->putClientWithHttpInfo($id, $update_client_dto, $contentType); + list($response) = $this->putClientWithHttpInfo($app, $id, $update_client_dto, $contentType); return $response; } @@ -1882,6 +1903,7 @@ public function putClient($id, $update_client_dto, string $contentType = self::c * * Updates an app client. * + * @param string $app The name of the app. (required) * @param string $id The ID of the client that must be updated. (required) * @param \Squidex\Client\Model\UpdateClientDto $update_client_dto Client object that needs to be updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putClient'] to see the possible values for this operation @@ -1890,9 +1912,9 @@ public function putClient($id, $update_client_dto, string $contentType = self::c * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\ClientsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putClientWithHttpInfo($id, $update_client_dto, string $contentType = self::contentTypes['putClient'][0]) + public function putClientWithHttpInfo($app, $id, $update_client_dto, string $contentType = self::contentTypes['putClient'][0]) { - $request = $this->putClientRequest($id, $update_client_dto, $contentType); + $request = $this->putClientRequest($app, $id, $update_client_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -2029,6 +2051,7 @@ public function putClientWithHttpInfo($id, $update_client_dto, string $contentTy * * Updates an app client. * + * @param string $app The name of the app. (required) * @param string $id The ID of the client that must be updated. (required) * @param \Squidex\Client\Model\UpdateClientDto $update_client_dto Client object that needs to be updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putClient'] to see the possible values for this operation @@ -2036,9 +2059,9 @@ public function putClientWithHttpInfo($id, $update_client_dto, string $contentTy * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putClientAsync($id, $update_client_dto, string $contentType = self::contentTypes['putClient'][0]) + public function putClientAsync($app, $id, $update_client_dto, string $contentType = self::contentTypes['putClient'][0]) { - return $this->putClientAsyncWithHttpInfo($id, $update_client_dto, $contentType) + return $this->putClientAsyncWithHttpInfo($app, $id, $update_client_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -2051,6 +2074,7 @@ function ($response) { * * Updates an app client. * + * @param string $app The name of the app. (required) * @param string $id The ID of the client that must be updated. (required) * @param \Squidex\Client\Model\UpdateClientDto $update_client_dto Client object that needs to be updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putClient'] to see the possible values for this operation @@ -2058,10 +2082,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putClientAsyncWithHttpInfo($id, $update_client_dto, string $contentType = self::contentTypes['putClient'][0]) + public function putClientAsyncWithHttpInfo($app, $id, $update_client_dto, string $contentType = self::contentTypes['putClient'][0]) { $returnType = '\Squidex\Client\Model\ClientsDto'; - $request = $this->putClientRequest($id, $update_client_dto, $contentType); + $request = $this->putClientRequest($app, $id, $update_client_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -2102,6 +2126,7 @@ function ($exception) { /** * Create request for operation 'putClient' * + * @param string $app The name of the app. (required) * @param string $id The ID of the client that must be updated. (required) * @param \Squidex\Client\Model\UpdateClientDto $update_client_dto Client object that needs to be updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putClient'] to see the possible values for this operation @@ -2109,11 +2134,10 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putClientRequest($id, $update_client_dto, string $contentType = self::contentTypes['putClient'][0]) + public function putClientRequest($app, $id, $update_client_dto, string $contentType = self::contentTypes['putClient'][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 ' @@ -2227,6 +2251,7 @@ public function putClientRequest($id, $update_client_dto, string $contentType = * * Remove contributor. * + * @param string $app The name of the app. (required) * @param string $id The ID of the contributor. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteContributor'] to see the possible values for this operation * @@ -2234,9 +2259,9 @@ public function putClientRequest($id, $update_client_dto, string $contentType = * @throws \InvalidArgumentException * @return \Squidex\Client\Model\ContributorsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function deleteContributor($id, string $contentType = self::contentTypes['deleteContributor'][0]) + public function deleteContributor($app, $id, string $contentType = self::contentTypes['deleteContributor'][0]) { - list($response) = $this->deleteContributorWithHttpInfo($id, $contentType); + list($response) = $this->deleteContributorWithHttpInfo($app, $id, $contentType); return $response; } @@ -2245,6 +2270,7 @@ public function deleteContributor($id, string $contentType = self::contentTypes[ * * Remove contributor. * + * @param string $app The name of the app. (required) * @param string $id The ID of the contributor. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteContributor'] to see the possible values for this operation * @@ -2252,9 +2278,9 @@ public function deleteContributor($id, string $contentType = self::contentTypes[ * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\ContributorsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function deleteContributorWithHttpInfo($id, string $contentType = self::contentTypes['deleteContributor'][0]) + public function deleteContributorWithHttpInfo($app, $id, string $contentType = self::contentTypes['deleteContributor'][0]) { - $request = $this->deleteContributorRequest($id, $contentType); + $request = $this->deleteContributorRequest($app, $id, $contentType); try { $options = $this->createHttpClientOption(); @@ -2391,15 +2417,16 @@ public function deleteContributorWithHttpInfo($id, string $contentType = self::c * * Remove contributor. * + * @param string $app The name of the app. (required) * @param string $id The ID of the contributor. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteContributor'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteContributorAsync($id, string $contentType = self::contentTypes['deleteContributor'][0]) + public function deleteContributorAsync($app, $id, string $contentType = self::contentTypes['deleteContributor'][0]) { - return $this->deleteContributorAsyncWithHttpInfo($id, $contentType) + return $this->deleteContributorAsyncWithHttpInfo($app, $id, $contentType) ->then( function ($response) { return $response[0]; @@ -2412,16 +2439,17 @@ function ($response) { * * Remove contributor. * + * @param string $app The name of the app. (required) * @param string $id The ID of the contributor. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteContributor'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteContributorAsyncWithHttpInfo($id, string $contentType = self::contentTypes['deleteContributor'][0]) + public function deleteContributorAsyncWithHttpInfo($app, $id, string $contentType = self::contentTypes['deleteContributor'][0]) { $returnType = '\Squidex\Client\Model\ContributorsDto'; - $request = $this->deleteContributorRequest($id, $contentType); + $request = $this->deleteContributorRequest($app, $id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -2462,17 +2490,17 @@ function ($exception) { /** * Create request for operation 'deleteContributor' * + * @param string $app The name of the app. (required) * @param string $id The ID of the contributor. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteContributor'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function deleteContributorRequest($id, string $contentType = self::contentTypes['deleteContributor'][0]) + public function deleteContributorRequest($app, $id, string $contentType = self::contentTypes['deleteContributor'][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 ' @@ -2572,15 +2600,16 @@ public function deleteContributorRequest($id, string $contentType = self::conten * * Remove yourself. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteMyself'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \Squidex\Client\Model\ContributorsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function deleteMyself(string $contentType = self::contentTypes['deleteMyself'][0]) + public function deleteMyself($app, string $contentType = self::contentTypes['deleteMyself'][0]) { - list($response) = $this->deleteMyselfWithHttpInfo($contentType); + list($response) = $this->deleteMyselfWithHttpInfo($app, $contentType); return $response; } @@ -2589,15 +2618,16 @@ public function deleteMyself(string $contentType = self::contentTypes['deleteMys * * Remove yourself. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteMyself'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\ContributorsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function deleteMyselfWithHttpInfo(string $contentType = self::contentTypes['deleteMyself'][0]) + public function deleteMyselfWithHttpInfo($app, string $contentType = self::contentTypes['deleteMyself'][0]) { - $request = $this->deleteMyselfRequest($contentType); + $request = $this->deleteMyselfRequest($app, $contentType); try { $options = $this->createHttpClientOption(); @@ -2734,14 +2764,15 @@ public function deleteMyselfWithHttpInfo(string $contentType = self::contentType * * Remove yourself. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteMyself'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteMyselfAsync(string $contentType = self::contentTypes['deleteMyself'][0]) + public function deleteMyselfAsync($app, string $contentType = self::contentTypes['deleteMyself'][0]) { - return $this->deleteMyselfAsyncWithHttpInfo($contentType) + return $this->deleteMyselfAsyncWithHttpInfo($app, $contentType) ->then( function ($response) { return $response[0]; @@ -2754,15 +2785,16 @@ function ($response) { * * Remove yourself. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteMyself'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteMyselfAsyncWithHttpInfo(string $contentType = self::contentTypes['deleteMyself'][0]) + public function deleteMyselfAsyncWithHttpInfo($app, string $contentType = self::contentTypes['deleteMyself'][0]) { $returnType = '\Squidex\Client\Model\ContributorsDto'; - $request = $this->deleteMyselfRequest($contentType); + $request = $this->deleteMyselfRequest($app, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -2803,16 +2835,16 @@ function ($exception) { /** * Create request for operation 'deleteMyself' * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteMyself'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function deleteMyselfRequest(string $contentType = self::contentTypes['deleteMyself'][0]) + public function deleteMyselfRequest($app, string $contentType = self::contentTypes['deleteMyself'][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 ' @@ -2897,15 +2929,16 @@ public function deleteMyselfRequest(string $contentType = self::contentTypes['de * * Get app contributors. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getContributors'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \Squidex\Client\Model\ContributorsDto|\Squidex\Client\Model\ErrorDto */ - public function getContributors(string $contentType = self::contentTypes['getContributors'][0]) + public function getContributors($app, string $contentType = self::contentTypes['getContributors'][0]) { - list($response) = $this->getContributorsWithHttpInfo($contentType); + list($response) = $this->getContributorsWithHttpInfo($app, $contentType); return $response; } @@ -2914,15 +2947,16 @@ public function getContributors(string $contentType = self::contentTypes['getCon * * Get app contributors. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getContributors'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\ContributorsDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getContributorsWithHttpInfo(string $contentType = self::contentTypes['getContributors'][0]) + public function getContributorsWithHttpInfo($app, string $contentType = self::contentTypes['getContributors'][0]) { - $request = $this->getContributorsRequest($contentType); + $request = $this->getContributorsRequest($app, $contentType); try { $options = $this->createHttpClientOption(); @@ -3036,14 +3070,15 @@ public function getContributorsWithHttpInfo(string $contentType = self::contentT * * Get app contributors. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getContributors'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getContributorsAsync(string $contentType = self::contentTypes['getContributors'][0]) + public function getContributorsAsync($app, string $contentType = self::contentTypes['getContributors'][0]) { - return $this->getContributorsAsyncWithHttpInfo($contentType) + return $this->getContributorsAsyncWithHttpInfo($app, $contentType) ->then( function ($response) { return $response[0]; @@ -3056,15 +3091,16 @@ function ($response) { * * Get app contributors. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getContributors'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getContributorsAsyncWithHttpInfo(string $contentType = self::contentTypes['getContributors'][0]) + public function getContributorsAsyncWithHttpInfo($app, string $contentType = self::contentTypes['getContributors'][0]) { $returnType = '\Squidex\Client\Model\ContributorsDto'; - $request = $this->getContributorsRequest($contentType); + $request = $this->getContributorsRequest($app, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -3105,16 +3141,16 @@ function ($exception) { /** * Create request for operation 'getContributors' * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getContributors'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getContributorsRequest(string $contentType = self::contentTypes['getContributors'][0]) + public function getContributorsRequest($app, string $contentType = self::contentTypes['getContributors'][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 ' @@ -3199,6 +3235,7 @@ public function getContributorsRequest(string $contentType = self::contentTypes[ * * Assign contributor to app. * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\AssignContributorDto $assign_contributor_dto Contributor object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postContributor'] to see the possible values for this operation * @@ -3206,9 +3243,9 @@ public function getContributorsRequest(string $contentType = self::contentTypes[ * @throws \InvalidArgumentException * @return \Squidex\Client\Model\ContributorsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function postContributor($assign_contributor_dto, string $contentType = self::contentTypes['postContributor'][0]) + public function postContributor($app, $assign_contributor_dto, string $contentType = self::contentTypes['postContributor'][0]) { - list($response) = $this->postContributorWithHttpInfo($assign_contributor_dto, $contentType); + list($response) = $this->postContributorWithHttpInfo($app, $assign_contributor_dto, $contentType); return $response; } @@ -3217,6 +3254,7 @@ public function postContributor($assign_contributor_dto, string $contentType = s * * Assign contributor to app. * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\AssignContributorDto $assign_contributor_dto Contributor object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postContributor'] to see the possible values for this operation * @@ -3224,9 +3262,9 @@ public function postContributor($assign_contributor_dto, string $contentType = s * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\ContributorsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function postContributorWithHttpInfo($assign_contributor_dto, string $contentType = self::contentTypes['postContributor'][0]) + public function postContributorWithHttpInfo($app, $assign_contributor_dto, string $contentType = self::contentTypes['postContributor'][0]) { - $request = $this->postContributorRequest($assign_contributor_dto, $contentType); + $request = $this->postContributorRequest($app, $assign_contributor_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -3363,15 +3401,16 @@ public function postContributorWithHttpInfo($assign_contributor_dto, string $con * * Assign contributor to app. * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\AssignContributorDto $assign_contributor_dto Contributor object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postContributor'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postContributorAsync($assign_contributor_dto, string $contentType = self::contentTypes['postContributor'][0]) + public function postContributorAsync($app, $assign_contributor_dto, string $contentType = self::contentTypes['postContributor'][0]) { - return $this->postContributorAsyncWithHttpInfo($assign_contributor_dto, $contentType) + return $this->postContributorAsyncWithHttpInfo($app, $assign_contributor_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -3384,16 +3423,17 @@ function ($response) { * * Assign contributor to app. * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\AssignContributorDto $assign_contributor_dto Contributor object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postContributor'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postContributorAsyncWithHttpInfo($assign_contributor_dto, string $contentType = self::contentTypes['postContributor'][0]) + public function postContributorAsyncWithHttpInfo($app, $assign_contributor_dto, string $contentType = self::contentTypes['postContributor'][0]) { $returnType = '\Squidex\Client\Model\ContributorsDto'; - $request = $this->postContributorRequest($assign_contributor_dto, $contentType); + $request = $this->postContributorRequest($app, $assign_contributor_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -3434,17 +3474,17 @@ function ($exception) { /** * Create request for operation 'postContributor' * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\AssignContributorDto $assign_contributor_dto Contributor object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postContributor'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function postContributorRequest($assign_contributor_dto, string $contentType = self::contentTypes['postContributor'][0]) + public function postContributorRequest($app, $assign_contributor_dto, string $contentType = self::contentTypes['postContributor'][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 ' @@ -3543,15 +3583,16 @@ public function postContributorRequest($assign_contributor_dto, string $contentT * * Get the app image. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getImage'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \SplFileObject|\Squidex\Client\Model\ErrorDto */ - public function getImage(string $contentType = self::contentTypes['getImage'][0]) + public function getImage($app, string $contentType = self::contentTypes['getImage'][0]) { - list($response) = $this->getImageWithHttpInfo($contentType); + list($response) = $this->getImageWithHttpInfo($app, $contentType); return $response; } @@ -3560,15 +3601,16 @@ public function getImage(string $contentType = self::contentTypes['getImage'][0] * * Get the app image. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getImage'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \SplFileObject|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getImageWithHttpInfo(string $contentType = self::contentTypes['getImage'][0]) + public function getImageWithHttpInfo($app, string $contentType = self::contentTypes['getImage'][0]) { - $request = $this->getImageRequest($contentType); + $request = $this->getImageRequest($app, $contentType); try { $options = $this->createHttpClientOption(); @@ -3682,14 +3724,15 @@ public function getImageWithHttpInfo(string $contentType = self::contentTypes['g * * Get the app image. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getImage'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getImageAsync(string $contentType = self::contentTypes['getImage'][0]) + public function getImageAsync($app, string $contentType = self::contentTypes['getImage'][0]) { - return $this->getImageAsyncWithHttpInfo($contentType) + return $this->getImageAsyncWithHttpInfo($app, $contentType) ->then( function ($response) { return $response[0]; @@ -3702,15 +3745,16 @@ function ($response) { * * Get the app image. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getImage'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getImageAsyncWithHttpInfo(string $contentType = self::contentTypes['getImage'][0]) + public function getImageAsyncWithHttpInfo($app, string $contentType = self::contentTypes['getImage'][0]) { $returnType = '\SplFileObject'; - $request = $this->getImageRequest($contentType); + $request = $this->getImageRequest($app, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -3751,16 +3795,16 @@ function ($exception) { /** * Create request for operation 'getImage' * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getImage'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getImageRequest(string $contentType = self::contentTypes['getImage'][0]) + public function getImageRequest($app, string $contentType = self::contentTypes['getImage'][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 ' @@ -3845,6 +3889,7 @@ public function getImageRequest(string $contentType = self::contentTypes['getIma * * Deletes an app language. * + * @param string $app The name of the app. (required) * @param string $language The language to delete from the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteLanguage'] to see the possible values for this operation * @@ -3852,9 +3897,9 @@ public function getImageRequest(string $contentType = self::contentTypes['getIma * @throws \InvalidArgumentException * @return \Squidex\Client\Model\AppLanguagesDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function deleteLanguage($language, string $contentType = self::contentTypes['deleteLanguage'][0]) + public function deleteLanguage($app, $language, string $contentType = self::contentTypes['deleteLanguage'][0]) { - list($response) = $this->deleteLanguageWithHttpInfo($language, $contentType); + list($response) = $this->deleteLanguageWithHttpInfo($app, $language, $contentType); return $response; } @@ -3863,6 +3908,7 @@ public function deleteLanguage($language, string $contentType = self::contentTyp * * Deletes an app language. * + * @param string $app The name of the app. (required) * @param string $language The language to delete from the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteLanguage'] to see the possible values for this operation * @@ -3870,9 +3916,9 @@ public function deleteLanguage($language, string $contentType = self::contentTyp * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\AppLanguagesDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function deleteLanguageWithHttpInfo($language, string $contentType = self::contentTypes['deleteLanguage'][0]) + public function deleteLanguageWithHttpInfo($app, $language, string $contentType = self::contentTypes['deleteLanguage'][0]) { - $request = $this->deleteLanguageRequest($language, $contentType); + $request = $this->deleteLanguageRequest($app, $language, $contentType); try { $options = $this->createHttpClientOption(); @@ -4009,15 +4055,16 @@ public function deleteLanguageWithHttpInfo($language, string $contentType = self * * Deletes an app language. * + * @param string $app The name of the app. (required) * @param string $language The language to delete from the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteLanguage'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteLanguageAsync($language, string $contentType = self::contentTypes['deleteLanguage'][0]) + public function deleteLanguageAsync($app, $language, string $contentType = self::contentTypes['deleteLanguage'][0]) { - return $this->deleteLanguageAsyncWithHttpInfo($language, $contentType) + return $this->deleteLanguageAsyncWithHttpInfo($app, $language, $contentType) ->then( function ($response) { return $response[0]; @@ -4030,16 +4077,17 @@ function ($response) { * * Deletes an app language. * + * @param string $app The name of the app. (required) * @param string $language The language to delete from the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteLanguage'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteLanguageAsyncWithHttpInfo($language, string $contentType = self::contentTypes['deleteLanguage'][0]) + public function deleteLanguageAsyncWithHttpInfo($app, $language, string $contentType = self::contentTypes['deleteLanguage'][0]) { $returnType = '\Squidex\Client\Model\AppLanguagesDto'; - $request = $this->deleteLanguageRequest($language, $contentType); + $request = $this->deleteLanguageRequest($app, $language, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -4080,17 +4128,17 @@ function ($exception) { /** * Create request for operation 'deleteLanguage' * + * @param string $app The name of the app. (required) * @param string $language The language to delete from the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteLanguage'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function deleteLanguageRequest($language, string $contentType = self::contentTypes['deleteLanguage'][0]) + public function deleteLanguageRequest($app, $language, string $contentType = self::contentTypes['deleteLanguage'][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 ' @@ -4190,15 +4238,16 @@ public function deleteLanguageRequest($language, string $contentType = self::con * * Get app languages. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getLanguages'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \Squidex\Client\Model\AppLanguagesDto|\Squidex\Client\Model\ErrorDto */ - public function getLanguages(string $contentType = self::contentTypes['getLanguages'][0]) + public function getLanguages($app, string $contentType = self::contentTypes['getLanguages'][0]) { - list($response) = $this->getLanguagesWithHttpInfo($contentType); + list($response) = $this->getLanguagesWithHttpInfo($app, $contentType); return $response; } @@ -4207,15 +4256,16 @@ public function getLanguages(string $contentType = self::contentTypes['getLangua * * Get app languages. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getLanguages'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\AppLanguagesDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getLanguagesWithHttpInfo(string $contentType = self::contentTypes['getLanguages'][0]) + public function getLanguagesWithHttpInfo($app, string $contentType = self::contentTypes['getLanguages'][0]) { - $request = $this->getLanguagesRequest($contentType); + $request = $this->getLanguagesRequest($app, $contentType); try { $options = $this->createHttpClientOption(); @@ -4329,14 +4379,15 @@ public function getLanguagesWithHttpInfo(string $contentType = self::contentType * * Get app languages. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getLanguages'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getLanguagesAsync(string $contentType = self::contentTypes['getLanguages'][0]) + public function getLanguagesAsync($app, string $contentType = self::contentTypes['getLanguages'][0]) { - return $this->getLanguagesAsyncWithHttpInfo($contentType) + return $this->getLanguagesAsyncWithHttpInfo($app, $contentType) ->then( function ($response) { return $response[0]; @@ -4349,15 +4400,16 @@ function ($response) { * * Get app languages. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getLanguages'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getLanguagesAsyncWithHttpInfo(string $contentType = self::contentTypes['getLanguages'][0]) + public function getLanguagesAsyncWithHttpInfo($app, string $contentType = self::contentTypes['getLanguages'][0]) { $returnType = '\Squidex\Client\Model\AppLanguagesDto'; - $request = $this->getLanguagesRequest($contentType); + $request = $this->getLanguagesRequest($app, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -4398,16 +4450,16 @@ function ($exception) { /** * Create request for operation 'getLanguages' * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getLanguages'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getLanguagesRequest(string $contentType = self::contentTypes['getLanguages'][0]) + public function getLanguagesRequest($app, string $contentType = self::contentTypes['getLanguages'][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 ' @@ -4492,6 +4544,7 @@ public function getLanguagesRequest(string $contentType = self::contentTypes['ge * * Attaches an app language. * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\AddLanguageDto $add_language_dto The language to add to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postLanguage'] to see the possible values for this operation * @@ -4499,9 +4552,9 @@ public function getLanguagesRequest(string $contentType = self::contentTypes['ge * @throws \InvalidArgumentException * @return \Squidex\Client\Model\AppLanguagesDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function postLanguage($add_language_dto, string $contentType = self::contentTypes['postLanguage'][0]) + public function postLanguage($app, $add_language_dto, string $contentType = self::contentTypes['postLanguage'][0]) { - list($response) = $this->postLanguageWithHttpInfo($add_language_dto, $contentType); + list($response) = $this->postLanguageWithHttpInfo($app, $add_language_dto, $contentType); return $response; } @@ -4510,6 +4563,7 @@ public function postLanguage($add_language_dto, string $contentType = self::cont * * Attaches an app language. * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\AddLanguageDto $add_language_dto The language to add to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postLanguage'] to see the possible values for this operation * @@ -4517,9 +4571,9 @@ public function postLanguage($add_language_dto, string $contentType = self::cont * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\AppLanguagesDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function postLanguageWithHttpInfo($add_language_dto, string $contentType = self::contentTypes['postLanguage'][0]) + public function postLanguageWithHttpInfo($app, $add_language_dto, string $contentType = self::contentTypes['postLanguage'][0]) { - $request = $this->postLanguageRequest($add_language_dto, $contentType); + $request = $this->postLanguageRequest($app, $add_language_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -4656,15 +4710,16 @@ public function postLanguageWithHttpInfo($add_language_dto, string $contentType * * Attaches an app language. * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\AddLanguageDto $add_language_dto The language to add to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postLanguage'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postLanguageAsync($add_language_dto, string $contentType = self::contentTypes['postLanguage'][0]) + public function postLanguageAsync($app, $add_language_dto, string $contentType = self::contentTypes['postLanguage'][0]) { - return $this->postLanguageAsyncWithHttpInfo($add_language_dto, $contentType) + return $this->postLanguageAsyncWithHttpInfo($app, $add_language_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -4677,16 +4732,17 @@ function ($response) { * * Attaches an app language. * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\AddLanguageDto $add_language_dto The language to add to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postLanguage'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postLanguageAsyncWithHttpInfo($add_language_dto, string $contentType = self::contentTypes['postLanguage'][0]) + public function postLanguageAsyncWithHttpInfo($app, $add_language_dto, string $contentType = self::contentTypes['postLanguage'][0]) { $returnType = '\Squidex\Client\Model\AppLanguagesDto'; - $request = $this->postLanguageRequest($add_language_dto, $contentType); + $request = $this->postLanguageRequest($app, $add_language_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -4727,17 +4783,17 @@ function ($exception) { /** * Create request for operation 'postLanguage' * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\AddLanguageDto $add_language_dto The language to add to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postLanguage'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function postLanguageRequest($add_language_dto, string $contentType = self::contentTypes['postLanguage'][0]) + public function postLanguageRequest($app, $add_language_dto, string $contentType = self::contentTypes['postLanguage'][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 ' @@ -4836,6 +4892,7 @@ public function postLanguageRequest($add_language_dto, string $contentType = sel * * Updates an app language. * + * @param string $app The name of the app. (required) * @param string $language The language to update. (required) * @param \Squidex\Client\Model\UpdateLanguageDto $update_language_dto The language object. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putLanguage'] to see the possible values for this operation @@ -4844,9 +4901,9 @@ public function postLanguageRequest($add_language_dto, string $contentType = sel * @throws \InvalidArgumentException * @return \Squidex\Client\Model\AppLanguagesDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putLanguage($language, $update_language_dto, string $contentType = self::contentTypes['putLanguage'][0]) + public function putLanguage($app, $language, $update_language_dto, string $contentType = self::contentTypes['putLanguage'][0]) { - list($response) = $this->putLanguageWithHttpInfo($language, $update_language_dto, $contentType); + list($response) = $this->putLanguageWithHttpInfo($app, $language, $update_language_dto, $contentType); return $response; } @@ -4855,6 +4912,7 @@ public function putLanguage($language, $update_language_dto, string $contentType * * Updates an app language. * + * @param string $app The name of the app. (required) * @param string $language The language to update. (required) * @param \Squidex\Client\Model\UpdateLanguageDto $update_language_dto The language object. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putLanguage'] to see the possible values for this operation @@ -4863,9 +4921,9 @@ public function putLanguage($language, $update_language_dto, string $contentType * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\AppLanguagesDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putLanguageWithHttpInfo($language, $update_language_dto, string $contentType = self::contentTypes['putLanguage'][0]) + public function putLanguageWithHttpInfo($app, $language, $update_language_dto, string $contentType = self::contentTypes['putLanguage'][0]) { - $request = $this->putLanguageRequest($language, $update_language_dto, $contentType); + $request = $this->putLanguageRequest($app, $language, $update_language_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -5002,6 +5060,7 @@ public function putLanguageWithHttpInfo($language, $update_language_dto, string * * Updates an app language. * + * @param string $app The name of the app. (required) * @param string $language The language to update. (required) * @param \Squidex\Client\Model\UpdateLanguageDto $update_language_dto The language object. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putLanguage'] to see the possible values for this operation @@ -5009,9 +5068,9 @@ public function putLanguageWithHttpInfo($language, $update_language_dto, string * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putLanguageAsync($language, $update_language_dto, string $contentType = self::contentTypes['putLanguage'][0]) + public function putLanguageAsync($app, $language, $update_language_dto, string $contentType = self::contentTypes['putLanguage'][0]) { - return $this->putLanguageAsyncWithHttpInfo($language, $update_language_dto, $contentType) + return $this->putLanguageAsyncWithHttpInfo($app, $language, $update_language_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -5024,6 +5083,7 @@ function ($response) { * * Updates an app language. * + * @param string $app The name of the app. (required) * @param string $language The language to update. (required) * @param \Squidex\Client\Model\UpdateLanguageDto $update_language_dto The language object. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putLanguage'] to see the possible values for this operation @@ -5031,10 +5091,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putLanguageAsyncWithHttpInfo($language, $update_language_dto, string $contentType = self::contentTypes['putLanguage'][0]) + public function putLanguageAsyncWithHttpInfo($app, $language, $update_language_dto, string $contentType = self::contentTypes['putLanguage'][0]) { $returnType = '\Squidex\Client\Model\AppLanguagesDto'; - $request = $this->putLanguageRequest($language, $update_language_dto, $contentType); + $request = $this->putLanguageRequest($app, $language, $update_language_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -5075,6 +5135,7 @@ function ($exception) { /** * Create request for operation 'putLanguage' * + * @param string $app The name of the app. (required) * @param string $language The language to update. (required) * @param \Squidex\Client\Model\UpdateLanguageDto $update_language_dto The language object. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putLanguage'] to see the possible values for this operation @@ -5082,11 +5143,10 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putLanguageRequest($language, $update_language_dto, string $contentType = self::contentTypes['putLanguage'][0]) + public function putLanguageRequest($app, $language, $update_language_dto, string $contentType = self::contentTypes['putLanguage'][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 ' @@ -5200,6 +5260,7 @@ public function putLanguageRequest($language, $update_language_dto, string $cont * * Remove role from app. * + * @param string $app The name of the app. (required) * @param string $role_name The name of the role. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteRole'] to see the possible values for this operation * @@ -5207,9 +5268,9 @@ public function putLanguageRequest($language, $update_language_dto, string $cont * @throws \InvalidArgumentException * @return \Squidex\Client\Model\RolesDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function deleteRole($role_name, string $contentType = self::contentTypes['deleteRole'][0]) + public function deleteRole($app, $role_name, string $contentType = self::contentTypes['deleteRole'][0]) { - list($response) = $this->deleteRoleWithHttpInfo($role_name, $contentType); + list($response) = $this->deleteRoleWithHttpInfo($app, $role_name, $contentType); return $response; } @@ -5218,6 +5279,7 @@ public function deleteRole($role_name, string $contentType = self::contentTypes[ * * Remove role from app. * + * @param string $app The name of the app. (required) * @param string $role_name The name of the role. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteRole'] to see the possible values for this operation * @@ -5225,9 +5287,9 @@ public function deleteRole($role_name, string $contentType = self::contentTypes[ * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\RolesDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function deleteRoleWithHttpInfo($role_name, string $contentType = self::contentTypes['deleteRole'][0]) + public function deleteRoleWithHttpInfo($app, $role_name, string $contentType = self::contentTypes['deleteRole'][0]) { - $request = $this->deleteRoleRequest($role_name, $contentType); + $request = $this->deleteRoleRequest($app, $role_name, $contentType); try { $options = $this->createHttpClientOption(); @@ -5364,15 +5426,16 @@ public function deleteRoleWithHttpInfo($role_name, string $contentType = self::c * * Remove role from app. * + * @param string $app The name of the app. (required) * @param string $role_name The name of the role. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteRole'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteRoleAsync($role_name, string $contentType = self::contentTypes['deleteRole'][0]) + public function deleteRoleAsync($app, $role_name, string $contentType = self::contentTypes['deleteRole'][0]) { - return $this->deleteRoleAsyncWithHttpInfo($role_name, $contentType) + return $this->deleteRoleAsyncWithHttpInfo($app, $role_name, $contentType) ->then( function ($response) { return $response[0]; @@ -5385,16 +5448,17 @@ function ($response) { * * Remove role from app. * + * @param string $app The name of the app. (required) * @param string $role_name The name of the role. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteRole'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteRoleAsyncWithHttpInfo($role_name, string $contentType = self::contentTypes['deleteRole'][0]) + public function deleteRoleAsyncWithHttpInfo($app, $role_name, string $contentType = self::contentTypes['deleteRole'][0]) { $returnType = '\Squidex\Client\Model\RolesDto'; - $request = $this->deleteRoleRequest($role_name, $contentType); + $request = $this->deleteRoleRequest($app, $role_name, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -5435,17 +5499,17 @@ function ($exception) { /** * Create request for operation 'deleteRole' * + * @param string $app The name of the app. (required) * @param string $role_name The name of the role. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteRole'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function deleteRoleRequest($role_name, string $contentType = self::contentTypes['deleteRole'][0]) + public function deleteRoleRequest($app, $role_name, string $contentType = self::contentTypes['deleteRole'][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 ' @@ -5545,15 +5609,16 @@ public function deleteRoleRequest($role_name, string $contentType = self::conten * * Get app permissions. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPermissions'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return string[]|\Squidex\Client\Model\ErrorDto */ - public function getPermissions(string $contentType = self::contentTypes['getPermissions'][0]) + public function getPermissions($app, string $contentType = self::contentTypes['getPermissions'][0]) { - list($response) = $this->getPermissionsWithHttpInfo($contentType); + list($response) = $this->getPermissionsWithHttpInfo($app, $contentType); return $response; } @@ -5562,15 +5627,16 @@ public function getPermissions(string $contentType = self::contentTypes['getPerm * * Get app permissions. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPermissions'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of string[]|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getPermissionsWithHttpInfo(string $contentType = self::contentTypes['getPermissions'][0]) + public function getPermissionsWithHttpInfo($app, string $contentType = self::contentTypes['getPermissions'][0]) { - $request = $this->getPermissionsRequest($contentType); + $request = $this->getPermissionsRequest($app, $contentType); try { $options = $this->createHttpClientOption(); @@ -5684,14 +5750,15 @@ public function getPermissionsWithHttpInfo(string $contentType = self::contentTy * * Get app permissions. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPermissions'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getPermissionsAsync(string $contentType = self::contentTypes['getPermissions'][0]) + public function getPermissionsAsync($app, string $contentType = self::contentTypes['getPermissions'][0]) { - return $this->getPermissionsAsyncWithHttpInfo($contentType) + return $this->getPermissionsAsyncWithHttpInfo($app, $contentType) ->then( function ($response) { return $response[0]; @@ -5704,15 +5771,16 @@ function ($response) { * * Get app permissions. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPermissions'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getPermissionsAsyncWithHttpInfo(string $contentType = self::contentTypes['getPermissions'][0]) + public function getPermissionsAsyncWithHttpInfo($app, string $contentType = self::contentTypes['getPermissions'][0]) { $returnType = 'string[]'; - $request = $this->getPermissionsRequest($contentType); + $request = $this->getPermissionsRequest($app, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -5753,16 +5821,16 @@ function ($exception) { /** * Create request for operation 'getPermissions' * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPermissions'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getPermissionsRequest(string $contentType = self::contentTypes['getPermissions'][0]) + public function getPermissionsRequest($app, string $contentType = self::contentTypes['getPermissions'][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 ' @@ -5847,15 +5915,16 @@ public function getPermissionsRequest(string $contentType = self::contentTypes[' * * Get app roles. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getRoles'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \Squidex\Client\Model\RolesDto|\Squidex\Client\Model\ErrorDto */ - public function getRoles(string $contentType = self::contentTypes['getRoles'][0]) + public function getRoles($app, string $contentType = self::contentTypes['getRoles'][0]) { - list($response) = $this->getRolesWithHttpInfo($contentType); + list($response) = $this->getRolesWithHttpInfo($app, $contentType); return $response; } @@ -5864,15 +5933,16 @@ public function getRoles(string $contentType = self::contentTypes['getRoles'][0] * * Get app roles. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getRoles'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\RolesDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getRolesWithHttpInfo(string $contentType = self::contentTypes['getRoles'][0]) + public function getRolesWithHttpInfo($app, string $contentType = self::contentTypes['getRoles'][0]) { - $request = $this->getRolesRequest($contentType); + $request = $this->getRolesRequest($app, $contentType); try { $options = $this->createHttpClientOption(); @@ -5986,14 +6056,15 @@ public function getRolesWithHttpInfo(string $contentType = self::contentTypes['g * * Get app roles. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getRoles'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getRolesAsync(string $contentType = self::contentTypes['getRoles'][0]) + public function getRolesAsync($app, string $contentType = self::contentTypes['getRoles'][0]) { - return $this->getRolesAsyncWithHttpInfo($contentType) + return $this->getRolesAsyncWithHttpInfo($app, $contentType) ->then( function ($response) { return $response[0]; @@ -6006,15 +6077,16 @@ function ($response) { * * Get app roles. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getRoles'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getRolesAsyncWithHttpInfo(string $contentType = self::contentTypes['getRoles'][0]) + public function getRolesAsyncWithHttpInfo($app, string $contentType = self::contentTypes['getRoles'][0]) { $returnType = '\Squidex\Client\Model\RolesDto'; - $request = $this->getRolesRequest($contentType); + $request = $this->getRolesRequest($app, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -6055,16 +6127,16 @@ function ($exception) { /** * Create request for operation 'getRoles' * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getRoles'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getRolesRequest(string $contentType = self::contentTypes['getRoles'][0]) + public function getRolesRequest($app, string $contentType = self::contentTypes['getRoles'][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 ' @@ -6149,6 +6221,7 @@ public function getRolesRequest(string $contentType = self::contentTypes['getRol * * Add role to app. * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\AddRoleDto $add_role_dto Role object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postRole'] to see the possible values for this operation * @@ -6156,9 +6229,9 @@ public function getRolesRequest(string $contentType = self::contentTypes['getRol * @throws \InvalidArgumentException * @return \Squidex\Client\Model\RolesDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function postRole($add_role_dto, string $contentType = self::contentTypes['postRole'][0]) + public function postRole($app, $add_role_dto, string $contentType = self::contentTypes['postRole'][0]) { - list($response) = $this->postRoleWithHttpInfo($add_role_dto, $contentType); + list($response) = $this->postRoleWithHttpInfo($app, $add_role_dto, $contentType); return $response; } @@ -6167,6 +6240,7 @@ public function postRole($add_role_dto, string $contentType = self::contentTypes * * Add role to app. * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\AddRoleDto $add_role_dto Role object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postRole'] to see the possible values for this operation * @@ -6174,9 +6248,9 @@ public function postRole($add_role_dto, string $contentType = self::contentTypes * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\RolesDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function postRoleWithHttpInfo($add_role_dto, string $contentType = self::contentTypes['postRole'][0]) + public function postRoleWithHttpInfo($app, $add_role_dto, string $contentType = self::contentTypes['postRole'][0]) { - $request = $this->postRoleRequest($add_role_dto, $contentType); + $request = $this->postRoleRequest($app, $add_role_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -6313,15 +6387,16 @@ public function postRoleWithHttpInfo($add_role_dto, string $contentType = self:: * * Add role to app. * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\AddRoleDto $add_role_dto Role object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postRole'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postRoleAsync($add_role_dto, string $contentType = self::contentTypes['postRole'][0]) + public function postRoleAsync($app, $add_role_dto, string $contentType = self::contentTypes['postRole'][0]) { - return $this->postRoleAsyncWithHttpInfo($add_role_dto, $contentType) + return $this->postRoleAsyncWithHttpInfo($app, $add_role_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -6334,16 +6409,17 @@ function ($response) { * * Add role to app. * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\AddRoleDto $add_role_dto Role object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postRole'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postRoleAsyncWithHttpInfo($add_role_dto, string $contentType = self::contentTypes['postRole'][0]) + public function postRoleAsyncWithHttpInfo($app, $add_role_dto, string $contentType = self::contentTypes['postRole'][0]) { $returnType = '\Squidex\Client\Model\RolesDto'; - $request = $this->postRoleRequest($add_role_dto, $contentType); + $request = $this->postRoleRequest($app, $add_role_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -6384,17 +6460,17 @@ function ($exception) { /** * Create request for operation 'postRole' * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\AddRoleDto $add_role_dto Role object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postRole'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function postRoleRequest($add_role_dto, string $contentType = self::contentTypes['postRole'][0]) + public function postRoleRequest($app, $add_role_dto, string $contentType = self::contentTypes['postRole'][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 ' @@ -6493,6 +6569,7 @@ public function postRoleRequest($add_role_dto, string $contentType = self::conte * * Update an app role. * + * @param string $app The name of the app. (required) * @param string $role_name The name of the role to be updated. (required) * @param \Squidex\Client\Model\UpdateRoleDto $update_role_dto Role to be updated for the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putRole'] to see the possible values for this operation @@ -6501,9 +6578,9 @@ public function postRoleRequest($add_role_dto, string $contentType = self::conte * @throws \InvalidArgumentException * @return \Squidex\Client\Model\RolesDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putRole($role_name, $update_role_dto, string $contentType = self::contentTypes['putRole'][0]) + public function putRole($app, $role_name, $update_role_dto, string $contentType = self::contentTypes['putRole'][0]) { - list($response) = $this->putRoleWithHttpInfo($role_name, $update_role_dto, $contentType); + list($response) = $this->putRoleWithHttpInfo($app, $role_name, $update_role_dto, $contentType); return $response; } @@ -6512,6 +6589,7 @@ public function putRole($role_name, $update_role_dto, string $contentType = self * * Update an app role. * + * @param string $app The name of the app. (required) * @param string $role_name The name of the role to be updated. (required) * @param \Squidex\Client\Model\UpdateRoleDto $update_role_dto Role to be updated for the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putRole'] to see the possible values for this operation @@ -6520,9 +6598,9 @@ public function putRole($role_name, $update_role_dto, string $contentType = self * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\RolesDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putRoleWithHttpInfo($role_name, $update_role_dto, string $contentType = self::contentTypes['putRole'][0]) + public function putRoleWithHttpInfo($app, $role_name, $update_role_dto, string $contentType = self::contentTypes['putRole'][0]) { - $request = $this->putRoleRequest($role_name, $update_role_dto, $contentType); + $request = $this->putRoleRequest($app, $role_name, $update_role_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -6659,6 +6737,7 @@ public function putRoleWithHttpInfo($role_name, $update_role_dto, string $conten * * Update an app role. * + * @param string $app The name of the app. (required) * @param string $role_name The name of the role to be updated. (required) * @param \Squidex\Client\Model\UpdateRoleDto $update_role_dto Role to be updated for the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putRole'] to see the possible values for this operation @@ -6666,9 +6745,9 @@ public function putRoleWithHttpInfo($role_name, $update_role_dto, string $conten * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putRoleAsync($role_name, $update_role_dto, string $contentType = self::contentTypes['putRole'][0]) + public function putRoleAsync($app, $role_name, $update_role_dto, string $contentType = self::contentTypes['putRole'][0]) { - return $this->putRoleAsyncWithHttpInfo($role_name, $update_role_dto, $contentType) + return $this->putRoleAsyncWithHttpInfo($app, $role_name, $update_role_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -6681,6 +6760,7 @@ function ($response) { * * Update an app role. * + * @param string $app The name of the app. (required) * @param string $role_name The name of the role to be updated. (required) * @param \Squidex\Client\Model\UpdateRoleDto $update_role_dto Role to be updated for the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putRole'] to see the possible values for this operation @@ -6688,10 +6768,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putRoleAsyncWithHttpInfo($role_name, $update_role_dto, string $contentType = self::contentTypes['putRole'][0]) + public function putRoleAsyncWithHttpInfo($app, $role_name, $update_role_dto, string $contentType = self::contentTypes['putRole'][0]) { $returnType = '\Squidex\Client\Model\RolesDto'; - $request = $this->putRoleRequest($role_name, $update_role_dto, $contentType); + $request = $this->putRoleRequest($app, $role_name, $update_role_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -6732,6 +6812,7 @@ function ($exception) { /** * Create request for operation 'putRole' * + * @param string $app The name of the app. (required) * @param string $role_name The name of the role to be updated. (required) * @param \Squidex\Client\Model\UpdateRoleDto $update_role_dto Role to be updated for the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putRole'] to see the possible values for this operation @@ -6739,11 +6820,10 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putRoleRequest($role_name, $update_role_dto, string $contentType = self::contentTypes['putRole'][0]) + public function putRoleRequest($app, $role_name, $update_role_dto, string $contentType = self::contentTypes['putRole'][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 ' @@ -6857,15 +6937,16 @@ public function putRoleRequest($role_name, $update_role_dto, string $contentType * * Get the app settings. * + * @param string $app The name of the app to get the settings for. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getSettings'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \Squidex\Client\Model\AppSettingsDto|\Squidex\Client\Model\ErrorDto */ - public function getSettings(string $contentType = self::contentTypes['getSettings'][0]) + public function getSettings($app, string $contentType = self::contentTypes['getSettings'][0]) { - list($response) = $this->getSettingsWithHttpInfo($contentType); + list($response) = $this->getSettingsWithHttpInfo($app, $contentType); return $response; } @@ -6874,15 +6955,16 @@ public function getSettings(string $contentType = self::contentTypes['getSetting * * Get the app settings. * + * @param string $app The name of the app to get the settings for. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getSettings'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\AppSettingsDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getSettingsWithHttpInfo(string $contentType = self::contentTypes['getSettings'][0]) + public function getSettingsWithHttpInfo($app, string $contentType = self::contentTypes['getSettings'][0]) { - $request = $this->getSettingsRequest($contentType); + $request = $this->getSettingsRequest($app, $contentType); try { $options = $this->createHttpClientOption(); @@ -6996,14 +7078,15 @@ public function getSettingsWithHttpInfo(string $contentType = self::contentTypes * * Get the app settings. * + * @param string $app The name of the app to get the settings for. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getSettings'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getSettingsAsync(string $contentType = self::contentTypes['getSettings'][0]) + public function getSettingsAsync($app, string $contentType = self::contentTypes['getSettings'][0]) { - return $this->getSettingsAsyncWithHttpInfo($contentType) + return $this->getSettingsAsyncWithHttpInfo($app, $contentType) ->then( function ($response) { return $response[0]; @@ -7016,15 +7099,16 @@ function ($response) { * * Get the app settings. * + * @param string $app The name of the app to get the settings for. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getSettings'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getSettingsAsyncWithHttpInfo(string $contentType = self::contentTypes['getSettings'][0]) + public function getSettingsAsyncWithHttpInfo($app, string $contentType = self::contentTypes['getSettings'][0]) { $returnType = '\Squidex\Client\Model\AppSettingsDto'; - $request = $this->getSettingsRequest($contentType); + $request = $this->getSettingsRequest($app, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -7065,16 +7149,16 @@ function ($exception) { /** * Create request for operation 'getSettings' * + * @param string $app The name of the app to get the settings for. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getSettings'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getSettingsRequest(string $contentType = self::contentTypes['getSettings'][0]) + public function getSettingsRequest($app, string $contentType = self::contentTypes['getSettings'][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 ' @@ -7159,6 +7243,7 @@ public function getSettingsRequest(string $contentType = self::contentTypes['get * * Update the app settings. * + * @param string $app The name of the app to update. (required) * @param \Squidex\Client\Model\UpdateAppSettingsDto $update_app_settings_dto The values to update. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putSettings'] to see the possible values for this operation * @@ -7166,9 +7251,9 @@ public function getSettingsRequest(string $contentType = self::contentTypes['get * @throws \InvalidArgumentException * @return \Squidex\Client\Model\AppSettingsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putSettings($update_app_settings_dto, string $contentType = self::contentTypes['putSettings'][0]) + public function putSettings($app, $update_app_settings_dto, string $contentType = self::contentTypes['putSettings'][0]) { - list($response) = $this->putSettingsWithHttpInfo($update_app_settings_dto, $contentType); + list($response) = $this->putSettingsWithHttpInfo($app, $update_app_settings_dto, $contentType); return $response; } @@ -7177,6 +7262,7 @@ public function putSettings($update_app_settings_dto, string $contentType = self * * Update the app settings. * + * @param string $app The name of the app to update. (required) * @param \Squidex\Client\Model\UpdateAppSettingsDto $update_app_settings_dto The values to update. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putSettings'] to see the possible values for this operation * @@ -7184,9 +7270,9 @@ public function putSettings($update_app_settings_dto, string $contentType = self * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\AppSettingsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putSettingsWithHttpInfo($update_app_settings_dto, string $contentType = self::contentTypes['putSettings'][0]) + public function putSettingsWithHttpInfo($app, $update_app_settings_dto, string $contentType = self::contentTypes['putSettings'][0]) { - $request = $this->putSettingsRequest($update_app_settings_dto, $contentType); + $request = $this->putSettingsRequest($app, $update_app_settings_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -7323,15 +7409,16 @@ public function putSettingsWithHttpInfo($update_app_settings_dto, string $conten * * Update the app settings. * + * @param string $app The name of the app to update. (required) * @param \Squidex\Client\Model\UpdateAppSettingsDto $update_app_settings_dto The values to update. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putSettings'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putSettingsAsync($update_app_settings_dto, string $contentType = self::contentTypes['putSettings'][0]) + public function putSettingsAsync($app, $update_app_settings_dto, string $contentType = self::contentTypes['putSettings'][0]) { - return $this->putSettingsAsyncWithHttpInfo($update_app_settings_dto, $contentType) + return $this->putSettingsAsyncWithHttpInfo($app, $update_app_settings_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -7344,16 +7431,17 @@ function ($response) { * * Update the app settings. * + * @param string $app The name of the app to update. (required) * @param \Squidex\Client\Model\UpdateAppSettingsDto $update_app_settings_dto The values to update. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putSettings'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putSettingsAsyncWithHttpInfo($update_app_settings_dto, string $contentType = self::contentTypes['putSettings'][0]) + public function putSettingsAsyncWithHttpInfo($app, $update_app_settings_dto, string $contentType = self::contentTypes['putSettings'][0]) { $returnType = '\Squidex\Client\Model\AppSettingsDto'; - $request = $this->putSettingsRequest($update_app_settings_dto, $contentType); + $request = $this->putSettingsRequest($app, $update_app_settings_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -7394,17 +7482,17 @@ function ($exception) { /** * Create request for operation 'putSettings' * + * @param string $app The name of the app to update. (required) * @param \Squidex\Client\Model\UpdateAppSettingsDto $update_app_settings_dto The values to update. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putSettings'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putSettingsRequest($update_app_settings_dto, string $contentType = self::contentTypes['putSettings'][0]) + public function putSettingsRequest($app, $update_app_settings_dto, string $contentType = self::contentTypes['putSettings'][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 ' @@ -7503,6 +7591,7 @@ public function putSettingsRequest($update_app_settings_dto, string $contentType * * Delete a workflow. * + * @param string $app The name of the app. (required) * @param string $id The ID of the workflow to update. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteWorkflow'] to see the possible values for this operation * @@ -7510,9 +7599,9 @@ public function putSettingsRequest($update_app_settings_dto, string $contentType * @throws \InvalidArgumentException * @return \Squidex\Client\Model\WorkflowsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function deleteWorkflow($id, string $contentType = self::contentTypes['deleteWorkflow'][0]) + public function deleteWorkflow($app, $id, string $contentType = self::contentTypes['deleteWorkflow'][0]) { - list($response) = $this->deleteWorkflowWithHttpInfo($id, $contentType); + list($response) = $this->deleteWorkflowWithHttpInfo($app, $id, $contentType); return $response; } @@ -7521,6 +7610,7 @@ public function deleteWorkflow($id, string $contentType = self::contentTypes['de * * Delete a workflow. * + * @param string $app The name of the app. (required) * @param string $id The ID of the workflow to update. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteWorkflow'] to see the possible values for this operation * @@ -7528,9 +7618,9 @@ public function deleteWorkflow($id, string $contentType = self::contentTypes['de * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\WorkflowsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function deleteWorkflowWithHttpInfo($id, string $contentType = self::contentTypes['deleteWorkflow'][0]) + public function deleteWorkflowWithHttpInfo($app, $id, string $contentType = self::contentTypes['deleteWorkflow'][0]) { - $request = $this->deleteWorkflowRequest($id, $contentType); + $request = $this->deleteWorkflowRequest($app, $id, $contentType); try { $options = $this->createHttpClientOption(); @@ -7667,15 +7757,16 @@ public function deleteWorkflowWithHttpInfo($id, string $contentType = self::cont * * Delete a workflow. * + * @param string $app The name of the app. (required) * @param string $id The ID of the workflow to update. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteWorkflow'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteWorkflowAsync($id, string $contentType = self::contentTypes['deleteWorkflow'][0]) + public function deleteWorkflowAsync($app, $id, string $contentType = self::contentTypes['deleteWorkflow'][0]) { - return $this->deleteWorkflowAsyncWithHttpInfo($id, $contentType) + return $this->deleteWorkflowAsyncWithHttpInfo($app, $id, $contentType) ->then( function ($response) { return $response[0]; @@ -7688,16 +7779,17 @@ function ($response) { * * Delete a workflow. * + * @param string $app The name of the app. (required) * @param string $id The ID of the workflow to update. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteWorkflow'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteWorkflowAsyncWithHttpInfo($id, string $contentType = self::contentTypes['deleteWorkflow'][0]) + public function deleteWorkflowAsyncWithHttpInfo($app, $id, string $contentType = self::contentTypes['deleteWorkflow'][0]) { $returnType = '\Squidex\Client\Model\WorkflowsDto'; - $request = $this->deleteWorkflowRequest($id, $contentType); + $request = $this->deleteWorkflowRequest($app, $id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -7738,17 +7830,17 @@ function ($exception) { /** * Create request for operation 'deleteWorkflow' * + * @param string $app The name of the app. (required) * @param string $id The ID of the workflow to update. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteWorkflow'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function deleteWorkflowRequest($id, string $contentType = self::contentTypes['deleteWorkflow'][0]) + public function deleteWorkflowRequest($app, $id, string $contentType = self::contentTypes['deleteWorkflow'][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 ' @@ -7848,15 +7940,16 @@ public function deleteWorkflowRequest($id, string $contentType = self::contentTy * * Get app workflow. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getWorkflows'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \Squidex\Client\Model\WorkflowsDto|\Squidex\Client\Model\ErrorDto */ - public function getWorkflows(string $contentType = self::contentTypes['getWorkflows'][0]) + public function getWorkflows($app, string $contentType = self::contentTypes['getWorkflows'][0]) { - list($response) = $this->getWorkflowsWithHttpInfo($contentType); + list($response) = $this->getWorkflowsWithHttpInfo($app, $contentType); return $response; } @@ -7865,15 +7958,16 @@ public function getWorkflows(string $contentType = self::contentTypes['getWorkfl * * Get app workflow. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getWorkflows'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\WorkflowsDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getWorkflowsWithHttpInfo(string $contentType = self::contentTypes['getWorkflows'][0]) + public function getWorkflowsWithHttpInfo($app, string $contentType = self::contentTypes['getWorkflows'][0]) { - $request = $this->getWorkflowsRequest($contentType); + $request = $this->getWorkflowsRequest($app, $contentType); try { $options = $this->createHttpClientOption(); @@ -7987,14 +8081,15 @@ public function getWorkflowsWithHttpInfo(string $contentType = self::contentType * * Get app workflow. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getWorkflows'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getWorkflowsAsync(string $contentType = self::contentTypes['getWorkflows'][0]) + public function getWorkflowsAsync($app, string $contentType = self::contentTypes['getWorkflows'][0]) { - return $this->getWorkflowsAsyncWithHttpInfo($contentType) + return $this->getWorkflowsAsyncWithHttpInfo($app, $contentType) ->then( function ($response) { return $response[0]; @@ -8007,15 +8102,16 @@ function ($response) { * * Get app workflow. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getWorkflows'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getWorkflowsAsyncWithHttpInfo(string $contentType = self::contentTypes['getWorkflows'][0]) + public function getWorkflowsAsyncWithHttpInfo($app, string $contentType = self::contentTypes['getWorkflows'][0]) { $returnType = '\Squidex\Client\Model\WorkflowsDto'; - $request = $this->getWorkflowsRequest($contentType); + $request = $this->getWorkflowsRequest($app, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -8056,16 +8152,16 @@ function ($exception) { /** * Create request for operation 'getWorkflows' * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getWorkflows'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getWorkflowsRequest(string $contentType = self::contentTypes['getWorkflows'][0]) + public function getWorkflowsRequest($app, string $contentType = self::contentTypes['getWorkflows'][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 ' @@ -8150,6 +8246,7 @@ public function getWorkflowsRequest(string $contentType = self::contentTypes['ge * * Create a workflow. * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\AddWorkflowDto $add_workflow_dto The new workflow. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postWorkflow'] to see the possible values for this operation * @@ -8157,9 +8254,9 @@ public function getWorkflowsRequest(string $contentType = self::contentTypes['ge * @throws \InvalidArgumentException * @return \Squidex\Client\Model\WorkflowsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function postWorkflow($add_workflow_dto, string $contentType = self::contentTypes['postWorkflow'][0]) + public function postWorkflow($app, $add_workflow_dto, string $contentType = self::contentTypes['postWorkflow'][0]) { - list($response) = $this->postWorkflowWithHttpInfo($add_workflow_dto, $contentType); + list($response) = $this->postWorkflowWithHttpInfo($app, $add_workflow_dto, $contentType); return $response; } @@ -8168,6 +8265,7 @@ public function postWorkflow($add_workflow_dto, string $contentType = self::cont * * Create a workflow. * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\AddWorkflowDto $add_workflow_dto The new workflow. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postWorkflow'] to see the possible values for this operation * @@ -8175,9 +8273,9 @@ public function postWorkflow($add_workflow_dto, string $contentType = self::cont * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\WorkflowsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function postWorkflowWithHttpInfo($add_workflow_dto, string $contentType = self::contentTypes['postWorkflow'][0]) + public function postWorkflowWithHttpInfo($app, $add_workflow_dto, string $contentType = self::contentTypes['postWorkflow'][0]) { - $request = $this->postWorkflowRequest($add_workflow_dto, $contentType); + $request = $this->postWorkflowRequest($app, $add_workflow_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -8314,15 +8412,16 @@ public function postWorkflowWithHttpInfo($add_workflow_dto, string $contentType * * Create a workflow. * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\AddWorkflowDto $add_workflow_dto The new workflow. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postWorkflow'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postWorkflowAsync($add_workflow_dto, string $contentType = self::contentTypes['postWorkflow'][0]) + public function postWorkflowAsync($app, $add_workflow_dto, string $contentType = self::contentTypes['postWorkflow'][0]) { - return $this->postWorkflowAsyncWithHttpInfo($add_workflow_dto, $contentType) + return $this->postWorkflowAsyncWithHttpInfo($app, $add_workflow_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -8335,16 +8434,17 @@ function ($response) { * * Create a workflow. * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\AddWorkflowDto $add_workflow_dto The new workflow. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postWorkflow'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postWorkflowAsyncWithHttpInfo($add_workflow_dto, string $contentType = self::contentTypes['postWorkflow'][0]) + public function postWorkflowAsyncWithHttpInfo($app, $add_workflow_dto, string $contentType = self::contentTypes['postWorkflow'][0]) { $returnType = '\Squidex\Client\Model\WorkflowsDto'; - $request = $this->postWorkflowRequest($add_workflow_dto, $contentType); + $request = $this->postWorkflowRequest($app, $add_workflow_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -8385,17 +8485,17 @@ function ($exception) { /** * Create request for operation 'postWorkflow' * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\AddWorkflowDto $add_workflow_dto The new workflow. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postWorkflow'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function postWorkflowRequest($add_workflow_dto, string $contentType = self::contentTypes['postWorkflow'][0]) + public function postWorkflowRequest($app, $add_workflow_dto, string $contentType = self::contentTypes['postWorkflow'][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 ' @@ -8494,6 +8594,7 @@ public function postWorkflowRequest($add_workflow_dto, string $contentType = sel * * Update a workflow. * + * @param string $app The name of the app. (required) * @param string $id The ID of the workflow to update. (required) * @param \Squidex\Client\Model\UpdateWorkflowDto $update_workflow_dto The new workflow. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putWorkflow'] to see the possible values for this operation @@ -8502,9 +8603,9 @@ public function postWorkflowRequest($add_workflow_dto, string $contentType = sel * @throws \InvalidArgumentException * @return \Squidex\Client\Model\WorkflowsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putWorkflow($id, $update_workflow_dto, string $contentType = self::contentTypes['putWorkflow'][0]) + public function putWorkflow($app, $id, $update_workflow_dto, string $contentType = self::contentTypes['putWorkflow'][0]) { - list($response) = $this->putWorkflowWithHttpInfo($id, $update_workflow_dto, $contentType); + list($response) = $this->putWorkflowWithHttpInfo($app, $id, $update_workflow_dto, $contentType); return $response; } @@ -8513,6 +8614,7 @@ public function putWorkflow($id, $update_workflow_dto, string $contentType = sel * * Update a workflow. * + * @param string $app The name of the app. (required) * @param string $id The ID of the workflow to update. (required) * @param \Squidex\Client\Model\UpdateWorkflowDto $update_workflow_dto The new workflow. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putWorkflow'] to see the possible values for this operation @@ -8521,9 +8623,9 @@ public function putWorkflow($id, $update_workflow_dto, string $contentType = sel * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\WorkflowsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putWorkflowWithHttpInfo($id, $update_workflow_dto, string $contentType = self::contentTypes['putWorkflow'][0]) + public function putWorkflowWithHttpInfo($app, $id, $update_workflow_dto, string $contentType = self::contentTypes['putWorkflow'][0]) { - $request = $this->putWorkflowRequest($id, $update_workflow_dto, $contentType); + $request = $this->putWorkflowRequest($app, $id, $update_workflow_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -8660,6 +8762,7 @@ public function putWorkflowWithHttpInfo($id, $update_workflow_dto, string $conte * * Update a workflow. * + * @param string $app The name of the app. (required) * @param string $id The ID of the workflow to update. (required) * @param \Squidex\Client\Model\UpdateWorkflowDto $update_workflow_dto The new workflow. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putWorkflow'] to see the possible values for this operation @@ -8667,9 +8770,9 @@ public function putWorkflowWithHttpInfo($id, $update_workflow_dto, string $conte * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putWorkflowAsync($id, $update_workflow_dto, string $contentType = self::contentTypes['putWorkflow'][0]) + public function putWorkflowAsync($app, $id, $update_workflow_dto, string $contentType = self::contentTypes['putWorkflow'][0]) { - return $this->putWorkflowAsyncWithHttpInfo($id, $update_workflow_dto, $contentType) + return $this->putWorkflowAsyncWithHttpInfo($app, $id, $update_workflow_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -8682,6 +8785,7 @@ function ($response) { * * Update a workflow. * + * @param string $app The name of the app. (required) * @param string $id The ID of the workflow to update. (required) * @param \Squidex\Client\Model\UpdateWorkflowDto $update_workflow_dto The new workflow. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putWorkflow'] to see the possible values for this operation @@ -8689,10 +8793,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putWorkflowAsyncWithHttpInfo($id, $update_workflow_dto, string $contentType = self::contentTypes['putWorkflow'][0]) + public function putWorkflowAsyncWithHttpInfo($app, $id, $update_workflow_dto, string $contentType = self::contentTypes['putWorkflow'][0]) { $returnType = '\Squidex\Client\Model\WorkflowsDto'; - $request = $this->putWorkflowRequest($id, $update_workflow_dto, $contentType); + $request = $this->putWorkflowRequest($app, $id, $update_workflow_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -8733,6 +8837,7 @@ function ($exception) { /** * Create request for operation 'putWorkflow' * + * @param string $app The name of the app. (required) * @param string $id The ID of the workflow to update. (required) * @param \Squidex\Client\Model\UpdateWorkflowDto $update_workflow_dto The new workflow. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putWorkflow'] to see the possible values for this operation @@ -8740,11 +8845,10 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putWorkflowRequest($id, $update_workflow_dto, string $contentType = self::contentTypes['putWorkflow'][0]) + public function putWorkflowRequest($app, $id, $update_workflow_dto, string $contentType = self::contentTypes['putWorkflow'][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 ' @@ -8858,15 +8962,16 @@ public function putWorkflowRequest($id, $update_workflow_dto, string $contentTyp * * Delete the app. * + * @param string $app The name of the app to delete. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteApp'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return void */ - public function deleteApp(string $contentType = self::contentTypes['deleteApp'][0]) + public function deleteApp($app, string $contentType = self::contentTypes['deleteApp'][0]) { - $this->deleteAppWithHttpInfo($contentType); + $this->deleteAppWithHttpInfo($app, $contentType); } /** @@ -8874,15 +8979,16 @@ public function deleteApp(string $contentType = self::contentTypes['deleteApp'][ * * Delete the app. * + * @param string $app The name of the app to delete. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteApp'] 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 deleteAppWithHttpInfo(string $contentType = self::contentTypes['deleteApp'][0]) + public function deleteAppWithHttpInfo($app, string $contentType = self::contentTypes['deleteApp'][0]) { - $request = $this->deleteAppRequest($contentType); + $request = $this->deleteAppRequest($app, $contentType); try { $options = $this->createHttpClientOption(); @@ -8949,14 +9055,15 @@ public function deleteAppWithHttpInfo(string $contentType = self::contentTypes[' * * Delete the app. * + * @param string $app The name of the app to delete. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteApp'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteAppAsync(string $contentType = self::contentTypes['deleteApp'][0]) + public function deleteAppAsync($app, string $contentType = self::contentTypes['deleteApp'][0]) { - return $this->deleteAppAsyncWithHttpInfo($contentType) + return $this->deleteAppAsyncWithHttpInfo($app, $contentType) ->then( function ($response) { return $response[0]; @@ -8969,15 +9076,16 @@ function ($response) { * * Delete the app. * + * @param string $app The name of the app to delete. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteApp'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteAppAsyncWithHttpInfo(string $contentType = self::contentTypes['deleteApp'][0]) + public function deleteAppAsyncWithHttpInfo($app, string $contentType = self::contentTypes['deleteApp'][0]) { $returnType = ''; - $request = $this->deleteAppRequest($contentType); + $request = $this->deleteAppRequest($app, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -9005,16 +9113,16 @@ function ($exception) { /** * Create request for operation 'deleteApp' * + * @param string $app The name of the app to delete. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteApp'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function deleteAppRequest(string $contentType = self::contentTypes['deleteApp'][0]) + public function deleteAppRequest($app, string $contentType = self::contentTypes['deleteApp'][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 ' @@ -9099,15 +9207,16 @@ public function deleteAppRequest(string $contentType = self::contentTypes['delet * * Remove the app image. * + * @param string $app The name of the app to update. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteImage'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \Squidex\Client\Model\AppDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function deleteImage(string $contentType = self::contentTypes['deleteImage'][0]) + public function deleteImage($app, string $contentType = self::contentTypes['deleteImage'][0]) { - list($response) = $this->deleteImageWithHttpInfo($contentType); + list($response) = $this->deleteImageWithHttpInfo($app, $contentType); return $response; } @@ -9116,15 +9225,16 @@ public function deleteImage(string $contentType = self::contentTypes['deleteImag * * Remove the app image. * + * @param string $app The name of the app to update. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteImage'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\AppDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function deleteImageWithHttpInfo(string $contentType = self::contentTypes['deleteImage'][0]) + public function deleteImageWithHttpInfo($app, string $contentType = self::contentTypes['deleteImage'][0]) { - $request = $this->deleteImageRequest($contentType); + $request = $this->deleteImageRequest($app, $contentType); try { $options = $this->createHttpClientOption(); @@ -9261,14 +9371,15 @@ public function deleteImageWithHttpInfo(string $contentType = self::contentTypes * * Remove the app image. * + * @param string $app The name of the app to update. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteImage'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteImageAsync(string $contentType = self::contentTypes['deleteImage'][0]) + public function deleteImageAsync($app, string $contentType = self::contentTypes['deleteImage'][0]) { - return $this->deleteImageAsyncWithHttpInfo($contentType) + return $this->deleteImageAsyncWithHttpInfo($app, $contentType) ->then( function ($response) { return $response[0]; @@ -9281,15 +9392,16 @@ function ($response) { * * Remove the app image. * + * @param string $app The name of the app to update. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteImage'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteImageAsyncWithHttpInfo(string $contentType = self::contentTypes['deleteImage'][0]) + public function deleteImageAsyncWithHttpInfo($app, string $contentType = self::contentTypes['deleteImage'][0]) { $returnType = '\Squidex\Client\Model\AppDto'; - $request = $this->deleteImageRequest($contentType); + $request = $this->deleteImageRequest($app, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -9330,16 +9442,16 @@ function ($exception) { /** * Create request for operation 'deleteImage' * + * @param string $app The name of the app to update. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteImage'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function deleteImageRequest(string $contentType = self::contentTypes['deleteImage'][0]) + public function deleteImageRequest($app, string $contentType = self::contentTypes['deleteImage'][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 ' @@ -9424,15 +9536,16 @@ public function deleteImageRequest(string $contentType = self::contentTypes['del * * Get an app by name. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getApp'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \Squidex\Client\Model\AppDto|\Squidex\Client\Model\ErrorDto */ - public function getApp(string $contentType = self::contentTypes['getApp'][0]) + public function getApp($app, string $contentType = self::contentTypes['getApp'][0]) { - list($response) = $this->getAppWithHttpInfo($contentType); + list($response) = $this->getAppWithHttpInfo($app, $contentType); return $response; } @@ -9441,15 +9554,16 @@ public function getApp(string $contentType = self::contentTypes['getApp'][0]) * * Get an app by name. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getApp'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\AppDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getAppWithHttpInfo(string $contentType = self::contentTypes['getApp'][0]) + public function getAppWithHttpInfo($app, string $contentType = self::contentTypes['getApp'][0]) { - $request = $this->getAppRequest($contentType); + $request = $this->getAppRequest($app, $contentType); try { $options = $this->createHttpClientOption(); @@ -9563,14 +9677,15 @@ public function getAppWithHttpInfo(string $contentType = self::contentTypes['get * * Get an app by name. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getApp'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getAppAsync(string $contentType = self::contentTypes['getApp'][0]) + public function getAppAsync($app, string $contentType = self::contentTypes['getApp'][0]) { - return $this->getAppAsyncWithHttpInfo($contentType) + return $this->getAppAsyncWithHttpInfo($app, $contentType) ->then( function ($response) { return $response[0]; @@ -9583,15 +9698,16 @@ function ($response) { * * Get an app by name. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getApp'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getAppAsyncWithHttpInfo(string $contentType = self::contentTypes['getApp'][0]) + public function getAppAsyncWithHttpInfo($app, string $contentType = self::contentTypes['getApp'][0]) { $returnType = '\Squidex\Client\Model\AppDto'; - $request = $this->getAppRequest($contentType); + $request = $this->getAppRequest($app, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -9632,16 +9748,16 @@ function ($exception) { /** * Create request for operation 'getApp' * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getApp'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getAppRequest(string $contentType = self::contentTypes['getApp'][0]) + public function getAppRequest($app, string $contentType = self::contentTypes['getApp'][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 ' @@ -10669,6 +10785,7 @@ public function postAppRequest($create_app_dto, string $contentType = self::cont * * Update the app. * + * @param string $app The name of the app to update. (required) * @param \Squidex\Client\Model\UpdateAppDto $update_app_dto The values to update. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putApp'] to see the possible values for this operation * @@ -10676,9 +10793,9 @@ public function postAppRequest($create_app_dto, string $contentType = self::cont * @throws \InvalidArgumentException * @return \Squidex\Client\Model\AppDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putApp($update_app_dto, string $contentType = self::contentTypes['putApp'][0]) + public function putApp($app, $update_app_dto, string $contentType = self::contentTypes['putApp'][0]) { - list($response) = $this->putAppWithHttpInfo($update_app_dto, $contentType); + list($response) = $this->putAppWithHttpInfo($app, $update_app_dto, $contentType); return $response; } @@ -10687,6 +10804,7 @@ public function putApp($update_app_dto, string $contentType = self::contentTypes * * Update the app. * + * @param string $app The name of the app to update. (required) * @param \Squidex\Client\Model\UpdateAppDto $update_app_dto The values to update. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putApp'] to see the possible values for this operation * @@ -10694,9 +10812,9 @@ public function putApp($update_app_dto, string $contentType = self::contentTypes * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\AppDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putAppWithHttpInfo($update_app_dto, string $contentType = self::contentTypes['putApp'][0]) + public function putAppWithHttpInfo($app, $update_app_dto, string $contentType = self::contentTypes['putApp'][0]) { - $request = $this->putAppRequest($update_app_dto, $contentType); + $request = $this->putAppRequest($app, $update_app_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -10833,15 +10951,16 @@ public function putAppWithHttpInfo($update_app_dto, string $contentType = self:: * * Update the app. * + * @param string $app The name of the app to update. (required) * @param \Squidex\Client\Model\UpdateAppDto $update_app_dto The values to update. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putApp'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putAppAsync($update_app_dto, string $contentType = self::contentTypes['putApp'][0]) + public function putAppAsync($app, $update_app_dto, string $contentType = self::contentTypes['putApp'][0]) { - return $this->putAppAsyncWithHttpInfo($update_app_dto, $contentType) + return $this->putAppAsyncWithHttpInfo($app, $update_app_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -10854,16 +10973,17 @@ function ($response) { * * Update the app. * + * @param string $app The name of the app to update. (required) * @param \Squidex\Client\Model\UpdateAppDto $update_app_dto The values to update. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putApp'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putAppAsyncWithHttpInfo($update_app_dto, string $contentType = self::contentTypes['putApp'][0]) + public function putAppAsyncWithHttpInfo($app, $update_app_dto, string $contentType = self::contentTypes['putApp'][0]) { $returnType = '\Squidex\Client\Model\AppDto'; - $request = $this->putAppRequest($update_app_dto, $contentType); + $request = $this->putAppRequest($app, $update_app_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -10904,17 +11024,17 @@ function ($exception) { /** * Create request for operation 'putApp' * + * @param string $app The name of the app to update. (required) * @param \Squidex\Client\Model\UpdateAppDto $update_app_dto The values to update. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putApp'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putAppRequest($update_app_dto, string $contentType = self::contentTypes['putApp'][0]) + public function putAppRequest($app, $update_app_dto, string $contentType = self::contentTypes['putApp'][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 ' @@ -11013,6 +11133,7 @@ public function putAppRequest($update_app_dto, string $contentType = self::conte * * Transfer the app. * + * @param string $app The name of the app to update. (required) * @param \Squidex\Client\Model\TransferToTeamDto $transfer_to_team_dto The team information. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAppTeam'] to see the possible values for this operation * @@ -11020,9 +11141,9 @@ public function putAppRequest($update_app_dto, string $contentType = self::conte * @throws \InvalidArgumentException * @return \Squidex\Client\Model\AppDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putAppTeam($transfer_to_team_dto, string $contentType = self::contentTypes['putAppTeam'][0]) + public function putAppTeam($app, $transfer_to_team_dto, string $contentType = self::contentTypes['putAppTeam'][0]) { - list($response) = $this->putAppTeamWithHttpInfo($transfer_to_team_dto, $contentType); + list($response) = $this->putAppTeamWithHttpInfo($app, $transfer_to_team_dto, $contentType); return $response; } @@ -11031,6 +11152,7 @@ public function putAppTeam($transfer_to_team_dto, string $contentType = self::co * * Transfer the app. * + * @param string $app The name of the app to update. (required) * @param \Squidex\Client\Model\TransferToTeamDto $transfer_to_team_dto The team information. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAppTeam'] to see the possible values for this operation * @@ -11038,9 +11160,9 @@ public function putAppTeam($transfer_to_team_dto, string $contentType = self::co * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\AppDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putAppTeamWithHttpInfo($transfer_to_team_dto, string $contentType = self::contentTypes['putAppTeam'][0]) + public function putAppTeamWithHttpInfo($app, $transfer_to_team_dto, string $contentType = self::contentTypes['putAppTeam'][0]) { - $request = $this->putAppTeamRequest($transfer_to_team_dto, $contentType); + $request = $this->putAppTeamRequest($app, $transfer_to_team_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -11177,15 +11299,16 @@ public function putAppTeamWithHttpInfo($transfer_to_team_dto, string $contentTyp * * Transfer the app. * + * @param string $app The name of the app to update. (required) * @param \Squidex\Client\Model\TransferToTeamDto $transfer_to_team_dto The team information. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAppTeam'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putAppTeamAsync($transfer_to_team_dto, string $contentType = self::contentTypes['putAppTeam'][0]) + public function putAppTeamAsync($app, $transfer_to_team_dto, string $contentType = self::contentTypes['putAppTeam'][0]) { - return $this->putAppTeamAsyncWithHttpInfo($transfer_to_team_dto, $contentType) + return $this->putAppTeamAsyncWithHttpInfo($app, $transfer_to_team_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -11198,16 +11321,17 @@ function ($response) { * * Transfer the app. * + * @param string $app The name of the app to update. (required) * @param \Squidex\Client\Model\TransferToTeamDto $transfer_to_team_dto The team information. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAppTeam'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putAppTeamAsyncWithHttpInfo($transfer_to_team_dto, string $contentType = self::contentTypes['putAppTeam'][0]) + public function putAppTeamAsyncWithHttpInfo($app, $transfer_to_team_dto, string $contentType = self::contentTypes['putAppTeam'][0]) { $returnType = '\Squidex\Client\Model\AppDto'; - $request = $this->putAppTeamRequest($transfer_to_team_dto, $contentType); + $request = $this->putAppTeamRequest($app, $transfer_to_team_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -11248,17 +11372,17 @@ function ($exception) { /** * Create request for operation 'putAppTeam' * + * @param string $app The name of the app to update. (required) * @param \Squidex\Client\Model\TransferToTeamDto $transfer_to_team_dto The team information. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAppTeam'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putAppTeamRequest($transfer_to_team_dto, string $contentType = self::contentTypes['putAppTeam'][0]) + public function putAppTeamRequest($app, $transfer_to_team_dto, string $contentType = self::contentTypes['putAppTeam'][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 ' @@ -11357,6 +11481,7 @@ public function putAppTeamRequest($transfer_to_team_dto, string $contentType = s * * Upload the app image. * + * @param string $app The name of the app to update. (required) * @param \SplFileObject $file file (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadImage'] to see the possible values for this operation * @@ -11364,9 +11489,9 @@ public function putAppTeamRequest($transfer_to_team_dto, string $contentType = s * @throws \InvalidArgumentException * @return \Squidex\Client\Model\AppDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function uploadImage($file = null, string $contentType = self::contentTypes['uploadImage'][0]) + public function uploadImage($app, $file = null, string $contentType = self::contentTypes['uploadImage'][0]) { - list($response) = $this->uploadImageWithHttpInfo($file, $contentType); + list($response) = $this->uploadImageWithHttpInfo($app, $file, $contentType); return $response; } @@ -11375,6 +11500,7 @@ public function uploadImage($file = null, string $contentType = self::contentTyp * * Upload the app image. * + * @param string $app The name of the app to update. (required) * @param \SplFileObject $file (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadImage'] to see the possible values for this operation * @@ -11382,9 +11508,9 @@ public function uploadImage($file = null, string $contentType = self::contentTyp * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\AppDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function uploadImageWithHttpInfo($file = null, string $contentType = self::contentTypes['uploadImage'][0]) + public function uploadImageWithHttpInfo($app, $file = null, string $contentType = self::contentTypes['uploadImage'][0]) { - $request = $this->uploadImageRequest($file, $contentType); + $request = $this->uploadImageRequest($app, $file, $contentType); try { $options = $this->createHttpClientOption(); @@ -11521,15 +11647,16 @@ public function uploadImageWithHttpInfo($file = null, string $contentType = self * * Upload the app image. * + * @param string $app The name of the app to update. (required) * @param \SplFileObject $file (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadImage'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function uploadImageAsync($file = null, string $contentType = self::contentTypes['uploadImage'][0]) + public function uploadImageAsync($app, $file = null, string $contentType = self::contentTypes['uploadImage'][0]) { - return $this->uploadImageAsyncWithHttpInfo($file, $contentType) + return $this->uploadImageAsyncWithHttpInfo($app, $file, $contentType) ->then( function ($response) { return $response[0]; @@ -11542,16 +11669,17 @@ function ($response) { * * Upload the app image. * + * @param string $app The name of the app to update. (required) * @param \SplFileObject $file (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadImage'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function uploadImageAsyncWithHttpInfo($file = null, string $contentType = self::contentTypes['uploadImage'][0]) + public function uploadImageAsyncWithHttpInfo($app, $file = null, string $contentType = self::contentTypes['uploadImage'][0]) { $returnType = '\Squidex\Client\Model\AppDto'; - $request = $this->uploadImageRequest($file, $contentType); + $request = $this->uploadImageRequest($app, $file, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -11592,17 +11720,17 @@ function ($exception) { /** * Create request for operation 'uploadImage' * + * @param string $app The name of the app to update. (required) * @param \SplFileObject $file (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadImage'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function uploadImageRequest($file = null, string $contentType = self::contentTypes['uploadImage'][0]) + public function uploadImageRequest($app, $file = null, string $contentType = self::contentTypes['uploadImage'][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 ' diff --git a/lib/Api/AssetsApi.php b/lib/Api/AssetsApi.php index c630ee0..63a7d8c 100644 --- a/lib/Api/AssetsApi.php +++ b/lib/Api/AssetsApi.php @@ -192,6 +192,7 @@ public function getConfig() * @param bool $nofocus True to ignore the asset focus point if any. (optional) * @param bool $auto True to use auto format. (optional) * @param bool $force True to force a new resize even if it already stored. (optional) + * @param bool $deleted Also return deleted content items. (optional) * @param ImageFormat $format True to force a new resize even if it already stored. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAssetContent'] to see the possible values for this operation * @@ -200,9 +201,9 @@ public function getConfig() * @return \SplFileObject|\Squidex\Client\Model\ErrorDto * @deprecated */ - public function getAssetContent($id, $version = null, $cache = null, $download = null, $width = null, $height = null, $quality = null, $mode = null, $bg = null, $focus_x = null, $focus_y = null, $nofocus = null, $auto = null, $force = null, $format = null, string $contentType = self::contentTypes['getAssetContent'][0]) + public function getAssetContent($id, $version = null, $cache = null, $download = null, $width = null, $height = null, $quality = null, $mode = null, $bg = null, $focus_x = null, $focus_y = null, $nofocus = null, $auto = null, $force = null, $deleted = null, $format = null, string $contentType = self::contentTypes['getAssetContent'][0]) { - list($response) = $this->getAssetContentWithHttpInfo($id, $version, $cache, $download, $width, $height, $quality, $mode, $bg, $focus_x, $focus_y, $nofocus, $auto, $force, $format, $contentType); + list($response) = $this->getAssetContentWithHttpInfo($id, $version, $cache, $download, $width, $height, $quality, $mode, $bg, $focus_x, $focus_y, $nofocus, $auto, $force, $deleted, $format, $contentType); return $response; } @@ -225,6 +226,7 @@ public function getAssetContent($id, $version = null, $cache = null, $download = * @param bool $nofocus True to ignore the asset focus point if any. (optional) * @param bool $auto True to use auto format. (optional) * @param bool $force True to force a new resize even if it already stored. (optional) + * @param bool $deleted Also return deleted content items. (optional) * @param ImageFormat $format True to force a new resize even if it already stored. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAssetContent'] to see the possible values for this operation * @@ -233,9 +235,9 @@ public function getAssetContent($id, $version = null, $cache = null, $download = * @return array of \SplFileObject|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) * @deprecated */ - public function getAssetContentWithHttpInfo($id, $version = null, $cache = null, $download = null, $width = null, $height = null, $quality = null, $mode = null, $bg = null, $focus_x = null, $focus_y = null, $nofocus = null, $auto = null, $force = null, $format = null, string $contentType = self::contentTypes['getAssetContent'][0]) + public function getAssetContentWithHttpInfo($id, $version = null, $cache = null, $download = null, $width = null, $height = null, $quality = null, $mode = null, $bg = null, $focus_x = null, $focus_y = null, $nofocus = null, $auto = null, $force = null, $deleted = null, $format = null, string $contentType = self::contentTypes['getAssetContent'][0]) { - $request = $this->getAssetContentRequest($id, $version, $cache, $download, $width, $height, $quality, $mode, $bg, $focus_x, $focus_y, $nofocus, $auto, $force, $format, $contentType); + $request = $this->getAssetContentRequest($id, $version, $cache, $download, $width, $height, $quality, $mode, $bg, $focus_x, $focus_y, $nofocus, $auto, $force, $deleted, $format, $contentType); try { $options = $this->createHttpClientOption(); @@ -363,6 +365,7 @@ public function getAssetContentWithHttpInfo($id, $version = null, $cache = null, * @param bool $nofocus True to ignore the asset focus point if any. (optional) * @param bool $auto True to use auto format. (optional) * @param bool $force True to force a new resize even if it already stored. (optional) + * @param bool $deleted Also return deleted content items. (optional) * @param ImageFormat $format True to force a new resize even if it already stored. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAssetContent'] to see the possible values for this operation * @@ -370,9 +373,9 @@ public function getAssetContentWithHttpInfo($id, $version = null, $cache = null, * @return \GuzzleHttp\Promise\PromiseInterface * @deprecated */ - public function getAssetContentAsync($id, $version = null, $cache = null, $download = null, $width = null, $height = null, $quality = null, $mode = null, $bg = null, $focus_x = null, $focus_y = null, $nofocus = null, $auto = null, $force = null, $format = null, string $contentType = self::contentTypes['getAssetContent'][0]) + public function getAssetContentAsync($id, $version = null, $cache = null, $download = null, $width = null, $height = null, $quality = null, $mode = null, $bg = null, $focus_x = null, $focus_y = null, $nofocus = null, $auto = null, $force = null, $deleted = null, $format = null, string $contentType = self::contentTypes['getAssetContent'][0]) { - return $this->getAssetContentAsyncWithHttpInfo($id, $version, $cache, $download, $width, $height, $quality, $mode, $bg, $focus_x, $focus_y, $nofocus, $auto, $force, $format, $contentType) + return $this->getAssetContentAsyncWithHttpInfo($id, $version, $cache, $download, $width, $height, $quality, $mode, $bg, $focus_x, $focus_y, $nofocus, $auto, $force, $deleted, $format, $contentType) ->then( function ($response) { return $response[0]; @@ -399,6 +402,7 @@ function ($response) { * @param bool $nofocus True to ignore the asset focus point if any. (optional) * @param bool $auto True to use auto format. (optional) * @param bool $force True to force a new resize even if it already stored. (optional) + * @param bool $deleted Also return deleted content items. (optional) * @param ImageFormat $format True to force a new resize even if it already stored. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAssetContent'] to see the possible values for this operation * @@ -406,10 +410,10 @@ function ($response) { * @return \GuzzleHttp\Promise\PromiseInterface * @deprecated */ - public function getAssetContentAsyncWithHttpInfo($id, $version = null, $cache = null, $download = null, $width = null, $height = null, $quality = null, $mode = null, $bg = null, $focus_x = null, $focus_y = null, $nofocus = null, $auto = null, $force = null, $format = null, string $contentType = self::contentTypes['getAssetContent'][0]) + public function getAssetContentAsyncWithHttpInfo($id, $version = null, $cache = null, $download = null, $width = null, $height = null, $quality = null, $mode = null, $bg = null, $focus_x = null, $focus_y = null, $nofocus = null, $auto = null, $force = null, $deleted = null, $format = null, string $contentType = self::contentTypes['getAssetContent'][0]) { $returnType = '\SplFileObject'; - $request = $this->getAssetContentRequest($id, $version, $cache, $download, $width, $height, $quality, $mode, $bg, $focus_x, $focus_y, $nofocus, $auto, $force, $format, $contentType); + $request = $this->getAssetContentRequest($id, $version, $cache, $download, $width, $height, $quality, $mode, $bg, $focus_x, $focus_y, $nofocus, $auto, $force, $deleted, $format, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -464,6 +468,7 @@ function ($exception) { * @param bool $nofocus True to ignore the asset focus point if any. (optional) * @param bool $auto True to use auto format. (optional) * @param bool $force True to force a new resize even if it already stored. (optional) + * @param bool $deleted Also return deleted content items. (optional) * @param ImageFormat $format True to force a new resize even if it already stored. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAssetContent'] to see the possible values for this operation * @@ -471,7 +476,7 @@ function ($exception) { * @return \GuzzleHttp\Psr7\Request * @deprecated */ - public function getAssetContentRequest($id, $version = null, $cache = null, $download = null, $width = null, $height = null, $quality = null, $mode = null, $bg = null, $focus_x = null, $focus_y = null, $nofocus = null, $auto = null, $force = null, $format = null, string $contentType = self::contentTypes['getAssetContent'][0]) + public function getAssetContentRequest($id, $version = null, $cache = null, $download = null, $width = null, $height = null, $quality = null, $mode = null, $bg = null, $focus_x = null, $focus_y = null, $nofocus = null, $auto = null, $force = null, $deleted = null, $format = null, string $contentType = self::contentTypes['getAssetContent'][0]) { // verify the required parameter 'id' is set @@ -496,6 +501,7 @@ public function getAssetContentRequest($id, $version = null, $cache = null, $dow + $resourcePath = '/api/assets/{id}'; $formParams = []; $queryParams = []; @@ -621,6 +627,15 @@ public function getAssetContentRequest($id, $version = null, $cache = null, $dow false // required ) ?? []); // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $deleted, + 'deleted', // param base name + 'boolean', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( $format, 'format', // param base name @@ -699,6 +714,7 @@ public function getAssetContentRequest($id, $version = null, $cache = null, $dow * * Get the asset content. * + * @param string $app The name of the app. (required) * @param string $id_or_slug The id or slug of the asset. (required) * @param string $more Optional suffix that can be used to seo-optimize the link to the image Has not effect. (required) * @param int $version The optional version of the asset. (optional) @@ -714,6 +730,7 @@ public function getAssetContentRequest($id, $version = null, $cache = null, $dow * @param bool $nofocus True to ignore the asset focus point if any. (optional) * @param bool $auto True to use auto format. (optional) * @param bool $force True to force a new resize even if it already stored. (optional) + * @param bool $deleted Also return deleted content items. (optional) * @param ImageFormat $format True to force a new resize even if it already stored. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAssetContentBySlug'] to see the possible values for this operation * @@ -721,9 +738,9 @@ public function getAssetContentRequest($id, $version = null, $cache = null, $dow * @throws \InvalidArgumentException * @return \SplFileObject|\Squidex\Client\Model\ErrorDto */ - public function getAssetContentBySlug($id_or_slug, $more, $version = null, $cache = null, $download = null, $width = null, $height = null, $quality = null, $mode = null, $bg = null, $focus_x = null, $focus_y = null, $nofocus = null, $auto = null, $force = null, $format = null, string $contentType = self::contentTypes['getAssetContentBySlug'][0]) + public function getAssetContentBySlug($app, $id_or_slug, $more, $version = null, $cache = null, $download = null, $width = null, $height = null, $quality = null, $mode = null, $bg = null, $focus_x = null, $focus_y = null, $nofocus = null, $auto = null, $force = null, $deleted = null, $format = null, string $contentType = self::contentTypes['getAssetContentBySlug'][0]) { - list($response) = $this->getAssetContentBySlugWithHttpInfo($id_or_slug, $more, $version, $cache, $download, $width, $height, $quality, $mode, $bg, $focus_x, $focus_y, $nofocus, $auto, $force, $format, $contentType); + list($response) = $this->getAssetContentBySlugWithHttpInfo($app, $id_or_slug, $more, $version, $cache, $download, $width, $height, $quality, $mode, $bg, $focus_x, $focus_y, $nofocus, $auto, $force, $deleted, $format, $contentType); return $response; } @@ -732,6 +749,7 @@ public function getAssetContentBySlug($id_or_slug, $more, $version = null, $cach * * Get the asset content. * + * @param string $app The name of the app. (required) * @param string $id_or_slug The id or slug of the asset. (required) * @param string $more Optional suffix that can be used to seo-optimize the link to the image Has not effect. (required) * @param int $version The optional version of the asset. (optional) @@ -747,6 +765,7 @@ public function getAssetContentBySlug($id_or_slug, $more, $version = null, $cach * @param bool $nofocus True to ignore the asset focus point if any. (optional) * @param bool $auto True to use auto format. (optional) * @param bool $force True to force a new resize even if it already stored. (optional) + * @param bool $deleted Also return deleted content items. (optional) * @param ImageFormat $format True to force a new resize even if it already stored. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAssetContentBySlug'] to see the possible values for this operation * @@ -754,9 +773,9 @@ public function getAssetContentBySlug($id_or_slug, $more, $version = null, $cach * @throws \InvalidArgumentException * @return array of \SplFileObject|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getAssetContentBySlugWithHttpInfo($id_or_slug, $more, $version = null, $cache = null, $download = null, $width = null, $height = null, $quality = null, $mode = null, $bg = null, $focus_x = null, $focus_y = null, $nofocus = null, $auto = null, $force = null, $format = null, string $contentType = self::contentTypes['getAssetContentBySlug'][0]) + public function getAssetContentBySlugWithHttpInfo($app, $id_or_slug, $more, $version = null, $cache = null, $download = null, $width = null, $height = null, $quality = null, $mode = null, $bg = null, $focus_x = null, $focus_y = null, $nofocus = null, $auto = null, $force = null, $deleted = null, $format = null, string $contentType = self::contentTypes['getAssetContentBySlug'][0]) { - $request = $this->getAssetContentBySlugRequest($id_or_slug, $more, $version, $cache, $download, $width, $height, $quality, $mode, $bg, $focus_x, $focus_y, $nofocus, $auto, $force, $format, $contentType); + $request = $this->getAssetContentBySlugRequest($app, $id_or_slug, $more, $version, $cache, $download, $width, $height, $quality, $mode, $bg, $focus_x, $focus_y, $nofocus, $auto, $force, $deleted, $format, $contentType); try { $options = $this->createHttpClientOption(); @@ -870,6 +889,7 @@ public function getAssetContentBySlugWithHttpInfo($id_or_slug, $more, $version = * * Get the asset content. * + * @param string $app The name of the app. (required) * @param string $id_or_slug The id or slug of the asset. (required) * @param string $more Optional suffix that can be used to seo-optimize the link to the image Has not effect. (required) * @param int $version The optional version of the asset. (optional) @@ -885,15 +905,16 @@ public function getAssetContentBySlugWithHttpInfo($id_or_slug, $more, $version = * @param bool $nofocus True to ignore the asset focus point if any. (optional) * @param bool $auto True to use auto format. (optional) * @param bool $force True to force a new resize even if it already stored. (optional) + * @param bool $deleted Also return deleted content items. (optional) * @param ImageFormat $format True to force a new resize even if it already stored. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAssetContentBySlug'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getAssetContentBySlugAsync($id_or_slug, $more, $version = null, $cache = null, $download = null, $width = null, $height = null, $quality = null, $mode = null, $bg = null, $focus_x = null, $focus_y = null, $nofocus = null, $auto = null, $force = null, $format = null, string $contentType = self::contentTypes['getAssetContentBySlug'][0]) + public function getAssetContentBySlugAsync($app, $id_or_slug, $more, $version = null, $cache = null, $download = null, $width = null, $height = null, $quality = null, $mode = null, $bg = null, $focus_x = null, $focus_y = null, $nofocus = null, $auto = null, $force = null, $deleted = null, $format = null, string $contentType = self::contentTypes['getAssetContentBySlug'][0]) { - return $this->getAssetContentBySlugAsyncWithHttpInfo($id_or_slug, $more, $version, $cache, $download, $width, $height, $quality, $mode, $bg, $focus_x, $focus_y, $nofocus, $auto, $force, $format, $contentType) + return $this->getAssetContentBySlugAsyncWithHttpInfo($app, $id_or_slug, $more, $version, $cache, $download, $width, $height, $quality, $mode, $bg, $focus_x, $focus_y, $nofocus, $auto, $force, $deleted, $format, $contentType) ->then( function ($response) { return $response[0]; @@ -906,6 +927,7 @@ function ($response) { * * Get the asset content. * + * @param string $app The name of the app. (required) * @param string $id_or_slug The id or slug of the asset. (required) * @param string $more Optional suffix that can be used to seo-optimize the link to the image Has not effect. (required) * @param int $version The optional version of the asset. (optional) @@ -921,16 +943,17 @@ function ($response) { * @param bool $nofocus True to ignore the asset focus point if any. (optional) * @param bool $auto True to use auto format. (optional) * @param bool $force True to force a new resize even if it already stored. (optional) + * @param bool $deleted Also return deleted content items. (optional) * @param ImageFormat $format True to force a new resize even if it already stored. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAssetContentBySlug'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getAssetContentBySlugAsyncWithHttpInfo($id_or_slug, $more, $version = null, $cache = null, $download = null, $width = null, $height = null, $quality = null, $mode = null, $bg = null, $focus_x = null, $focus_y = null, $nofocus = null, $auto = null, $force = null, $format = null, string $contentType = self::contentTypes['getAssetContentBySlug'][0]) + public function getAssetContentBySlugAsyncWithHttpInfo($app, $id_or_slug, $more, $version = null, $cache = null, $download = null, $width = null, $height = null, $quality = null, $mode = null, $bg = null, $focus_x = null, $focus_y = null, $nofocus = null, $auto = null, $force = null, $deleted = null, $format = null, string $contentType = self::contentTypes['getAssetContentBySlug'][0]) { $returnType = '\SplFileObject'; - $request = $this->getAssetContentBySlugRequest($id_or_slug, $more, $version, $cache, $download, $width, $height, $quality, $mode, $bg, $focus_x, $focus_y, $nofocus, $auto, $force, $format, $contentType); + $request = $this->getAssetContentBySlugRequest($app, $id_or_slug, $more, $version, $cache, $download, $width, $height, $quality, $mode, $bg, $focus_x, $focus_y, $nofocus, $auto, $force, $deleted, $format, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -971,6 +994,7 @@ function ($exception) { /** * Create request for operation 'getAssetContentBySlug' * + * @param string $app The name of the app. (required) * @param string $id_or_slug The id or slug of the asset. (required) * @param string $more Optional suffix that can be used to seo-optimize the link to the image Has not effect. (required) * @param int $version The optional version of the asset. (optional) @@ -986,17 +1010,17 @@ function ($exception) { * @param bool $nofocus True to ignore the asset focus point if any. (optional) * @param bool $auto True to use auto format. (optional) * @param bool $force True to force a new resize even if it already stored. (optional) + * @param bool $deleted Also return deleted content items. (optional) * @param ImageFormat $format True to force a new resize even if it already stored. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAssetContentBySlug'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getAssetContentBySlugRequest($id_or_slug, $more, $version = null, $cache = null, $download = null, $width = null, $height = null, $quality = null, $mode = null, $bg = null, $focus_x = null, $focus_y = null, $nofocus = null, $auto = null, $force = null, $format = null, string $contentType = self::contentTypes['getAssetContentBySlug'][0]) + public function getAssetContentBySlugRequest($app, $id_or_slug, $more, $version = null, $cache = null, $download = null, $width = null, $height = null, $quality = null, $mode = null, $bg = null, $focus_x = null, $focus_y = null, $nofocus = null, $auto = null, $force = null, $deleted = null, $format = null, string $contentType = self::contentTypes['getAssetContentBySlug'][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 ' @@ -1032,6 +1056,7 @@ public function getAssetContentBySlugRequest($id_or_slug, $more, $version = null + $resourcePath = '/api/assets/{app}/{idOrSlug}/{more}'; $formParams = []; $queryParams = []; @@ -1157,6 +1182,15 @@ public function getAssetContentBySlugRequest($id_or_slug, $more, $version = null false // required ) ?? []); // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $deleted, + 'deleted', // param base name + 'boolean', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( $format, 'format', // param base name @@ -1251,6 +1285,7 @@ public function getAssetContentBySlugRequest($id_or_slug, $more, $version = null * * Delete an asset folder. * + * @param string $app The name of the app. (required) * @param string $id The ID of the asset folder to delete. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteAssetFolder'] to see the possible values for this operation * @@ -1258,9 +1293,9 @@ public function getAssetContentBySlugRequest($id_or_slug, $more, $version = null * @throws \InvalidArgumentException * @return void */ - public function deleteAssetFolder($id, string $contentType = self::contentTypes['deleteAssetFolder'][0]) + public function deleteAssetFolder($app, $id, string $contentType = self::contentTypes['deleteAssetFolder'][0]) { - $this->deleteAssetFolderWithHttpInfo($id, $contentType); + $this->deleteAssetFolderWithHttpInfo($app, $id, $contentType); } /** @@ -1268,6 +1303,7 @@ public function deleteAssetFolder($id, string $contentType = self::contentTypes[ * * Delete an asset folder. * + * @param string $app The name of the app. (required) * @param string $id The ID of the asset folder to delete. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteAssetFolder'] to see the possible values for this operation * @@ -1275,9 +1311,9 @@ public function deleteAssetFolder($id, string $contentType = self::contentTypes[ * @throws \InvalidArgumentException * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function deleteAssetFolderWithHttpInfo($id, string $contentType = self::contentTypes['deleteAssetFolder'][0]) + public function deleteAssetFolderWithHttpInfo($app, $id, string $contentType = self::contentTypes['deleteAssetFolder'][0]) { - $request = $this->deleteAssetFolderRequest($id, $contentType); + $request = $this->deleteAssetFolderRequest($app, $id, $contentType); try { $options = $this->createHttpClientOption(); @@ -1344,15 +1380,16 @@ public function deleteAssetFolderWithHttpInfo($id, string $contentType = self::c * * Delete an asset folder. * + * @param string $app The name of the app. (required) * @param string $id The ID of the asset folder to delete. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteAssetFolder'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteAssetFolderAsync($id, string $contentType = self::contentTypes['deleteAssetFolder'][0]) + public function deleteAssetFolderAsync($app, $id, string $contentType = self::contentTypes['deleteAssetFolder'][0]) { - return $this->deleteAssetFolderAsyncWithHttpInfo($id, $contentType) + return $this->deleteAssetFolderAsyncWithHttpInfo($app, $id, $contentType) ->then( function ($response) { return $response[0]; @@ -1365,16 +1402,17 @@ function ($response) { * * Delete an asset folder. * + * @param string $app The name of the app. (required) * @param string $id The ID of the asset folder to delete. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteAssetFolder'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteAssetFolderAsyncWithHttpInfo($id, string $contentType = self::contentTypes['deleteAssetFolder'][0]) + public function deleteAssetFolderAsyncWithHttpInfo($app, $id, string $contentType = self::contentTypes['deleteAssetFolder'][0]) { $returnType = ''; - $request = $this->deleteAssetFolderRequest($id, $contentType); + $request = $this->deleteAssetFolderRequest($app, $id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1402,17 +1440,17 @@ function ($exception) { /** * Create request for operation 'deleteAssetFolder' * + * @param string $app The name of the app. (required) * @param string $id The ID of the asset folder to delete. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteAssetFolder'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function deleteAssetFolderRequest($id, string $contentType = self::contentTypes['deleteAssetFolder'][0]) + public function deleteAssetFolderRequest($app, $id, string $contentType = self::contentTypes['deleteAssetFolder'][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 ' @@ -1512,6 +1550,7 @@ public function deleteAssetFolderRequest($id, string $contentType = self::conten * * Get asset folders. * + * @param string $app The name of the app. (required) * @param string $parent_id The optional parent folder id. (optional) * @param AssetFolderScope $scope The scope of the query. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAssetFolders'] to see the possible values for this operation @@ -1520,9 +1559,9 @@ public function deleteAssetFolderRequest($id, string $contentType = self::conten * @throws \InvalidArgumentException * @return \Squidex\Client\Model\AssetFoldersDto|\Squidex\Client\Model\ErrorDto */ - public function getAssetFolders($parent_id = null, $scope = null, string $contentType = self::contentTypes['getAssetFolders'][0]) + public function getAssetFolders($app, $parent_id = null, $scope = null, string $contentType = self::contentTypes['getAssetFolders'][0]) { - list($response) = $this->getAssetFoldersWithHttpInfo($parent_id, $scope, $contentType); + list($response) = $this->getAssetFoldersWithHttpInfo($app, $parent_id, $scope, $contentType); return $response; } @@ -1531,6 +1570,7 @@ public function getAssetFolders($parent_id = null, $scope = null, string $conten * * Get asset folders. * + * @param string $app The name of the app. (required) * @param string $parent_id The optional parent folder id. (optional) * @param AssetFolderScope $scope The scope of the query. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAssetFolders'] to see the possible values for this operation @@ -1539,9 +1579,9 @@ public function getAssetFolders($parent_id = null, $scope = null, string $conten * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\AssetFoldersDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getAssetFoldersWithHttpInfo($parent_id = null, $scope = null, string $contentType = self::contentTypes['getAssetFolders'][0]) + public function getAssetFoldersWithHttpInfo($app, $parent_id = null, $scope = null, string $contentType = self::contentTypes['getAssetFolders'][0]) { - $request = $this->getAssetFoldersRequest($parent_id, $scope, $contentType); + $request = $this->getAssetFoldersRequest($app, $parent_id, $scope, $contentType); try { $options = $this->createHttpClientOption(); @@ -1655,6 +1695,7 @@ public function getAssetFoldersWithHttpInfo($parent_id = null, $scope = null, st * * Get asset folders. * + * @param string $app The name of the app. (required) * @param string $parent_id The optional parent folder id. (optional) * @param AssetFolderScope $scope The scope of the query. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAssetFolders'] to see the possible values for this operation @@ -1662,9 +1703,9 @@ public function getAssetFoldersWithHttpInfo($parent_id = null, $scope = null, st * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getAssetFoldersAsync($parent_id = null, $scope = null, string $contentType = self::contentTypes['getAssetFolders'][0]) + public function getAssetFoldersAsync($app, $parent_id = null, $scope = null, string $contentType = self::contentTypes['getAssetFolders'][0]) { - return $this->getAssetFoldersAsyncWithHttpInfo($parent_id, $scope, $contentType) + return $this->getAssetFoldersAsyncWithHttpInfo($app, $parent_id, $scope, $contentType) ->then( function ($response) { return $response[0]; @@ -1677,6 +1718,7 @@ function ($response) { * * Get asset folders. * + * @param string $app The name of the app. (required) * @param string $parent_id The optional parent folder id. (optional) * @param AssetFolderScope $scope The scope of the query. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAssetFolders'] to see the possible values for this operation @@ -1684,10 +1726,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getAssetFoldersAsyncWithHttpInfo($parent_id = null, $scope = null, string $contentType = self::contentTypes['getAssetFolders'][0]) + public function getAssetFoldersAsyncWithHttpInfo($app, $parent_id = null, $scope = null, string $contentType = self::contentTypes['getAssetFolders'][0]) { $returnType = '\Squidex\Client\Model\AssetFoldersDto'; - $request = $this->getAssetFoldersRequest($parent_id, $scope, $contentType); + $request = $this->getAssetFoldersRequest($app, $parent_id, $scope, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1728,6 +1770,7 @@ function ($exception) { /** * Create request for operation 'getAssetFolders' * + * @param string $app The name of the app. (required) * @param string $parent_id The optional parent folder id. (optional) * @param AssetFolderScope $scope The scope of the query. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAssetFolders'] to see the possible values for this operation @@ -1735,11 +1778,10 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getAssetFoldersRequest($parent_id = null, $scope = null, string $contentType = self::contentTypes['getAssetFolders'][0]) + public function getAssetFoldersRequest($app, $parent_id = null, $scope = null, string $contentType = self::contentTypes['getAssetFolders'][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 ' @@ -1844,6 +1886,7 @@ public function getAssetFoldersRequest($parent_id = null, $scope = null, string * * Create an asset folder. * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\CreateAssetFolderDto $create_asset_folder_dto The asset folder object that needs to be added to the App. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postAssetFolder'] to see the possible values for this operation * @@ -1851,9 +1894,9 @@ public function getAssetFoldersRequest($parent_id = null, $scope = null, string * @throws \InvalidArgumentException * @return \Squidex\Client\Model\AssetFolderDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function postAssetFolder($create_asset_folder_dto, string $contentType = self::contentTypes['postAssetFolder'][0]) + public function postAssetFolder($app, $create_asset_folder_dto, string $contentType = self::contentTypes['postAssetFolder'][0]) { - list($response) = $this->postAssetFolderWithHttpInfo($create_asset_folder_dto, $contentType); + list($response) = $this->postAssetFolderWithHttpInfo($app, $create_asset_folder_dto, $contentType); return $response; } @@ -1862,6 +1905,7 @@ public function postAssetFolder($create_asset_folder_dto, string $contentType = * * Create an asset folder. * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\CreateAssetFolderDto $create_asset_folder_dto The asset folder object that needs to be added to the App. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postAssetFolder'] to see the possible values for this operation * @@ -1869,9 +1913,9 @@ public function postAssetFolder($create_asset_folder_dto, string $contentType = * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\AssetFolderDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function postAssetFolderWithHttpInfo($create_asset_folder_dto, string $contentType = self::contentTypes['postAssetFolder'][0]) + public function postAssetFolderWithHttpInfo($app, $create_asset_folder_dto, string $contentType = self::contentTypes['postAssetFolder'][0]) { - $request = $this->postAssetFolderRequest($create_asset_folder_dto, $contentType); + $request = $this->postAssetFolderRequest($app, $create_asset_folder_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -2008,15 +2052,16 @@ public function postAssetFolderWithHttpInfo($create_asset_folder_dto, string $co * * Create an asset folder. * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\CreateAssetFolderDto $create_asset_folder_dto The asset folder object that needs to be added to the App. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postAssetFolder'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postAssetFolderAsync($create_asset_folder_dto, string $contentType = self::contentTypes['postAssetFolder'][0]) + public function postAssetFolderAsync($app, $create_asset_folder_dto, string $contentType = self::contentTypes['postAssetFolder'][0]) { - return $this->postAssetFolderAsyncWithHttpInfo($create_asset_folder_dto, $contentType) + return $this->postAssetFolderAsyncWithHttpInfo($app, $create_asset_folder_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -2029,16 +2074,17 @@ function ($response) { * * Create an asset folder. * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\CreateAssetFolderDto $create_asset_folder_dto The asset folder object that needs to be added to the App. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postAssetFolder'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postAssetFolderAsyncWithHttpInfo($create_asset_folder_dto, string $contentType = self::contentTypes['postAssetFolder'][0]) + public function postAssetFolderAsyncWithHttpInfo($app, $create_asset_folder_dto, string $contentType = self::contentTypes['postAssetFolder'][0]) { $returnType = '\Squidex\Client\Model\AssetFolderDto'; - $request = $this->postAssetFolderRequest($create_asset_folder_dto, $contentType); + $request = $this->postAssetFolderRequest($app, $create_asset_folder_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -2079,17 +2125,17 @@ function ($exception) { /** * Create request for operation 'postAssetFolder' * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\CreateAssetFolderDto $create_asset_folder_dto The asset folder object that needs to be added to the App. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postAssetFolder'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function postAssetFolderRequest($create_asset_folder_dto, string $contentType = self::contentTypes['postAssetFolder'][0]) + public function postAssetFolderRequest($app, $create_asset_folder_dto, string $contentType = self::contentTypes['postAssetFolder'][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 ' @@ -2188,6 +2234,7 @@ public function postAssetFolderRequest($create_asset_folder_dto, string $content * * Update an asset folder. * + * @param string $app The name of the app. (required) * @param string $id The ID of the asset folder. (required) * @param \Squidex\Client\Model\RenameAssetFolderDto $rename_asset_folder_dto The asset folder object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAssetFolder'] to see the possible values for this operation @@ -2196,9 +2243,9 @@ public function postAssetFolderRequest($create_asset_folder_dto, string $content * @throws \InvalidArgumentException * @return \Squidex\Client\Model\AssetFolderDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putAssetFolder($id, $rename_asset_folder_dto, string $contentType = self::contentTypes['putAssetFolder'][0]) + public function putAssetFolder($app, $id, $rename_asset_folder_dto, string $contentType = self::contentTypes['putAssetFolder'][0]) { - list($response) = $this->putAssetFolderWithHttpInfo($id, $rename_asset_folder_dto, $contentType); + list($response) = $this->putAssetFolderWithHttpInfo($app, $id, $rename_asset_folder_dto, $contentType); return $response; } @@ -2207,6 +2254,7 @@ public function putAssetFolder($id, $rename_asset_folder_dto, string $contentTyp * * Update an asset folder. * + * @param string $app The name of the app. (required) * @param string $id The ID of the asset folder. (required) * @param \Squidex\Client\Model\RenameAssetFolderDto $rename_asset_folder_dto The asset folder object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAssetFolder'] to see the possible values for this operation @@ -2215,9 +2263,9 @@ public function putAssetFolder($id, $rename_asset_folder_dto, string $contentTyp * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\AssetFolderDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putAssetFolderWithHttpInfo($id, $rename_asset_folder_dto, string $contentType = self::contentTypes['putAssetFolder'][0]) + public function putAssetFolderWithHttpInfo($app, $id, $rename_asset_folder_dto, string $contentType = self::contentTypes['putAssetFolder'][0]) { - $request = $this->putAssetFolderRequest($id, $rename_asset_folder_dto, $contentType); + $request = $this->putAssetFolderRequest($app, $id, $rename_asset_folder_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -2354,6 +2402,7 @@ public function putAssetFolderWithHttpInfo($id, $rename_asset_folder_dto, string * * Update an asset folder. * + * @param string $app The name of the app. (required) * @param string $id The ID of the asset folder. (required) * @param \Squidex\Client\Model\RenameAssetFolderDto $rename_asset_folder_dto The asset folder object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAssetFolder'] to see the possible values for this operation @@ -2361,9 +2410,9 @@ public function putAssetFolderWithHttpInfo($id, $rename_asset_folder_dto, string * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putAssetFolderAsync($id, $rename_asset_folder_dto, string $contentType = self::contentTypes['putAssetFolder'][0]) + public function putAssetFolderAsync($app, $id, $rename_asset_folder_dto, string $contentType = self::contentTypes['putAssetFolder'][0]) { - return $this->putAssetFolderAsyncWithHttpInfo($id, $rename_asset_folder_dto, $contentType) + return $this->putAssetFolderAsyncWithHttpInfo($app, $id, $rename_asset_folder_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -2376,6 +2425,7 @@ function ($response) { * * Update an asset folder. * + * @param string $app The name of the app. (required) * @param string $id The ID of the asset folder. (required) * @param \Squidex\Client\Model\RenameAssetFolderDto $rename_asset_folder_dto The asset folder object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAssetFolder'] to see the possible values for this operation @@ -2383,10 +2433,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putAssetFolderAsyncWithHttpInfo($id, $rename_asset_folder_dto, string $contentType = self::contentTypes['putAssetFolder'][0]) + public function putAssetFolderAsyncWithHttpInfo($app, $id, $rename_asset_folder_dto, string $contentType = self::contentTypes['putAssetFolder'][0]) { $returnType = '\Squidex\Client\Model\AssetFolderDto'; - $request = $this->putAssetFolderRequest($id, $rename_asset_folder_dto, $contentType); + $request = $this->putAssetFolderRequest($app, $id, $rename_asset_folder_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -2427,6 +2477,7 @@ function ($exception) { /** * Create request for operation 'putAssetFolder' * + * @param string $app The name of the app. (required) * @param string $id The ID of the asset folder. (required) * @param \Squidex\Client\Model\RenameAssetFolderDto $rename_asset_folder_dto The asset folder object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAssetFolder'] to see the possible values for this operation @@ -2434,11 +2485,10 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putAssetFolderRequest($id, $rename_asset_folder_dto, string $contentType = self::contentTypes['putAssetFolder'][0]) + public function putAssetFolderRequest($app, $id, $rename_asset_folder_dto, string $contentType = self::contentTypes['putAssetFolder'][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 ' @@ -2552,6 +2602,7 @@ public function putAssetFolderRequest($id, $rename_asset_folder_dto, string $con * * Move an asset folder. * + * @param string $app The name of the app. (required) * @param string $id The ID of the asset folder. (required) * @param \Squidex\Client\Model\MoveAssetFolderDto $move_asset_folder_dto The asset folder object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAssetFolderParent'] to see the possible values for this operation @@ -2560,9 +2611,9 @@ public function putAssetFolderRequest($id, $rename_asset_folder_dto, string $con * @throws \InvalidArgumentException * @return \Squidex\Client\Model\AssetFolderDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putAssetFolderParent($id, $move_asset_folder_dto, string $contentType = self::contentTypes['putAssetFolderParent'][0]) + public function putAssetFolderParent($app, $id, $move_asset_folder_dto, string $contentType = self::contentTypes['putAssetFolderParent'][0]) { - list($response) = $this->putAssetFolderParentWithHttpInfo($id, $move_asset_folder_dto, $contentType); + list($response) = $this->putAssetFolderParentWithHttpInfo($app, $id, $move_asset_folder_dto, $contentType); return $response; } @@ -2571,6 +2622,7 @@ public function putAssetFolderParent($id, $move_asset_folder_dto, string $conten * * Move an asset folder. * + * @param string $app The name of the app. (required) * @param string $id The ID of the asset folder. (required) * @param \Squidex\Client\Model\MoveAssetFolderDto $move_asset_folder_dto The asset folder object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAssetFolderParent'] to see the possible values for this operation @@ -2579,9 +2631,9 @@ public function putAssetFolderParent($id, $move_asset_folder_dto, string $conten * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\AssetFolderDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putAssetFolderParentWithHttpInfo($id, $move_asset_folder_dto, string $contentType = self::contentTypes['putAssetFolderParent'][0]) + public function putAssetFolderParentWithHttpInfo($app, $id, $move_asset_folder_dto, string $contentType = self::contentTypes['putAssetFolderParent'][0]) { - $request = $this->putAssetFolderParentRequest($id, $move_asset_folder_dto, $contentType); + $request = $this->putAssetFolderParentRequest($app, $id, $move_asset_folder_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -2718,6 +2770,7 @@ public function putAssetFolderParentWithHttpInfo($id, $move_asset_folder_dto, st * * Move an asset folder. * + * @param string $app The name of the app. (required) * @param string $id The ID of the asset folder. (required) * @param \Squidex\Client\Model\MoveAssetFolderDto $move_asset_folder_dto The asset folder object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAssetFolderParent'] to see the possible values for this operation @@ -2725,9 +2778,9 @@ public function putAssetFolderParentWithHttpInfo($id, $move_asset_folder_dto, st * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putAssetFolderParentAsync($id, $move_asset_folder_dto, string $contentType = self::contentTypes['putAssetFolderParent'][0]) + public function putAssetFolderParentAsync($app, $id, $move_asset_folder_dto, string $contentType = self::contentTypes['putAssetFolderParent'][0]) { - return $this->putAssetFolderParentAsyncWithHttpInfo($id, $move_asset_folder_dto, $contentType) + return $this->putAssetFolderParentAsyncWithHttpInfo($app, $id, $move_asset_folder_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -2740,6 +2793,7 @@ function ($response) { * * Move an asset folder. * + * @param string $app The name of the app. (required) * @param string $id The ID of the asset folder. (required) * @param \Squidex\Client\Model\MoveAssetFolderDto $move_asset_folder_dto The asset folder object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAssetFolderParent'] to see the possible values for this operation @@ -2747,10 +2801,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putAssetFolderParentAsyncWithHttpInfo($id, $move_asset_folder_dto, string $contentType = self::contentTypes['putAssetFolderParent'][0]) + public function putAssetFolderParentAsyncWithHttpInfo($app, $id, $move_asset_folder_dto, string $contentType = self::contentTypes['putAssetFolderParent'][0]) { $returnType = '\Squidex\Client\Model\AssetFolderDto'; - $request = $this->putAssetFolderParentRequest($id, $move_asset_folder_dto, $contentType); + $request = $this->putAssetFolderParentRequest($app, $id, $move_asset_folder_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -2791,6 +2845,7 @@ function ($exception) { /** * Create request for operation 'putAssetFolderParent' * + * @param string $app The name of the app. (required) * @param string $id The ID of the asset folder. (required) * @param \Squidex\Client\Model\MoveAssetFolderDto $move_asset_folder_dto The asset folder object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAssetFolderParent'] to see the possible values for this operation @@ -2798,11 +2853,10 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putAssetFolderParentRequest($id, $move_asset_folder_dto, string $contentType = self::contentTypes['putAssetFolderParent'][0]) + public function putAssetFolderParentRequest($app, $id, $move_asset_folder_dto, string $contentType = self::contentTypes['putAssetFolderParent'][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 ' @@ -2916,6 +2970,7 @@ public function putAssetFolderParentRequest($id, $move_asset_folder_dto, string * * Bulk update assets. * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\BulkUpdateAssetsDto $bulk_update_assets_dto The bulk update request. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['bulkUpdateAssets'] to see the possible values for this operation * @@ -2923,9 +2978,9 @@ public function putAssetFolderParentRequest($id, $move_asset_folder_dto, string * @throws \InvalidArgumentException * @return \Squidex\Client\Model\BulkResultDto[]|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function bulkUpdateAssets($bulk_update_assets_dto, string $contentType = self::contentTypes['bulkUpdateAssets'][0]) + public function bulkUpdateAssets($app, $bulk_update_assets_dto, string $contentType = self::contentTypes['bulkUpdateAssets'][0]) { - list($response) = $this->bulkUpdateAssetsWithHttpInfo($bulk_update_assets_dto, $contentType); + list($response) = $this->bulkUpdateAssetsWithHttpInfo($app, $bulk_update_assets_dto, $contentType); return $response; } @@ -2934,6 +2989,7 @@ public function bulkUpdateAssets($bulk_update_assets_dto, string $contentType = * * Bulk update assets. * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\BulkUpdateAssetsDto $bulk_update_assets_dto The bulk update request. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['bulkUpdateAssets'] to see the possible values for this operation * @@ -2941,9 +2997,9 @@ public function bulkUpdateAssets($bulk_update_assets_dto, string $contentType = * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\BulkResultDto[]|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function bulkUpdateAssetsWithHttpInfo($bulk_update_assets_dto, string $contentType = self::contentTypes['bulkUpdateAssets'][0]) + public function bulkUpdateAssetsWithHttpInfo($app, $bulk_update_assets_dto, string $contentType = self::contentTypes['bulkUpdateAssets'][0]) { - $request = $this->bulkUpdateAssetsRequest($bulk_update_assets_dto, $contentType); + $request = $this->bulkUpdateAssetsRequest($app, $bulk_update_assets_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -3080,15 +3136,16 @@ public function bulkUpdateAssetsWithHttpInfo($bulk_update_assets_dto, string $co * * Bulk update assets. * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\BulkUpdateAssetsDto $bulk_update_assets_dto The bulk update request. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['bulkUpdateAssets'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function bulkUpdateAssetsAsync($bulk_update_assets_dto, string $contentType = self::contentTypes['bulkUpdateAssets'][0]) + public function bulkUpdateAssetsAsync($app, $bulk_update_assets_dto, string $contentType = self::contentTypes['bulkUpdateAssets'][0]) { - return $this->bulkUpdateAssetsAsyncWithHttpInfo($bulk_update_assets_dto, $contentType) + return $this->bulkUpdateAssetsAsyncWithHttpInfo($app, $bulk_update_assets_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -3101,16 +3158,17 @@ function ($response) { * * Bulk update assets. * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\BulkUpdateAssetsDto $bulk_update_assets_dto The bulk update request. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['bulkUpdateAssets'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function bulkUpdateAssetsAsyncWithHttpInfo($bulk_update_assets_dto, string $contentType = self::contentTypes['bulkUpdateAssets'][0]) + public function bulkUpdateAssetsAsyncWithHttpInfo($app, $bulk_update_assets_dto, string $contentType = self::contentTypes['bulkUpdateAssets'][0]) { $returnType = '\Squidex\Client\Model\BulkResultDto[]'; - $request = $this->bulkUpdateAssetsRequest($bulk_update_assets_dto, $contentType); + $request = $this->bulkUpdateAssetsRequest($app, $bulk_update_assets_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -3151,17 +3209,17 @@ function ($exception) { /** * Create request for operation 'bulkUpdateAssets' * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\BulkUpdateAssetsDto $bulk_update_assets_dto The bulk update request. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['bulkUpdateAssets'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function bulkUpdateAssetsRequest($bulk_update_assets_dto, string $contentType = self::contentTypes['bulkUpdateAssets'][0]) + public function bulkUpdateAssetsRequest($app, $bulk_update_assets_dto, string $contentType = self::contentTypes['bulkUpdateAssets'][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 ' @@ -3260,6 +3318,7 @@ public function bulkUpdateAssetsRequest($bulk_update_assets_dto, string $content * * Delete an asset. * + * @param string $app The name of the app. (required) * @param string $id The ID of the asset to delete. (required) * @param bool $check_referrers True to check referrers of this asset. (optional) * @param bool $permanent True to delete the asset permanently. (optional) @@ -3269,9 +3328,9 @@ public function bulkUpdateAssetsRequest($bulk_update_assets_dto, string $content * @throws \InvalidArgumentException * @return void */ - public function deleteAsset($id, $check_referrers = null, $permanent = null, string $contentType = self::contentTypes['deleteAsset'][0]) + public function deleteAsset($app, $id, $check_referrers = null, $permanent = null, string $contentType = self::contentTypes['deleteAsset'][0]) { - $this->deleteAssetWithHttpInfo($id, $check_referrers, $permanent, $contentType); + $this->deleteAssetWithHttpInfo($app, $id, $check_referrers, $permanent, $contentType); } /** @@ -3279,6 +3338,7 @@ public function deleteAsset($id, $check_referrers = null, $permanent = null, str * * Delete an asset. * + * @param string $app The name of the app. (required) * @param string $id The ID of the asset to delete. (required) * @param bool $check_referrers True to check referrers of this asset. (optional) * @param bool $permanent True to delete the asset permanently. (optional) @@ -3288,9 +3348,9 @@ public function deleteAsset($id, $check_referrers = null, $permanent = null, str * @throws \InvalidArgumentException * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function deleteAssetWithHttpInfo($id, $check_referrers = null, $permanent = null, string $contentType = self::contentTypes['deleteAsset'][0]) + public function deleteAssetWithHttpInfo($app, $id, $check_referrers = null, $permanent = null, string $contentType = self::contentTypes['deleteAsset'][0]) { - $request = $this->deleteAssetRequest($id, $check_referrers, $permanent, $contentType); + $request = $this->deleteAssetRequest($app, $id, $check_referrers, $permanent, $contentType); try { $options = $this->createHttpClientOption(); @@ -3357,6 +3417,7 @@ public function deleteAssetWithHttpInfo($id, $check_referrers = null, $permanent * * Delete an asset. * + * @param string $app The name of the app. (required) * @param string $id The ID of the asset to delete. (required) * @param bool $check_referrers True to check referrers of this asset. (optional) * @param bool $permanent True to delete the asset permanently. (optional) @@ -3365,9 +3426,9 @@ public function deleteAssetWithHttpInfo($id, $check_referrers = null, $permanent * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteAssetAsync($id, $check_referrers = null, $permanent = null, string $contentType = self::contentTypes['deleteAsset'][0]) + public function deleteAssetAsync($app, $id, $check_referrers = null, $permanent = null, string $contentType = self::contentTypes['deleteAsset'][0]) { - return $this->deleteAssetAsyncWithHttpInfo($id, $check_referrers, $permanent, $contentType) + return $this->deleteAssetAsyncWithHttpInfo($app, $id, $check_referrers, $permanent, $contentType) ->then( function ($response) { return $response[0]; @@ -3380,6 +3441,7 @@ function ($response) { * * Delete an asset. * + * @param string $app The name of the app. (required) * @param string $id The ID of the asset to delete. (required) * @param bool $check_referrers True to check referrers of this asset. (optional) * @param bool $permanent True to delete the asset permanently. (optional) @@ -3388,10 +3450,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteAssetAsyncWithHttpInfo($id, $check_referrers = null, $permanent = null, string $contentType = self::contentTypes['deleteAsset'][0]) + public function deleteAssetAsyncWithHttpInfo($app, $id, $check_referrers = null, $permanent = null, string $contentType = self::contentTypes['deleteAsset'][0]) { $returnType = ''; - $request = $this->deleteAssetRequest($id, $check_referrers, $permanent, $contentType); + $request = $this->deleteAssetRequest($app, $id, $check_referrers, $permanent, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -3419,6 +3481,7 @@ function ($exception) { /** * Create request for operation 'deleteAsset' * + * @param string $app The name of the app. (required) * @param string $id The ID of the asset to delete. (required) * @param bool $check_referrers True to check referrers of this asset. (optional) * @param bool $permanent True to delete the asset permanently. (optional) @@ -3427,11 +3490,10 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function deleteAssetRequest($id, $check_referrers = null, $permanent = null, string $contentType = self::contentTypes['deleteAsset'][0]) + public function deleteAssetRequest($app, $id, $check_referrers = null, $permanent = null, string $contentType = self::contentTypes['deleteAsset'][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 ' @@ -3551,6 +3613,7 @@ public function deleteAssetRequest($id, $check_referrers = null, $permanent = nu * * Get an asset by id. * + * @param string $app The name of the app. (required) * @param string $id The ID of the asset to retrieve. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAsset'] to see the possible values for this operation * @@ -3558,9 +3621,9 @@ public function deleteAssetRequest($id, $check_referrers = null, $permanent = nu * @throws \InvalidArgumentException * @return \Squidex\Client\Model\AssetDto|\Squidex\Client\Model\ErrorDto */ - public function getAsset($id, string $contentType = self::contentTypes['getAsset'][0]) + public function getAsset($app, $id, string $contentType = self::contentTypes['getAsset'][0]) { - list($response) = $this->getAssetWithHttpInfo($id, $contentType); + list($response) = $this->getAssetWithHttpInfo($app, $id, $contentType); return $response; } @@ -3569,6 +3632,7 @@ public function getAsset($id, string $contentType = self::contentTypes['getAsset * * Get an asset by id. * + * @param string $app The name of the app. (required) * @param string $id The ID of the asset to retrieve. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAsset'] to see the possible values for this operation * @@ -3576,9 +3640,9 @@ public function getAsset($id, string $contentType = self::contentTypes['getAsset * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\AssetDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getAssetWithHttpInfo($id, string $contentType = self::contentTypes['getAsset'][0]) + public function getAssetWithHttpInfo($app, $id, string $contentType = self::contentTypes['getAsset'][0]) { - $request = $this->getAssetRequest($id, $contentType); + $request = $this->getAssetRequest($app, $id, $contentType); try { $options = $this->createHttpClientOption(); @@ -3692,15 +3756,16 @@ public function getAssetWithHttpInfo($id, string $contentType = self::contentTyp * * Get an asset by id. * + * @param string $app The name of the app. (required) * @param string $id The ID of the asset to retrieve. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAsset'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getAssetAsync($id, string $contentType = self::contentTypes['getAsset'][0]) + public function getAssetAsync($app, $id, string $contentType = self::contentTypes['getAsset'][0]) { - return $this->getAssetAsyncWithHttpInfo($id, $contentType) + return $this->getAssetAsyncWithHttpInfo($app, $id, $contentType) ->then( function ($response) { return $response[0]; @@ -3713,16 +3778,17 @@ function ($response) { * * Get an asset by id. * + * @param string $app The name of the app. (required) * @param string $id The ID of the asset to retrieve. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAsset'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getAssetAsyncWithHttpInfo($id, string $contentType = self::contentTypes['getAsset'][0]) + public function getAssetAsyncWithHttpInfo($app, $id, string $contentType = self::contentTypes['getAsset'][0]) { $returnType = '\Squidex\Client\Model\AssetDto'; - $request = $this->getAssetRequest($id, $contentType); + $request = $this->getAssetRequest($app, $id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -3763,17 +3829,17 @@ function ($exception) { /** * Create request for operation 'getAsset' * + * @param string $app The name of the app. (required) * @param string $id The ID of the asset to retrieve. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAsset'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getAssetRequest($id, string $contentType = self::contentTypes['getAsset'][0]) + public function getAssetRequest($app, $id, string $contentType = self::contentTypes['getAsset'][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 ' @@ -3873,6 +3939,7 @@ public function getAssetRequest($id, string $contentType = self::contentTypes['g * * Get assets. * + * @param string $app The name of the app. (required) * @param string $parent_id The optional parent folder id. (optional) * @param string $ids The optional asset ids. (optional) * @param string $q The optional json query. (optional) @@ -3888,9 +3955,9 @@ public function getAssetRequest($id, string $contentType = self::contentTypes['g * @throws \InvalidArgumentException * @return \Squidex\Client\Model\AssetsDto|\Squidex\Client\Model\ErrorDto */ - public function getAssets($parent_id = null, $ids = null, $q = null, $top = null, $skip = null, $orderby = null, $filter = null, $x_no_total = null, $x_no_slow_total = null, string $contentType = self::contentTypes['getAssets'][0]) + public function getAssets($app, $parent_id = null, $ids = null, $q = null, $top = null, $skip = null, $orderby = null, $filter = null, $x_no_total = null, $x_no_slow_total = null, string $contentType = self::contentTypes['getAssets'][0]) { - list($response) = $this->getAssetsWithHttpInfo($parent_id, $ids, $q, $top, $skip, $orderby, $filter, $x_no_total, $x_no_slow_total, $contentType); + list($response) = $this->getAssetsWithHttpInfo($app, $parent_id, $ids, $q, $top, $skip, $orderby, $filter, $x_no_total, $x_no_slow_total, $contentType); return $response; } @@ -3899,6 +3966,7 @@ public function getAssets($parent_id = null, $ids = null, $q = null, $top = null * * Get assets. * + * @param string $app The name of the app. (required) * @param string $parent_id The optional parent folder id. (optional) * @param string $ids The optional asset ids. (optional) * @param string $q The optional json query. (optional) @@ -3914,9 +3982,9 @@ public function getAssets($parent_id = null, $ids = null, $q = null, $top = null * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\AssetsDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getAssetsWithHttpInfo($parent_id = null, $ids = null, $q = null, $top = null, $skip = null, $orderby = null, $filter = null, $x_no_total = null, $x_no_slow_total = null, string $contentType = self::contentTypes['getAssets'][0]) + public function getAssetsWithHttpInfo($app, $parent_id = null, $ids = null, $q = null, $top = null, $skip = null, $orderby = null, $filter = null, $x_no_total = null, $x_no_slow_total = null, string $contentType = self::contentTypes['getAssets'][0]) { - $request = $this->getAssetsRequest($parent_id, $ids, $q, $top, $skip, $orderby, $filter, $x_no_total, $x_no_slow_total, $contentType); + $request = $this->getAssetsRequest($app, $parent_id, $ids, $q, $top, $skip, $orderby, $filter, $x_no_total, $x_no_slow_total, $contentType); try { $options = $this->createHttpClientOption(); @@ -4030,6 +4098,7 @@ public function getAssetsWithHttpInfo($parent_id = null, $ids = null, $q = null, * * Get assets. * + * @param string $app The name of the app. (required) * @param string $parent_id The optional parent folder id. (optional) * @param string $ids The optional asset ids. (optional) * @param string $q The optional json query. (optional) @@ -4044,9 +4113,9 @@ public function getAssetsWithHttpInfo($parent_id = null, $ids = null, $q = null, * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getAssetsAsync($parent_id = null, $ids = null, $q = null, $top = null, $skip = null, $orderby = null, $filter = null, $x_no_total = null, $x_no_slow_total = null, string $contentType = self::contentTypes['getAssets'][0]) + public function getAssetsAsync($app, $parent_id = null, $ids = null, $q = null, $top = null, $skip = null, $orderby = null, $filter = null, $x_no_total = null, $x_no_slow_total = null, string $contentType = self::contentTypes['getAssets'][0]) { - return $this->getAssetsAsyncWithHttpInfo($parent_id, $ids, $q, $top, $skip, $orderby, $filter, $x_no_total, $x_no_slow_total, $contentType) + return $this->getAssetsAsyncWithHttpInfo($app, $parent_id, $ids, $q, $top, $skip, $orderby, $filter, $x_no_total, $x_no_slow_total, $contentType) ->then( function ($response) { return $response[0]; @@ -4059,6 +4128,7 @@ function ($response) { * * Get assets. * + * @param string $app The name of the app. (required) * @param string $parent_id The optional parent folder id. (optional) * @param string $ids The optional asset ids. (optional) * @param string $q The optional json query. (optional) @@ -4073,10 +4143,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getAssetsAsyncWithHttpInfo($parent_id = null, $ids = null, $q = null, $top = null, $skip = null, $orderby = null, $filter = null, $x_no_total = null, $x_no_slow_total = null, string $contentType = self::contentTypes['getAssets'][0]) + public function getAssetsAsyncWithHttpInfo($app, $parent_id = null, $ids = null, $q = null, $top = null, $skip = null, $orderby = null, $filter = null, $x_no_total = null, $x_no_slow_total = null, string $contentType = self::contentTypes['getAssets'][0]) { $returnType = '\Squidex\Client\Model\AssetsDto'; - $request = $this->getAssetsRequest($parent_id, $ids, $q, $top, $skip, $orderby, $filter, $x_no_total, $x_no_slow_total, $contentType); + $request = $this->getAssetsRequest($app, $parent_id, $ids, $q, $top, $skip, $orderby, $filter, $x_no_total, $x_no_slow_total, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -4117,6 +4187,7 @@ function ($exception) { /** * Create request for operation 'getAssets' * + * @param string $app The name of the app. (required) * @param string $parent_id The optional parent folder id. (optional) * @param string $ids The optional asset ids. (optional) * @param string $q The optional json query. (optional) @@ -4131,11 +4202,10 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getAssetsRequest($parent_id = null, $ids = null, $q = null, $top = null, $skip = null, $orderby = null, $filter = null, $x_no_total = null, $x_no_slow_total = null, string $contentType = self::contentTypes['getAssets'][0]) + public function getAssetsRequest($app, $parent_id = null, $ids = null, $q = null, $top = null, $skip = null, $orderby = null, $filter = null, $x_no_total = null, $x_no_slow_total = null, string $contentType = self::contentTypes['getAssets'][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 ' @@ -4300,6 +4370,7 @@ public function getAssetsRequest($parent_id = null, $ids = null, $q = null, $top * * Get assets. * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\QueryDto $query_dto The required query object. (required) * @param bool $x_no_total Do not return the total amount. (optional) * @param bool $x_no_slow_total Do not return the total amount, if it would be slow. (optional) @@ -4309,9 +4380,9 @@ public function getAssetsRequest($parent_id = null, $ids = null, $q = null, $top * @throws \InvalidArgumentException * @return \Squidex\Client\Model\AssetsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function getAssetsPost($query_dto, $x_no_total = null, $x_no_slow_total = null, string $contentType = self::contentTypes['getAssetsPost'][0]) + public function getAssetsPost($app, $query_dto, $x_no_total = null, $x_no_slow_total = null, string $contentType = self::contentTypes['getAssetsPost'][0]) { - list($response) = $this->getAssetsPostWithHttpInfo($query_dto, $x_no_total, $x_no_slow_total, $contentType); + list($response) = $this->getAssetsPostWithHttpInfo($app, $query_dto, $x_no_total, $x_no_slow_total, $contentType); return $response; } @@ -4320,6 +4391,7 @@ public function getAssetsPost($query_dto, $x_no_total = null, $x_no_slow_total = * * Get assets. * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\QueryDto $query_dto The required query object. (required) * @param bool $x_no_total Do not return the total amount. (optional) * @param bool $x_no_slow_total Do not return the total amount, if it would be slow. (optional) @@ -4329,9 +4401,9 @@ public function getAssetsPost($query_dto, $x_no_total = null, $x_no_slow_total = * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\AssetsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getAssetsPostWithHttpInfo($query_dto, $x_no_total = null, $x_no_slow_total = null, string $contentType = self::contentTypes['getAssetsPost'][0]) + public function getAssetsPostWithHttpInfo($app, $query_dto, $x_no_total = null, $x_no_slow_total = null, string $contentType = self::contentTypes['getAssetsPost'][0]) { - $request = $this->getAssetsPostRequest($query_dto, $x_no_total, $x_no_slow_total, $contentType); + $request = $this->getAssetsPostRequest($app, $query_dto, $x_no_total, $x_no_slow_total, $contentType); try { $options = $this->createHttpClientOption(); @@ -4468,6 +4540,7 @@ public function getAssetsPostWithHttpInfo($query_dto, $x_no_total = null, $x_no_ * * Get assets. * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\QueryDto $query_dto The required query object. (required) * @param bool $x_no_total Do not return the total amount. (optional) * @param bool $x_no_slow_total Do not return the total amount, if it would be slow. (optional) @@ -4476,9 +4549,9 @@ public function getAssetsPostWithHttpInfo($query_dto, $x_no_total = null, $x_no_ * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getAssetsPostAsync($query_dto, $x_no_total = null, $x_no_slow_total = null, string $contentType = self::contentTypes['getAssetsPost'][0]) + public function getAssetsPostAsync($app, $query_dto, $x_no_total = null, $x_no_slow_total = null, string $contentType = self::contentTypes['getAssetsPost'][0]) { - return $this->getAssetsPostAsyncWithHttpInfo($query_dto, $x_no_total, $x_no_slow_total, $contentType) + return $this->getAssetsPostAsyncWithHttpInfo($app, $query_dto, $x_no_total, $x_no_slow_total, $contentType) ->then( function ($response) { return $response[0]; @@ -4491,6 +4564,7 @@ function ($response) { * * Get assets. * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\QueryDto $query_dto The required query object. (required) * @param bool $x_no_total Do not return the total amount. (optional) * @param bool $x_no_slow_total Do not return the total amount, if it would be slow. (optional) @@ -4499,10 +4573,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getAssetsPostAsyncWithHttpInfo($query_dto, $x_no_total = null, $x_no_slow_total = null, string $contentType = self::contentTypes['getAssetsPost'][0]) + public function getAssetsPostAsyncWithHttpInfo($app, $query_dto, $x_no_total = null, $x_no_slow_total = null, string $contentType = self::contentTypes['getAssetsPost'][0]) { $returnType = '\Squidex\Client\Model\AssetsDto'; - $request = $this->getAssetsPostRequest($query_dto, $x_no_total, $x_no_slow_total, $contentType); + $request = $this->getAssetsPostRequest($app, $query_dto, $x_no_total, $x_no_slow_total, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -4543,6 +4617,7 @@ function ($exception) { /** * Create request for operation 'getAssetsPost' * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\QueryDto $query_dto The required query object. (required) * @param bool $x_no_total Do not return the total amount. (optional) * @param bool $x_no_slow_total Do not return the total amount, if it would be slow. (optional) @@ -4551,11 +4626,10 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getAssetsPostRequest($query_dto, $x_no_total = null, $x_no_slow_total = null, string $contentType = self::contentTypes['getAssetsPost'][0]) + public function getAssetsPostRequest($app, $query_dto, $x_no_total = null, $x_no_slow_total = null, string $contentType = self::contentTypes['getAssetsPost'][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 ' @@ -4664,15 +4738,16 @@ public function getAssetsPostRequest($query_dto, $x_no_total = null, $x_no_slow_ * * Get assets tags. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTags'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array|\Squidex\Client\Model\ErrorDto */ - public function getTags(string $contentType = self::contentTypes['getTags'][0]) + public function getTags($app, string $contentType = self::contentTypes['getTags'][0]) { - list($response) = $this->getTagsWithHttpInfo($contentType); + list($response) = $this->getTagsWithHttpInfo($app, $contentType); return $response; } @@ -4681,15 +4756,16 @@ public function getTags(string $contentType = self::contentTypes['getTags'][0]) * * Get assets tags. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTags'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of array|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getTagsWithHttpInfo(string $contentType = self::contentTypes['getTags'][0]) + public function getTagsWithHttpInfo($app, string $contentType = self::contentTypes['getTags'][0]) { - $request = $this->getTagsRequest($contentType); + $request = $this->getTagsRequest($app, $contentType); try { $options = $this->createHttpClientOption(); @@ -4803,14 +4879,15 @@ public function getTagsWithHttpInfo(string $contentType = self::contentTypes['ge * * Get assets tags. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTags'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getTagsAsync(string $contentType = self::contentTypes['getTags'][0]) + public function getTagsAsync($app, string $contentType = self::contentTypes['getTags'][0]) { - return $this->getTagsAsyncWithHttpInfo($contentType) + return $this->getTagsAsyncWithHttpInfo($app, $contentType) ->then( function ($response) { return $response[0]; @@ -4823,15 +4900,16 @@ function ($response) { * * Get assets tags. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTags'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getTagsAsyncWithHttpInfo(string $contentType = self::contentTypes['getTags'][0]) + public function getTagsAsyncWithHttpInfo($app, string $contentType = self::contentTypes['getTags'][0]) { $returnType = 'array'; - $request = $this->getTagsRequest($contentType); + $request = $this->getTagsRequest($app, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -4872,16 +4950,16 @@ function ($exception) { /** * Create request for operation 'getTags' * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTags'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getTagsRequest(string $contentType = self::contentTypes['getTags'][0]) + public function getTagsRequest($app, string $contentType = self::contentTypes['getTags'][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 ' @@ -4966,6 +5044,7 @@ public function getTagsRequest(string $contentType = self::contentTypes['getTags * * Upload a new asset. * + * @param string $app The name of the app. (required) * @param string $parent_id The optional parent folder id. (optional) * @param string $id The optional custom asset id. (optional) * @param bool $duplicate True to duplicate the asset, event if the file has been uploaded. (optional) @@ -4976,9 +5055,9 @@ public function getTagsRequest(string $contentType = self::contentTypes['getTags * @throws \InvalidArgumentException * @return \Squidex\Client\Model\AssetDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function postAsset($parent_id = null, $id = null, $duplicate = null, $file = null, string $contentType = self::contentTypes['postAsset'][0]) + public function postAsset($app, $parent_id = null, $id = null, $duplicate = null, $file = null, string $contentType = self::contentTypes['postAsset'][0]) { - list($response) = $this->postAssetWithHttpInfo($parent_id, $id, $duplicate, $file, $contentType); + list($response) = $this->postAssetWithHttpInfo($app, $parent_id, $id, $duplicate, $file, $contentType); return $response; } @@ -4987,6 +5066,7 @@ public function postAsset($parent_id = null, $id = null, $duplicate = null, $fil * * Upload a new asset. * + * @param string $app The name of the app. (required) * @param string $parent_id The optional parent folder id. (optional) * @param string $id The optional custom asset id. (optional) * @param bool $duplicate True to duplicate the asset, event if the file has been uploaded. (optional) @@ -4997,9 +5077,9 @@ public function postAsset($parent_id = null, $id = null, $duplicate = null, $fil * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\AssetDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function postAssetWithHttpInfo($parent_id = null, $id = null, $duplicate = null, $file = null, string $contentType = self::contentTypes['postAsset'][0]) + public function postAssetWithHttpInfo($app, $parent_id = null, $id = null, $duplicate = null, $file = null, string $contentType = self::contentTypes['postAsset'][0]) { - $request = $this->postAssetRequest($parent_id, $id, $duplicate, $file, $contentType); + $request = $this->postAssetRequest($app, $parent_id, $id, $duplicate, $file, $contentType); try { $options = $this->createHttpClientOption(); @@ -5159,6 +5239,7 @@ public function postAssetWithHttpInfo($parent_id = null, $id = null, $duplicate * * Upload a new asset. * + * @param string $app The name of the app. (required) * @param string $parent_id The optional parent folder id. (optional) * @param string $id The optional custom asset id. (optional) * @param bool $duplicate True to duplicate the asset, event if the file has been uploaded. (optional) @@ -5168,9 +5249,9 @@ public function postAssetWithHttpInfo($parent_id = null, $id = null, $duplicate * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postAssetAsync($parent_id = null, $id = null, $duplicate = null, $file = null, string $contentType = self::contentTypes['postAsset'][0]) + public function postAssetAsync($app, $parent_id = null, $id = null, $duplicate = null, $file = null, string $contentType = self::contentTypes['postAsset'][0]) { - return $this->postAssetAsyncWithHttpInfo($parent_id, $id, $duplicate, $file, $contentType) + return $this->postAssetAsyncWithHttpInfo($app, $parent_id, $id, $duplicate, $file, $contentType) ->then( function ($response) { return $response[0]; @@ -5183,6 +5264,7 @@ function ($response) { * * Upload a new asset. * + * @param string $app The name of the app. (required) * @param string $parent_id The optional parent folder id. (optional) * @param string $id The optional custom asset id. (optional) * @param bool $duplicate True to duplicate the asset, event if the file has been uploaded. (optional) @@ -5192,10 +5274,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postAssetAsyncWithHttpInfo($parent_id = null, $id = null, $duplicate = null, $file = null, string $contentType = self::contentTypes['postAsset'][0]) + public function postAssetAsyncWithHttpInfo($app, $parent_id = null, $id = null, $duplicate = null, $file = null, string $contentType = self::contentTypes['postAsset'][0]) { $returnType = '\Squidex\Client\Model\AssetDto'; - $request = $this->postAssetRequest($parent_id, $id, $duplicate, $file, $contentType); + $request = $this->postAssetRequest($app, $parent_id, $id, $duplicate, $file, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -5236,6 +5318,7 @@ function ($exception) { /** * Create request for operation 'postAsset' * + * @param string $app The name of the app. (required) * @param string $parent_id The optional parent folder id. (optional) * @param string $id The optional custom asset id. (optional) * @param bool $duplicate True to duplicate the asset, event if the file has been uploaded. (optional) @@ -5245,11 +5328,10 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function postAssetRequest($parent_id = null, $id = null, $duplicate = null, $file = null, string $contentType = self::contentTypes['postAsset'][0]) + public function postAssetRequest($app, $parent_id = null, $id = null, $duplicate = null, $file = null, string $contentType = self::contentTypes['postAsset'][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 ' @@ -5377,6 +5459,7 @@ public function postAssetRequest($parent_id = null, $id = null, $duplicate = nul * * Upsert an asset. * + * @param string $app The name of the app. (required) * @param string $id The optional custom asset id. (required) * @param string $parent_id The optional parent folder id. (optional) * @param bool $duplicate True to duplicate the asset, event if the file has been uploaded. (optional) @@ -5387,9 +5470,9 @@ public function postAssetRequest($parent_id = null, $id = null, $duplicate = nul * @throws \InvalidArgumentException * @return \Squidex\Client\Model\AssetDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function postUpsertAsset($id, $parent_id = null, $duplicate = null, $file = null, string $contentType = self::contentTypes['postUpsertAsset'][0]) + public function postUpsertAsset($app, $id, $parent_id = null, $duplicate = null, $file = null, string $contentType = self::contentTypes['postUpsertAsset'][0]) { - list($response) = $this->postUpsertAssetWithHttpInfo($id, $parent_id, $duplicate, $file, $contentType); + list($response) = $this->postUpsertAssetWithHttpInfo($app, $id, $parent_id, $duplicate, $file, $contentType); return $response; } @@ -5398,6 +5481,7 @@ public function postUpsertAsset($id, $parent_id = null, $duplicate = null, $file * * Upsert an asset. * + * @param string $app The name of the app. (required) * @param string $id The optional custom asset id. (required) * @param string $parent_id The optional parent folder id. (optional) * @param bool $duplicate True to duplicate the asset, event if the file has been uploaded. (optional) @@ -5408,9 +5492,9 @@ public function postUpsertAsset($id, $parent_id = null, $duplicate = null, $file * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\AssetDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function postUpsertAssetWithHttpInfo($id, $parent_id = null, $duplicate = null, $file = null, string $contentType = self::contentTypes['postUpsertAsset'][0]) + public function postUpsertAssetWithHttpInfo($app, $id, $parent_id = null, $duplicate = null, $file = null, string $contentType = self::contentTypes['postUpsertAsset'][0]) { - $request = $this->postUpsertAssetRequest($id, $parent_id, $duplicate, $file, $contentType); + $request = $this->postUpsertAssetRequest($app, $id, $parent_id, $duplicate, $file, $contentType); try { $options = $this->createHttpClientOption(); @@ -5570,6 +5654,7 @@ public function postUpsertAssetWithHttpInfo($id, $parent_id = null, $duplicate = * * Upsert an asset. * + * @param string $app The name of the app. (required) * @param string $id The optional custom asset id. (required) * @param string $parent_id The optional parent folder id. (optional) * @param bool $duplicate True to duplicate the asset, event if the file has been uploaded. (optional) @@ -5579,9 +5664,9 @@ public function postUpsertAssetWithHttpInfo($id, $parent_id = null, $duplicate = * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postUpsertAssetAsync($id, $parent_id = null, $duplicate = null, $file = null, string $contentType = self::contentTypes['postUpsertAsset'][0]) + public function postUpsertAssetAsync($app, $id, $parent_id = null, $duplicate = null, $file = null, string $contentType = self::contentTypes['postUpsertAsset'][0]) { - return $this->postUpsertAssetAsyncWithHttpInfo($id, $parent_id, $duplicate, $file, $contentType) + return $this->postUpsertAssetAsyncWithHttpInfo($app, $id, $parent_id, $duplicate, $file, $contentType) ->then( function ($response) { return $response[0]; @@ -5594,6 +5679,7 @@ function ($response) { * * Upsert an asset. * + * @param string $app The name of the app. (required) * @param string $id The optional custom asset id. (required) * @param string $parent_id The optional parent folder id. (optional) * @param bool $duplicate True to duplicate the asset, event if the file has been uploaded. (optional) @@ -5603,10 +5689,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postUpsertAssetAsyncWithHttpInfo($id, $parent_id = null, $duplicate = null, $file = null, string $contentType = self::contentTypes['postUpsertAsset'][0]) + public function postUpsertAssetAsyncWithHttpInfo($app, $id, $parent_id = null, $duplicate = null, $file = null, string $contentType = self::contentTypes['postUpsertAsset'][0]) { $returnType = '\Squidex\Client\Model\AssetDto'; - $request = $this->postUpsertAssetRequest($id, $parent_id, $duplicate, $file, $contentType); + $request = $this->postUpsertAssetRequest($app, $id, $parent_id, $duplicate, $file, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -5647,6 +5733,7 @@ function ($exception) { /** * Create request for operation 'postUpsertAsset' * + * @param string $app The name of the app. (required) * @param string $id The optional custom asset id. (required) * @param string $parent_id The optional parent folder id. (optional) * @param bool $duplicate True to duplicate the asset, event if the file has been uploaded. (optional) @@ -5656,11 +5743,10 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function postUpsertAssetRequest($id, $parent_id = null, $duplicate = null, $file = null, string $contentType = self::contentTypes['postUpsertAsset'][0]) + public function postUpsertAssetRequest($app, $id, $parent_id = null, $duplicate = null, $file = null, string $contentType = self::contentTypes['postUpsertAsset'][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 ' @@ -5793,6 +5879,7 @@ public function postUpsertAssetRequest($id, $parent_id = null, $duplicate = null * * Update an asset. * + * @param string $app The name of the app. (required) * @param string $id The ID of the asset. (required) * @param \Squidex\Client\Model\AnnotateAssetDto $annotate_asset_dto The asset object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAsset'] to see the possible values for this operation @@ -5801,9 +5888,9 @@ public function postUpsertAssetRequest($id, $parent_id = null, $duplicate = null * @throws \InvalidArgumentException * @return \Squidex\Client\Model\AssetDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putAsset($id, $annotate_asset_dto, string $contentType = self::contentTypes['putAsset'][0]) + public function putAsset($app, $id, $annotate_asset_dto, string $contentType = self::contentTypes['putAsset'][0]) { - list($response) = $this->putAssetWithHttpInfo($id, $annotate_asset_dto, $contentType); + list($response) = $this->putAssetWithHttpInfo($app, $id, $annotate_asset_dto, $contentType); return $response; } @@ -5812,6 +5899,7 @@ public function putAsset($id, $annotate_asset_dto, string $contentType = self::c * * Update an asset. * + * @param string $app The name of the app. (required) * @param string $id The ID of the asset. (required) * @param \Squidex\Client\Model\AnnotateAssetDto $annotate_asset_dto The asset object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAsset'] to see the possible values for this operation @@ -5820,9 +5908,9 @@ public function putAsset($id, $annotate_asset_dto, string $contentType = self::c * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\AssetDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putAssetWithHttpInfo($id, $annotate_asset_dto, string $contentType = self::contentTypes['putAsset'][0]) + public function putAssetWithHttpInfo($app, $id, $annotate_asset_dto, string $contentType = self::contentTypes['putAsset'][0]) { - $request = $this->putAssetRequest($id, $annotate_asset_dto, $contentType); + $request = $this->putAssetRequest($app, $id, $annotate_asset_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -5959,6 +6047,7 @@ public function putAssetWithHttpInfo($id, $annotate_asset_dto, string $contentTy * * Update an asset. * + * @param string $app The name of the app. (required) * @param string $id The ID of the asset. (required) * @param \Squidex\Client\Model\AnnotateAssetDto $annotate_asset_dto The asset object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAsset'] to see the possible values for this operation @@ -5966,9 +6055,9 @@ public function putAssetWithHttpInfo($id, $annotate_asset_dto, string $contentTy * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putAssetAsync($id, $annotate_asset_dto, string $contentType = self::contentTypes['putAsset'][0]) + public function putAssetAsync($app, $id, $annotate_asset_dto, string $contentType = self::contentTypes['putAsset'][0]) { - return $this->putAssetAsyncWithHttpInfo($id, $annotate_asset_dto, $contentType) + return $this->putAssetAsyncWithHttpInfo($app, $id, $annotate_asset_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -5981,6 +6070,7 @@ function ($response) { * * Update an asset. * + * @param string $app The name of the app. (required) * @param string $id The ID of the asset. (required) * @param \Squidex\Client\Model\AnnotateAssetDto $annotate_asset_dto The asset object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAsset'] to see the possible values for this operation @@ -5988,10 +6078,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putAssetAsyncWithHttpInfo($id, $annotate_asset_dto, string $contentType = self::contentTypes['putAsset'][0]) + public function putAssetAsyncWithHttpInfo($app, $id, $annotate_asset_dto, string $contentType = self::contentTypes['putAsset'][0]) { $returnType = '\Squidex\Client\Model\AssetDto'; - $request = $this->putAssetRequest($id, $annotate_asset_dto, $contentType); + $request = $this->putAssetRequest($app, $id, $annotate_asset_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -6032,6 +6122,7 @@ function ($exception) { /** * Create request for operation 'putAsset' * + * @param string $app The name of the app. (required) * @param string $id The ID of the asset. (required) * @param \Squidex\Client\Model\AnnotateAssetDto $annotate_asset_dto The asset object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAsset'] to see the possible values for this operation @@ -6039,11 +6130,10 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putAssetRequest($id, $annotate_asset_dto, string $contentType = self::contentTypes['putAsset'][0]) + public function putAssetRequest($app, $id, $annotate_asset_dto, string $contentType = self::contentTypes['putAsset'][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 ' @@ -6157,6 +6247,7 @@ public function putAssetRequest($id, $annotate_asset_dto, string $contentType = * * Replace asset content. * + * @param string $app The name of the app. (required) * @param string $id The ID of the asset. (required) * @param \SplFileObject $file file (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAssetContent'] to see the possible values for this operation @@ -6165,9 +6256,9 @@ public function putAssetRequest($id, $annotate_asset_dto, string $contentType = * @throws \InvalidArgumentException * @return \Squidex\Client\Model\AssetDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putAssetContent($id, $file = null, string $contentType = self::contentTypes['putAssetContent'][0]) + public function putAssetContent($app, $id, $file = null, string $contentType = self::contentTypes['putAssetContent'][0]) { - list($response) = $this->putAssetContentWithHttpInfo($id, $file, $contentType); + list($response) = $this->putAssetContentWithHttpInfo($app, $id, $file, $contentType); return $response; } @@ -6176,6 +6267,7 @@ public function putAssetContent($id, $file = null, string $contentType = self::c * * Replace asset content. * + * @param string $app The name of the app. (required) * @param string $id The ID of the asset. (required) * @param \SplFileObject $file (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAssetContent'] to see the possible values for this operation @@ -6184,9 +6276,9 @@ public function putAssetContent($id, $file = null, string $contentType = self::c * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\AssetDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putAssetContentWithHttpInfo($id, $file = null, string $contentType = self::contentTypes['putAssetContent'][0]) + public function putAssetContentWithHttpInfo($app, $id, $file = null, string $contentType = self::contentTypes['putAssetContent'][0]) { - $request = $this->putAssetContentRequest($id, $file, $contentType); + $request = $this->putAssetContentRequest($app, $id, $file, $contentType); try { $options = $this->createHttpClientOption(); @@ -6346,6 +6438,7 @@ public function putAssetContentWithHttpInfo($id, $file = null, string $contentTy * * Replace asset content. * + * @param string $app The name of the app. (required) * @param string $id The ID of the asset. (required) * @param \SplFileObject $file (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAssetContent'] to see the possible values for this operation @@ -6353,9 +6446,9 @@ public function putAssetContentWithHttpInfo($id, $file = null, string $contentTy * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putAssetContentAsync($id, $file = null, string $contentType = self::contentTypes['putAssetContent'][0]) + public function putAssetContentAsync($app, $id, $file = null, string $contentType = self::contentTypes['putAssetContent'][0]) { - return $this->putAssetContentAsyncWithHttpInfo($id, $file, $contentType) + return $this->putAssetContentAsyncWithHttpInfo($app, $id, $file, $contentType) ->then( function ($response) { return $response[0]; @@ -6368,6 +6461,7 @@ function ($response) { * * Replace asset content. * + * @param string $app The name of the app. (required) * @param string $id The ID of the asset. (required) * @param \SplFileObject $file (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAssetContent'] to see the possible values for this operation @@ -6375,10 +6469,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putAssetContentAsyncWithHttpInfo($id, $file = null, string $contentType = self::contentTypes['putAssetContent'][0]) + public function putAssetContentAsyncWithHttpInfo($app, $id, $file = null, string $contentType = self::contentTypes['putAssetContent'][0]) { $returnType = '\Squidex\Client\Model\AssetDto'; - $request = $this->putAssetContentRequest($id, $file, $contentType); + $request = $this->putAssetContentRequest($app, $id, $file, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -6419,6 +6513,7 @@ function ($exception) { /** * Create request for operation 'putAssetContent' * + * @param string $app The name of the app. (required) * @param string $id The ID of the asset. (required) * @param \SplFileObject $file (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAssetContent'] to see the possible values for this operation @@ -6426,11 +6521,10 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putAssetContentRequest($id, $file = null, string $contentType = self::contentTypes['putAssetContent'][0]) + public function putAssetContentRequest($app, $id, $file = null, string $contentType = self::contentTypes['putAssetContent'][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 ' @@ -6543,6 +6637,7 @@ public function putAssetContentRequest($id, $file = null, string $contentType = * * Moves the asset. * + * @param string $app The name of the app. (required) * @param string $id The ID of the asset. (required) * @param \Squidex\Client\Model\MoveAssetDto $move_asset_dto The asset object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAssetParent'] to see the possible values for this operation @@ -6551,9 +6646,9 @@ public function putAssetContentRequest($id, $file = null, string $contentType = * @throws \InvalidArgumentException * @return \Squidex\Client\Model\AssetDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putAssetParent($id, $move_asset_dto, string $contentType = self::contentTypes['putAssetParent'][0]) + public function putAssetParent($app, $id, $move_asset_dto, string $contentType = self::contentTypes['putAssetParent'][0]) { - list($response) = $this->putAssetParentWithHttpInfo($id, $move_asset_dto, $contentType); + list($response) = $this->putAssetParentWithHttpInfo($app, $id, $move_asset_dto, $contentType); return $response; } @@ -6562,6 +6657,7 @@ public function putAssetParent($id, $move_asset_dto, string $contentType = self: * * Moves the asset. * + * @param string $app The name of the app. (required) * @param string $id The ID of the asset. (required) * @param \Squidex\Client\Model\MoveAssetDto $move_asset_dto The asset object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAssetParent'] to see the possible values for this operation @@ -6570,9 +6666,9 @@ public function putAssetParent($id, $move_asset_dto, string $contentType = self: * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\AssetDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putAssetParentWithHttpInfo($id, $move_asset_dto, string $contentType = self::contentTypes['putAssetParent'][0]) + public function putAssetParentWithHttpInfo($app, $id, $move_asset_dto, string $contentType = self::contentTypes['putAssetParent'][0]) { - $request = $this->putAssetParentRequest($id, $move_asset_dto, $contentType); + $request = $this->putAssetParentRequest($app, $id, $move_asset_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -6709,6 +6805,7 @@ public function putAssetParentWithHttpInfo($id, $move_asset_dto, string $content * * Moves the asset. * + * @param string $app The name of the app. (required) * @param string $id The ID of the asset. (required) * @param \Squidex\Client\Model\MoveAssetDto $move_asset_dto The asset object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAssetParent'] to see the possible values for this operation @@ -6716,9 +6813,9 @@ public function putAssetParentWithHttpInfo($id, $move_asset_dto, string $content * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putAssetParentAsync($id, $move_asset_dto, string $contentType = self::contentTypes['putAssetParent'][0]) + public function putAssetParentAsync($app, $id, $move_asset_dto, string $contentType = self::contentTypes['putAssetParent'][0]) { - return $this->putAssetParentAsyncWithHttpInfo($id, $move_asset_dto, $contentType) + return $this->putAssetParentAsyncWithHttpInfo($app, $id, $move_asset_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -6731,6 +6828,7 @@ function ($response) { * * Moves the asset. * + * @param string $app The name of the app. (required) * @param string $id The ID of the asset. (required) * @param \Squidex\Client\Model\MoveAssetDto $move_asset_dto The asset object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAssetParent'] to see the possible values for this operation @@ -6738,10 +6836,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putAssetParentAsyncWithHttpInfo($id, $move_asset_dto, string $contentType = self::contentTypes['putAssetParent'][0]) + public function putAssetParentAsyncWithHttpInfo($app, $id, $move_asset_dto, string $contentType = self::contentTypes['putAssetParent'][0]) { $returnType = '\Squidex\Client\Model\AssetDto'; - $request = $this->putAssetParentRequest($id, $move_asset_dto, $contentType); + $request = $this->putAssetParentRequest($app, $id, $move_asset_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -6782,6 +6880,7 @@ function ($exception) { /** * Create request for operation 'putAssetParent' * + * @param string $app The name of the app. (required) * @param string $id The ID of the asset. (required) * @param \Squidex\Client\Model\MoveAssetDto $move_asset_dto The asset object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putAssetParent'] to see the possible values for this operation @@ -6789,11 +6888,10 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putAssetParentRequest($id, $move_asset_dto, string $contentType = self::contentTypes['putAssetParent'][0]) + public function putAssetParentRequest($app, $id, $move_asset_dto, string $contentType = self::contentTypes['putAssetParent'][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 ' @@ -6907,6 +7005,7 @@ public function putAssetParentRequest($id, $move_asset_dto, string $contentType * * Rename an asset tag. * + * @param string $app The name of the app. (required) * @param string $name The tag to return. (required) * @param \Squidex\Client\Model\RenameTagDto $rename_tag_dto The required request object. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putTag'] to see the possible values for this operation @@ -6915,9 +7014,9 @@ public function putAssetParentRequest($id, $move_asset_dto, string $contentType * @throws \InvalidArgumentException * @return array|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putTag($name, $rename_tag_dto, string $contentType = self::contentTypes['putTag'][0]) + public function putTag($app, $name, $rename_tag_dto, string $contentType = self::contentTypes['putTag'][0]) { - list($response) = $this->putTagWithHttpInfo($name, $rename_tag_dto, $contentType); + list($response) = $this->putTagWithHttpInfo($app, $name, $rename_tag_dto, $contentType); return $response; } @@ -6926,6 +7025,7 @@ public function putTag($name, $rename_tag_dto, string $contentType = self::conte * * Rename an asset tag. * + * @param string $app The name of the app. (required) * @param string $name The tag to return. (required) * @param \Squidex\Client\Model\RenameTagDto $rename_tag_dto The required request object. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putTag'] to see the possible values for this operation @@ -6934,9 +7034,9 @@ public function putTag($name, $rename_tag_dto, string $contentType = self::conte * @throws \InvalidArgumentException * @return array of array|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putTagWithHttpInfo($name, $rename_tag_dto, string $contentType = self::contentTypes['putTag'][0]) + public function putTagWithHttpInfo($app, $name, $rename_tag_dto, string $contentType = self::contentTypes['putTag'][0]) { - $request = $this->putTagRequest($name, $rename_tag_dto, $contentType); + $request = $this->putTagRequest($app, $name, $rename_tag_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -7073,6 +7173,7 @@ public function putTagWithHttpInfo($name, $rename_tag_dto, string $contentType = * * Rename an asset tag. * + * @param string $app The name of the app. (required) * @param string $name The tag to return. (required) * @param \Squidex\Client\Model\RenameTagDto $rename_tag_dto The required request object. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putTag'] to see the possible values for this operation @@ -7080,9 +7181,9 @@ public function putTagWithHttpInfo($name, $rename_tag_dto, string $contentType = * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putTagAsync($name, $rename_tag_dto, string $contentType = self::contentTypes['putTag'][0]) + public function putTagAsync($app, $name, $rename_tag_dto, string $contentType = self::contentTypes['putTag'][0]) { - return $this->putTagAsyncWithHttpInfo($name, $rename_tag_dto, $contentType) + return $this->putTagAsyncWithHttpInfo($app, $name, $rename_tag_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -7095,6 +7196,7 @@ function ($response) { * * Rename an asset tag. * + * @param string $app The name of the app. (required) * @param string $name The tag to return. (required) * @param \Squidex\Client\Model\RenameTagDto $rename_tag_dto The required request object. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putTag'] to see the possible values for this operation @@ -7102,10 +7204,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putTagAsyncWithHttpInfo($name, $rename_tag_dto, string $contentType = self::contentTypes['putTag'][0]) + public function putTagAsyncWithHttpInfo($app, $name, $rename_tag_dto, string $contentType = self::contentTypes['putTag'][0]) { $returnType = 'array'; - $request = $this->putTagRequest($name, $rename_tag_dto, $contentType); + $request = $this->putTagRequest($app, $name, $rename_tag_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -7146,6 +7248,7 @@ function ($exception) { /** * Create request for operation 'putTag' * + * @param string $app The name of the app. (required) * @param string $name The tag to return. (required) * @param \Squidex\Client\Model\RenameTagDto $rename_tag_dto The required request object. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putTag'] to see the possible values for this operation @@ -7153,11 +7256,10 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putTagRequest($name, $rename_tag_dto, string $contentType = self::contentTypes['putTag'][0]) + public function putTagRequest($app, $name, $rename_tag_dto, string $contentType = self::contentTypes['putTag'][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 ' diff --git a/lib/Api/BackupsApi.php b/lib/Api/BackupsApi.php index c937e43..a15ffc4 100644 --- a/lib/Api/BackupsApi.php +++ b/lib/Api/BackupsApi.php @@ -142,6 +142,7 @@ public function getConfig() * * Get the backup content. * + * @param string $app The name of the app. (required) * @param string $id The ID of the backup. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getBackupContent'] to see the possible values for this operation * @@ -149,9 +150,9 @@ public function getConfig() * @throws \InvalidArgumentException * @return \SplFileObject|\Squidex\Client\Model\ErrorDto */ - public function getBackupContent($id, string $contentType = self::contentTypes['getBackupContent'][0]) + public function getBackupContent($app, $id, string $contentType = self::contentTypes['getBackupContent'][0]) { - list($response) = $this->getBackupContentWithHttpInfo($id, $contentType); + list($response) = $this->getBackupContentWithHttpInfo($app, $id, $contentType); return $response; } @@ -160,6 +161,7 @@ public function getBackupContent($id, string $contentType = self::contentTypes[' * * Get the backup content. * + * @param string $app The name of the app. (required) * @param string $id The ID of the backup. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getBackupContent'] to see the possible values for this operation * @@ -167,9 +169,9 @@ public function getBackupContent($id, string $contentType = self::contentTypes[' * @throws \InvalidArgumentException * @return array of \SplFileObject|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getBackupContentWithHttpInfo($id, string $contentType = self::contentTypes['getBackupContent'][0]) + public function getBackupContentWithHttpInfo($app, $id, string $contentType = self::contentTypes['getBackupContent'][0]) { - $request = $this->getBackupContentRequest($id, $contentType); + $request = $this->getBackupContentRequest($app, $id, $contentType); try { $options = $this->createHttpClientOption(); @@ -283,15 +285,16 @@ public function getBackupContentWithHttpInfo($id, string $contentType = self::co * * Get the backup content. * + * @param string $app The name of the app. (required) * @param string $id The ID of the backup. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getBackupContent'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getBackupContentAsync($id, string $contentType = self::contentTypes['getBackupContent'][0]) + public function getBackupContentAsync($app, $id, string $contentType = self::contentTypes['getBackupContent'][0]) { - return $this->getBackupContentAsyncWithHttpInfo($id, $contentType) + return $this->getBackupContentAsyncWithHttpInfo($app, $id, $contentType) ->then( function ($response) { return $response[0]; @@ -304,16 +307,17 @@ function ($response) { * * Get the backup content. * + * @param string $app The name of the app. (required) * @param string $id The ID of the backup. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getBackupContent'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getBackupContentAsyncWithHttpInfo($id, string $contentType = self::contentTypes['getBackupContent'][0]) + public function getBackupContentAsyncWithHttpInfo($app, $id, string $contentType = self::contentTypes['getBackupContent'][0]) { $returnType = '\SplFileObject'; - $request = $this->getBackupContentRequest($id, $contentType); + $request = $this->getBackupContentRequest($app, $id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -354,17 +358,17 @@ function ($exception) { /** * Create request for operation 'getBackupContent' * + * @param string $app The name of the app. (required) * @param string $id The ID of the backup. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getBackupContent'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getBackupContentRequest($id, string $contentType = self::contentTypes['getBackupContent'][0]) + public function getBackupContentRequest($app, $id, string $contentType = self::contentTypes['getBackupContent'][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 ' @@ -466,15 +470,16 @@ public function getBackupContentRequest($id, string $contentType = self::content * * @param string $id The ID of the backup. (required) * @param string $app_id The ID of the app. (optional) + * @param string $app The name of the app. (optional, default to '') * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getBackupContentV2'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \SplFileObject|\Squidex\Client\Model\ErrorDto */ - public function getBackupContentV2($id, $app_id = null, string $contentType = self::contentTypes['getBackupContentV2'][0]) + public function getBackupContentV2($id, $app_id = null, $app = '', string $contentType = self::contentTypes['getBackupContentV2'][0]) { - list($response) = $this->getBackupContentV2WithHttpInfo($id, $app_id, $contentType); + list($response) = $this->getBackupContentV2WithHttpInfo($id, $app_id, $app, $contentType); return $response; } @@ -485,15 +490,16 @@ public function getBackupContentV2($id, $app_id = null, string $contentType = se * * @param string $id The ID of the backup. (required) * @param string $app_id The ID of the app. (optional) + * @param string $app The name of the app. (optional, default to '') * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getBackupContentV2'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \SplFileObject|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getBackupContentV2WithHttpInfo($id, $app_id = null, string $contentType = self::contentTypes['getBackupContentV2'][0]) + public function getBackupContentV2WithHttpInfo($id, $app_id = null, $app = '', string $contentType = self::contentTypes['getBackupContentV2'][0]) { - $request = $this->getBackupContentV2Request($id, $app_id, $contentType); + $request = $this->getBackupContentV2Request($id, $app_id, $app, $contentType); try { $options = $this->createHttpClientOption(); @@ -609,14 +615,15 @@ public function getBackupContentV2WithHttpInfo($id, $app_id = null, string $cont * * @param string $id The ID of the backup. (required) * @param string $app_id The ID of the app. (optional) + * @param string $app The name of the app. (optional, default to '') * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getBackupContentV2'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getBackupContentV2Async($id, $app_id = null, string $contentType = self::contentTypes['getBackupContentV2'][0]) + public function getBackupContentV2Async($id, $app_id = null, $app = '', string $contentType = self::contentTypes['getBackupContentV2'][0]) { - return $this->getBackupContentV2AsyncWithHttpInfo($id, $app_id, $contentType) + return $this->getBackupContentV2AsyncWithHttpInfo($id, $app_id, $app, $contentType) ->then( function ($response) { return $response[0]; @@ -631,15 +638,16 @@ function ($response) { * * @param string $id The ID of the backup. (required) * @param string $app_id The ID of the app. (optional) + * @param string $app The name of the app. (optional, default to '') * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getBackupContentV2'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getBackupContentV2AsyncWithHttpInfo($id, $app_id = null, string $contentType = self::contentTypes['getBackupContentV2'][0]) + public function getBackupContentV2AsyncWithHttpInfo($id, $app_id = null, $app = '', string $contentType = self::contentTypes['getBackupContentV2'][0]) { $returnType = '\SplFileObject'; - $request = $this->getBackupContentV2Request($id, $app_id, $contentType); + $request = $this->getBackupContentV2Request($id, $app_id, $app, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -682,12 +690,13 @@ function ($exception) { * * @param string $id The ID of the backup. (required) * @param string $app_id The ID of the app. (optional) + * @param string $app The name of the app. (optional, default to '') * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getBackupContentV2'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getBackupContentV2Request($id, $app_id = null, string $contentType = self::contentTypes['getBackupContentV2'][0]) + public function getBackupContentV2Request($id, $app_id = null, $app = '', string $contentType = self::contentTypes['getBackupContentV2'][0]) { // verify the required parameter 'id' is set @@ -795,6 +804,7 @@ public function getBackupContentV2Request($id, $app_id = null, string $contentTy * * Delete a backup. * + * @param string $app The name of the app. (required) * @param string $id The ID of the backup to delete. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteBackup'] to see the possible values for this operation * @@ -802,9 +812,9 @@ public function getBackupContentV2Request($id, $app_id = null, string $contentTy * @throws \InvalidArgumentException * @return void */ - public function deleteBackup($id, string $contentType = self::contentTypes['deleteBackup'][0]) + public function deleteBackup($app, $id, string $contentType = self::contentTypes['deleteBackup'][0]) { - $this->deleteBackupWithHttpInfo($id, $contentType); + $this->deleteBackupWithHttpInfo($app, $id, $contentType); } /** @@ -812,6 +822,7 @@ public function deleteBackup($id, string $contentType = self::contentTypes['dele * * Delete a backup. * + * @param string $app The name of the app. (required) * @param string $id The ID of the backup to delete. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteBackup'] to see the possible values for this operation * @@ -819,9 +830,9 @@ public function deleteBackup($id, string $contentType = self::contentTypes['dele * @throws \InvalidArgumentException * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function deleteBackupWithHttpInfo($id, string $contentType = self::contentTypes['deleteBackup'][0]) + public function deleteBackupWithHttpInfo($app, $id, string $contentType = self::contentTypes['deleteBackup'][0]) { - $request = $this->deleteBackupRequest($id, $contentType); + $request = $this->deleteBackupRequest($app, $id, $contentType); try { $options = $this->createHttpClientOption(); @@ -888,15 +899,16 @@ public function deleteBackupWithHttpInfo($id, string $contentType = self::conten * * Delete a backup. * + * @param string $app The name of the app. (required) * @param string $id The ID of the backup to delete. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteBackup'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteBackupAsync($id, string $contentType = self::contentTypes['deleteBackup'][0]) + public function deleteBackupAsync($app, $id, string $contentType = self::contentTypes['deleteBackup'][0]) { - return $this->deleteBackupAsyncWithHttpInfo($id, $contentType) + return $this->deleteBackupAsyncWithHttpInfo($app, $id, $contentType) ->then( function ($response) { return $response[0]; @@ -909,16 +921,17 @@ function ($response) { * * Delete a backup. * + * @param string $app The name of the app. (required) * @param string $id The ID of the backup to delete. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteBackup'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteBackupAsyncWithHttpInfo($id, string $contentType = self::contentTypes['deleteBackup'][0]) + public function deleteBackupAsyncWithHttpInfo($app, $id, string $contentType = self::contentTypes['deleteBackup'][0]) { $returnType = ''; - $request = $this->deleteBackupRequest($id, $contentType); + $request = $this->deleteBackupRequest($app, $id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -946,17 +959,17 @@ function ($exception) { /** * Create request for operation 'deleteBackup' * + * @param string $app The name of the app. (required) * @param string $id The ID of the backup to delete. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteBackup'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function deleteBackupRequest($id, string $contentType = self::contentTypes['deleteBackup'][0]) + public function deleteBackupRequest($app, $id, string $contentType = self::contentTypes['deleteBackup'][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 ' @@ -1056,15 +1069,16 @@ public function deleteBackupRequest($id, string $contentType = self::contentType * * Get all backup jobs. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getBackups'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \Squidex\Client\Model\BackupJobsDto|\Squidex\Client\Model\ErrorDto */ - public function getBackups(string $contentType = self::contentTypes['getBackups'][0]) + public function getBackups($app, string $contentType = self::contentTypes['getBackups'][0]) { - list($response) = $this->getBackupsWithHttpInfo($contentType); + list($response) = $this->getBackupsWithHttpInfo($app, $contentType); return $response; } @@ -1073,15 +1087,16 @@ public function getBackups(string $contentType = self::contentTypes['getBackups' * * Get all backup jobs. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getBackups'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\BackupJobsDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getBackupsWithHttpInfo(string $contentType = self::contentTypes['getBackups'][0]) + public function getBackupsWithHttpInfo($app, string $contentType = self::contentTypes['getBackups'][0]) { - $request = $this->getBackupsRequest($contentType); + $request = $this->getBackupsRequest($app, $contentType); try { $options = $this->createHttpClientOption(); @@ -1195,14 +1210,15 @@ public function getBackupsWithHttpInfo(string $contentType = self::contentTypes[ * * Get all backup jobs. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getBackups'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getBackupsAsync(string $contentType = self::contentTypes['getBackups'][0]) + public function getBackupsAsync($app, string $contentType = self::contentTypes['getBackups'][0]) { - return $this->getBackupsAsyncWithHttpInfo($contentType) + return $this->getBackupsAsyncWithHttpInfo($app, $contentType) ->then( function ($response) { return $response[0]; @@ -1215,15 +1231,16 @@ function ($response) { * * Get all backup jobs. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getBackups'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getBackupsAsyncWithHttpInfo(string $contentType = self::contentTypes['getBackups'][0]) + public function getBackupsAsyncWithHttpInfo($app, string $contentType = self::contentTypes['getBackups'][0]) { $returnType = '\Squidex\Client\Model\BackupJobsDto'; - $request = $this->getBackupsRequest($contentType); + $request = $this->getBackupsRequest($app, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1264,16 +1281,16 @@ function ($exception) { /** * Create request for operation 'getBackups' * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getBackups'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getBackupsRequest(string $contentType = self::contentTypes['getBackups'][0]) + public function getBackupsRequest($app, string $contentType = self::contentTypes['getBackups'][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 ' @@ -1358,15 +1375,16 @@ public function getBackupsRequest(string $contentType = self::contentTypes['getB * * Start a new backup. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postBackup'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return void */ - public function postBackup(string $contentType = self::contentTypes['postBackup'][0]) + public function postBackup($app, string $contentType = self::contentTypes['postBackup'][0]) { - $this->postBackupWithHttpInfo($contentType); + $this->postBackupWithHttpInfo($app, $contentType); } /** @@ -1374,15 +1392,16 @@ public function postBackup(string $contentType = self::contentTypes['postBackup' * * Start a new backup. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postBackup'] 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 postBackupWithHttpInfo(string $contentType = self::contentTypes['postBackup'][0]) + public function postBackupWithHttpInfo($app, string $contentType = self::contentTypes['postBackup'][0]) { - $request = $this->postBackupRequest($contentType); + $request = $this->postBackupRequest($app, $contentType); try { $options = $this->createHttpClientOption(); @@ -1449,14 +1468,15 @@ public function postBackupWithHttpInfo(string $contentType = self::contentTypes[ * * Start a new backup. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postBackup'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postBackupAsync(string $contentType = self::contentTypes['postBackup'][0]) + public function postBackupAsync($app, string $contentType = self::contentTypes['postBackup'][0]) { - return $this->postBackupAsyncWithHttpInfo($contentType) + return $this->postBackupAsyncWithHttpInfo($app, $contentType) ->then( function ($response) { return $response[0]; @@ -1469,15 +1489,16 @@ function ($response) { * * Start a new backup. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postBackup'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postBackupAsyncWithHttpInfo(string $contentType = self::contentTypes['postBackup'][0]) + public function postBackupAsyncWithHttpInfo($app, string $contentType = self::contentTypes['postBackup'][0]) { $returnType = ''; - $request = $this->postBackupRequest($contentType); + $request = $this->postBackupRequest($app, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1505,16 +1526,16 @@ function ($exception) { /** * Create request for operation 'postBackup' * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postBackup'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function postBackupRequest(string $contentType = self::contentTypes['postBackup'][0]) + public function postBackupRequest($app, string $contentType = self::contentTypes['postBackup'][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 ' diff --git a/lib/Api/CommentsApi.php b/lib/Api/CommentsApi.php index a60ac29..5ba8862 100644 --- a/lib/Api/CommentsApi.php +++ b/lib/Api/CommentsApi.php @@ -136,6 +136,7 @@ public function getConfig() * * Delete a comment. * + * @param string $app The name of the app. (required) * @param string $comments_id The ID of the comments. (required) * @param string $comment_id The ID of the comment. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteComment'] to see the possible values for this operation @@ -144,9 +145,9 @@ public function getConfig() * @throws \InvalidArgumentException * @return void */ - public function deleteComment($comments_id, $comment_id, string $contentType = self::contentTypes['deleteComment'][0]) + public function deleteComment($app, $comments_id, $comment_id, string $contentType = self::contentTypes['deleteComment'][0]) { - $this->deleteCommentWithHttpInfo($comments_id, $comment_id, $contentType); + $this->deleteCommentWithHttpInfo($app, $comments_id, $comment_id, $contentType); } /** @@ -154,6 +155,7 @@ public function deleteComment($comments_id, $comment_id, string $contentType = s * * Delete a comment. * + * @param string $app The name of the app. (required) * @param string $comments_id The ID of the comments. (required) * @param string $comment_id The ID of the comment. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteComment'] to see the possible values for this operation @@ -162,9 +164,9 @@ public function deleteComment($comments_id, $comment_id, string $contentType = s * @throws \InvalidArgumentException * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function deleteCommentWithHttpInfo($comments_id, $comment_id, string $contentType = self::contentTypes['deleteComment'][0]) + public function deleteCommentWithHttpInfo($app, $comments_id, $comment_id, string $contentType = self::contentTypes['deleteComment'][0]) { - $request = $this->deleteCommentRequest($comments_id, $comment_id, $contentType); + $request = $this->deleteCommentRequest($app, $comments_id, $comment_id, $contentType); try { $options = $this->createHttpClientOption(); @@ -231,6 +233,7 @@ public function deleteCommentWithHttpInfo($comments_id, $comment_id, string $con * * Delete a comment. * + * @param string $app The name of the app. (required) * @param string $comments_id The ID of the comments. (required) * @param string $comment_id The ID of the comment. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteComment'] to see the possible values for this operation @@ -238,9 +241,9 @@ public function deleteCommentWithHttpInfo($comments_id, $comment_id, string $con * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteCommentAsync($comments_id, $comment_id, string $contentType = self::contentTypes['deleteComment'][0]) + public function deleteCommentAsync($app, $comments_id, $comment_id, string $contentType = self::contentTypes['deleteComment'][0]) { - return $this->deleteCommentAsyncWithHttpInfo($comments_id, $comment_id, $contentType) + return $this->deleteCommentAsyncWithHttpInfo($app, $comments_id, $comment_id, $contentType) ->then( function ($response) { return $response[0]; @@ -253,6 +256,7 @@ function ($response) { * * Delete a comment. * + * @param string $app The name of the app. (required) * @param string $comments_id The ID of the comments. (required) * @param string $comment_id The ID of the comment. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteComment'] to see the possible values for this operation @@ -260,10 +264,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteCommentAsyncWithHttpInfo($comments_id, $comment_id, string $contentType = self::contentTypes['deleteComment'][0]) + public function deleteCommentAsyncWithHttpInfo($app, $comments_id, $comment_id, string $contentType = self::contentTypes['deleteComment'][0]) { $returnType = ''; - $request = $this->deleteCommentRequest($comments_id, $comment_id, $contentType); + $request = $this->deleteCommentRequest($app, $comments_id, $comment_id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -291,6 +295,7 @@ function ($exception) { /** * Create request for operation 'deleteComment' * + * @param string $app The name of the app. (required) * @param string $comments_id The ID of the comments. (required) * @param string $comment_id The ID of the comment. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteComment'] to see the possible values for this operation @@ -298,11 +303,10 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function deleteCommentRequest($comments_id, $comment_id, string $contentType = self::contentTypes['deleteComment'][0]) + public function deleteCommentRequest($app, $comments_id, $comment_id, string $contentType = self::contentTypes['deleteComment'][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 ' @@ -417,6 +421,7 @@ public function deleteCommentRequest($comments_id, $comment_id, string $contentT * * Get all comments. * + * @param string $app The name of the app. (required) * @param string $comments_id The ID of the comments. (required) * @param int $version The current version. (optional, default to -2) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getComments'] to see the possible values for this operation @@ -425,9 +430,9 @@ public function deleteCommentRequest($comments_id, $comment_id, string $contentT * @throws \InvalidArgumentException * @return \Squidex\Client\Model\CommentsDto|\Squidex\Client\Model\ErrorDto */ - public function getComments($comments_id, $version = -2, string $contentType = self::contentTypes['getComments'][0]) + public function getComments($app, $comments_id, $version = -2, string $contentType = self::contentTypes['getComments'][0]) { - list($response) = $this->getCommentsWithHttpInfo($comments_id, $version, $contentType); + list($response) = $this->getCommentsWithHttpInfo($app, $comments_id, $version, $contentType); return $response; } @@ -436,6 +441,7 @@ public function getComments($comments_id, $version = -2, string $contentType = s * * Get all comments. * + * @param string $app The name of the app. (required) * @param string $comments_id The ID of the comments. (required) * @param int $version The current version. (optional, default to -2) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getComments'] to see the possible values for this operation @@ -444,9 +450,9 @@ public function getComments($comments_id, $version = -2, string $contentType = s * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\CommentsDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getCommentsWithHttpInfo($comments_id, $version = -2, string $contentType = self::contentTypes['getComments'][0]) + public function getCommentsWithHttpInfo($app, $comments_id, $version = -2, string $contentType = self::contentTypes['getComments'][0]) { - $request = $this->getCommentsRequest($comments_id, $version, $contentType); + $request = $this->getCommentsRequest($app, $comments_id, $version, $contentType); try { $options = $this->createHttpClientOption(); @@ -560,6 +566,7 @@ public function getCommentsWithHttpInfo($comments_id, $version = -2, string $con * * Get all comments. * + * @param string $app The name of the app. (required) * @param string $comments_id The ID of the comments. (required) * @param int $version The current version. (optional, default to -2) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getComments'] to see the possible values for this operation @@ -567,9 +574,9 @@ public function getCommentsWithHttpInfo($comments_id, $version = -2, string $con * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getCommentsAsync($comments_id, $version = -2, string $contentType = self::contentTypes['getComments'][0]) + public function getCommentsAsync($app, $comments_id, $version = -2, string $contentType = self::contentTypes['getComments'][0]) { - return $this->getCommentsAsyncWithHttpInfo($comments_id, $version, $contentType) + return $this->getCommentsAsyncWithHttpInfo($app, $comments_id, $version, $contentType) ->then( function ($response) { return $response[0]; @@ -582,6 +589,7 @@ function ($response) { * * Get all comments. * + * @param string $app The name of the app. (required) * @param string $comments_id The ID of the comments. (required) * @param int $version The current version. (optional, default to -2) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getComments'] to see the possible values for this operation @@ -589,10 +597,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getCommentsAsyncWithHttpInfo($comments_id, $version = -2, string $contentType = self::contentTypes['getComments'][0]) + public function getCommentsAsyncWithHttpInfo($app, $comments_id, $version = -2, string $contentType = self::contentTypes['getComments'][0]) { $returnType = '\Squidex\Client\Model\CommentsDto'; - $request = $this->getCommentsRequest($comments_id, $version, $contentType); + $request = $this->getCommentsRequest($app, $comments_id, $version, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -633,6 +641,7 @@ function ($exception) { /** * Create request for operation 'getComments' * + * @param string $app The name of the app. (required) * @param string $comments_id The ID of the comments. (required) * @param int $version The current version. (optional, default to -2) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getComments'] to see the possible values for this operation @@ -640,11 +649,10 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getCommentsRequest($comments_id, $version = -2, string $contentType = self::contentTypes['getComments'][0]) + public function getCommentsRequest($app, $comments_id, $version = -2, string $contentType = self::contentTypes['getComments'][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 ' @@ -754,6 +762,7 @@ public function getCommentsRequest($comments_id, $version = -2, string $contentT * * Get all watching users.. * + * @param string $app The name of the app. (required) * @param string $resource The path to the resource. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getWatchingUsers'] to see the possible values for this operation * @@ -761,9 +770,9 @@ public function getCommentsRequest($comments_id, $version = -2, string $contentT * @throws \InvalidArgumentException * @return string[]|\Squidex\Client\Model\ErrorDto */ - public function getWatchingUsers($resource, string $contentType = self::contentTypes['getWatchingUsers'][0]) + public function getWatchingUsers($app, $resource, string $contentType = self::contentTypes['getWatchingUsers'][0]) { - list($response) = $this->getWatchingUsersWithHttpInfo($resource, $contentType); + list($response) = $this->getWatchingUsersWithHttpInfo($app, $resource, $contentType); return $response; } @@ -772,6 +781,7 @@ public function getWatchingUsers($resource, string $contentType = self::contentT * * Get all watching users.. * + * @param string $app The name of the app. (required) * @param string $resource The path to the resource. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getWatchingUsers'] to see the possible values for this operation * @@ -779,9 +789,9 @@ public function getWatchingUsers($resource, string $contentType = self::contentT * @throws \InvalidArgumentException * @return array of string[]|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getWatchingUsersWithHttpInfo($resource, string $contentType = self::contentTypes['getWatchingUsers'][0]) + public function getWatchingUsersWithHttpInfo($app, $resource, string $contentType = self::contentTypes['getWatchingUsers'][0]) { - $request = $this->getWatchingUsersRequest($resource, $contentType); + $request = $this->getWatchingUsersRequest($app, $resource, $contentType); try { $options = $this->createHttpClientOption(); @@ -895,15 +905,16 @@ public function getWatchingUsersWithHttpInfo($resource, string $contentType = se * * Get all watching users.. * + * @param string $app The name of the app. (required) * @param string $resource The path to the resource. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getWatchingUsers'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getWatchingUsersAsync($resource, string $contentType = self::contentTypes['getWatchingUsers'][0]) + public function getWatchingUsersAsync($app, $resource, string $contentType = self::contentTypes['getWatchingUsers'][0]) { - return $this->getWatchingUsersAsyncWithHttpInfo($resource, $contentType) + return $this->getWatchingUsersAsyncWithHttpInfo($app, $resource, $contentType) ->then( function ($response) { return $response[0]; @@ -916,16 +927,17 @@ function ($response) { * * Get all watching users.. * + * @param string $app The name of the app. (required) * @param string $resource The path to the resource. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getWatchingUsers'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getWatchingUsersAsyncWithHttpInfo($resource, string $contentType = self::contentTypes['getWatchingUsers'][0]) + public function getWatchingUsersAsyncWithHttpInfo($app, $resource, string $contentType = self::contentTypes['getWatchingUsers'][0]) { $returnType = 'string[]'; - $request = $this->getWatchingUsersRequest($resource, $contentType); + $request = $this->getWatchingUsersRequest($app, $resource, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -966,17 +978,17 @@ function ($exception) { /** * Create request for operation 'getWatchingUsers' * + * @param string $app The name of the app. (required) * @param string $resource The path to the resource. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getWatchingUsers'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getWatchingUsersRequest($resource, string $contentType = self::contentTypes['getWatchingUsers'][0]) + public function getWatchingUsersRequest($app, $resource, string $contentType = self::contentTypes['getWatchingUsers'][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 ' @@ -1076,6 +1088,7 @@ public function getWatchingUsersRequest($resource, string $contentType = self::c * * Create a new comment. * + * @param string $app The name of the app. (required) * @param string $comments_id The ID of the comments. (required) * @param \Squidex\Client\Model\UpsertCommentDto $upsert_comment_dto The comment object that needs to created. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postComment'] to see the possible values for this operation @@ -1084,9 +1097,9 @@ public function getWatchingUsersRequest($resource, string $contentType = self::c * @throws \InvalidArgumentException * @return \Squidex\Client\Model\CommentDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function postComment($comments_id, $upsert_comment_dto, string $contentType = self::contentTypes['postComment'][0]) + public function postComment($app, $comments_id, $upsert_comment_dto, string $contentType = self::contentTypes['postComment'][0]) { - list($response) = $this->postCommentWithHttpInfo($comments_id, $upsert_comment_dto, $contentType); + list($response) = $this->postCommentWithHttpInfo($app, $comments_id, $upsert_comment_dto, $contentType); return $response; } @@ -1095,6 +1108,7 @@ public function postComment($comments_id, $upsert_comment_dto, string $contentTy * * Create a new comment. * + * @param string $app The name of the app. (required) * @param string $comments_id The ID of the comments. (required) * @param \Squidex\Client\Model\UpsertCommentDto $upsert_comment_dto The comment object that needs to created. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postComment'] to see the possible values for this operation @@ -1103,9 +1117,9 @@ public function postComment($comments_id, $upsert_comment_dto, string $contentTy * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\CommentDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function postCommentWithHttpInfo($comments_id, $upsert_comment_dto, string $contentType = self::contentTypes['postComment'][0]) + public function postCommentWithHttpInfo($app, $comments_id, $upsert_comment_dto, string $contentType = self::contentTypes['postComment'][0]) { - $request = $this->postCommentRequest($comments_id, $upsert_comment_dto, $contentType); + $request = $this->postCommentRequest($app, $comments_id, $upsert_comment_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -1242,6 +1256,7 @@ public function postCommentWithHttpInfo($comments_id, $upsert_comment_dto, strin * * Create a new comment. * + * @param string $app The name of the app. (required) * @param string $comments_id The ID of the comments. (required) * @param \Squidex\Client\Model\UpsertCommentDto $upsert_comment_dto The comment object that needs to created. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postComment'] to see the possible values for this operation @@ -1249,9 +1264,9 @@ public function postCommentWithHttpInfo($comments_id, $upsert_comment_dto, strin * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postCommentAsync($comments_id, $upsert_comment_dto, string $contentType = self::contentTypes['postComment'][0]) + public function postCommentAsync($app, $comments_id, $upsert_comment_dto, string $contentType = self::contentTypes['postComment'][0]) { - return $this->postCommentAsyncWithHttpInfo($comments_id, $upsert_comment_dto, $contentType) + return $this->postCommentAsyncWithHttpInfo($app, $comments_id, $upsert_comment_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -1264,6 +1279,7 @@ function ($response) { * * Create a new comment. * + * @param string $app The name of the app. (required) * @param string $comments_id The ID of the comments. (required) * @param \Squidex\Client\Model\UpsertCommentDto $upsert_comment_dto The comment object that needs to created. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postComment'] to see the possible values for this operation @@ -1271,10 +1287,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postCommentAsyncWithHttpInfo($comments_id, $upsert_comment_dto, string $contentType = self::contentTypes['postComment'][0]) + public function postCommentAsyncWithHttpInfo($app, $comments_id, $upsert_comment_dto, string $contentType = self::contentTypes['postComment'][0]) { $returnType = '\Squidex\Client\Model\CommentDto'; - $request = $this->postCommentRequest($comments_id, $upsert_comment_dto, $contentType); + $request = $this->postCommentRequest($app, $comments_id, $upsert_comment_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1315,6 +1331,7 @@ function ($exception) { /** * Create request for operation 'postComment' * + * @param string $app The name of the app. (required) * @param string $comments_id The ID of the comments. (required) * @param \Squidex\Client\Model\UpsertCommentDto $upsert_comment_dto The comment object that needs to created. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postComment'] to see the possible values for this operation @@ -1322,11 +1339,10 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function postCommentRequest($comments_id, $upsert_comment_dto, string $contentType = self::contentTypes['postComment'][0]) + public function postCommentRequest($app, $comments_id, $upsert_comment_dto, string $contentType = self::contentTypes['postComment'][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 ' @@ -1440,6 +1456,7 @@ public function postCommentRequest($comments_id, $upsert_comment_dto, string $co * * Update a comment. * + * @param string $app The name of the app. (required) * @param string $comments_id The ID of the comments. (required) * @param string $comment_id The ID of the comment. (required) * @param \Squidex\Client\Model\UpsertCommentDto $upsert_comment_dto The comment object that needs to updated. (required) @@ -1449,9 +1466,9 @@ public function postCommentRequest($comments_id, $upsert_comment_dto, string $co * @throws \InvalidArgumentException * @return void */ - public function putComment($comments_id, $comment_id, $upsert_comment_dto, string $contentType = self::contentTypes['putComment'][0]) + public function putComment($app, $comments_id, $comment_id, $upsert_comment_dto, string $contentType = self::contentTypes['putComment'][0]) { - $this->putCommentWithHttpInfo($comments_id, $comment_id, $upsert_comment_dto, $contentType); + $this->putCommentWithHttpInfo($app, $comments_id, $comment_id, $upsert_comment_dto, $contentType); } /** @@ -1459,6 +1476,7 @@ public function putComment($comments_id, $comment_id, $upsert_comment_dto, strin * * Update a comment. * + * @param string $app The name of the app. (required) * @param string $comments_id The ID of the comments. (required) * @param string $comment_id The ID of the comment. (required) * @param \Squidex\Client\Model\UpsertCommentDto $upsert_comment_dto The comment object that needs to updated. (required) @@ -1468,9 +1486,9 @@ public function putComment($comments_id, $comment_id, $upsert_comment_dto, strin * @throws \InvalidArgumentException * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function putCommentWithHttpInfo($comments_id, $comment_id, $upsert_comment_dto, string $contentType = self::contentTypes['putComment'][0]) + public function putCommentWithHttpInfo($app, $comments_id, $comment_id, $upsert_comment_dto, string $contentType = self::contentTypes['putComment'][0]) { - $request = $this->putCommentRequest($comments_id, $comment_id, $upsert_comment_dto, $contentType); + $request = $this->putCommentRequest($app, $comments_id, $comment_id, $upsert_comment_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -1537,6 +1555,7 @@ public function putCommentWithHttpInfo($comments_id, $comment_id, $upsert_commen * * Update a comment. * + * @param string $app The name of the app. (required) * @param string $comments_id The ID of the comments. (required) * @param string $comment_id The ID of the comment. (required) * @param \Squidex\Client\Model\UpsertCommentDto $upsert_comment_dto The comment object that needs to updated. (required) @@ -1545,9 +1564,9 @@ public function putCommentWithHttpInfo($comments_id, $comment_id, $upsert_commen * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putCommentAsync($comments_id, $comment_id, $upsert_comment_dto, string $contentType = self::contentTypes['putComment'][0]) + public function putCommentAsync($app, $comments_id, $comment_id, $upsert_comment_dto, string $contentType = self::contentTypes['putComment'][0]) { - return $this->putCommentAsyncWithHttpInfo($comments_id, $comment_id, $upsert_comment_dto, $contentType) + return $this->putCommentAsyncWithHttpInfo($app, $comments_id, $comment_id, $upsert_comment_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -1560,6 +1579,7 @@ function ($response) { * * Update a comment. * + * @param string $app The name of the app. (required) * @param string $comments_id The ID of the comments. (required) * @param string $comment_id The ID of the comment. (required) * @param \Squidex\Client\Model\UpsertCommentDto $upsert_comment_dto The comment object that needs to updated. (required) @@ -1568,10 +1588,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putCommentAsyncWithHttpInfo($comments_id, $comment_id, $upsert_comment_dto, string $contentType = self::contentTypes['putComment'][0]) + public function putCommentAsyncWithHttpInfo($app, $comments_id, $comment_id, $upsert_comment_dto, string $contentType = self::contentTypes['putComment'][0]) { $returnType = ''; - $request = $this->putCommentRequest($comments_id, $comment_id, $upsert_comment_dto, $contentType); + $request = $this->putCommentRequest($app, $comments_id, $comment_id, $upsert_comment_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1599,6 +1619,7 @@ function ($exception) { /** * Create request for operation 'putComment' * + * @param string $app The name of the app. (required) * @param string $comments_id The ID of the comments. (required) * @param string $comment_id The ID of the comment. (required) * @param \Squidex\Client\Model\UpsertCommentDto $upsert_comment_dto The comment object that needs to updated. (required) @@ -1607,11 +1628,10 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putCommentRequest($comments_id, $comment_id, $upsert_comment_dto, string $contentType = self::contentTypes['putComment'][0]) + public function putCommentRequest($app, $comments_id, $comment_id, $upsert_comment_dto, string $contentType = self::contentTypes['putComment'][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 ' diff --git a/lib/Api/ContentsApi.php b/lib/Api/ContentsApi.php index d6ba3bb..42670a7 100644 --- a/lib/Api/ContentsApi.php +++ b/lib/Api/ContentsApi.php @@ -130,6 +130,21 @@ class ContentsApi 'putContentStatus' => [ 'application/json', ], + 'bulkUpdateContents' => [ + 'application/json', + ], + 'getAllContents' => [ + 'application/json', + ], + 'getAllContentsPost' => [ + 'application/json', + ], + 'getGraphQL' => [ + 'application/json', + ], + 'getGraphQL2' => [ + 'application/json', + ], ]; /** @@ -175,6 +190,7 @@ public function getConfig() * * Bulk update content items. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\BulkUpdateContentsDto $bulk_update_contents_dto The bulk update request. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['bulkUpdateContents'] to see the possible values for this operation @@ -183,9 +199,9 @@ public function getConfig() * @throws \InvalidArgumentException * @return \Squidex\Client\Model\BulkResultDto[]|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function bulkUpdateContents($schema, $bulk_update_contents_dto, string $contentType = self::contentTypes['bulkUpdateContents'][0]) + public function bulkUpdateContents($app, $schema, $bulk_update_contents_dto, string $contentType = self::contentTypes['bulkUpdateContents'][0]) { - list($response) = $this->bulkUpdateContentsWithHttpInfo($schema, $bulk_update_contents_dto, $contentType); + list($response) = $this->bulkUpdateContentsWithHttpInfo($app, $schema, $bulk_update_contents_dto, $contentType); return $response; } @@ -194,6 +210,7 @@ public function bulkUpdateContents($schema, $bulk_update_contents_dto, string $c * * Bulk update content items. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\BulkUpdateContentsDto $bulk_update_contents_dto The bulk update request. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['bulkUpdateContents'] to see the possible values for this operation @@ -202,9 +219,9 @@ public function bulkUpdateContents($schema, $bulk_update_contents_dto, string $c * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\BulkResultDto[]|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function bulkUpdateContentsWithHttpInfo($schema, $bulk_update_contents_dto, string $contentType = self::contentTypes['bulkUpdateContents'][0]) + public function bulkUpdateContentsWithHttpInfo($app, $schema, $bulk_update_contents_dto, string $contentType = self::contentTypes['bulkUpdateContents'][0]) { - $request = $this->bulkUpdateContentsRequest($schema, $bulk_update_contents_dto, $contentType); + $request = $this->bulkUpdateContentsRequest($app, $schema, $bulk_update_contents_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -341,6 +358,7 @@ public function bulkUpdateContentsWithHttpInfo($schema, $bulk_update_contents_dt * * Bulk update content items. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\BulkUpdateContentsDto $bulk_update_contents_dto The bulk update request. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['bulkUpdateContents'] to see the possible values for this operation @@ -348,9 +366,9 @@ public function bulkUpdateContentsWithHttpInfo($schema, $bulk_update_contents_dt * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function bulkUpdateContentsAsync($schema, $bulk_update_contents_dto, string $contentType = self::contentTypes['bulkUpdateContents'][0]) + public function bulkUpdateContentsAsync($app, $schema, $bulk_update_contents_dto, string $contentType = self::contentTypes['bulkUpdateContents'][0]) { - return $this->bulkUpdateContentsAsyncWithHttpInfo($schema, $bulk_update_contents_dto, $contentType) + return $this->bulkUpdateContentsAsyncWithHttpInfo($app, $schema, $bulk_update_contents_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -363,6 +381,7 @@ function ($response) { * * Bulk update content items. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\BulkUpdateContentsDto $bulk_update_contents_dto The bulk update request. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['bulkUpdateContents'] to see the possible values for this operation @@ -370,10 +389,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function bulkUpdateContentsAsyncWithHttpInfo($schema, $bulk_update_contents_dto, string $contentType = self::contentTypes['bulkUpdateContents'][0]) + public function bulkUpdateContentsAsyncWithHttpInfo($app, $schema, $bulk_update_contents_dto, string $contentType = self::contentTypes['bulkUpdateContents'][0]) { $returnType = '\Squidex\Client\Model\BulkResultDto[]'; - $request = $this->bulkUpdateContentsRequest($schema, $bulk_update_contents_dto, $contentType); + $request = $this->bulkUpdateContentsRequest($app, $schema, $bulk_update_contents_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -414,6 +433,7 @@ function ($exception) { /** * Create request for operation 'bulkUpdateContents' * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\BulkUpdateContentsDto $bulk_update_contents_dto The bulk update request. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['bulkUpdateContents'] to see the possible values for this operation @@ -421,11 +441,10 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function bulkUpdateContentsRequest($schema, $bulk_update_contents_dto, string $contentType = self::contentTypes['bulkUpdateContents'][0]) + public function bulkUpdateContentsRequest($app, $schema, $bulk_update_contents_dto, string $contentType = self::contentTypes['bulkUpdateContents'][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 ' @@ -539,19 +558,20 @@ public function bulkUpdateContentsRequest($schema, $bulk_update_contents_dto, st * * Create a new draft version. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to create the draft for. (required) * @param bool $x_unpublished Return unpublished content items. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createDraft'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \Squidex\Client\Model\ContentDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function createDraft($schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['createDraft'][0]) + public function createDraft($app, $schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['createDraft'][0]) { - list($response) = $this->createDraftWithHttpInfo($schema, $id, $x_unpublished, $x_languages, $contentType); + list($response) = $this->createDraftWithHttpInfo($app, $schema, $id, $x_unpublished, $x_languages, $contentType); return $response; } @@ -560,19 +580,20 @@ public function createDraft($schema, $id, $x_unpublished = null, $x_languages = * * Create a new draft version. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to create the draft for. (required) * @param bool $x_unpublished Return unpublished content items. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createDraft'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\ContentDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function createDraftWithHttpInfo($schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['createDraft'][0]) + public function createDraftWithHttpInfo($app, $schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['createDraft'][0]) { - $request = $this->createDraftRequest($schema, $id, $x_unpublished, $x_languages, $contentType); + $request = $this->createDraftRequest($app, $schema, $id, $x_unpublished, $x_languages, $contentType); try { $options = $this->createHttpClientOption(); @@ -709,18 +730,19 @@ public function createDraftWithHttpInfo($schema, $id, $x_unpublished = null, $x_ * * Create a new draft version. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to create the draft for. (required) * @param bool $x_unpublished Return unpublished content items. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createDraft'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function createDraftAsync($schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['createDraft'][0]) + public function createDraftAsync($app, $schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['createDraft'][0]) { - return $this->createDraftAsyncWithHttpInfo($schema, $id, $x_unpublished, $x_languages, $contentType) + return $this->createDraftAsyncWithHttpInfo($app, $schema, $id, $x_unpublished, $x_languages, $contentType) ->then( function ($response) { return $response[0]; @@ -733,19 +755,20 @@ function ($response) { * * Create a new draft version. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to create the draft for. (required) * @param bool $x_unpublished Return unpublished content items. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createDraft'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function createDraftAsyncWithHttpInfo($schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['createDraft'][0]) + public function createDraftAsyncWithHttpInfo($app, $schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['createDraft'][0]) { $returnType = '\Squidex\Client\Model\ContentDto'; - $request = $this->createDraftRequest($schema, $id, $x_unpublished, $x_languages, $contentType); + $request = $this->createDraftRequest($app, $schema, $id, $x_unpublished, $x_languages, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -786,20 +809,20 @@ function ($exception) { /** * Create request for operation 'createDraft' * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to create the draft for. (required) * @param bool $x_unpublished Return unpublished content items. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createDraft'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function createDraftRequest($schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['createDraft'][0]) + public function createDraftRequest($app, $schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['createDraft'][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 ' @@ -924,6 +947,7 @@ public function createDraftRequest($schema, $id, $x_unpublished = null, $x_langu * * Delete a content item. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to delete. (required) * @param bool $check_referrers True to check referrers of this content. (optional) @@ -934,9 +958,9 @@ public function createDraftRequest($schema, $id, $x_unpublished = null, $x_langu * @throws \InvalidArgumentException * @return void */ - public function deleteContent($schema, $id, $check_referrers = null, $permanent = null, string $contentType = self::contentTypes['deleteContent'][0]) + public function deleteContent($app, $schema, $id, $check_referrers = null, $permanent = null, string $contentType = self::contentTypes['deleteContent'][0]) { - $this->deleteContentWithHttpInfo($schema, $id, $check_referrers, $permanent, $contentType); + $this->deleteContentWithHttpInfo($app, $schema, $id, $check_referrers, $permanent, $contentType); } /** @@ -944,6 +968,7 @@ public function deleteContent($schema, $id, $check_referrers = null, $permanent * * Delete a content item. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to delete. (required) * @param bool $check_referrers True to check referrers of this content. (optional) @@ -954,9 +979,9 @@ public function deleteContent($schema, $id, $check_referrers = null, $permanent * @throws \InvalidArgumentException * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function deleteContentWithHttpInfo($schema, $id, $check_referrers = null, $permanent = null, string $contentType = self::contentTypes['deleteContent'][0]) + public function deleteContentWithHttpInfo($app, $schema, $id, $check_referrers = null, $permanent = null, string $contentType = self::contentTypes['deleteContent'][0]) { - $request = $this->deleteContentRequest($schema, $id, $check_referrers, $permanent, $contentType); + $request = $this->deleteContentRequest($app, $schema, $id, $check_referrers, $permanent, $contentType); try { $options = $this->createHttpClientOption(); @@ -1023,6 +1048,7 @@ public function deleteContentWithHttpInfo($schema, $id, $check_referrers = null, * * Delete a content item. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to delete. (required) * @param bool $check_referrers True to check referrers of this content. (optional) @@ -1032,9 +1058,9 @@ public function deleteContentWithHttpInfo($schema, $id, $check_referrers = null, * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteContentAsync($schema, $id, $check_referrers = null, $permanent = null, string $contentType = self::contentTypes['deleteContent'][0]) + public function deleteContentAsync($app, $schema, $id, $check_referrers = null, $permanent = null, string $contentType = self::contentTypes['deleteContent'][0]) { - return $this->deleteContentAsyncWithHttpInfo($schema, $id, $check_referrers, $permanent, $contentType) + return $this->deleteContentAsyncWithHttpInfo($app, $schema, $id, $check_referrers, $permanent, $contentType) ->then( function ($response) { return $response[0]; @@ -1047,6 +1073,7 @@ function ($response) { * * Delete a content item. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to delete. (required) * @param bool $check_referrers True to check referrers of this content. (optional) @@ -1056,10 +1083,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteContentAsyncWithHttpInfo($schema, $id, $check_referrers = null, $permanent = null, string $contentType = self::contentTypes['deleteContent'][0]) + public function deleteContentAsyncWithHttpInfo($app, $schema, $id, $check_referrers = null, $permanent = null, string $contentType = self::contentTypes['deleteContent'][0]) { $returnType = ''; - $request = $this->deleteContentRequest($schema, $id, $check_referrers, $permanent, $contentType); + $request = $this->deleteContentRequest($app, $schema, $id, $check_referrers, $permanent, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1087,6 +1114,7 @@ function ($exception) { /** * Create request for operation 'deleteContent' * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to delete. (required) * @param bool $check_referrers True to check referrers of this content. (optional) @@ -1096,11 +1124,10 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function deleteContentRequest($schema, $id, $check_referrers = null, $permanent = null, string $contentType = self::contentTypes['deleteContent'][0]) + public function deleteContentRequest($app, $schema, $id, $check_referrers = null, $permanent = null, string $contentType = self::contentTypes['deleteContent'][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 ' @@ -1235,19 +1262,20 @@ public function deleteContentRequest($schema, $id, $check_referrers = null, $per * * Cancel status change of a content item. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to cancel. (required) * @param bool $x_unpublished Return unpublished content items. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteContentStatus'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \Squidex\Client\Model\ContentDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function deleteContentStatus($schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['deleteContentStatus'][0]) + public function deleteContentStatus($app, $schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['deleteContentStatus'][0]) { - list($response) = $this->deleteContentStatusWithHttpInfo($schema, $id, $x_unpublished, $x_languages, $contentType); + list($response) = $this->deleteContentStatusWithHttpInfo($app, $schema, $id, $x_unpublished, $x_languages, $contentType); return $response; } @@ -1256,19 +1284,20 @@ public function deleteContentStatus($schema, $id, $x_unpublished = null, $x_lang * * Cancel status change of a content item. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to cancel. (required) * @param bool $x_unpublished Return unpublished content items. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteContentStatus'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\ContentDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function deleteContentStatusWithHttpInfo($schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['deleteContentStatus'][0]) + public function deleteContentStatusWithHttpInfo($app, $schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['deleteContentStatus'][0]) { - $request = $this->deleteContentStatusRequest($schema, $id, $x_unpublished, $x_languages, $contentType); + $request = $this->deleteContentStatusRequest($app, $schema, $id, $x_unpublished, $x_languages, $contentType); try { $options = $this->createHttpClientOption(); @@ -1405,18 +1434,19 @@ public function deleteContentStatusWithHttpInfo($schema, $id, $x_unpublished = n * * Cancel status change of a content item. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to cancel. (required) * @param bool $x_unpublished Return unpublished content items. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteContentStatus'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteContentStatusAsync($schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['deleteContentStatus'][0]) + public function deleteContentStatusAsync($app, $schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['deleteContentStatus'][0]) { - return $this->deleteContentStatusAsyncWithHttpInfo($schema, $id, $x_unpublished, $x_languages, $contentType) + return $this->deleteContentStatusAsyncWithHttpInfo($app, $schema, $id, $x_unpublished, $x_languages, $contentType) ->then( function ($response) { return $response[0]; @@ -1429,19 +1459,20 @@ function ($response) { * * Cancel status change of a content item. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to cancel. (required) * @param bool $x_unpublished Return unpublished content items. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteContentStatus'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteContentStatusAsyncWithHttpInfo($schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['deleteContentStatus'][0]) + public function deleteContentStatusAsyncWithHttpInfo($app, $schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['deleteContentStatus'][0]) { $returnType = '\Squidex\Client\Model\ContentDto'; - $request = $this->deleteContentStatusRequest($schema, $id, $x_unpublished, $x_languages, $contentType); + $request = $this->deleteContentStatusRequest($app, $schema, $id, $x_unpublished, $x_languages, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1482,20 +1513,20 @@ function ($exception) { /** * Create request for operation 'deleteContentStatus' * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to cancel. (required) * @param bool $x_unpublished Return unpublished content items. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteContentStatus'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function deleteContentStatusRequest($schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['deleteContentStatus'][0]) + public function deleteContentStatusRequest($app, $schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['deleteContentStatus'][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 ' @@ -1620,19 +1651,20 @@ public function deleteContentStatusRequest($schema, $id, $x_unpublished = null, * * Delete the draft version. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to delete the draft from. (required) * @param bool $x_unpublished Return unpublished content items. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteVersion'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \Squidex\Client\Model\ContentDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function deleteVersion($schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['deleteVersion'][0]) + public function deleteVersion($app, $schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['deleteVersion'][0]) { - list($response) = $this->deleteVersionWithHttpInfo($schema, $id, $x_unpublished, $x_languages, $contentType); + list($response) = $this->deleteVersionWithHttpInfo($app, $schema, $id, $x_unpublished, $x_languages, $contentType); return $response; } @@ -1641,19 +1673,20 @@ public function deleteVersion($schema, $id, $x_unpublished = null, $x_languages * * Delete the draft version. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to delete the draft from. (required) * @param bool $x_unpublished Return unpublished content items. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteVersion'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\ContentDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function deleteVersionWithHttpInfo($schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['deleteVersion'][0]) + public function deleteVersionWithHttpInfo($app, $schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['deleteVersion'][0]) { - $request = $this->deleteVersionRequest($schema, $id, $x_unpublished, $x_languages, $contentType); + $request = $this->deleteVersionRequest($app, $schema, $id, $x_unpublished, $x_languages, $contentType); try { $options = $this->createHttpClientOption(); @@ -1790,18 +1823,19 @@ public function deleteVersionWithHttpInfo($schema, $id, $x_unpublished = null, $ * * Delete the draft version. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to delete the draft from. (required) * @param bool $x_unpublished Return unpublished content items. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteVersion'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteVersionAsync($schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['deleteVersion'][0]) + public function deleteVersionAsync($app, $schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['deleteVersion'][0]) { - return $this->deleteVersionAsyncWithHttpInfo($schema, $id, $x_unpublished, $x_languages, $contentType) + return $this->deleteVersionAsyncWithHttpInfo($app, $schema, $id, $x_unpublished, $x_languages, $contentType) ->then( function ($response) { return $response[0]; @@ -1814,19 +1848,20 @@ function ($response) { * * Delete the draft version. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to delete the draft from. (required) * @param bool $x_unpublished Return unpublished content items. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteVersion'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteVersionAsyncWithHttpInfo($schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['deleteVersion'][0]) + public function deleteVersionAsyncWithHttpInfo($app, $schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['deleteVersion'][0]) { $returnType = '\Squidex\Client\Model\ContentDto'; - $request = $this->deleteVersionRequest($schema, $id, $x_unpublished, $x_languages, $contentType); + $request = $this->deleteVersionRequest($app, $schema, $id, $x_unpublished, $x_languages, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1867,20 +1902,20 @@ function ($exception) { /** * Create request for operation 'deleteVersion' * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to delete the draft from. (required) * @param bool $x_unpublished Return unpublished content items. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteVersion'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function deleteVersionRequest($schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['deleteVersion'][0]) + public function deleteVersionRequest($app, $schema, $id, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['deleteVersion'][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 ' @@ -2005,11 +2040,13 @@ public function deleteVersionRequest($schema, $id, $x_unpublished = null, $x_lan * * Get a content item. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content to fetch. (required) * @param int $version The optional version. (optional, default to -2) + * @param string $x_fields The list of content fields (comma-separated). (optional) * @param bool $x_flatten Provide the data as flat object. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param bool $x_unpublished Return unpublished content items. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getContent'] to see the possible values for this operation * @@ -2017,9 +2054,9 @@ public function deleteVersionRequest($schema, $id, $x_unpublished = null, $x_lan * @throws \InvalidArgumentException * @return \Squidex\Client\Model\ContentDto|\Squidex\Client\Model\ErrorDto */ - public function getContent($schema, $id, $version = -2, $x_flatten = null, $x_languages = null, $x_unpublished = null, string $contentType = self::contentTypes['getContent'][0]) + public function getContent($app, $schema, $id, $version = -2, $x_fields = null, $x_flatten = null, $x_languages = null, $x_unpublished = null, string $contentType = self::contentTypes['getContent'][0]) { - list($response) = $this->getContentWithHttpInfo($schema, $id, $version, $x_flatten, $x_languages, $x_unpublished, $contentType); + list($response) = $this->getContentWithHttpInfo($app, $schema, $id, $version, $x_fields, $x_flatten, $x_languages, $x_unpublished, $contentType); return $response; } @@ -2028,11 +2065,13 @@ public function getContent($schema, $id, $version = -2, $x_flatten = null, $x_la * * Get a content item. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content to fetch. (required) * @param int $version The optional version. (optional, default to -2) + * @param string $x_fields The list of content fields (comma-separated). (optional) * @param bool $x_flatten Provide the data as flat object. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param bool $x_unpublished Return unpublished content items. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getContent'] to see the possible values for this operation * @@ -2040,9 +2079,9 @@ public function getContent($schema, $id, $version = -2, $x_flatten = null, $x_la * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\ContentDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getContentWithHttpInfo($schema, $id, $version = -2, $x_flatten = null, $x_languages = null, $x_unpublished = null, string $contentType = self::contentTypes['getContent'][0]) + public function getContentWithHttpInfo($app, $schema, $id, $version = -2, $x_fields = null, $x_flatten = null, $x_languages = null, $x_unpublished = null, string $contentType = self::contentTypes['getContent'][0]) { - $request = $this->getContentRequest($schema, $id, $version, $x_flatten, $x_languages, $x_unpublished, $contentType); + $request = $this->getContentRequest($app, $schema, $id, $version, $x_fields, $x_flatten, $x_languages, $x_unpublished, $contentType); try { $options = $this->createHttpClientOption(); @@ -2156,20 +2195,22 @@ public function getContentWithHttpInfo($schema, $id, $version = -2, $x_flatten = * * Get a content item. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content to fetch. (required) * @param int $version The optional version. (optional, default to -2) + * @param string $x_fields The list of content fields (comma-separated). (optional) * @param bool $x_flatten Provide the data as flat object. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param bool $x_unpublished Return unpublished content items. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getContent'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getContentAsync($schema, $id, $version = -2, $x_flatten = null, $x_languages = null, $x_unpublished = null, string $contentType = self::contentTypes['getContent'][0]) + public function getContentAsync($app, $schema, $id, $version = -2, $x_fields = null, $x_flatten = null, $x_languages = null, $x_unpublished = null, string $contentType = self::contentTypes['getContent'][0]) { - return $this->getContentAsyncWithHttpInfo($schema, $id, $version, $x_flatten, $x_languages, $x_unpublished, $contentType) + return $this->getContentAsyncWithHttpInfo($app, $schema, $id, $version, $x_fields, $x_flatten, $x_languages, $x_unpublished, $contentType) ->then( function ($response) { return $response[0]; @@ -2182,21 +2223,23 @@ function ($response) { * * Get a content item. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content to fetch. (required) * @param int $version The optional version. (optional, default to -2) + * @param string $x_fields The list of content fields (comma-separated). (optional) * @param bool $x_flatten Provide the data as flat object. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param bool $x_unpublished Return unpublished content items. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getContent'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getContentAsyncWithHttpInfo($schema, $id, $version = -2, $x_flatten = null, $x_languages = null, $x_unpublished = null, string $contentType = self::contentTypes['getContent'][0]) + public function getContentAsyncWithHttpInfo($app, $schema, $id, $version = -2, $x_fields = null, $x_flatten = null, $x_languages = null, $x_unpublished = null, string $contentType = self::contentTypes['getContent'][0]) { $returnType = '\Squidex\Client\Model\ContentDto'; - $request = $this->getContentRequest($schema, $id, $version, $x_flatten, $x_languages, $x_unpublished, $contentType); + $request = $this->getContentRequest($app, $schema, $id, $version, $x_fields, $x_flatten, $x_languages, $x_unpublished, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -2237,22 +2280,23 @@ function ($exception) { /** * Create request for operation 'getContent' * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content to fetch. (required) * @param int $version The optional version. (optional, default to -2) + * @param string $x_fields The list of content fields (comma-separated). (optional) * @param bool $x_flatten Provide the data as flat object. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param bool $x_unpublished Return unpublished content items. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getContent'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getContentRequest($schema, $id, $version = -2, $x_flatten = null, $x_languages = null, $x_unpublished = null, string $contentType = self::contentTypes['getContent'][0]) + public function getContentRequest($app, $schema, $id, $version = -2, $x_fields = null, $x_flatten = null, $x_languages = null, $x_unpublished = null, string $contentType = self::contentTypes['getContent'][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 ' @@ -2278,6 +2322,7 @@ public function getContentRequest($schema, $id, $version = -2, $x_flatten = null + $resourcePath = '/api/content/{app}/{schema}/{id}'; $formParams = []; $queryParams = []; @@ -2295,6 +2340,10 @@ public function getContentRequest($schema, $id, $version = -2, $x_flatten = null false // required ) ?? []); + // header params + if ($x_fields !== null) { + $headerParams['X-Fields'] = ObjectSerializer::toHeaderValue($x_fields); + } // header params if ($x_flatten !== null) { $headerParams['X-Flatten'] = ObjectSerializer::toHeaderValue($x_flatten); @@ -2392,6 +2441,7 @@ public function getContentRequest($schema, $id, $version = -2, $x_flatten = null * * Get a content item validity. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content to fetch. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getContentValidity'] to see the possible values for this operation @@ -2400,9 +2450,9 @@ public function getContentRequest($schema, $id, $version = -2, $x_flatten = null * @throws \InvalidArgumentException * @return void */ - public function getContentValidity($schema, $id, string $contentType = self::contentTypes['getContentValidity'][0]) + public function getContentValidity($app, $schema, $id, string $contentType = self::contentTypes['getContentValidity'][0]) { - $this->getContentValidityWithHttpInfo($schema, $id, $contentType); + $this->getContentValidityWithHttpInfo($app, $schema, $id, $contentType); } /** @@ -2410,6 +2460,7 @@ public function getContentValidity($schema, $id, string $contentType = self::con * * Get a content item validity. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content to fetch. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getContentValidity'] to see the possible values for this operation @@ -2418,9 +2469,9 @@ public function getContentValidity($schema, $id, string $contentType = self::con * @throws \InvalidArgumentException * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function getContentValidityWithHttpInfo($schema, $id, string $contentType = self::contentTypes['getContentValidity'][0]) + public function getContentValidityWithHttpInfo($app, $schema, $id, string $contentType = self::contentTypes['getContentValidity'][0]) { - $request = $this->getContentValidityRequest($schema, $id, $contentType); + $request = $this->getContentValidityRequest($app, $schema, $id, $contentType); try { $options = $this->createHttpClientOption(); @@ -2487,6 +2538,7 @@ public function getContentValidityWithHttpInfo($schema, $id, string $contentType * * Get a content item validity. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content to fetch. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getContentValidity'] to see the possible values for this operation @@ -2494,9 +2546,9 @@ public function getContentValidityWithHttpInfo($schema, $id, string $contentType * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getContentValidityAsync($schema, $id, string $contentType = self::contentTypes['getContentValidity'][0]) + public function getContentValidityAsync($app, $schema, $id, string $contentType = self::contentTypes['getContentValidity'][0]) { - return $this->getContentValidityAsyncWithHttpInfo($schema, $id, $contentType) + return $this->getContentValidityAsyncWithHttpInfo($app, $schema, $id, $contentType) ->then( function ($response) { return $response[0]; @@ -2509,6 +2561,7 @@ function ($response) { * * Get a content item validity. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content to fetch. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getContentValidity'] to see the possible values for this operation @@ -2516,10 +2569,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getContentValidityAsyncWithHttpInfo($schema, $id, string $contentType = self::contentTypes['getContentValidity'][0]) + public function getContentValidityAsyncWithHttpInfo($app, $schema, $id, string $contentType = self::contentTypes['getContentValidity'][0]) { $returnType = ''; - $request = $this->getContentValidityRequest($schema, $id, $contentType); + $request = $this->getContentValidityRequest($app, $schema, $id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -2547,6 +2600,7 @@ function ($exception) { /** * Create request for operation 'getContentValidity' * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content to fetch. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getContentValidity'] to see the possible values for this operation @@ -2554,11 +2608,10 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getContentValidityRequest($schema, $id, string $contentType = self::contentTypes['getContentValidity'][0]) + public function getContentValidityRequest($app, $schema, $id, string $contentType = self::contentTypes['getContentValidity'][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 ' @@ -2673,11 +2726,12 @@ public function getContentValidityRequest($schema, $id, string $contentType = se * * Get a content by version. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content to fetch. (required) * @param int $version The version fo the content to fetch. (required) * @param bool $x_unpublished Return unpublished content items. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getContentVersion'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response @@ -2685,9 +2739,9 @@ public function getContentValidityRequest($schema, $id, string $contentType = se * @return \SplFileObject|\Squidex\Client\Model\ErrorDto * @deprecated */ - public function getContentVersion($schema, $id, $version, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['getContentVersion'][0]) + public function getContentVersion($app, $schema, $id, $version, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['getContentVersion'][0]) { - list($response) = $this->getContentVersionWithHttpInfo($schema, $id, $version, $x_unpublished, $x_languages, $contentType); + list($response) = $this->getContentVersionWithHttpInfo($app, $schema, $id, $version, $x_unpublished, $x_languages, $contentType); return $response; } @@ -2696,11 +2750,12 @@ public function getContentVersion($schema, $id, $version, $x_unpublished = null, * * Get a content by version. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content to fetch. (required) * @param int $version The version fo the content to fetch. (required) * @param bool $x_unpublished Return unpublished content items. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getContentVersion'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response @@ -2708,9 +2763,9 @@ public function getContentVersion($schema, $id, $version, $x_unpublished = null, * @return array of \SplFileObject|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) * @deprecated */ - public function getContentVersionWithHttpInfo($schema, $id, $version, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['getContentVersion'][0]) + public function getContentVersionWithHttpInfo($app, $schema, $id, $version, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['getContentVersion'][0]) { - $request = $this->getContentVersionRequest($schema, $id, $version, $x_unpublished, $x_languages, $contentType); + $request = $this->getContentVersionRequest($app, $schema, $id, $version, $x_unpublished, $x_languages, $contentType); try { $options = $this->createHttpClientOption(); @@ -2824,20 +2879,21 @@ public function getContentVersionWithHttpInfo($schema, $id, $version, $x_unpubli * * Get a content by version. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content to fetch. (required) * @param int $version The version fo the content to fetch. (required) * @param bool $x_unpublished Return unpublished content items. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getContentVersion'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface * @deprecated */ - public function getContentVersionAsync($schema, $id, $version, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['getContentVersion'][0]) + public function getContentVersionAsync($app, $schema, $id, $version, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['getContentVersion'][0]) { - return $this->getContentVersionAsyncWithHttpInfo($schema, $id, $version, $x_unpublished, $x_languages, $contentType) + return $this->getContentVersionAsyncWithHttpInfo($app, $schema, $id, $version, $x_unpublished, $x_languages, $contentType) ->then( function ($response) { return $response[0]; @@ -2850,21 +2906,22 @@ function ($response) { * * Get a content by version. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content to fetch. (required) * @param int $version The version fo the content to fetch. (required) * @param bool $x_unpublished Return unpublished content items. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getContentVersion'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface * @deprecated */ - public function getContentVersionAsyncWithHttpInfo($schema, $id, $version, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['getContentVersion'][0]) + public function getContentVersionAsyncWithHttpInfo($app, $schema, $id, $version, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['getContentVersion'][0]) { $returnType = '\SplFileObject'; - $request = $this->getContentVersionRequest($schema, $id, $version, $x_unpublished, $x_languages, $contentType); + $request = $this->getContentVersionRequest($app, $schema, $id, $version, $x_unpublished, $x_languages, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -2905,22 +2962,22 @@ function ($exception) { /** * Create request for operation 'getContentVersion' * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content to fetch. (required) * @param int $version The version fo the content to fetch. (required) * @param bool $x_unpublished Return unpublished content items. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getContentVersion'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request * @deprecated */ - public function getContentVersionRequest($schema, $id, $version, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['getContentVersion'][0]) + public function getContentVersionRequest($app, $schema, $id, $version, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['getContentVersion'][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 ' @@ -3060,6 +3117,7 @@ public function getContentVersionRequest($schema, $id, $version, $x_unpublished * * Queries contents. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $ids The optional ids of the content to fetch. (optional) * @param string $q The optional json query. (optional) @@ -3068,8 +3126,9 @@ public function getContentVersionRequest($schema, $id, $version, $x_unpublished * @param float $skip Optional number of items to skip. (optional) * @param string $orderby Optional OData order definition. (optional) * @param string $filter Optional OData filter. (optional) + * @param string $x_fields The list of content fields (comma-separated). (optional) * @param bool $x_flatten Provide the data as flat object. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param bool $x_no_slow_total Do not return the total amount, if it would be slow. (optional) * @param bool $x_no_total Do not return the total amount. (optional) * @param bool $x_unpublished Return unpublished content items. (optional) @@ -3079,9 +3138,9 @@ public function getContentVersionRequest($schema, $id, $version, $x_unpublished * @throws \InvalidArgumentException * @return \Squidex\Client\Model\ContentsDto|\Squidex\Client\Model\ErrorDto */ - public function getContents($schema, $ids = null, $q = null, $search = null, $top = null, $skip = null, $orderby = null, $filter = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getContents'][0]) + public function getContents($app, $schema, $ids = null, $q = null, $search = null, $top = null, $skip = null, $orderby = null, $filter = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getContents'][0]) { - list($response) = $this->getContentsWithHttpInfo($schema, $ids, $q, $search, $top, $skip, $orderby, $filter, $x_flatten, $x_languages, $x_no_slow_total, $x_no_total, $x_unpublished, $contentType); + list($response) = $this->getContentsWithHttpInfo($app, $schema, $ids, $q, $search, $top, $skip, $orderby, $filter, $x_fields, $x_flatten, $x_languages, $x_no_slow_total, $x_no_total, $x_unpublished, $contentType); return $response; } @@ -3090,6 +3149,7 @@ public function getContents($schema, $ids = null, $q = null, $search = null, $to * * Queries contents. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $ids The optional ids of the content to fetch. (optional) * @param string $q The optional json query. (optional) @@ -3098,8 +3158,9 @@ public function getContents($schema, $ids = null, $q = null, $search = null, $to * @param float $skip Optional number of items to skip. (optional) * @param string $orderby Optional OData order definition. (optional) * @param string $filter Optional OData filter. (optional) + * @param string $x_fields The list of content fields (comma-separated). (optional) * @param bool $x_flatten Provide the data as flat object. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param bool $x_no_slow_total Do not return the total amount, if it would be slow. (optional) * @param bool $x_no_total Do not return the total amount. (optional) * @param bool $x_unpublished Return unpublished content items. (optional) @@ -3109,9 +3170,9 @@ public function getContents($schema, $ids = null, $q = null, $search = null, $to * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\ContentsDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getContentsWithHttpInfo($schema, $ids = null, $q = null, $search = null, $top = null, $skip = null, $orderby = null, $filter = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getContents'][0]) + public function getContentsWithHttpInfo($app, $schema, $ids = null, $q = null, $search = null, $top = null, $skip = null, $orderby = null, $filter = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getContents'][0]) { - $request = $this->getContentsRequest($schema, $ids, $q, $search, $top, $skip, $orderby, $filter, $x_flatten, $x_languages, $x_no_slow_total, $x_no_total, $x_unpublished, $contentType); + $request = $this->getContentsRequest($app, $schema, $ids, $q, $search, $top, $skip, $orderby, $filter, $x_fields, $x_flatten, $x_languages, $x_no_slow_total, $x_no_total, $x_unpublished, $contentType); try { $options = $this->createHttpClientOption(); @@ -3225,6 +3286,7 @@ public function getContentsWithHttpInfo($schema, $ids = null, $q = null, $search * * Queries contents. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $ids The optional ids of the content to fetch. (optional) * @param string $q The optional json query. (optional) @@ -3233,8 +3295,9 @@ public function getContentsWithHttpInfo($schema, $ids = null, $q = null, $search * @param float $skip Optional number of items to skip. (optional) * @param string $orderby Optional OData order definition. (optional) * @param string $filter Optional OData filter. (optional) + * @param string $x_fields The list of content fields (comma-separated). (optional) * @param bool $x_flatten Provide the data as flat object. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param bool $x_no_slow_total Do not return the total amount, if it would be slow. (optional) * @param bool $x_no_total Do not return the total amount. (optional) * @param bool $x_unpublished Return unpublished content items. (optional) @@ -3243,9 +3306,9 @@ public function getContentsWithHttpInfo($schema, $ids = null, $q = null, $search * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getContentsAsync($schema, $ids = null, $q = null, $search = null, $top = null, $skip = null, $orderby = null, $filter = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getContents'][0]) + public function getContentsAsync($app, $schema, $ids = null, $q = null, $search = null, $top = null, $skip = null, $orderby = null, $filter = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getContents'][0]) { - return $this->getContentsAsyncWithHttpInfo($schema, $ids, $q, $search, $top, $skip, $orderby, $filter, $x_flatten, $x_languages, $x_no_slow_total, $x_no_total, $x_unpublished, $contentType) + return $this->getContentsAsyncWithHttpInfo($app, $schema, $ids, $q, $search, $top, $skip, $orderby, $filter, $x_fields, $x_flatten, $x_languages, $x_no_slow_total, $x_no_total, $x_unpublished, $contentType) ->then( function ($response) { return $response[0]; @@ -3258,6 +3321,7 @@ function ($response) { * * Queries contents. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $ids The optional ids of the content to fetch. (optional) * @param string $q The optional json query. (optional) @@ -3266,8 +3330,9 @@ function ($response) { * @param float $skip Optional number of items to skip. (optional) * @param string $orderby Optional OData order definition. (optional) * @param string $filter Optional OData filter. (optional) + * @param string $x_fields The list of content fields (comma-separated). (optional) * @param bool $x_flatten Provide the data as flat object. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param bool $x_no_slow_total Do not return the total amount, if it would be slow. (optional) * @param bool $x_no_total Do not return the total amount. (optional) * @param bool $x_unpublished Return unpublished content items. (optional) @@ -3276,10 +3341,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getContentsAsyncWithHttpInfo($schema, $ids = null, $q = null, $search = null, $top = null, $skip = null, $orderby = null, $filter = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getContents'][0]) + public function getContentsAsyncWithHttpInfo($app, $schema, $ids = null, $q = null, $search = null, $top = null, $skip = null, $orderby = null, $filter = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getContents'][0]) { $returnType = '\Squidex\Client\Model\ContentsDto'; - $request = $this->getContentsRequest($schema, $ids, $q, $search, $top, $skip, $orderby, $filter, $x_flatten, $x_languages, $x_no_slow_total, $x_no_total, $x_unpublished, $contentType); + $request = $this->getContentsRequest($app, $schema, $ids, $q, $search, $top, $skip, $orderby, $filter, $x_fields, $x_flatten, $x_languages, $x_no_slow_total, $x_no_total, $x_unpublished, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -3320,6 +3385,7 @@ function ($exception) { /** * Create request for operation 'getContents' * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $ids The optional ids of the content to fetch. (optional) * @param string $q The optional json query. (optional) @@ -3328,8 +3394,9 @@ function ($exception) { * @param float $skip Optional number of items to skip. (optional) * @param string $orderby Optional OData order definition. (optional) * @param string $filter Optional OData filter. (optional) + * @param string $x_fields The list of content fields (comma-separated). (optional) * @param bool $x_flatten Provide the data as flat object. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param bool $x_no_slow_total Do not return the total amount, if it would be slow. (optional) * @param bool $x_no_total Do not return the total amount. (optional) * @param bool $x_unpublished Return unpublished content items. (optional) @@ -3338,11 +3405,10 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getContentsRequest($schema, $ids = null, $q = null, $search = null, $top = null, $skip = null, $orderby = null, $filter = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getContents'][0]) + public function getContentsRequest($app, $schema, $ids = null, $q = null, $search = null, $top = null, $skip = null, $orderby = null, $filter = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getContents'][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 ' @@ -3369,6 +3435,7 @@ public function getContentsRequest($schema, $ids = null, $q = null, $search = nu + $resourcePath = '/api/content/{app}/{schema}'; $formParams = []; $queryParams = []; @@ -3440,6 +3507,10 @@ public function getContentsRequest($schema, $ids = null, $q = null, $search = nu false // required ) ?? []); + // header params + if ($x_fields !== null) { + $headerParams['X-Fields'] = ObjectSerializer::toHeaderValue($x_fields); + } // header params if ($x_flatten !== null) { $headerParams['X-Flatten'] = ObjectSerializer::toHeaderValue($x_flatten); @@ -3537,10 +3608,12 @@ public function getContentsRequest($schema, $ids = null, $q = null, $search = nu * * Queries contents. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\QueryDto $query_dto The required query object. (required) + * @param string $x_fields The list of content fields (comma-separated). (optional) * @param bool $x_flatten Provide the data as flat object. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param bool $x_no_slow_total Do not return the total amount, if it would be slow. (optional) * @param bool $x_no_total Do not return the total amount. (optional) * @param bool $x_unpublished Return unpublished content items. (optional) @@ -3550,9 +3623,9 @@ public function getContentsRequest($schema, $ids = null, $q = null, $search = nu * @throws \InvalidArgumentException * @return \Squidex\Client\Model\ContentsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function getContentsPost($schema, $query_dto, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getContentsPost'][0]) + public function getContentsPost($app, $schema, $query_dto, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getContentsPost'][0]) { - list($response) = $this->getContentsPostWithHttpInfo($schema, $query_dto, $x_flatten, $x_languages, $x_no_slow_total, $x_no_total, $x_unpublished, $contentType); + list($response) = $this->getContentsPostWithHttpInfo($app, $schema, $query_dto, $x_fields, $x_flatten, $x_languages, $x_no_slow_total, $x_no_total, $x_unpublished, $contentType); return $response; } @@ -3561,10 +3634,12 @@ public function getContentsPost($schema, $query_dto, $x_flatten = null, $x_langu * * Queries contents. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\QueryDto $query_dto The required query object. (required) + * @param string $x_fields The list of content fields (comma-separated). (optional) * @param bool $x_flatten Provide the data as flat object. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param bool $x_no_slow_total Do not return the total amount, if it would be slow. (optional) * @param bool $x_no_total Do not return the total amount. (optional) * @param bool $x_unpublished Return unpublished content items. (optional) @@ -3574,9 +3649,9 @@ public function getContentsPost($schema, $query_dto, $x_flatten = null, $x_langu * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\ContentsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getContentsPostWithHttpInfo($schema, $query_dto, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getContentsPost'][0]) + public function getContentsPostWithHttpInfo($app, $schema, $query_dto, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getContentsPost'][0]) { - $request = $this->getContentsPostRequest($schema, $query_dto, $x_flatten, $x_languages, $x_no_slow_total, $x_no_total, $x_unpublished, $contentType); + $request = $this->getContentsPostRequest($app, $schema, $query_dto, $x_fields, $x_flatten, $x_languages, $x_no_slow_total, $x_no_total, $x_unpublished, $contentType); try { $options = $this->createHttpClientOption(); @@ -3713,10 +3788,12 @@ public function getContentsPostWithHttpInfo($schema, $query_dto, $x_flatten = nu * * Queries contents. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\QueryDto $query_dto The required query object. (required) + * @param string $x_fields The list of content fields (comma-separated). (optional) * @param bool $x_flatten Provide the data as flat object. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param bool $x_no_slow_total Do not return the total amount, if it would be slow. (optional) * @param bool $x_no_total Do not return the total amount. (optional) * @param bool $x_unpublished Return unpublished content items. (optional) @@ -3725,9 +3802,9 @@ public function getContentsPostWithHttpInfo($schema, $query_dto, $x_flatten = nu * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getContentsPostAsync($schema, $query_dto, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getContentsPost'][0]) + public function getContentsPostAsync($app, $schema, $query_dto, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getContentsPost'][0]) { - return $this->getContentsPostAsyncWithHttpInfo($schema, $query_dto, $x_flatten, $x_languages, $x_no_slow_total, $x_no_total, $x_unpublished, $contentType) + return $this->getContentsPostAsyncWithHttpInfo($app, $schema, $query_dto, $x_fields, $x_flatten, $x_languages, $x_no_slow_total, $x_no_total, $x_unpublished, $contentType) ->then( function ($response) { return $response[0]; @@ -3740,10 +3817,12 @@ function ($response) { * * Queries contents. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\QueryDto $query_dto The required query object. (required) + * @param string $x_fields The list of content fields (comma-separated). (optional) * @param bool $x_flatten Provide the data as flat object. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param bool $x_no_slow_total Do not return the total amount, if it would be slow. (optional) * @param bool $x_no_total Do not return the total amount. (optional) * @param bool $x_unpublished Return unpublished content items. (optional) @@ -3752,10 +3831,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getContentsPostAsyncWithHttpInfo($schema, $query_dto, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getContentsPost'][0]) + public function getContentsPostAsyncWithHttpInfo($app, $schema, $query_dto, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getContentsPost'][0]) { $returnType = '\Squidex\Client\Model\ContentsDto'; - $request = $this->getContentsPostRequest($schema, $query_dto, $x_flatten, $x_languages, $x_no_slow_total, $x_no_total, $x_unpublished, $contentType); + $request = $this->getContentsPostRequest($app, $schema, $query_dto, $x_fields, $x_flatten, $x_languages, $x_no_slow_total, $x_no_total, $x_unpublished, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -3796,10 +3875,12 @@ function ($exception) { /** * Create request for operation 'getContentsPost' * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\QueryDto $query_dto The required query object. (required) + * @param string $x_fields The list of content fields (comma-separated). (optional) * @param bool $x_flatten Provide the data as flat object. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param bool $x_no_slow_total Do not return the total amount, if it would be slow. (optional) * @param bool $x_no_total Do not return the total amount. (optional) * @param bool $x_unpublished Return unpublished content items. (optional) @@ -3808,11 +3889,10 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getContentsPostRequest($schema, $query_dto, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getContentsPost'][0]) + public function getContentsPostRequest($app, $schema, $query_dto, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getContentsPost'][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 ' @@ -3839,6 +3919,7 @@ public function getContentsPostRequest($schema, $query_dto, $x_flatten = null, $ + $resourcePath = '/api/content/{app}/{schema}/query'; $formParams = []; $queryParams = []; @@ -3847,6 +3928,10 @@ public function getContentsPostRequest($schema, $query_dto, $x_flatten = null, $ $multipart = false; + // header params + if ($x_fields !== null) { + $headerParams['X-Fields'] = ObjectSerializer::toHeaderValue($x_fields); + } // header params if ($x_flatten !== null) { $headerParams['X-Flatten'] = ObjectSerializer::toHeaderValue($x_flatten); @@ -3951,11 +4036,13 @@ public function getContentsPostRequest($schema, $query_dto, $x_flatten = null, $ * * Get all references of a content. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content to fetch. (required) * @param string $q The optional json query. (optional) + * @param string $x_fields The list of content fields (comma-separated). (optional) * @param bool $x_flatten Provide the data as flat object. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param bool $x_unpublished Return unpublished content items. (optional) * @param bool $x_no_slow_total Do not return the total amount, if it would be slow. (optional) * @param bool $x_no_total Do not return the total amount. (optional) @@ -3965,9 +4052,9 @@ public function getContentsPostRequest($schema, $query_dto, $x_flatten = null, $ * @throws \InvalidArgumentException * @return \Squidex\Client\Model\ContentsDto|\Squidex\Client\Model\ErrorDto */ - public function getReferences($schema, $id, $q = null, $x_flatten = null, $x_languages = null, $x_unpublished = null, $x_no_slow_total = null, $x_no_total = null, string $contentType = self::contentTypes['getReferences'][0]) + public function getReferences($app, $schema, $id, $q = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_unpublished = null, $x_no_slow_total = null, $x_no_total = null, string $contentType = self::contentTypes['getReferences'][0]) { - list($response) = $this->getReferencesWithHttpInfo($schema, $id, $q, $x_flatten, $x_languages, $x_unpublished, $x_no_slow_total, $x_no_total, $contentType); + list($response) = $this->getReferencesWithHttpInfo($app, $schema, $id, $q, $x_fields, $x_flatten, $x_languages, $x_unpublished, $x_no_slow_total, $x_no_total, $contentType); return $response; } @@ -3976,11 +4063,13 @@ public function getReferences($schema, $id, $q = null, $x_flatten = null, $x_lan * * Get all references of a content. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content to fetch. (required) * @param string $q The optional json query. (optional) + * @param string $x_fields The list of content fields (comma-separated). (optional) * @param bool $x_flatten Provide the data as flat object. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param bool $x_unpublished Return unpublished content items. (optional) * @param bool $x_no_slow_total Do not return the total amount, if it would be slow. (optional) * @param bool $x_no_total Do not return the total amount. (optional) @@ -3990,9 +4079,9 @@ public function getReferences($schema, $id, $q = null, $x_flatten = null, $x_lan * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\ContentsDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getReferencesWithHttpInfo($schema, $id, $q = null, $x_flatten = null, $x_languages = null, $x_unpublished = null, $x_no_slow_total = null, $x_no_total = null, string $contentType = self::contentTypes['getReferences'][0]) + public function getReferencesWithHttpInfo($app, $schema, $id, $q = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_unpublished = null, $x_no_slow_total = null, $x_no_total = null, string $contentType = self::contentTypes['getReferences'][0]) { - $request = $this->getReferencesRequest($schema, $id, $q, $x_flatten, $x_languages, $x_unpublished, $x_no_slow_total, $x_no_total, $contentType); + $request = $this->getReferencesRequest($app, $schema, $id, $q, $x_fields, $x_flatten, $x_languages, $x_unpublished, $x_no_slow_total, $x_no_total, $contentType); try { $options = $this->createHttpClientOption(); @@ -4106,11 +4195,13 @@ public function getReferencesWithHttpInfo($schema, $id, $q = null, $x_flatten = * * Get all references of a content. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content to fetch. (required) * @param string $q The optional json query. (optional) + * @param string $x_fields The list of content fields (comma-separated). (optional) * @param bool $x_flatten Provide the data as flat object. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param bool $x_unpublished Return unpublished content items. (optional) * @param bool $x_no_slow_total Do not return the total amount, if it would be slow. (optional) * @param bool $x_no_total Do not return the total amount. (optional) @@ -4119,9 +4210,9 @@ public function getReferencesWithHttpInfo($schema, $id, $q = null, $x_flatten = * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getReferencesAsync($schema, $id, $q = null, $x_flatten = null, $x_languages = null, $x_unpublished = null, $x_no_slow_total = null, $x_no_total = null, string $contentType = self::contentTypes['getReferences'][0]) + public function getReferencesAsync($app, $schema, $id, $q = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_unpublished = null, $x_no_slow_total = null, $x_no_total = null, string $contentType = self::contentTypes['getReferences'][0]) { - return $this->getReferencesAsyncWithHttpInfo($schema, $id, $q, $x_flatten, $x_languages, $x_unpublished, $x_no_slow_total, $x_no_total, $contentType) + return $this->getReferencesAsyncWithHttpInfo($app, $schema, $id, $q, $x_fields, $x_flatten, $x_languages, $x_unpublished, $x_no_slow_total, $x_no_total, $contentType) ->then( function ($response) { return $response[0]; @@ -4134,11 +4225,13 @@ function ($response) { * * Get all references of a content. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content to fetch. (required) * @param string $q The optional json query. (optional) + * @param string $x_fields The list of content fields (comma-separated). (optional) * @param bool $x_flatten Provide the data as flat object. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param bool $x_unpublished Return unpublished content items. (optional) * @param bool $x_no_slow_total Do not return the total amount, if it would be slow. (optional) * @param bool $x_no_total Do not return the total amount. (optional) @@ -4147,10 +4240,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getReferencesAsyncWithHttpInfo($schema, $id, $q = null, $x_flatten = null, $x_languages = null, $x_unpublished = null, $x_no_slow_total = null, $x_no_total = null, string $contentType = self::contentTypes['getReferences'][0]) + public function getReferencesAsyncWithHttpInfo($app, $schema, $id, $q = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_unpublished = null, $x_no_slow_total = null, $x_no_total = null, string $contentType = self::contentTypes['getReferences'][0]) { $returnType = '\Squidex\Client\Model\ContentsDto'; - $request = $this->getReferencesRequest($schema, $id, $q, $x_flatten, $x_languages, $x_unpublished, $x_no_slow_total, $x_no_total, $contentType); + $request = $this->getReferencesRequest($app, $schema, $id, $q, $x_fields, $x_flatten, $x_languages, $x_unpublished, $x_no_slow_total, $x_no_total, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -4191,11 +4284,13 @@ function ($exception) { /** * Create request for operation 'getReferences' * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content to fetch. (required) * @param string $q The optional json query. (optional) + * @param string $x_fields The list of content fields (comma-separated). (optional) * @param bool $x_flatten Provide the data as flat object. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param bool $x_unpublished Return unpublished content items. (optional) * @param bool $x_no_slow_total Do not return the total amount, if it would be slow. (optional) * @param bool $x_no_total Do not return the total amount. (optional) @@ -4204,11 +4299,10 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getReferencesRequest($schema, $id, $q = null, $x_flatten = null, $x_languages = null, $x_unpublished = null, $x_no_slow_total = null, $x_no_total = null, string $contentType = self::contentTypes['getReferences'][0]) + public function getReferencesRequest($app, $schema, $id, $q = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_unpublished = null, $x_no_slow_total = null, $x_no_total = null, string $contentType = self::contentTypes['getReferences'][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 ' @@ -4236,6 +4330,7 @@ public function getReferencesRequest($schema, $id, $q = null, $x_flatten = null, + $resourcePath = '/api/content/{app}/{schema}/{id}/references'; $formParams = []; $queryParams = []; @@ -4253,6 +4348,10 @@ public function getReferencesRequest($schema, $id, $q = null, $x_flatten = null, false // required ) ?? []); + // header params + if ($x_fields !== null) { + $headerParams['X-Fields'] = ObjectSerializer::toHeaderValue($x_fields); + } // header params if ($x_flatten !== null) { $headerParams['X-Flatten'] = ObjectSerializer::toHeaderValue($x_flatten); @@ -4358,11 +4457,13 @@ public function getReferencesRequest($schema, $id, $q = null, $x_flatten = null, * * Get a referencing contents of a content item. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content to fetch. (required) * @param string $q The optional json query. (optional) + * @param string $x_fields The list of content fields (comma-separated). (optional) * @param bool $x_flatten Provide the data as flat object. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param bool $x_unpublished Return unpublished content items. (optional) * @param bool $x_no_slow_total Do not return the total amount, if it would be slow. (optional) * @param bool $x_no_total Do not return the total amount. (optional) @@ -4372,9 +4473,9 @@ public function getReferencesRequest($schema, $id, $q = null, $x_flatten = null, * @throws \InvalidArgumentException * @return \Squidex\Client\Model\ContentsDto|\Squidex\Client\Model\ErrorDto */ - public function getReferencing($schema, $id, $q = null, $x_flatten = null, $x_languages = null, $x_unpublished = null, $x_no_slow_total = null, $x_no_total = null, string $contentType = self::contentTypes['getReferencing'][0]) + public function getReferencing($app, $schema, $id, $q = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_unpublished = null, $x_no_slow_total = null, $x_no_total = null, string $contentType = self::contentTypes['getReferencing'][0]) { - list($response) = $this->getReferencingWithHttpInfo($schema, $id, $q, $x_flatten, $x_languages, $x_unpublished, $x_no_slow_total, $x_no_total, $contentType); + list($response) = $this->getReferencingWithHttpInfo($app, $schema, $id, $q, $x_fields, $x_flatten, $x_languages, $x_unpublished, $x_no_slow_total, $x_no_total, $contentType); return $response; } @@ -4383,11 +4484,13 @@ public function getReferencing($schema, $id, $q = null, $x_flatten = null, $x_la * * Get a referencing contents of a content item. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content to fetch. (required) * @param string $q The optional json query. (optional) + * @param string $x_fields The list of content fields (comma-separated). (optional) * @param bool $x_flatten Provide the data as flat object. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param bool $x_unpublished Return unpublished content items. (optional) * @param bool $x_no_slow_total Do not return the total amount, if it would be slow. (optional) * @param bool $x_no_total Do not return the total amount. (optional) @@ -4397,9 +4500,9 @@ public function getReferencing($schema, $id, $q = null, $x_flatten = null, $x_la * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\ContentsDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getReferencingWithHttpInfo($schema, $id, $q = null, $x_flatten = null, $x_languages = null, $x_unpublished = null, $x_no_slow_total = null, $x_no_total = null, string $contentType = self::contentTypes['getReferencing'][0]) + public function getReferencingWithHttpInfo($app, $schema, $id, $q = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_unpublished = null, $x_no_slow_total = null, $x_no_total = null, string $contentType = self::contentTypes['getReferencing'][0]) { - $request = $this->getReferencingRequest($schema, $id, $q, $x_flatten, $x_languages, $x_unpublished, $x_no_slow_total, $x_no_total, $contentType); + $request = $this->getReferencingRequest($app, $schema, $id, $q, $x_fields, $x_flatten, $x_languages, $x_unpublished, $x_no_slow_total, $x_no_total, $contentType); try { $options = $this->createHttpClientOption(); @@ -4513,11 +4616,13 @@ public function getReferencingWithHttpInfo($schema, $id, $q = null, $x_flatten = * * Get a referencing contents of a content item. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content to fetch. (required) * @param string $q The optional json query. (optional) + * @param string $x_fields The list of content fields (comma-separated). (optional) * @param bool $x_flatten Provide the data as flat object. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param bool $x_unpublished Return unpublished content items. (optional) * @param bool $x_no_slow_total Do not return the total amount, if it would be slow. (optional) * @param bool $x_no_total Do not return the total amount. (optional) @@ -4526,9 +4631,9 @@ public function getReferencingWithHttpInfo($schema, $id, $q = null, $x_flatten = * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getReferencingAsync($schema, $id, $q = null, $x_flatten = null, $x_languages = null, $x_unpublished = null, $x_no_slow_total = null, $x_no_total = null, string $contentType = self::contentTypes['getReferencing'][0]) + public function getReferencingAsync($app, $schema, $id, $q = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_unpublished = null, $x_no_slow_total = null, $x_no_total = null, string $contentType = self::contentTypes['getReferencing'][0]) { - return $this->getReferencingAsyncWithHttpInfo($schema, $id, $q, $x_flatten, $x_languages, $x_unpublished, $x_no_slow_total, $x_no_total, $contentType) + return $this->getReferencingAsyncWithHttpInfo($app, $schema, $id, $q, $x_fields, $x_flatten, $x_languages, $x_unpublished, $x_no_slow_total, $x_no_total, $contentType) ->then( function ($response) { return $response[0]; @@ -4541,11 +4646,13 @@ function ($response) { * * Get a referencing contents of a content item. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content to fetch. (required) * @param string $q The optional json query. (optional) + * @param string $x_fields The list of content fields (comma-separated). (optional) * @param bool $x_flatten Provide the data as flat object. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param bool $x_unpublished Return unpublished content items. (optional) * @param bool $x_no_slow_total Do not return the total amount, if it would be slow. (optional) * @param bool $x_no_total Do not return the total amount. (optional) @@ -4554,10 +4661,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getReferencingAsyncWithHttpInfo($schema, $id, $q = null, $x_flatten = null, $x_languages = null, $x_unpublished = null, $x_no_slow_total = null, $x_no_total = null, string $contentType = self::contentTypes['getReferencing'][0]) + public function getReferencingAsyncWithHttpInfo($app, $schema, $id, $q = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_unpublished = null, $x_no_slow_total = null, $x_no_total = null, string $contentType = self::contentTypes['getReferencing'][0]) { $returnType = '\Squidex\Client\Model\ContentsDto'; - $request = $this->getReferencingRequest($schema, $id, $q, $x_flatten, $x_languages, $x_unpublished, $x_no_slow_total, $x_no_total, $contentType); + $request = $this->getReferencingRequest($app, $schema, $id, $q, $x_fields, $x_flatten, $x_languages, $x_unpublished, $x_no_slow_total, $x_no_total, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -4598,11 +4705,13 @@ function ($exception) { /** * Create request for operation 'getReferencing' * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content to fetch. (required) * @param string $q The optional json query. (optional) + * @param string $x_fields The list of content fields (comma-separated). (optional) * @param bool $x_flatten Provide the data as flat object. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param bool $x_unpublished Return unpublished content items. (optional) * @param bool $x_no_slow_total Do not return the total amount, if it would be slow. (optional) * @param bool $x_no_total Do not return the total amount. (optional) @@ -4611,11 +4720,10 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getReferencingRequest($schema, $id, $q = null, $x_flatten = null, $x_languages = null, $x_unpublished = null, $x_no_slow_total = null, $x_no_total = null, string $contentType = self::contentTypes['getReferencing'][0]) + public function getReferencingRequest($app, $schema, $id, $q = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_unpublished = null, $x_no_slow_total = null, $x_no_total = null, string $contentType = self::contentTypes['getReferencing'][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 ' @@ -4643,6 +4751,7 @@ public function getReferencingRequest($schema, $id, $q = null, $x_flatten = null + $resourcePath = '/api/content/{app}/{schema}/{id}/referencing'; $formParams = []; $queryParams = []; @@ -4660,6 +4769,10 @@ public function getReferencingRequest($schema, $id, $q = null, $x_flatten = null false // required ) ?? []); + // header params + if ($x_fields !== null) { + $headerParams['X-Fields'] = ObjectSerializer::toHeaderValue($x_fields); + } // header params if ($x_flatten !== null) { $headerParams['X-Flatten'] = ObjectSerializer::toHeaderValue($x_flatten); @@ -4765,20 +4878,21 @@ public function getReferencingRequest($schema, $id, $q = null, $x_flatten = null * * Patchs a content item. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to patch. (required) * @param array $request_body The patch for the content item. (required) * @param bool $x_unpublished Return unpublished content items. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['patchContent'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \Squidex\Client\Model\ContentDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function patchContent($schema, $id, $request_body, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['patchContent'][0]) + public function patchContent($app, $schema, $id, $request_body, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['patchContent'][0]) { - list($response) = $this->patchContentWithHttpInfo($schema, $id, $request_body, $x_unpublished, $x_languages, $contentType); + list($response) = $this->patchContentWithHttpInfo($app, $schema, $id, $request_body, $x_unpublished, $x_languages, $contentType); return $response; } @@ -4787,20 +4901,21 @@ public function patchContent($schema, $id, $request_body, $x_unpublished = null, * * Patchs a content item. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to patch. (required) * @param array $request_body The patch for the content item. (required) * @param bool $x_unpublished Return unpublished content items. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['patchContent'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\ContentDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function patchContentWithHttpInfo($schema, $id, $request_body, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['patchContent'][0]) + public function patchContentWithHttpInfo($app, $schema, $id, $request_body, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['patchContent'][0]) { - $request = $this->patchContentRequest($schema, $id, $request_body, $x_unpublished, $x_languages, $contentType); + $request = $this->patchContentRequest($app, $schema, $id, $request_body, $x_unpublished, $x_languages, $contentType); try { $options = $this->createHttpClientOption(); @@ -4937,19 +5052,20 @@ public function patchContentWithHttpInfo($schema, $id, $request_body, $x_unpubli * * Patchs a content item. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to patch. (required) * @param array $request_body The patch for the content item. (required) * @param bool $x_unpublished Return unpublished content items. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['patchContent'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function patchContentAsync($schema, $id, $request_body, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['patchContent'][0]) + public function patchContentAsync($app, $schema, $id, $request_body, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['patchContent'][0]) { - return $this->patchContentAsyncWithHttpInfo($schema, $id, $request_body, $x_unpublished, $x_languages, $contentType) + return $this->patchContentAsyncWithHttpInfo($app, $schema, $id, $request_body, $x_unpublished, $x_languages, $contentType) ->then( function ($response) { return $response[0]; @@ -4962,20 +5078,21 @@ function ($response) { * * Patchs a content item. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to patch. (required) * @param array $request_body The patch for the content item. (required) * @param bool $x_unpublished Return unpublished content items. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['patchContent'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function patchContentAsyncWithHttpInfo($schema, $id, $request_body, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['patchContent'][0]) + public function patchContentAsyncWithHttpInfo($app, $schema, $id, $request_body, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['patchContent'][0]) { $returnType = '\Squidex\Client\Model\ContentDto'; - $request = $this->patchContentRequest($schema, $id, $request_body, $x_unpublished, $x_languages, $contentType); + $request = $this->patchContentRequest($app, $schema, $id, $request_body, $x_unpublished, $x_languages, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -5016,21 +5133,21 @@ function ($exception) { /** * Create request for operation 'patchContent' * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to patch. (required) * @param array $request_body The patch for the content item. (required) * @param bool $x_unpublished Return unpublished content items. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['patchContent'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function patchContentRequest($schema, $id, $request_body, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['patchContent'][0]) + public function patchContentRequest($app, $schema, $id, $request_body, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['patchContent'][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 ' @@ -5169,22 +5286,23 @@ public function patchContentRequest($schema, $id, $request_body, $x_unpublished * * Create a content item. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param array $request_body The full data for the content item. (required) * @param string $status The initial status. (optional) * @param string $id The optional custom content id. (optional) * @param bool $publish True to automatically publish the content. (optional) * @param bool $x_unpublished Return unpublished content items. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postContent'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \Squidex\Client\Model\ContentDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function postContent($schema, $request_body, $status = null, $id = null, $publish = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['postContent'][0]) + public function postContent($app, $schema, $request_body, $status = null, $id = null, $publish = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['postContent'][0]) { - list($response) = $this->postContentWithHttpInfo($schema, $request_body, $status, $id, $publish, $x_unpublished, $x_languages, $contentType); + list($response) = $this->postContentWithHttpInfo($app, $schema, $request_body, $status, $id, $publish, $x_unpublished, $x_languages, $contentType); return $response; } @@ -5193,22 +5311,23 @@ public function postContent($schema, $request_body, $status = null, $id = null, * * Create a content item. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param array $request_body The full data for the content item. (required) * @param string $status The initial status. (optional) * @param string $id The optional custom content id. (optional) * @param bool $publish True to automatically publish the content. (optional) * @param bool $x_unpublished Return unpublished content items. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postContent'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\ContentDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function postContentWithHttpInfo($schema, $request_body, $status = null, $id = null, $publish = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['postContent'][0]) + public function postContentWithHttpInfo($app, $schema, $request_body, $status = null, $id = null, $publish = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['postContent'][0]) { - $request = $this->postContentRequest($schema, $request_body, $status, $id, $publish, $x_unpublished, $x_languages, $contentType); + $request = $this->postContentRequest($app, $schema, $request_body, $status, $id, $publish, $x_unpublished, $x_languages, $contentType); try { $options = $this->createHttpClientOption(); @@ -5345,21 +5464,22 @@ public function postContentWithHttpInfo($schema, $request_body, $status = null, * * Create a content item. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param array $request_body The full data for the content item. (required) * @param string $status The initial status. (optional) * @param string $id The optional custom content id. (optional) * @param bool $publish True to automatically publish the content. (optional) * @param bool $x_unpublished Return unpublished content items. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postContent'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postContentAsync($schema, $request_body, $status = null, $id = null, $publish = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['postContent'][0]) + public function postContentAsync($app, $schema, $request_body, $status = null, $id = null, $publish = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['postContent'][0]) { - return $this->postContentAsyncWithHttpInfo($schema, $request_body, $status, $id, $publish, $x_unpublished, $x_languages, $contentType) + return $this->postContentAsyncWithHttpInfo($app, $schema, $request_body, $status, $id, $publish, $x_unpublished, $x_languages, $contentType) ->then( function ($response) { return $response[0]; @@ -5372,22 +5492,23 @@ function ($response) { * * Create a content item. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param array $request_body The full data for the content item. (required) * @param string $status The initial status. (optional) * @param string $id The optional custom content id. (optional) * @param bool $publish True to automatically publish the content. (optional) * @param bool $x_unpublished Return unpublished content items. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postContent'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postContentAsyncWithHttpInfo($schema, $request_body, $status = null, $id = null, $publish = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['postContent'][0]) + public function postContentAsyncWithHttpInfo($app, $schema, $request_body, $status = null, $id = null, $publish = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['postContent'][0]) { $returnType = '\Squidex\Client\Model\ContentDto'; - $request = $this->postContentRequest($schema, $request_body, $status, $id, $publish, $x_unpublished, $x_languages, $contentType); + $request = $this->postContentRequest($app, $schema, $request_body, $status, $id, $publish, $x_unpublished, $x_languages, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -5428,23 +5549,23 @@ function ($exception) { /** * Create request for operation 'postContent' * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param array $request_body The full data for the content item. (required) * @param string $status The initial status. (optional) * @param string $id The optional custom content id. (optional) * @param bool $publish True to automatically publish the content. (optional) * @param bool $x_unpublished Return unpublished content items. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postContent'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function postContentRequest($schema, $request_body, $status = null, $id = null, $publish = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['postContent'][0]) + public function postContentRequest($app, $schema, $request_body, $status = null, $id = null, $publish = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['postContent'][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 ' @@ -5598,6 +5719,7 @@ public function postContentRequest($schema, $request_body, $status = null, $id = * * Import content items. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\ImportContentsDto $import_contents_dto The import request. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postContents'] to see the possible values for this operation @@ -5607,9 +5729,9 @@ public function postContentRequest($schema, $request_body, $status = null, $id = * @return \Squidex\Client\Model\BulkResultDto[]|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto * @deprecated */ - public function postContents($schema, $import_contents_dto, string $contentType = self::contentTypes['postContents'][0]) + public function postContents($app, $schema, $import_contents_dto, string $contentType = self::contentTypes['postContents'][0]) { - list($response) = $this->postContentsWithHttpInfo($schema, $import_contents_dto, $contentType); + list($response) = $this->postContentsWithHttpInfo($app, $schema, $import_contents_dto, $contentType); return $response; } @@ -5618,6 +5740,7 @@ public function postContents($schema, $import_contents_dto, string $contentType * * Import content items. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\ImportContentsDto $import_contents_dto The import request. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postContents'] to see the possible values for this operation @@ -5627,9 +5750,9 @@ public function postContents($schema, $import_contents_dto, string $contentType * @return array of \Squidex\Client\Model\BulkResultDto[]|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) * @deprecated */ - public function postContentsWithHttpInfo($schema, $import_contents_dto, string $contentType = self::contentTypes['postContents'][0]) + public function postContentsWithHttpInfo($app, $schema, $import_contents_dto, string $contentType = self::contentTypes['postContents'][0]) { - $request = $this->postContentsRequest($schema, $import_contents_dto, $contentType); + $request = $this->postContentsRequest($app, $schema, $import_contents_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -5766,6 +5889,7 @@ public function postContentsWithHttpInfo($schema, $import_contents_dto, string $ * * Import content items. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\ImportContentsDto $import_contents_dto The import request. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postContents'] to see the possible values for this operation @@ -5774,9 +5898,9 @@ public function postContentsWithHttpInfo($schema, $import_contents_dto, string $ * @return \GuzzleHttp\Promise\PromiseInterface * @deprecated */ - public function postContentsAsync($schema, $import_contents_dto, string $contentType = self::contentTypes['postContents'][0]) + public function postContentsAsync($app, $schema, $import_contents_dto, string $contentType = self::contentTypes['postContents'][0]) { - return $this->postContentsAsyncWithHttpInfo($schema, $import_contents_dto, $contentType) + return $this->postContentsAsyncWithHttpInfo($app, $schema, $import_contents_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -5789,6 +5913,7 @@ function ($response) { * * Import content items. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\ImportContentsDto $import_contents_dto The import request. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postContents'] to see the possible values for this operation @@ -5797,10 +5922,10 @@ function ($response) { * @return \GuzzleHttp\Promise\PromiseInterface * @deprecated */ - public function postContentsAsyncWithHttpInfo($schema, $import_contents_dto, string $contentType = self::contentTypes['postContents'][0]) + public function postContentsAsyncWithHttpInfo($app, $schema, $import_contents_dto, string $contentType = self::contentTypes['postContents'][0]) { $returnType = '\Squidex\Client\Model\BulkResultDto[]'; - $request = $this->postContentsRequest($schema, $import_contents_dto, $contentType); + $request = $this->postContentsRequest($app, $schema, $import_contents_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -5841,6 +5966,7 @@ function ($exception) { /** * Create request for operation 'postContents' * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\ImportContentsDto $import_contents_dto The import request. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postContents'] to see the possible values for this operation @@ -5849,11 +5975,10 @@ function ($exception) { * @return \GuzzleHttp\Psr7\Request * @deprecated */ - public function postContentsRequest($schema, $import_contents_dto, string $contentType = self::contentTypes['postContents'][0]) + public function postContentsRequest($app, $schema, $import_contents_dto, string $contentType = self::contentTypes['postContents'][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 ' @@ -5967,6 +6092,7 @@ public function postContentsRequest($schema, $import_contents_dto, string $conte * * Upsert a content item. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to update. (required) * @param array $request_body The full data for the content item. (required) @@ -5974,16 +6100,16 @@ public function postContentsRequest($schema, $import_contents_dto, string $conte * @param bool $patch Makes the update as patch. (optional) * @param bool $publish True to automatically publish the content. (optional) * @param bool $x_unpublished Return unpublished content items. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postUpsertContent'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \Squidex\Client\Model\ContentDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function postUpsertContent($schema, $id, $request_body, $status = null, $patch = null, $publish = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['postUpsertContent'][0]) + public function postUpsertContent($app, $schema, $id, $request_body, $status = null, $patch = null, $publish = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['postUpsertContent'][0]) { - list($response) = $this->postUpsertContentWithHttpInfo($schema, $id, $request_body, $status, $patch, $publish, $x_unpublished, $x_languages, $contentType); + list($response) = $this->postUpsertContentWithHttpInfo($app, $schema, $id, $request_body, $status, $patch, $publish, $x_unpublished, $x_languages, $contentType); return $response; } @@ -5992,6 +6118,7 @@ public function postUpsertContent($schema, $id, $request_body, $status = null, $ * * Upsert a content item. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to update. (required) * @param array $request_body The full data for the content item. (required) @@ -5999,16 +6126,16 @@ public function postUpsertContent($schema, $id, $request_body, $status = null, $ * @param bool $patch Makes the update as patch. (optional) * @param bool $publish True to automatically publish the content. (optional) * @param bool $x_unpublished Return unpublished content items. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postUpsertContent'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\ContentDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function postUpsertContentWithHttpInfo($schema, $id, $request_body, $status = null, $patch = null, $publish = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['postUpsertContent'][0]) + public function postUpsertContentWithHttpInfo($app, $schema, $id, $request_body, $status = null, $patch = null, $publish = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['postUpsertContent'][0]) { - $request = $this->postUpsertContentRequest($schema, $id, $request_body, $status, $patch, $publish, $x_unpublished, $x_languages, $contentType); + $request = $this->postUpsertContentRequest($app, $schema, $id, $request_body, $status, $patch, $publish, $x_unpublished, $x_languages, $contentType); try { $options = $this->createHttpClientOption(); @@ -6145,6 +6272,7 @@ public function postUpsertContentWithHttpInfo($schema, $id, $request_body, $stat * * Upsert a content item. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to update. (required) * @param array $request_body The full data for the content item. (required) @@ -6152,15 +6280,15 @@ public function postUpsertContentWithHttpInfo($schema, $id, $request_body, $stat * @param bool $patch Makes the update as patch. (optional) * @param bool $publish True to automatically publish the content. (optional) * @param bool $x_unpublished Return unpublished content items. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postUpsertContent'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postUpsertContentAsync($schema, $id, $request_body, $status = null, $patch = null, $publish = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['postUpsertContent'][0]) + public function postUpsertContentAsync($app, $schema, $id, $request_body, $status = null, $patch = null, $publish = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['postUpsertContent'][0]) { - return $this->postUpsertContentAsyncWithHttpInfo($schema, $id, $request_body, $status, $patch, $publish, $x_unpublished, $x_languages, $contentType) + return $this->postUpsertContentAsyncWithHttpInfo($app, $schema, $id, $request_body, $status, $patch, $publish, $x_unpublished, $x_languages, $contentType) ->then( function ($response) { return $response[0]; @@ -6173,6 +6301,7 @@ function ($response) { * * Upsert a content item. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to update. (required) * @param array $request_body The full data for the content item. (required) @@ -6180,16 +6309,16 @@ function ($response) { * @param bool $patch Makes the update as patch. (optional) * @param bool $publish True to automatically publish the content. (optional) * @param bool $x_unpublished Return unpublished content items. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postUpsertContent'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postUpsertContentAsyncWithHttpInfo($schema, $id, $request_body, $status = null, $patch = null, $publish = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['postUpsertContent'][0]) + public function postUpsertContentAsyncWithHttpInfo($app, $schema, $id, $request_body, $status = null, $patch = null, $publish = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['postUpsertContent'][0]) { $returnType = '\Squidex\Client\Model\ContentDto'; - $request = $this->postUpsertContentRequest($schema, $id, $request_body, $status, $patch, $publish, $x_unpublished, $x_languages, $contentType); + $request = $this->postUpsertContentRequest($app, $schema, $id, $request_body, $status, $patch, $publish, $x_unpublished, $x_languages, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -6230,6 +6359,7 @@ function ($exception) { /** * Create request for operation 'postUpsertContent' * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to update. (required) * @param array $request_body The full data for the content item. (required) @@ -6237,17 +6367,16 @@ function ($exception) { * @param bool $patch Makes the update as patch. (optional) * @param bool $publish True to automatically publish the content. (optional) * @param bool $x_unpublished Return unpublished content items. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postUpsertContent'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function postUpsertContentRequest($schema, $id, $request_body, $status = null, $patch = null, $publish = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['postUpsertContent'][0]) + public function postUpsertContentRequest($app, $schema, $id, $request_body, $status = null, $patch = null, $publish = null, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['postUpsertContent'][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 ' @@ -6416,20 +6545,21 @@ public function postUpsertContentRequest($schema, $id, $request_body, $status = * * Update a content item. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to update. (required) * @param array $request_body The full data for the content item. (required) * @param bool $x_unpublished Return unpublished content items. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putContent'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \Squidex\Client\Model\ContentDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putContent($schema, $id, $request_body, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['putContent'][0]) + public function putContent($app, $schema, $id, $request_body, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['putContent'][0]) { - list($response) = $this->putContentWithHttpInfo($schema, $id, $request_body, $x_unpublished, $x_languages, $contentType); + list($response) = $this->putContentWithHttpInfo($app, $schema, $id, $request_body, $x_unpublished, $x_languages, $contentType); return $response; } @@ -6438,20 +6568,21 @@ public function putContent($schema, $id, $request_body, $x_unpublished = null, $ * * Update a content item. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to update. (required) * @param array $request_body The full data for the content item. (required) * @param bool $x_unpublished Return unpublished content items. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putContent'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\ContentDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putContentWithHttpInfo($schema, $id, $request_body, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['putContent'][0]) + public function putContentWithHttpInfo($app, $schema, $id, $request_body, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['putContent'][0]) { - $request = $this->putContentRequest($schema, $id, $request_body, $x_unpublished, $x_languages, $contentType); + $request = $this->putContentRequest($app, $schema, $id, $request_body, $x_unpublished, $x_languages, $contentType); try { $options = $this->createHttpClientOption(); @@ -6588,19 +6719,20 @@ public function putContentWithHttpInfo($schema, $id, $request_body, $x_unpublish * * Update a content item. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to update. (required) * @param array $request_body The full data for the content item. (required) * @param bool $x_unpublished Return unpublished content items. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putContent'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putContentAsync($schema, $id, $request_body, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['putContent'][0]) + public function putContentAsync($app, $schema, $id, $request_body, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['putContent'][0]) { - return $this->putContentAsyncWithHttpInfo($schema, $id, $request_body, $x_unpublished, $x_languages, $contentType) + return $this->putContentAsyncWithHttpInfo($app, $schema, $id, $request_body, $x_unpublished, $x_languages, $contentType) ->then( function ($response) { return $response[0]; @@ -6613,20 +6745,21 @@ function ($response) { * * Update a content item. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to update. (required) * @param array $request_body The full data for the content item. (required) * @param bool $x_unpublished Return unpublished content items. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putContent'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putContentAsyncWithHttpInfo($schema, $id, $request_body, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['putContent'][0]) + public function putContentAsyncWithHttpInfo($app, $schema, $id, $request_body, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['putContent'][0]) { $returnType = '\Squidex\Client\Model\ContentDto'; - $request = $this->putContentRequest($schema, $id, $request_body, $x_unpublished, $x_languages, $contentType); + $request = $this->putContentRequest($app, $schema, $id, $request_body, $x_unpublished, $x_languages, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -6667,21 +6800,21 @@ function ($exception) { /** * Create request for operation 'putContent' * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to update. (required) * @param array $request_body The full data for the content item. (required) * @param bool $x_unpublished Return unpublished content items. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putContent'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putContentRequest($schema, $id, $request_body, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['putContent'][0]) + public function putContentRequest($app, $schema, $id, $request_body, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['putContent'][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 ' @@ -6820,20 +6953,21 @@ public function putContentRequest($schema, $id, $request_body, $x_unpublished = * * Change status of a content item. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to change. (required) * @param \Squidex\Client\Model\ChangeStatusDto $change_status_dto The status request. (required) * @param bool $x_unpublished Return unpublished content items. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putContentStatus'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \Squidex\Client\Model\ContentDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putContentStatus($schema, $id, $change_status_dto, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['putContentStatus'][0]) + public function putContentStatus($app, $schema, $id, $change_status_dto, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['putContentStatus'][0]) { - list($response) = $this->putContentStatusWithHttpInfo($schema, $id, $change_status_dto, $x_unpublished, $x_languages, $contentType); + list($response) = $this->putContentStatusWithHttpInfo($app, $schema, $id, $change_status_dto, $x_unpublished, $x_languages, $contentType); return $response; } @@ -6842,20 +6976,21 @@ public function putContentStatus($schema, $id, $change_status_dto, $x_unpublishe * * Change status of a content item. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to change. (required) * @param \Squidex\Client\Model\ChangeStatusDto $change_status_dto The status request. (required) * @param bool $x_unpublished Return unpublished content items. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putContentStatus'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\ContentDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putContentStatusWithHttpInfo($schema, $id, $change_status_dto, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['putContentStatus'][0]) + public function putContentStatusWithHttpInfo($app, $schema, $id, $change_status_dto, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['putContentStatus'][0]) { - $request = $this->putContentStatusRequest($schema, $id, $change_status_dto, $x_unpublished, $x_languages, $contentType); + $request = $this->putContentStatusRequest($app, $schema, $id, $change_status_dto, $x_unpublished, $x_languages, $contentType); try { $options = $this->createHttpClientOption(); @@ -6992,19 +7127,20 @@ public function putContentStatusWithHttpInfo($schema, $id, $change_status_dto, $ * * Change status of a content item. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to change. (required) * @param \Squidex\Client\Model\ChangeStatusDto $change_status_dto The status request. (required) * @param bool $x_unpublished Return unpublished content items. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putContentStatus'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putContentStatusAsync($schema, $id, $change_status_dto, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['putContentStatus'][0]) + public function putContentStatusAsync($app, $schema, $id, $change_status_dto, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['putContentStatus'][0]) { - return $this->putContentStatusAsyncWithHttpInfo($schema, $id, $change_status_dto, $x_unpublished, $x_languages, $contentType) + return $this->putContentStatusAsyncWithHttpInfo($app, $schema, $id, $change_status_dto, $x_unpublished, $x_languages, $contentType) ->then( function ($response) { return $response[0]; @@ -7017,20 +7153,21 @@ function ($response) { * * Change status of a content item. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to change. (required) * @param \Squidex\Client\Model\ChangeStatusDto $change_status_dto The status request. (required) * @param bool $x_unpublished Return unpublished content items. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putContentStatus'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putContentStatusAsyncWithHttpInfo($schema, $id, $change_status_dto, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['putContentStatus'][0]) + public function putContentStatusAsyncWithHttpInfo($app, $schema, $id, $change_status_dto, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['putContentStatus'][0]) { $returnType = '\Squidex\Client\Model\ContentDto'; - $request = $this->putContentStatusRequest($schema, $id, $change_status_dto, $x_unpublished, $x_languages, $contentType); + $request = $this->putContentStatusRequest($app, $schema, $id, $change_status_dto, $x_unpublished, $x_languages, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -7071,21 +7208,21 @@ function ($exception) { /** * Create request for operation 'putContentStatus' * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param string $id The ID of the content item to change. (required) * @param \Squidex\Client\Model\ChangeStatusDto $change_status_dto The status request. (required) * @param bool $x_unpublished Return unpublished content items. (optional) - * @param string $x_languages Only resolve these languages (comma-separated). (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putContentStatus'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putContentStatusRequest($schema, $id, $change_status_dto, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['putContentStatus'][0]) + public function putContentStatusRequest($app, $schema, $id, $change_status_dto, $x_unpublished = null, $x_languages = null, string $contentType = self::contentTypes['putContentStatus'][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 ' @@ -7219,6 +7356,1865 @@ public function putContentStatusRequest($schema, $id, $change_status_dto, $x_unp ); } + /** + * Operation bulkUpdateContents + * + * Bulk update content items. + * + * @param string $app The name of the app. (required) + * @param \Squidex\Client\Model\BulkUpdateContentsDto $bulk_update_contents_dto The bulk update request. (required) + * @param string $schema The name of the schema. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['bulkUpdateContents'] to see the possible values for this operation + * + * @throws \Squidex\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Squidex\Client\Model\BulkResultDto[]|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto + */ + public function bulkUpdateContents($app, $bulk_update_contents_dto, $schema = null, string $contentType = self::contentTypes['bulkUpdateContents'][0]) + { + list($response) = $this->bulkUpdateContentsWithHttpInfo($app, $bulk_update_contents_dto, $schema, $contentType); + return $response; + } + + /** + * Operation bulkUpdateContentsWithHttpInfo + * + * Bulk update content items. + * + * @param string $app The name of the app. (required) + * @param \Squidex\Client\Model\BulkUpdateContentsDto $bulk_update_contents_dto The bulk update request. (required) + * @param string $schema The name of the schema. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['bulkUpdateContents'] to see the possible values for this operation + * + * @throws \Squidex\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Squidex\Client\Model\BulkResultDto[]|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) + */ + public function bulkUpdateContentsWithHttpInfo($app, $bulk_update_contents_dto, $schema = null, string $contentType = self::contentTypes['bulkUpdateContents'][0]) + { + $request = $this->bulkUpdateContentsRequest($app, $bulk_update_contents_dto, $schema, $contentType); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } catch (ConnectException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + switch($statusCode) { + case 200: + if ('\Squidex\Client\Model\BulkResultDto[]' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\Squidex\Client\Model\BulkResultDto[]' !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, '\Squidex\Client\Model\BulkResultDto[]', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + case 400: + if ('\Squidex\Client\Model\ErrorDto' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\Squidex\Client\Model\ErrorDto' !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, '\Squidex\Client\Model\ErrorDto', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + case 500: + if ('\Squidex\Client\Model\ErrorDto' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\Squidex\Client\Model\ErrorDto' !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, '\Squidex\Client\Model\ErrorDto', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } + + $returnType = '\Squidex\Client\Model\BulkResultDto[]'; + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Squidex\Client\Model\BulkResultDto[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 400: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Squidex\Client\Model\ErrorDto', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Squidex\Client\Model\ErrorDto', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation bulkUpdateContentsAsync + * + * Bulk update content items. + * + * @param string $app The name of the app. (required) + * @param \Squidex\Client\Model\BulkUpdateContentsDto $bulk_update_contents_dto The bulk update request. (required) + * @param string $schema The name of the schema. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['bulkUpdateContents'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function bulkUpdateContentsAsync($app, $bulk_update_contents_dto, $schema = null, string $contentType = self::contentTypes['bulkUpdateContents'][0]) + { + return $this->bulkUpdateContentsAsyncWithHttpInfo($app, $bulk_update_contents_dto, $schema, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation bulkUpdateContentsAsyncWithHttpInfo + * + * Bulk update content items. + * + * @param string $app The name of the app. (required) + * @param \Squidex\Client\Model\BulkUpdateContentsDto $bulk_update_contents_dto The bulk update request. (required) + * @param string $schema The name of the schema. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['bulkUpdateContents'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function bulkUpdateContentsAsyncWithHttpInfo($app, $bulk_update_contents_dto, $schema = null, string $contentType = self::contentTypes['bulkUpdateContents'][0]) + { + $returnType = '\Squidex\Client\Model\BulkResultDto[]'; + $request = $this->bulkUpdateContentsRequest($app, $bulk_update_contents_dto, $schema, $contentType); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'bulkUpdateContents' + * + * @param string $app The name of the app. (required) + * @param \Squidex\Client\Model\BulkUpdateContentsDto $bulk_update_contents_dto The bulk update request. (required) + * @param string $schema The name of the schema. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['bulkUpdateContents'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function bulkUpdateContentsRequest($app, $bulk_update_contents_dto, $schema = null, string $contentType = self::contentTypes['bulkUpdateContents'][0]) + { + + // verify the required parameter 'app' is set + if ($app === null || (is_array($app) && count($app) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $app when calling ' + ); + } + + // verify the required parameter 'bulk_update_contents_dto' is set + if ($bulk_update_contents_dto === null || (is_array($bulk_update_contents_dto) && count($bulk_update_contents_dto) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $bulk_update_contents_dto when calling ' + ); + } + + + + $resourcePath = '/api/content/{app}/bulk'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $schema, + 'schema', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + + + // path params + if ($app !== null) { + $resourcePath = str_replace( + '{' . 'app' . '}', + ObjectSerializer::toPathValue($app), + $resourcePath + ); + } + + + $headers = $this->headerSelector->selectHeaders( + ['application/json', ], + $contentType, + $multipart + ); + + // for model (json/xml) + if (isset($bulk_update_contents_dto)) { + if (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the body + $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($bulk_update_contents_dto)); + } else { + $httpBody = $bulk_update_contents_dto; + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem + ]; + } + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the form parameters + $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); + } else { + // for HTTP post (form) + $httpBody = ObjectSerializer::buildQuery($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $operationHost = $this->config->getHost(); + $query = ObjectSerializer::buildQuery($queryParams); + return new Request( + 'POST', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getAllContents + * + * Queries contents. + * + * @param string $app The name of the app. (required) + * @param string $ids The list of ids to query. (optional) + * @param \DateTime $schedule_from The start of the schedule. (optional) + * @param \DateTime $schedule_to The end of the schedule. (optional) + * @param string $referencing The ID of the referencing content item. (optional) + * @param string $references The ID of the reference content item. (optional) + * @param string $q The optional json query. (optional) + * @param string $x_fields The list of content fields (comma-separated). (optional) + * @param bool $x_flatten Provide the data as flat object. (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) + * @param bool $x_no_slow_total Do not return the total amount, if it would be slow. (optional) + * @param bool $x_no_total Do not return the total amount. (optional) + * @param bool $x_unpublished Return unpublished content items. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAllContents'] to see the possible values for this operation + * + * @throws \Squidex\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Squidex\Client\Model\ContentsDto|\Squidex\Client\Model\ErrorDto + */ + public function getAllContents($app, $ids = null, $schedule_from = null, $schedule_to = null, $referencing = null, $references = null, $q = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getAllContents'][0]) + { + list($response) = $this->getAllContentsWithHttpInfo($app, $ids, $schedule_from, $schedule_to, $referencing, $references, $q, $x_fields, $x_flatten, $x_languages, $x_no_slow_total, $x_no_total, $x_unpublished, $contentType); + return $response; + } + + /** + * Operation getAllContentsWithHttpInfo + * + * Queries contents. + * + * @param string $app The name of the app. (required) + * @param string $ids The list of ids to query. (optional) + * @param \DateTime $schedule_from The start of the schedule. (optional) + * @param \DateTime $schedule_to The end of the schedule. (optional) + * @param string $referencing The ID of the referencing content item. (optional) + * @param string $references The ID of the reference content item. (optional) + * @param string $q The optional json query. (optional) + * @param string $x_fields The list of content fields (comma-separated). (optional) + * @param bool $x_flatten Provide the data as flat object. (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) + * @param bool $x_no_slow_total Do not return the total amount, if it would be slow. (optional) + * @param bool $x_no_total Do not return the total amount. (optional) + * @param bool $x_unpublished Return unpublished content items. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAllContents'] to see the possible values for this operation + * + * @throws \Squidex\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Squidex\Client\Model\ContentsDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) + */ + public function getAllContentsWithHttpInfo($app, $ids = null, $schedule_from = null, $schedule_to = null, $referencing = null, $references = null, $q = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getAllContents'][0]) + { + $request = $this->getAllContentsRequest($app, $ids, $schedule_from, $schedule_to, $referencing, $references, $q, $x_fields, $x_flatten, $x_languages, $x_no_slow_total, $x_no_total, $x_unpublished, $contentType); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } catch (ConnectException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + switch($statusCode) { + case 200: + if ('\Squidex\Client\Model\ContentsDto' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\Squidex\Client\Model\ContentsDto' !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, '\Squidex\Client\Model\ContentsDto', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + case 500: + if ('\Squidex\Client\Model\ErrorDto' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\Squidex\Client\Model\ErrorDto' !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, '\Squidex\Client\Model\ErrorDto', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } + + $returnType = '\Squidex\Client\Model\ContentsDto'; + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Squidex\Client\Model\ContentsDto', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Squidex\Client\Model\ErrorDto', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getAllContentsAsync + * + * Queries contents. + * + * @param string $app The name of the app. (required) + * @param string $ids The list of ids to query. (optional) + * @param \DateTime $schedule_from The start of the schedule. (optional) + * @param \DateTime $schedule_to The end of the schedule. (optional) + * @param string $referencing The ID of the referencing content item. (optional) + * @param string $references The ID of the reference content item. (optional) + * @param string $q The optional json query. (optional) + * @param string $x_fields The list of content fields (comma-separated). (optional) + * @param bool $x_flatten Provide the data as flat object. (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) + * @param bool $x_no_slow_total Do not return the total amount, if it would be slow. (optional) + * @param bool $x_no_total Do not return the total amount. (optional) + * @param bool $x_unpublished Return unpublished content items. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAllContents'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getAllContentsAsync($app, $ids = null, $schedule_from = null, $schedule_to = null, $referencing = null, $references = null, $q = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getAllContents'][0]) + { + return $this->getAllContentsAsyncWithHttpInfo($app, $ids, $schedule_from, $schedule_to, $referencing, $references, $q, $x_fields, $x_flatten, $x_languages, $x_no_slow_total, $x_no_total, $x_unpublished, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getAllContentsAsyncWithHttpInfo + * + * Queries contents. + * + * @param string $app The name of the app. (required) + * @param string $ids The list of ids to query. (optional) + * @param \DateTime $schedule_from The start of the schedule. (optional) + * @param \DateTime $schedule_to The end of the schedule. (optional) + * @param string $referencing The ID of the referencing content item. (optional) + * @param string $references The ID of the reference content item. (optional) + * @param string $q The optional json query. (optional) + * @param string $x_fields The list of content fields (comma-separated). (optional) + * @param bool $x_flatten Provide the data as flat object. (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) + * @param bool $x_no_slow_total Do not return the total amount, if it would be slow. (optional) + * @param bool $x_no_total Do not return the total amount. (optional) + * @param bool $x_unpublished Return unpublished content items. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAllContents'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getAllContentsAsyncWithHttpInfo($app, $ids = null, $schedule_from = null, $schedule_to = null, $referencing = null, $references = null, $q = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getAllContents'][0]) + { + $returnType = '\Squidex\Client\Model\ContentsDto'; + $request = $this->getAllContentsRequest($app, $ids, $schedule_from, $schedule_to, $referencing, $references, $q, $x_fields, $x_flatten, $x_languages, $x_no_slow_total, $x_no_total, $x_unpublished, $contentType); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getAllContents' + * + * @param string $app The name of the app. (required) + * @param string $ids The list of ids to query. (optional) + * @param \DateTime $schedule_from The start of the schedule. (optional) + * @param \DateTime $schedule_to The end of the schedule. (optional) + * @param string $referencing The ID of the referencing content item. (optional) + * @param string $references The ID of the reference content item. (optional) + * @param string $q The optional json query. (optional) + * @param string $x_fields The list of content fields (comma-separated). (optional) + * @param bool $x_flatten Provide the data as flat object. (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) + * @param bool $x_no_slow_total Do not return the total amount, if it would be slow. (optional) + * @param bool $x_no_total Do not return the total amount. (optional) + * @param bool $x_unpublished Return unpublished content items. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAllContents'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function getAllContentsRequest($app, $ids = null, $schedule_from = null, $schedule_to = null, $referencing = null, $references = null, $q = null, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getAllContents'][0]) + { + + // verify the required parameter 'app' is set + if ($app === null || (is_array($app) && count($app) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $app when calling ' + ); + } + + + + + + + + + + + + + + + $resourcePath = '/api/content/{app}'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $ids, + 'ids', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $schedule_from, + 'scheduleFrom', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $schedule_to, + 'scheduleTo', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $referencing, + 'referencing', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $references, + 'references', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $q, + 'q', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + + // header params + if ($x_fields !== null) { + $headerParams['X-Fields'] = ObjectSerializer::toHeaderValue($x_fields); + } + // header params + if ($x_flatten !== null) { + $headerParams['X-Flatten'] = ObjectSerializer::toHeaderValue($x_flatten); + } + // header params + if ($x_languages !== null) { + $headerParams['X-Languages'] = ObjectSerializer::toHeaderValue($x_languages); + } + // header params + if ($x_no_slow_total !== null) { + $headerParams['X-NoSlowTotal'] = ObjectSerializer::toHeaderValue($x_no_slow_total); + } + // header params + if ($x_no_total !== null) { + $headerParams['X-NoTotal'] = ObjectSerializer::toHeaderValue($x_no_total); + } + // header params + if ($x_unpublished !== null) { + $headerParams['X-Unpublished'] = ObjectSerializer::toHeaderValue($x_unpublished); + } + + // path params + if ($app !== null) { + $resourcePath = str_replace( + '{' . 'app' . '}', + ObjectSerializer::toPathValue($app), + $resourcePath + ); + } + + + $headers = $this->headerSelector->selectHeaders( + ['application/json', ], + $contentType, + $multipart + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem + ]; + } + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the form parameters + $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); + } else { + // for HTTP post (form) + $httpBody = ObjectSerializer::buildQuery($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $operationHost = $this->config->getHost(); + $query = ObjectSerializer::buildQuery($queryParams); + return new Request( + 'GET', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getAllContentsPost + * + * Queries contents. + * + * @param string $app The name of the app. (required) + * @param \Squidex\Client\Model\AllContentsByPostDto $all_contents_by_post_dto The required query object. (required) + * @param string $x_fields The list of content fields (comma-separated). (optional) + * @param bool $x_flatten Provide the data as flat object. (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) + * @param bool $x_no_slow_total Do not return the total amount, if it would be slow. (optional) + * @param bool $x_no_total Do not return the total amount. (optional) + * @param bool $x_unpublished Return unpublished content items. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAllContentsPost'] to see the possible values for this operation + * + * @throws \Squidex\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Squidex\Client\Model\ContentsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto + */ + public function getAllContentsPost($app, $all_contents_by_post_dto, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getAllContentsPost'][0]) + { + list($response) = $this->getAllContentsPostWithHttpInfo($app, $all_contents_by_post_dto, $x_fields, $x_flatten, $x_languages, $x_no_slow_total, $x_no_total, $x_unpublished, $contentType); + return $response; + } + + /** + * Operation getAllContentsPostWithHttpInfo + * + * Queries contents. + * + * @param string $app The name of the app. (required) + * @param \Squidex\Client\Model\AllContentsByPostDto $all_contents_by_post_dto The required query object. (required) + * @param string $x_fields The list of content fields (comma-separated). (optional) + * @param bool $x_flatten Provide the data as flat object. (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) + * @param bool $x_no_slow_total Do not return the total amount, if it would be slow. (optional) + * @param bool $x_no_total Do not return the total amount. (optional) + * @param bool $x_unpublished Return unpublished content items. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAllContentsPost'] to see the possible values for this operation + * + * @throws \Squidex\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Squidex\Client\Model\ContentsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) + */ + public function getAllContentsPostWithHttpInfo($app, $all_contents_by_post_dto, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getAllContentsPost'][0]) + { + $request = $this->getAllContentsPostRequest($app, $all_contents_by_post_dto, $x_fields, $x_flatten, $x_languages, $x_no_slow_total, $x_no_total, $x_unpublished, $contentType); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } catch (ConnectException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + switch($statusCode) { + case 200: + if ('\Squidex\Client\Model\ContentsDto' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\Squidex\Client\Model\ContentsDto' !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, '\Squidex\Client\Model\ContentsDto', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + case 400: + if ('\Squidex\Client\Model\ErrorDto' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\Squidex\Client\Model\ErrorDto' !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, '\Squidex\Client\Model\ErrorDto', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + case 500: + if ('\Squidex\Client\Model\ErrorDto' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\Squidex\Client\Model\ErrorDto' !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, '\Squidex\Client\Model\ErrorDto', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } + + $returnType = '\Squidex\Client\Model\ContentsDto'; + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Squidex\Client\Model\ContentsDto', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 400: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Squidex\Client\Model\ErrorDto', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Squidex\Client\Model\ErrorDto', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getAllContentsPostAsync + * + * Queries contents. + * + * @param string $app The name of the app. (required) + * @param \Squidex\Client\Model\AllContentsByPostDto $all_contents_by_post_dto The required query object. (required) + * @param string $x_fields The list of content fields (comma-separated). (optional) + * @param bool $x_flatten Provide the data as flat object. (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) + * @param bool $x_no_slow_total Do not return the total amount, if it would be slow. (optional) + * @param bool $x_no_total Do not return the total amount. (optional) + * @param bool $x_unpublished Return unpublished content items. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAllContentsPost'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getAllContentsPostAsync($app, $all_contents_by_post_dto, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getAllContentsPost'][0]) + { + return $this->getAllContentsPostAsyncWithHttpInfo($app, $all_contents_by_post_dto, $x_fields, $x_flatten, $x_languages, $x_no_slow_total, $x_no_total, $x_unpublished, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getAllContentsPostAsyncWithHttpInfo + * + * Queries contents. + * + * @param string $app The name of the app. (required) + * @param \Squidex\Client\Model\AllContentsByPostDto $all_contents_by_post_dto The required query object. (required) + * @param string $x_fields The list of content fields (comma-separated). (optional) + * @param bool $x_flatten Provide the data as flat object. (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) + * @param bool $x_no_slow_total Do not return the total amount, if it would be slow. (optional) + * @param bool $x_no_total Do not return the total amount. (optional) + * @param bool $x_unpublished Return unpublished content items. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAllContentsPost'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getAllContentsPostAsyncWithHttpInfo($app, $all_contents_by_post_dto, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getAllContentsPost'][0]) + { + $returnType = '\Squidex\Client\Model\ContentsDto'; + $request = $this->getAllContentsPostRequest($app, $all_contents_by_post_dto, $x_fields, $x_flatten, $x_languages, $x_no_slow_total, $x_no_total, $x_unpublished, $contentType); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getAllContentsPost' + * + * @param string $app The name of the app. (required) + * @param \Squidex\Client\Model\AllContentsByPostDto $all_contents_by_post_dto The required query object. (required) + * @param string $x_fields The list of content fields (comma-separated). (optional) + * @param bool $x_flatten Provide the data as flat object. (optional) + * @param string $x_languages The list of languages to resolve (comma-separated). (optional) + * @param bool $x_no_slow_total Do not return the total amount, if it would be slow. (optional) + * @param bool $x_no_total Do not return the total amount. (optional) + * @param bool $x_unpublished Return unpublished content items. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAllContentsPost'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function getAllContentsPostRequest($app, $all_contents_by_post_dto, $x_fields = null, $x_flatten = null, $x_languages = null, $x_no_slow_total = null, $x_no_total = null, $x_unpublished = null, string $contentType = self::contentTypes['getAllContentsPost'][0]) + { + + // verify the required parameter 'app' is set + if ($app === null || (is_array($app) && count($app) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $app when calling ' + ); + } + + // verify the required parameter 'all_contents_by_post_dto' is set + if ($all_contents_by_post_dto === null || (is_array($all_contents_by_post_dto) && count($all_contents_by_post_dto) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $all_contents_by_post_dto when calling ' + ); + } + + + + + + + + + $resourcePath = '/api/content/{app}'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + // header params + if ($x_fields !== null) { + $headerParams['X-Fields'] = ObjectSerializer::toHeaderValue($x_fields); + } + // header params + if ($x_flatten !== null) { + $headerParams['X-Flatten'] = ObjectSerializer::toHeaderValue($x_flatten); + } + // header params + if ($x_languages !== null) { + $headerParams['X-Languages'] = ObjectSerializer::toHeaderValue($x_languages); + } + // header params + if ($x_no_slow_total !== null) { + $headerParams['X-NoSlowTotal'] = ObjectSerializer::toHeaderValue($x_no_slow_total); + } + // header params + if ($x_no_total !== null) { + $headerParams['X-NoTotal'] = ObjectSerializer::toHeaderValue($x_no_total); + } + // header params + if ($x_unpublished !== null) { + $headerParams['X-Unpublished'] = ObjectSerializer::toHeaderValue($x_unpublished); + } + + // path params + if ($app !== null) { + $resourcePath = str_replace( + '{' . 'app' . '}', + ObjectSerializer::toPathValue($app), + $resourcePath + ); + } + + + $headers = $this->headerSelector->selectHeaders( + ['application/json', ], + $contentType, + $multipart + ); + + // for model (json/xml) + if (isset($all_contents_by_post_dto)) { + if (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the body + $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($all_contents_by_post_dto)); + } else { + $httpBody = $all_contents_by_post_dto; + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem + ]; + } + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the form parameters + $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); + } else { + // for HTTP post (form) + $httpBody = ObjectSerializer::buildQuery($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $operationHost = $this->config->getHost(); + $query = ObjectSerializer::buildQuery($queryParams); + return new Request( + 'POST', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getGraphQL + * + * GraphQL endpoint. + * + * @param string $app The name of the app. (required) + * @param bool $x_unpublished Return unpublished content items. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getGraphQL'] to see the possible values for this operation + * + * @throws \Squidex\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \SplFileObject|\Squidex\Client\Model\ErrorDto + */ + public function getGraphQL($app, $x_unpublished = null, string $contentType = self::contentTypes['getGraphQL'][0]) + { + list($response) = $this->getGraphQLWithHttpInfo($app, $x_unpublished, $contentType); + return $response; + } + + /** + * Operation getGraphQLWithHttpInfo + * + * GraphQL endpoint. + * + * @param string $app The name of the app. (required) + * @param bool $x_unpublished Return unpublished content items. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getGraphQL'] to see the possible values for this operation + * + * @throws \Squidex\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \SplFileObject|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) + */ + public function getGraphQLWithHttpInfo($app, $x_unpublished = null, string $contentType = self::contentTypes['getGraphQL'][0]) + { + $request = $this->getGraphQLRequest($app, $x_unpublished, $contentType); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } catch (ConnectException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + switch($statusCode) { + case 200: + if ('\SplFileObject' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\SplFileObject' !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, '\SplFileObject', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + case 500: + if ('\Squidex\Client\Model\ErrorDto' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\Squidex\Client\Model\ErrorDto' !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, '\Squidex\Client\Model\ErrorDto', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } + + $returnType = '\SplFileObject'; + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\SplFileObject', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Squidex\Client\Model\ErrorDto', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getGraphQLAsync + * + * GraphQL endpoint. + * + * @param string $app The name of the app. (required) + * @param bool $x_unpublished Return unpublished content items. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getGraphQL'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getGraphQLAsync($app, $x_unpublished = null, string $contentType = self::contentTypes['getGraphQL'][0]) + { + return $this->getGraphQLAsyncWithHttpInfo($app, $x_unpublished, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getGraphQLAsyncWithHttpInfo + * + * GraphQL endpoint. + * + * @param string $app The name of the app. (required) + * @param bool $x_unpublished Return unpublished content items. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getGraphQL'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getGraphQLAsyncWithHttpInfo($app, $x_unpublished = null, string $contentType = self::contentTypes['getGraphQL'][0]) + { + $returnType = '\SplFileObject'; + $request = $this->getGraphQLRequest($app, $x_unpublished, $contentType); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getGraphQL' + * + * @param string $app The name of the app. (required) + * @param bool $x_unpublished Return unpublished content items. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getGraphQL'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function getGraphQLRequest($app, $x_unpublished = null, string $contentType = self::contentTypes['getGraphQL'][0]) + { + + // verify the required parameter 'app' is set + if ($app === null || (is_array($app) && count($app) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $app when calling ' + ); + } + + + + $resourcePath = '/api/content/{app}/graphql'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + // header params + if ($x_unpublished !== null) { + $headerParams['X-Unpublished'] = ObjectSerializer::toHeaderValue($x_unpublished); + } + + // path params + if ($app !== null) { + $resourcePath = str_replace( + '{' . 'app' . '}', + ObjectSerializer::toPathValue($app), + $resourcePath + ); + } + + + $headers = $this->headerSelector->selectHeaders( + ['application/octet-stream', 'application/json', ], + $contentType, + $multipart + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem + ]; + } + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the form parameters + $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); + } else { + // for HTTP post (form) + $httpBody = ObjectSerializer::buildQuery($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $operationHost = $this->config->getHost(); + $query = ObjectSerializer::buildQuery($queryParams); + return new Request( + 'GET', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getGraphQL2 + * + * GraphQL endpoint. + * + * @param string $app The name of the app. (required) + * @param bool $x_unpublished Return unpublished content items. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getGraphQL2'] to see the possible values for this operation + * + * @throws \Squidex\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \SplFileObject|\Squidex\Client\Model\ErrorDto + */ + public function getGraphQL2($app, $x_unpublished = null, string $contentType = self::contentTypes['getGraphQL2'][0]) + { + list($response) = $this->getGraphQL2WithHttpInfo($app, $x_unpublished, $contentType); + return $response; + } + + /** + * Operation getGraphQL2WithHttpInfo + * + * GraphQL endpoint. + * + * @param string $app The name of the app. (required) + * @param bool $x_unpublished Return unpublished content items. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getGraphQL2'] to see the possible values for this operation + * + * @throws \Squidex\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \SplFileObject|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) + */ + public function getGraphQL2WithHttpInfo($app, $x_unpublished = null, string $contentType = self::contentTypes['getGraphQL2'][0]) + { + $request = $this->getGraphQL2Request($app, $x_unpublished, $contentType); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } catch (ConnectException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + switch($statusCode) { + case 200: + if ('\SplFileObject' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\SplFileObject' !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, '\SplFileObject', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + case 500: + if ('\Squidex\Client\Model\ErrorDto' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\Squidex\Client\Model\ErrorDto' !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, '\Squidex\Client\Model\ErrorDto', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } + + $returnType = '\SplFileObject'; + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\SplFileObject', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Squidex\Client\Model\ErrorDto', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getGraphQL2Async + * + * GraphQL endpoint. + * + * @param string $app The name of the app. (required) + * @param bool $x_unpublished Return unpublished content items. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getGraphQL2'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getGraphQL2Async($app, $x_unpublished = null, string $contentType = self::contentTypes['getGraphQL2'][0]) + { + return $this->getGraphQL2AsyncWithHttpInfo($app, $x_unpublished, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getGraphQL2AsyncWithHttpInfo + * + * GraphQL endpoint. + * + * @param string $app The name of the app. (required) + * @param bool $x_unpublished Return unpublished content items. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getGraphQL2'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getGraphQL2AsyncWithHttpInfo($app, $x_unpublished = null, string $contentType = self::contentTypes['getGraphQL2'][0]) + { + $returnType = '\SplFileObject'; + $request = $this->getGraphQL2Request($app, $x_unpublished, $contentType); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getGraphQL2' + * + * @param string $app The name of the app. (required) + * @param bool $x_unpublished Return unpublished content items. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getGraphQL2'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function getGraphQL2Request($app, $x_unpublished = null, string $contentType = self::contentTypes['getGraphQL2'][0]) + { + + // verify the required parameter 'app' is set + if ($app === null || (is_array($app) && count($app) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $app when calling ' + ); + } + + + + $resourcePath = '/api/content/{app}/graphql/batch'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + // header params + if ($x_unpublished !== null) { + $headerParams['X-Unpublished'] = ObjectSerializer::toHeaderValue($x_unpublished); + } + + // path params + if ($app !== null) { + $resourcePath = str_replace( + '{' . 'app' . '}', + ObjectSerializer::toPathValue($app), + $resourcePath + ); + } + + + $headers = $this->headerSelector->selectHeaders( + ['application/octet-stream', 'application/json', ], + $contentType, + $multipart + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem + ]; + } + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the form parameters + $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); + } else { + // for HTTP post (form) + $httpBody = ObjectSerializer::buildQuery($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $operationHost = $this->config->getHost(); + $query = ObjectSerializer::buildQuery($queryParams); + return new Request( + 'GET', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + /** * Create http client option * diff --git a/lib/Api/HistoryApi.php b/lib/Api/HistoryApi.php index 172319b..2d3f797 100644 --- a/lib/Api/HistoryApi.php +++ b/lib/Api/HistoryApi.php @@ -127,6 +127,7 @@ 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 * @@ -134,9 +135,9 @@ public function getConfig() * @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; } @@ -145,6 +146,7 @@ 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 * @@ -152,9 +154,9 @@ public function getAppHistory($channel = null, string $contentType = self::conte * @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(); @@ -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]; @@ -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()) @@ -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 ' diff --git a/lib/Api/PingApi.php b/lib/Api/PingApi.php index e64cc7b..7344a7f 100644 --- a/lib/Api/PingApi.php +++ b/lib/Api/PingApi.php @@ -130,15 +130,16 @@ 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); } /** @@ -146,15 +147,16 @@ public function getAppPing(string $contentType = self::contentTypes['getAppPing' * * 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(); @@ -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]; @@ -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()) @@ -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 ' diff --git a/lib/Api/PlansApi.php b/lib/Api/PlansApi.php index 5108a59..41b37cd 100644 --- a/lib/Api/PlansApi.php +++ b/lib/Api/PlansApi.php @@ -133,15 +133,16 @@ public function getConfig() * * Get app plan information. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPlans'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \Squidex\Client\Model\PlansDto|\Squidex\Client\Model\ErrorDto */ - public function getPlans(string $contentType = self::contentTypes['getPlans'][0]) + public function getPlans($app, string $contentType = self::contentTypes['getPlans'][0]) { - list($response) = $this->getPlansWithHttpInfo($contentType); + list($response) = $this->getPlansWithHttpInfo($app, $contentType); return $response; } @@ -150,15 +151,16 @@ public function getPlans(string $contentType = self::contentTypes['getPlans'][0] * * Get app plan information. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPlans'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\PlansDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getPlansWithHttpInfo(string $contentType = self::contentTypes['getPlans'][0]) + public function getPlansWithHttpInfo($app, string $contentType = self::contentTypes['getPlans'][0]) { - $request = $this->getPlansRequest($contentType); + $request = $this->getPlansRequest($app, $contentType); try { $options = $this->createHttpClientOption(); @@ -272,14 +274,15 @@ public function getPlansWithHttpInfo(string $contentType = self::contentTypes['g * * Get app plan information. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPlans'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getPlansAsync(string $contentType = self::contentTypes['getPlans'][0]) + public function getPlansAsync($app, string $contentType = self::contentTypes['getPlans'][0]) { - return $this->getPlansAsyncWithHttpInfo($contentType) + return $this->getPlansAsyncWithHttpInfo($app, $contentType) ->then( function ($response) { return $response[0]; @@ -292,15 +295,16 @@ function ($response) { * * Get app plan information. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPlans'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getPlansAsyncWithHttpInfo(string $contentType = self::contentTypes['getPlans'][0]) + public function getPlansAsyncWithHttpInfo($app, string $contentType = self::contentTypes['getPlans'][0]) { $returnType = '\Squidex\Client\Model\PlansDto'; - $request = $this->getPlansRequest($contentType); + $request = $this->getPlansRequest($app, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -341,16 +345,16 @@ function ($exception) { /** * Create request for operation 'getPlans' * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getPlans'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getPlansRequest(string $contentType = self::contentTypes['getPlans'][0]) + public function getPlansRequest($app, string $contentType = self::contentTypes['getPlans'][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 ' @@ -435,6 +439,7 @@ public function getPlansRequest(string $contentType = self::contentTypes['getPla * * Change the app plan. * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\ChangePlanDto $change_plan_dto Plan object that needs to be changed. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putPlan'] to see the possible values for this operation * @@ -442,9 +447,9 @@ public function getPlansRequest(string $contentType = self::contentTypes['getPla * @throws \InvalidArgumentException * @return \Squidex\Client\Model\PlanChangedDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putPlan($change_plan_dto, string $contentType = self::contentTypes['putPlan'][0]) + public function putPlan($app, $change_plan_dto, string $contentType = self::contentTypes['putPlan'][0]) { - list($response) = $this->putPlanWithHttpInfo($change_plan_dto, $contentType); + list($response) = $this->putPlanWithHttpInfo($app, $change_plan_dto, $contentType); return $response; } @@ -453,6 +458,7 @@ public function putPlan($change_plan_dto, string $contentType = self::contentTyp * * Change the app plan. * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\ChangePlanDto $change_plan_dto Plan object that needs to be changed. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putPlan'] to see the possible values for this operation * @@ -460,9 +466,9 @@ public function putPlan($change_plan_dto, string $contentType = self::contentTyp * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\PlanChangedDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putPlanWithHttpInfo($change_plan_dto, string $contentType = self::contentTypes['putPlan'][0]) + public function putPlanWithHttpInfo($app, $change_plan_dto, string $contentType = self::contentTypes['putPlan'][0]) { - $request = $this->putPlanRequest($change_plan_dto, $contentType); + $request = $this->putPlanRequest($app, $change_plan_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -599,15 +605,16 @@ public function putPlanWithHttpInfo($change_plan_dto, string $contentType = self * * Change the app plan. * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\ChangePlanDto $change_plan_dto Plan object that needs to be changed. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putPlan'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putPlanAsync($change_plan_dto, string $contentType = self::contentTypes['putPlan'][0]) + public function putPlanAsync($app, $change_plan_dto, string $contentType = self::contentTypes['putPlan'][0]) { - return $this->putPlanAsyncWithHttpInfo($change_plan_dto, $contentType) + return $this->putPlanAsyncWithHttpInfo($app, $change_plan_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -620,16 +627,17 @@ function ($response) { * * Change the app plan. * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\ChangePlanDto $change_plan_dto Plan object that needs to be changed. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putPlan'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putPlanAsyncWithHttpInfo($change_plan_dto, string $contentType = self::contentTypes['putPlan'][0]) + public function putPlanAsyncWithHttpInfo($app, $change_plan_dto, string $contentType = self::contentTypes['putPlan'][0]) { $returnType = '\Squidex\Client\Model\PlanChangedDto'; - $request = $this->putPlanRequest($change_plan_dto, $contentType); + $request = $this->putPlanRequest($app, $change_plan_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -670,17 +678,17 @@ function ($exception) { /** * Create request for operation 'putPlan' * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\ChangePlanDto $change_plan_dto Plan object that needs to be changed. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putPlan'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putPlanRequest($change_plan_dto, string $contentType = self::contentTypes['putPlan'][0]) + public function putPlanRequest($app, $change_plan_dto, string $contentType = self::contentTypes['putPlan'][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 ' diff --git a/lib/Api/RulesApi.php b/lib/Api/RulesApi.php index 09c9b51..4447677 100644 --- a/lib/Api/RulesApi.php +++ b/lib/Api/RulesApi.php @@ -178,6 +178,7 @@ public function getConfig() * * Cancels an event. * + * @param string $app The name of the app. (required) * @param string $id The event to cancel. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteEvent'] to see the possible values for this operation * @@ -185,9 +186,9 @@ public function getConfig() * @throws \InvalidArgumentException * @return void */ - public function deleteEvent($id, string $contentType = self::contentTypes['deleteEvent'][0]) + public function deleteEvent($app, $id, string $contentType = self::contentTypes['deleteEvent'][0]) { - $this->deleteEventWithHttpInfo($id, $contentType); + $this->deleteEventWithHttpInfo($app, $id, $contentType); } /** @@ -195,6 +196,7 @@ public function deleteEvent($id, string $contentType = self::contentTypes['delet * * Cancels an event. * + * @param string $app The name of the app. (required) * @param string $id The event to cancel. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteEvent'] to see the possible values for this operation * @@ -202,9 +204,9 @@ public function deleteEvent($id, string $contentType = self::contentTypes['delet * @throws \InvalidArgumentException * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function deleteEventWithHttpInfo($id, string $contentType = self::contentTypes['deleteEvent'][0]) + public function deleteEventWithHttpInfo($app, $id, string $contentType = self::contentTypes['deleteEvent'][0]) { - $request = $this->deleteEventRequest($id, $contentType); + $request = $this->deleteEventRequest($app, $id, $contentType); try { $options = $this->createHttpClientOption(); @@ -271,15 +273,16 @@ public function deleteEventWithHttpInfo($id, string $contentType = self::content * * Cancels an event. * + * @param string $app The name of the app. (required) * @param string $id The event to cancel. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteEvent'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteEventAsync($id, string $contentType = self::contentTypes['deleteEvent'][0]) + public function deleteEventAsync($app, $id, string $contentType = self::contentTypes['deleteEvent'][0]) { - return $this->deleteEventAsyncWithHttpInfo($id, $contentType) + return $this->deleteEventAsyncWithHttpInfo($app, $id, $contentType) ->then( function ($response) { return $response[0]; @@ -292,16 +295,17 @@ function ($response) { * * Cancels an event. * + * @param string $app The name of the app. (required) * @param string $id The event to cancel. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteEvent'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteEventAsyncWithHttpInfo($id, string $contentType = self::contentTypes['deleteEvent'][0]) + public function deleteEventAsyncWithHttpInfo($app, $id, string $contentType = self::contentTypes['deleteEvent'][0]) { $returnType = ''; - $request = $this->deleteEventRequest($id, $contentType); + $request = $this->deleteEventRequest($app, $id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -329,17 +333,17 @@ function ($exception) { /** * Create request for operation 'deleteEvent' * + * @param string $app The name of the app. (required) * @param string $id The event to cancel. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteEvent'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function deleteEventRequest($id, string $contentType = self::contentTypes['deleteEvent'][0]) + public function deleteEventRequest($app, $id, string $contentType = self::contentTypes['deleteEvent'][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 ' @@ -439,15 +443,16 @@ public function deleteEventRequest($id, string $contentType = self::contentTypes * * Cancels all events. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteEvents'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return void */ - public function deleteEvents(string $contentType = self::contentTypes['deleteEvents'][0]) + public function deleteEvents($app, string $contentType = self::contentTypes['deleteEvents'][0]) { - $this->deleteEventsWithHttpInfo($contentType); + $this->deleteEventsWithHttpInfo($app, $contentType); } /** @@ -455,15 +460,16 @@ public function deleteEvents(string $contentType = self::contentTypes['deleteEve * * Cancels all events. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteEvents'] 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 deleteEventsWithHttpInfo(string $contentType = self::contentTypes['deleteEvents'][0]) + public function deleteEventsWithHttpInfo($app, string $contentType = self::contentTypes['deleteEvents'][0]) { - $request = $this->deleteEventsRequest($contentType); + $request = $this->deleteEventsRequest($app, $contentType); try { $options = $this->createHttpClientOption(); @@ -530,14 +536,15 @@ public function deleteEventsWithHttpInfo(string $contentType = self::contentType * * Cancels all events. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteEvents'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteEventsAsync(string $contentType = self::contentTypes['deleteEvents'][0]) + public function deleteEventsAsync($app, string $contentType = self::contentTypes['deleteEvents'][0]) { - return $this->deleteEventsAsyncWithHttpInfo($contentType) + return $this->deleteEventsAsyncWithHttpInfo($app, $contentType) ->then( function ($response) { return $response[0]; @@ -550,15 +557,16 @@ function ($response) { * * Cancels all events. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteEvents'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteEventsAsyncWithHttpInfo(string $contentType = self::contentTypes['deleteEvents'][0]) + public function deleteEventsAsyncWithHttpInfo($app, string $contentType = self::contentTypes['deleteEvents'][0]) { $returnType = ''; - $request = $this->deleteEventsRequest($contentType); + $request = $this->deleteEventsRequest($app, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -586,16 +594,16 @@ function ($exception) { /** * Create request for operation 'deleteEvents' * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteEvents'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function deleteEventsRequest(string $contentType = self::contentTypes['deleteEvents'][0]) + public function deleteEventsRequest($app, string $contentType = self::contentTypes['deleteEvents'][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 ' @@ -680,6 +688,7 @@ public function deleteEventsRequest(string $contentType = self::contentTypes['de * * Delete a rule. * + * @param string $app The name of the app. (required) * @param string $id The ID of the rule to delete. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteRule'] to see the possible values for this operation * @@ -687,9 +696,9 @@ public function deleteEventsRequest(string $contentType = self::contentTypes['de * @throws \InvalidArgumentException * @return void */ - public function deleteRule($id, string $contentType = self::contentTypes['deleteRule'][0]) + public function deleteRule($app, $id, string $contentType = self::contentTypes['deleteRule'][0]) { - $this->deleteRuleWithHttpInfo($id, $contentType); + $this->deleteRuleWithHttpInfo($app, $id, $contentType); } /** @@ -697,6 +706,7 @@ public function deleteRule($id, string $contentType = self::contentTypes['delete * * Delete a rule. * + * @param string $app The name of the app. (required) * @param string $id The ID of the rule to delete. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteRule'] to see the possible values for this operation * @@ -704,9 +714,9 @@ public function deleteRule($id, string $contentType = self::contentTypes['delete * @throws \InvalidArgumentException * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function deleteRuleWithHttpInfo($id, string $contentType = self::contentTypes['deleteRule'][0]) + public function deleteRuleWithHttpInfo($app, $id, string $contentType = self::contentTypes['deleteRule'][0]) { - $request = $this->deleteRuleRequest($id, $contentType); + $request = $this->deleteRuleRequest($app, $id, $contentType); try { $options = $this->createHttpClientOption(); @@ -773,15 +783,16 @@ public function deleteRuleWithHttpInfo($id, string $contentType = self::contentT * * Delete a rule. * + * @param string $app The name of the app. (required) * @param string $id The ID of the rule to delete. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteRule'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteRuleAsync($id, string $contentType = self::contentTypes['deleteRule'][0]) + public function deleteRuleAsync($app, $id, string $contentType = self::contentTypes['deleteRule'][0]) { - return $this->deleteRuleAsyncWithHttpInfo($id, $contentType) + return $this->deleteRuleAsyncWithHttpInfo($app, $id, $contentType) ->then( function ($response) { return $response[0]; @@ -794,16 +805,17 @@ function ($response) { * * Delete a rule. * + * @param string $app The name of the app. (required) * @param string $id The ID of the rule to delete. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteRule'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteRuleAsyncWithHttpInfo($id, string $contentType = self::contentTypes['deleteRule'][0]) + public function deleteRuleAsyncWithHttpInfo($app, $id, string $contentType = self::contentTypes['deleteRule'][0]) { $returnType = ''; - $request = $this->deleteRuleRequest($id, $contentType); + $request = $this->deleteRuleRequest($app, $id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -831,17 +843,17 @@ function ($exception) { /** * Create request for operation 'deleteRule' * + * @param string $app The name of the app. (required) * @param string $id The ID of the rule to delete. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteRule'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function deleteRuleRequest($id, string $contentType = self::contentTypes['deleteRule'][0]) + public function deleteRuleRequest($app, $id, string $contentType = self::contentTypes['deleteRule'][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 ' @@ -941,6 +953,7 @@ public function deleteRuleRequest($id, string $contentType = self::contentTypes[ * * Cancels all rule events. * + * @param string $app The name of the app. (required) * @param string $id The ID of the rule to cancel. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteRuleEvents'] to see the possible values for this operation * @@ -948,9 +961,9 @@ public function deleteRuleRequest($id, string $contentType = self::contentTypes[ * @throws \InvalidArgumentException * @return void */ - public function deleteRuleEvents($id, string $contentType = self::contentTypes['deleteRuleEvents'][0]) + public function deleteRuleEvents($app, $id, string $contentType = self::contentTypes['deleteRuleEvents'][0]) { - $this->deleteRuleEventsWithHttpInfo($id, $contentType); + $this->deleteRuleEventsWithHttpInfo($app, $id, $contentType); } /** @@ -958,6 +971,7 @@ public function deleteRuleEvents($id, string $contentType = self::contentTypes[' * * Cancels all rule events. * + * @param string $app The name of the app. (required) * @param string $id The ID of the rule to cancel. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteRuleEvents'] to see the possible values for this operation * @@ -965,9 +979,9 @@ public function deleteRuleEvents($id, string $contentType = self::contentTypes[' * @throws \InvalidArgumentException * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function deleteRuleEventsWithHttpInfo($id, string $contentType = self::contentTypes['deleteRuleEvents'][0]) + public function deleteRuleEventsWithHttpInfo($app, $id, string $contentType = self::contentTypes['deleteRuleEvents'][0]) { - $request = $this->deleteRuleEventsRequest($id, $contentType); + $request = $this->deleteRuleEventsRequest($app, $id, $contentType); try { $options = $this->createHttpClientOption(); @@ -1034,15 +1048,16 @@ public function deleteRuleEventsWithHttpInfo($id, string $contentType = self::co * * Cancels all rule events. * + * @param string $app The name of the app. (required) * @param string $id The ID of the rule to cancel. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteRuleEvents'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteRuleEventsAsync($id, string $contentType = self::contentTypes['deleteRuleEvents'][0]) + public function deleteRuleEventsAsync($app, $id, string $contentType = self::contentTypes['deleteRuleEvents'][0]) { - return $this->deleteRuleEventsAsyncWithHttpInfo($id, $contentType) + return $this->deleteRuleEventsAsyncWithHttpInfo($app, $id, $contentType) ->then( function ($response) { return $response[0]; @@ -1055,16 +1070,17 @@ function ($response) { * * Cancels all rule events. * + * @param string $app The name of the app. (required) * @param string $id The ID of the rule to cancel. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteRuleEvents'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteRuleEventsAsyncWithHttpInfo($id, string $contentType = self::contentTypes['deleteRuleEvents'][0]) + public function deleteRuleEventsAsyncWithHttpInfo($app, $id, string $contentType = self::contentTypes['deleteRuleEvents'][0]) { $returnType = ''; - $request = $this->deleteRuleEventsRequest($id, $contentType); + $request = $this->deleteRuleEventsRequest($app, $id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1092,17 +1108,17 @@ function ($exception) { /** * Create request for operation 'deleteRuleEvents' * + * @param string $app The name of the app. (required) * @param string $id The ID of the rule to cancel. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteRuleEvents'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function deleteRuleEventsRequest($id, string $contentType = self::contentTypes['deleteRuleEvents'][0]) + public function deleteRuleEventsRequest($app, $id, string $contentType = self::contentTypes['deleteRuleEvents'][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 ' @@ -1202,15 +1218,16 @@ public function deleteRuleEventsRequest($id, string $contentType = self::content * * Cancel the current run. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteRuleRun'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return void */ - public function deleteRuleRun(string $contentType = self::contentTypes['deleteRuleRun'][0]) + public function deleteRuleRun($app, string $contentType = self::contentTypes['deleteRuleRun'][0]) { - $this->deleteRuleRunWithHttpInfo($contentType); + $this->deleteRuleRunWithHttpInfo($app, $contentType); } /** @@ -1218,15 +1235,16 @@ public function deleteRuleRun(string $contentType = self::contentTypes['deleteRu * * Cancel the current run. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteRuleRun'] 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 deleteRuleRunWithHttpInfo(string $contentType = self::contentTypes['deleteRuleRun'][0]) + public function deleteRuleRunWithHttpInfo($app, string $contentType = self::contentTypes['deleteRuleRun'][0]) { - $request = $this->deleteRuleRunRequest($contentType); + $request = $this->deleteRuleRunRequest($app, $contentType); try { $options = $this->createHttpClientOption(); @@ -1293,14 +1311,15 @@ public function deleteRuleRunWithHttpInfo(string $contentType = self::contentTyp * * Cancel the current run. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteRuleRun'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteRuleRunAsync(string $contentType = self::contentTypes['deleteRuleRun'][0]) + public function deleteRuleRunAsync($app, string $contentType = self::contentTypes['deleteRuleRun'][0]) { - return $this->deleteRuleRunAsyncWithHttpInfo($contentType) + return $this->deleteRuleRunAsyncWithHttpInfo($app, $contentType) ->then( function ($response) { return $response[0]; @@ -1313,15 +1332,16 @@ function ($response) { * * Cancel the current run. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteRuleRun'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteRuleRunAsyncWithHttpInfo(string $contentType = self::contentTypes['deleteRuleRun'][0]) + public function deleteRuleRunAsyncWithHttpInfo($app, string $contentType = self::contentTypes['deleteRuleRun'][0]) { $returnType = ''; - $request = $this->deleteRuleRunRequest($contentType); + $request = $this->deleteRuleRunRequest($app, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1349,16 +1369,16 @@ function ($exception) { /** * Create request for operation 'deleteRuleRun' * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteRuleRun'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function deleteRuleRunRequest(string $contentType = self::contentTypes['deleteRuleRun'][0]) + public function deleteRuleRunRequest($app, string $contentType = self::contentTypes['deleteRuleRun'][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 ' @@ -1443,6 +1463,7 @@ public function deleteRuleRunRequest(string $contentType = self::contentTypes['d * * Disable a rule. * + * @param string $app The name of the app. (required) * @param string $id The ID of the rule to disable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['disableRule'] to see the possible values for this operation * @@ -1450,9 +1471,9 @@ public function deleteRuleRunRequest(string $contentType = self::contentTypes['d * @throws \InvalidArgumentException * @return \Squidex\Client\Model\RuleDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function disableRule($id, string $contentType = self::contentTypes['disableRule'][0]) + public function disableRule($app, $id, string $contentType = self::contentTypes['disableRule'][0]) { - list($response) = $this->disableRuleWithHttpInfo($id, $contentType); + list($response) = $this->disableRuleWithHttpInfo($app, $id, $contentType); return $response; } @@ -1461,6 +1482,7 @@ public function disableRule($id, string $contentType = self::contentTypes['disab * * Disable a rule. * + * @param string $app The name of the app. (required) * @param string $id The ID of the rule to disable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['disableRule'] to see the possible values for this operation * @@ -1468,9 +1490,9 @@ public function disableRule($id, string $contentType = self::contentTypes['disab * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\RuleDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function disableRuleWithHttpInfo($id, string $contentType = self::contentTypes['disableRule'][0]) + public function disableRuleWithHttpInfo($app, $id, string $contentType = self::contentTypes['disableRule'][0]) { - $request = $this->disableRuleRequest($id, $contentType); + $request = $this->disableRuleRequest($app, $id, $contentType); try { $options = $this->createHttpClientOption(); @@ -1607,15 +1629,16 @@ public function disableRuleWithHttpInfo($id, string $contentType = self::content * * Disable a rule. * + * @param string $app The name of the app. (required) * @param string $id The ID of the rule to disable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['disableRule'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function disableRuleAsync($id, string $contentType = self::contentTypes['disableRule'][0]) + public function disableRuleAsync($app, $id, string $contentType = self::contentTypes['disableRule'][0]) { - return $this->disableRuleAsyncWithHttpInfo($id, $contentType) + return $this->disableRuleAsyncWithHttpInfo($app, $id, $contentType) ->then( function ($response) { return $response[0]; @@ -1628,16 +1651,17 @@ function ($response) { * * Disable a rule. * + * @param string $app The name of the app. (required) * @param string $id The ID of the rule to disable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['disableRule'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function disableRuleAsyncWithHttpInfo($id, string $contentType = self::contentTypes['disableRule'][0]) + public function disableRuleAsyncWithHttpInfo($app, $id, string $contentType = self::contentTypes['disableRule'][0]) { $returnType = '\Squidex\Client\Model\RuleDto'; - $request = $this->disableRuleRequest($id, $contentType); + $request = $this->disableRuleRequest($app, $id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1678,17 +1702,17 @@ function ($exception) { /** * Create request for operation 'disableRule' * + * @param string $app The name of the app. (required) * @param string $id The ID of the rule to disable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['disableRule'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function disableRuleRequest($id, string $contentType = self::contentTypes['disableRule'][0]) + public function disableRuleRequest($app, $id, string $contentType = self::contentTypes['disableRule'][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 ' @@ -1788,6 +1812,7 @@ public function disableRuleRequest($id, string $contentType = self::contentTypes * * Enable a rule. * + * @param string $app The name of the app. (required) * @param string $id The ID of the rule to enable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['enableRule'] to see the possible values for this operation * @@ -1795,9 +1820,9 @@ public function disableRuleRequest($id, string $contentType = self::contentTypes * @throws \InvalidArgumentException * @return \Squidex\Client\Model\RuleDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function enableRule($id, string $contentType = self::contentTypes['enableRule'][0]) + public function enableRule($app, $id, string $contentType = self::contentTypes['enableRule'][0]) { - list($response) = $this->enableRuleWithHttpInfo($id, $contentType); + list($response) = $this->enableRuleWithHttpInfo($app, $id, $contentType); return $response; } @@ -1806,6 +1831,7 @@ public function enableRule($id, string $contentType = self::contentTypes['enable * * Enable a rule. * + * @param string $app The name of the app. (required) * @param string $id The ID of the rule to enable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['enableRule'] to see the possible values for this operation * @@ -1813,9 +1839,9 @@ public function enableRule($id, string $contentType = self::contentTypes['enable * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\RuleDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function enableRuleWithHttpInfo($id, string $contentType = self::contentTypes['enableRule'][0]) + public function enableRuleWithHttpInfo($app, $id, string $contentType = self::contentTypes['enableRule'][0]) { - $request = $this->enableRuleRequest($id, $contentType); + $request = $this->enableRuleRequest($app, $id, $contentType); try { $options = $this->createHttpClientOption(); @@ -1952,15 +1978,16 @@ public function enableRuleWithHttpInfo($id, string $contentType = self::contentT * * Enable a rule. * + * @param string $app The name of the app. (required) * @param string $id The ID of the rule to enable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['enableRule'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function enableRuleAsync($id, string $contentType = self::contentTypes['enableRule'][0]) + public function enableRuleAsync($app, $id, string $contentType = self::contentTypes['enableRule'][0]) { - return $this->enableRuleAsyncWithHttpInfo($id, $contentType) + return $this->enableRuleAsyncWithHttpInfo($app, $id, $contentType) ->then( function ($response) { return $response[0]; @@ -1973,16 +2000,17 @@ function ($response) { * * Enable a rule. * + * @param string $app The name of the app. (required) * @param string $id The ID of the rule to enable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['enableRule'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function enableRuleAsyncWithHttpInfo($id, string $contentType = self::contentTypes['enableRule'][0]) + public function enableRuleAsyncWithHttpInfo($app, $id, string $contentType = self::contentTypes['enableRule'][0]) { $returnType = '\Squidex\Client\Model\RuleDto'; - $request = $this->enableRuleRequest($id, $contentType); + $request = $this->enableRuleRequest($app, $id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -2023,17 +2051,17 @@ function ($exception) { /** * Create request for operation 'enableRule' * + * @param string $app The name of the app. (required) * @param string $id The ID of the rule to enable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['enableRule'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function enableRuleRequest($id, string $contentType = self::contentTypes['enableRule'][0]) + public function enableRuleRequest($app, $id, string $contentType = self::contentTypes['enableRule'][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 ' @@ -3011,6 +3039,7 @@ public function getEventTypesRequest(string $contentType = self::contentTypes['g * * Get rule events. * + * @param string $app The name of the app. (required) * @param string $rule_id The optional rule id to filter to events. (optional) * @param int $skip The number of events to skip. (optional, default to 0) * @param int $take The number of events to take. (optional, default to 20) @@ -3020,9 +3049,9 @@ public function getEventTypesRequest(string $contentType = self::contentTypes['g * @throws \InvalidArgumentException * @return \Squidex\Client\Model\RuleEventsDto|\Squidex\Client\Model\ErrorDto */ - public function getEvents($rule_id = null, $skip = 0, $take = 20, string $contentType = self::contentTypes['getEvents'][0]) + public function getEvents($app, $rule_id = null, $skip = 0, $take = 20, string $contentType = self::contentTypes['getEvents'][0]) { - list($response) = $this->getEventsWithHttpInfo($rule_id, $skip, $take, $contentType); + list($response) = $this->getEventsWithHttpInfo($app, $rule_id, $skip, $take, $contentType); return $response; } @@ -3031,6 +3060,7 @@ public function getEvents($rule_id = null, $skip = 0, $take = 20, string $conten * * Get rule events. * + * @param string $app The name of the app. (required) * @param string $rule_id The optional rule id to filter to events. (optional) * @param int $skip The number of events to skip. (optional, default to 0) * @param int $take The number of events to take. (optional, default to 20) @@ -3040,9 +3070,9 @@ public function getEvents($rule_id = null, $skip = 0, $take = 20, string $conten * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\RuleEventsDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getEventsWithHttpInfo($rule_id = null, $skip = 0, $take = 20, string $contentType = self::contentTypes['getEvents'][0]) + public function getEventsWithHttpInfo($app, $rule_id = null, $skip = 0, $take = 20, string $contentType = self::contentTypes['getEvents'][0]) { - $request = $this->getEventsRequest($rule_id, $skip, $take, $contentType); + $request = $this->getEventsRequest($app, $rule_id, $skip, $take, $contentType); try { $options = $this->createHttpClientOption(); @@ -3156,6 +3186,7 @@ public function getEventsWithHttpInfo($rule_id = null, $skip = 0, $take = 20, st * * Get rule events. * + * @param string $app The name of the app. (required) * @param string $rule_id The optional rule id to filter to events. (optional) * @param int $skip The number of events to skip. (optional, default to 0) * @param int $take The number of events to take. (optional, default to 20) @@ -3164,9 +3195,9 @@ public function getEventsWithHttpInfo($rule_id = null, $skip = 0, $take = 20, st * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getEventsAsync($rule_id = null, $skip = 0, $take = 20, string $contentType = self::contentTypes['getEvents'][0]) + public function getEventsAsync($app, $rule_id = null, $skip = 0, $take = 20, string $contentType = self::contentTypes['getEvents'][0]) { - return $this->getEventsAsyncWithHttpInfo($rule_id, $skip, $take, $contentType) + return $this->getEventsAsyncWithHttpInfo($app, $rule_id, $skip, $take, $contentType) ->then( function ($response) { return $response[0]; @@ -3179,6 +3210,7 @@ function ($response) { * * Get rule events. * + * @param string $app The name of the app. (required) * @param string $rule_id The optional rule id to filter to events. (optional) * @param int $skip The number of events to skip. (optional, default to 0) * @param int $take The number of events to take. (optional, default to 20) @@ -3187,10 +3219,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getEventsAsyncWithHttpInfo($rule_id = null, $skip = 0, $take = 20, string $contentType = self::contentTypes['getEvents'][0]) + public function getEventsAsyncWithHttpInfo($app, $rule_id = null, $skip = 0, $take = 20, string $contentType = self::contentTypes['getEvents'][0]) { $returnType = '\Squidex\Client\Model\RuleEventsDto'; - $request = $this->getEventsRequest($rule_id, $skip, $take, $contentType); + $request = $this->getEventsRequest($app, $rule_id, $skip, $take, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -3231,6 +3263,7 @@ function ($exception) { /** * Create request for operation 'getEvents' * + * @param string $app The name of the app. (required) * @param string $rule_id The optional rule id to filter to events. (optional) * @param int $skip The number of events to skip. (optional, default to 0) * @param int $take The number of events to take. (optional, default to 20) @@ -3239,11 +3272,10 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getEventsRequest($rule_id = null, $skip = 0, $take = 20, string $contentType = self::contentTypes['getEvents'][0]) + public function getEventsRequest($app, $rule_id = null, $skip = 0, $take = 20, string $contentType = self::contentTypes['getEvents'][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 ' @@ -3358,15 +3390,16 @@ public function getEventsRequest($rule_id = null, $skip = 0, $take = 20, string * * Get rules. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getRules'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \Squidex\Client\Model\RulesDto|\Squidex\Client\Model\ErrorDto */ - public function getRules(string $contentType = self::contentTypes['getRules'][0]) + public function getRules($app, string $contentType = self::contentTypes['getRules'][0]) { - list($response) = $this->getRulesWithHttpInfo($contentType); + list($response) = $this->getRulesWithHttpInfo($app, $contentType); return $response; } @@ -3375,15 +3408,16 @@ public function getRules(string $contentType = self::contentTypes['getRules'][0] * * Get rules. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getRules'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\RulesDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getRulesWithHttpInfo(string $contentType = self::contentTypes['getRules'][0]) + public function getRulesWithHttpInfo($app, string $contentType = self::contentTypes['getRules'][0]) { - $request = $this->getRulesRequest($contentType); + $request = $this->getRulesRequest($app, $contentType); try { $options = $this->createHttpClientOption(); @@ -3497,14 +3531,15 @@ public function getRulesWithHttpInfo(string $contentType = self::contentTypes['g * * Get rules. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getRules'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getRulesAsync(string $contentType = self::contentTypes['getRules'][0]) + public function getRulesAsync($app, string $contentType = self::contentTypes['getRules'][0]) { - return $this->getRulesAsyncWithHttpInfo($contentType) + return $this->getRulesAsyncWithHttpInfo($app, $contentType) ->then( function ($response) { return $response[0]; @@ -3517,15 +3552,16 @@ function ($response) { * * Get rules. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getRules'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getRulesAsyncWithHttpInfo(string $contentType = self::contentTypes['getRules'][0]) + public function getRulesAsyncWithHttpInfo($app, string $contentType = self::contentTypes['getRules'][0]) { $returnType = '\Squidex\Client\Model\RulesDto'; - $request = $this->getRulesRequest($contentType); + $request = $this->getRulesRequest($app, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -3566,16 +3602,16 @@ function ($exception) { /** * Create request for operation 'getRules' * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getRules'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getRulesRequest(string $contentType = self::contentTypes['getRules'][0]) + public function getRulesRequest($app, string $contentType = self::contentTypes['getRules'][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 ' @@ -3660,6 +3696,7 @@ public function getRulesRequest(string $contentType = self::contentTypes['getRul * * Create a new rule. * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\CreateRuleDto $create_rule_dto The rule object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postRule'] to see the possible values for this operation * @@ -3667,9 +3704,9 @@ public function getRulesRequest(string $contentType = self::contentTypes['getRul * @throws \InvalidArgumentException * @return \Squidex\Client\Model\RuleDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function postRule($create_rule_dto, string $contentType = self::contentTypes['postRule'][0]) + public function postRule($app, $create_rule_dto, string $contentType = self::contentTypes['postRule'][0]) { - list($response) = $this->postRuleWithHttpInfo($create_rule_dto, $contentType); + list($response) = $this->postRuleWithHttpInfo($app, $create_rule_dto, $contentType); return $response; } @@ -3678,6 +3715,7 @@ public function postRule($create_rule_dto, string $contentType = self::contentTy * * Create a new rule. * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\CreateRuleDto $create_rule_dto The rule object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postRule'] to see the possible values for this operation * @@ -3685,9 +3723,9 @@ public function postRule($create_rule_dto, string $contentType = self::contentTy * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\RuleDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function postRuleWithHttpInfo($create_rule_dto, string $contentType = self::contentTypes['postRule'][0]) + public function postRuleWithHttpInfo($app, $create_rule_dto, string $contentType = self::contentTypes['postRule'][0]) { - $request = $this->postRuleRequest($create_rule_dto, $contentType); + $request = $this->postRuleRequest($app, $create_rule_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -3824,15 +3862,16 @@ public function postRuleWithHttpInfo($create_rule_dto, string $contentType = sel * * Create a new rule. * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\CreateRuleDto $create_rule_dto The rule object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postRule'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postRuleAsync($create_rule_dto, string $contentType = self::contentTypes['postRule'][0]) + public function postRuleAsync($app, $create_rule_dto, string $contentType = self::contentTypes['postRule'][0]) { - return $this->postRuleAsyncWithHttpInfo($create_rule_dto, $contentType) + return $this->postRuleAsyncWithHttpInfo($app, $create_rule_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -3845,16 +3884,17 @@ function ($response) { * * Create a new rule. * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\CreateRuleDto $create_rule_dto The rule object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postRule'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postRuleAsyncWithHttpInfo($create_rule_dto, string $contentType = self::contentTypes['postRule'][0]) + public function postRuleAsyncWithHttpInfo($app, $create_rule_dto, string $contentType = self::contentTypes['postRule'][0]) { $returnType = '\Squidex\Client\Model\RuleDto'; - $request = $this->postRuleRequest($create_rule_dto, $contentType); + $request = $this->postRuleRequest($app, $create_rule_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -3895,17 +3935,17 @@ function ($exception) { /** * Create request for operation 'postRule' * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\CreateRuleDto $create_rule_dto The rule object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postRule'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function postRuleRequest($create_rule_dto, string $contentType = self::contentTypes['postRule'][0]) + public function postRuleRequest($app, $create_rule_dto, string $contentType = self::contentTypes['postRule'][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 ' @@ -4004,6 +4044,7 @@ public function postRuleRequest($create_rule_dto, string $contentType = self::co * * Retry the event immediately. * + * @param string $app The name of the app. (required) * @param string $id The event to enqueue. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putEvent'] to see the possible values for this operation * @@ -4011,9 +4052,9 @@ public function postRuleRequest($create_rule_dto, string $contentType = self::co * @throws \InvalidArgumentException * @return void */ - public function putEvent($id, string $contentType = self::contentTypes['putEvent'][0]) + public function putEvent($app, $id, string $contentType = self::contentTypes['putEvent'][0]) { - $this->putEventWithHttpInfo($id, $contentType); + $this->putEventWithHttpInfo($app, $id, $contentType); } /** @@ -4021,6 +4062,7 @@ public function putEvent($id, string $contentType = self::contentTypes['putEvent * * Retry the event immediately. * + * @param string $app The name of the app. (required) * @param string $id The event to enqueue. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putEvent'] to see the possible values for this operation * @@ -4028,9 +4070,9 @@ public function putEvent($id, string $contentType = self::contentTypes['putEvent * @throws \InvalidArgumentException * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function putEventWithHttpInfo($id, string $contentType = self::contentTypes['putEvent'][0]) + public function putEventWithHttpInfo($app, $id, string $contentType = self::contentTypes['putEvent'][0]) { - $request = $this->putEventRequest($id, $contentType); + $request = $this->putEventRequest($app, $id, $contentType); try { $options = $this->createHttpClientOption(); @@ -4097,15 +4139,16 @@ public function putEventWithHttpInfo($id, string $contentType = self::contentTyp * * Retry the event immediately. * + * @param string $app The name of the app. (required) * @param string $id The event to enqueue. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putEvent'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putEventAsync($id, string $contentType = self::contentTypes['putEvent'][0]) + public function putEventAsync($app, $id, string $contentType = self::contentTypes['putEvent'][0]) { - return $this->putEventAsyncWithHttpInfo($id, $contentType) + return $this->putEventAsyncWithHttpInfo($app, $id, $contentType) ->then( function ($response) { return $response[0]; @@ -4118,16 +4161,17 @@ function ($response) { * * Retry the event immediately. * + * @param string $app The name of the app. (required) * @param string $id The event to enqueue. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putEvent'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putEventAsyncWithHttpInfo($id, string $contentType = self::contentTypes['putEvent'][0]) + public function putEventAsyncWithHttpInfo($app, $id, string $contentType = self::contentTypes['putEvent'][0]) { $returnType = ''; - $request = $this->putEventRequest($id, $contentType); + $request = $this->putEventRequest($app, $id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -4155,17 +4199,17 @@ function ($exception) { /** * Create request for operation 'putEvent' * + * @param string $app The name of the app. (required) * @param string $id The event to enqueue. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putEvent'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putEventRequest($id, string $contentType = self::contentTypes['putEvent'][0]) + public function putEventRequest($app, $id, string $contentType = self::contentTypes['putEvent'][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 ' @@ -4265,6 +4309,7 @@ public function putEventRequest($id, string $contentType = self::contentTypes['p * * Update a rule. * + * @param string $app The name of the app. (required) * @param string $id The ID of the rule to update. (required) * @param \Squidex\Client\Model\UpdateRuleDto $update_rule_dto The rule object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putRule'] to see the possible values for this operation @@ -4273,9 +4318,9 @@ public function putEventRequest($id, string $contentType = self::contentTypes['p * @throws \InvalidArgumentException * @return \Squidex\Client\Model\RuleDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putRule($id, $update_rule_dto, string $contentType = self::contentTypes['putRule'][0]) + public function putRule($app, $id, $update_rule_dto, string $contentType = self::contentTypes['putRule'][0]) { - list($response) = $this->putRuleWithHttpInfo($id, $update_rule_dto, $contentType); + list($response) = $this->putRuleWithHttpInfo($app, $id, $update_rule_dto, $contentType); return $response; } @@ -4284,6 +4329,7 @@ public function putRule($id, $update_rule_dto, string $contentType = self::conte * * Update a rule. * + * @param string $app The name of the app. (required) * @param string $id The ID of the rule to update. (required) * @param \Squidex\Client\Model\UpdateRuleDto $update_rule_dto The rule object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putRule'] to see the possible values for this operation @@ -4292,9 +4338,9 @@ public function putRule($id, $update_rule_dto, string $contentType = self::conte * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\RuleDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putRuleWithHttpInfo($id, $update_rule_dto, string $contentType = self::contentTypes['putRule'][0]) + public function putRuleWithHttpInfo($app, $id, $update_rule_dto, string $contentType = self::contentTypes['putRule'][0]) { - $request = $this->putRuleRequest($id, $update_rule_dto, $contentType); + $request = $this->putRuleRequest($app, $id, $update_rule_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -4431,6 +4477,7 @@ public function putRuleWithHttpInfo($id, $update_rule_dto, string $contentType = * * Update a rule. * + * @param string $app The name of the app. (required) * @param string $id The ID of the rule to update. (required) * @param \Squidex\Client\Model\UpdateRuleDto $update_rule_dto The rule object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putRule'] to see the possible values for this operation @@ -4438,9 +4485,9 @@ public function putRuleWithHttpInfo($id, $update_rule_dto, string $contentType = * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putRuleAsync($id, $update_rule_dto, string $contentType = self::contentTypes['putRule'][0]) + public function putRuleAsync($app, $id, $update_rule_dto, string $contentType = self::contentTypes['putRule'][0]) { - return $this->putRuleAsyncWithHttpInfo($id, $update_rule_dto, $contentType) + return $this->putRuleAsyncWithHttpInfo($app, $id, $update_rule_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -4453,6 +4500,7 @@ function ($response) { * * Update a rule. * + * @param string $app The name of the app. (required) * @param string $id The ID of the rule to update. (required) * @param \Squidex\Client\Model\UpdateRuleDto $update_rule_dto The rule object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putRule'] to see the possible values for this operation @@ -4460,10 +4508,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putRuleAsyncWithHttpInfo($id, $update_rule_dto, string $contentType = self::contentTypes['putRule'][0]) + public function putRuleAsyncWithHttpInfo($app, $id, $update_rule_dto, string $contentType = self::contentTypes['putRule'][0]) { $returnType = '\Squidex\Client\Model\RuleDto'; - $request = $this->putRuleRequest($id, $update_rule_dto, $contentType); + $request = $this->putRuleRequest($app, $id, $update_rule_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -4504,6 +4552,7 @@ function ($exception) { /** * Create request for operation 'putRule' * + * @param string $app The name of the app. (required) * @param string $id The ID of the rule to update. (required) * @param \Squidex\Client\Model\UpdateRuleDto $update_rule_dto The rule object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putRule'] to see the possible values for this operation @@ -4511,11 +4560,10 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putRuleRequest($id, $update_rule_dto, string $contentType = self::contentTypes['putRule'][0]) + public function putRuleRequest($app, $id, $update_rule_dto, string $contentType = self::contentTypes['putRule'][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 ' @@ -4629,6 +4677,7 @@ public function putRuleRequest($id, $update_rule_dto, string $contentType = self * * Run a rule. * + * @param string $app The name of the app. (required) * @param string $id The ID of the rule to run. (required) * @param bool $from_snapshots Runs the rule from snapeshots if possible. (optional, default to false) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putRuleRun'] to see the possible values for this operation @@ -4637,9 +4686,9 @@ public function putRuleRequest($id, $update_rule_dto, string $contentType = self * @throws \InvalidArgumentException * @return void */ - public function putRuleRun($id, $from_snapshots = false, string $contentType = self::contentTypes['putRuleRun'][0]) + public function putRuleRun($app, $id, $from_snapshots = false, string $contentType = self::contentTypes['putRuleRun'][0]) { - $this->putRuleRunWithHttpInfo($id, $from_snapshots, $contentType); + $this->putRuleRunWithHttpInfo($app, $id, $from_snapshots, $contentType); } /** @@ -4647,6 +4696,7 @@ public function putRuleRun($id, $from_snapshots = false, string $contentType = s * * Run a rule. * + * @param string $app The name of the app. (required) * @param string $id The ID of the rule to run. (required) * @param bool $from_snapshots Runs the rule from snapeshots if possible. (optional, default to false) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putRuleRun'] to see the possible values for this operation @@ -4655,9 +4705,9 @@ public function putRuleRun($id, $from_snapshots = false, string $contentType = s * @throws \InvalidArgumentException * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function putRuleRunWithHttpInfo($id, $from_snapshots = false, string $contentType = self::contentTypes['putRuleRun'][0]) + public function putRuleRunWithHttpInfo($app, $id, $from_snapshots = false, string $contentType = self::contentTypes['putRuleRun'][0]) { - $request = $this->putRuleRunRequest($id, $from_snapshots, $contentType); + $request = $this->putRuleRunRequest($app, $id, $from_snapshots, $contentType); try { $options = $this->createHttpClientOption(); @@ -4724,6 +4774,7 @@ public function putRuleRunWithHttpInfo($id, $from_snapshots = false, string $con * * Run a rule. * + * @param string $app The name of the app. (required) * @param string $id The ID of the rule to run. (required) * @param bool $from_snapshots Runs the rule from snapeshots if possible. (optional, default to false) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putRuleRun'] to see the possible values for this operation @@ -4731,9 +4782,9 @@ public function putRuleRunWithHttpInfo($id, $from_snapshots = false, string $con * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putRuleRunAsync($id, $from_snapshots = false, string $contentType = self::contentTypes['putRuleRun'][0]) + public function putRuleRunAsync($app, $id, $from_snapshots = false, string $contentType = self::contentTypes['putRuleRun'][0]) { - return $this->putRuleRunAsyncWithHttpInfo($id, $from_snapshots, $contentType) + return $this->putRuleRunAsyncWithHttpInfo($app, $id, $from_snapshots, $contentType) ->then( function ($response) { return $response[0]; @@ -4746,6 +4797,7 @@ function ($response) { * * Run a rule. * + * @param string $app The name of the app. (required) * @param string $id The ID of the rule to run. (required) * @param bool $from_snapshots Runs the rule from snapeshots if possible. (optional, default to false) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putRuleRun'] to see the possible values for this operation @@ -4753,10 +4805,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putRuleRunAsyncWithHttpInfo($id, $from_snapshots = false, string $contentType = self::contentTypes['putRuleRun'][0]) + public function putRuleRunAsyncWithHttpInfo($app, $id, $from_snapshots = false, string $contentType = self::contentTypes['putRuleRun'][0]) { $returnType = ''; - $request = $this->putRuleRunRequest($id, $from_snapshots, $contentType); + $request = $this->putRuleRunRequest($app, $id, $from_snapshots, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -4784,6 +4836,7 @@ function ($exception) { /** * Create request for operation 'putRuleRun' * + * @param string $app The name of the app. (required) * @param string $id The ID of the rule to run. (required) * @param bool $from_snapshots Runs the rule from snapeshots if possible. (optional, default to false) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putRuleRun'] to see the possible values for this operation @@ -4791,11 +4844,10 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putRuleRunRequest($id, $from_snapshots = false, string $contentType = self::contentTypes['putRuleRun'][0]) + public function putRuleRunRequest($app, $id, $from_snapshots = false, string $contentType = self::contentTypes['putRuleRun'][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 ' @@ -4905,6 +4957,7 @@ public function putRuleRunRequest($id, $from_snapshots = false, string $contentT * * Simulate a rule. * + * @param string $app The name of the app. (required) * @param string $id The ID of the rule to simulate. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['simulateGET'] to see the possible values for this operation * @@ -4912,9 +4965,9 @@ public function putRuleRunRequest($id, $from_snapshots = false, string $contentT * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SimulatedRuleEventsDto|\Squidex\Client\Model\ErrorDto */ - public function simulateGET($id, string $contentType = self::contentTypes['simulateGET'][0]) + public function simulateGET($app, $id, string $contentType = self::contentTypes['simulateGET'][0]) { - list($response) = $this->simulateGETWithHttpInfo($id, $contentType); + list($response) = $this->simulateGETWithHttpInfo($app, $id, $contentType); return $response; } @@ -4923,6 +4976,7 @@ public function simulateGET($id, string $contentType = self::contentTypes['simul * * Simulate a rule. * + * @param string $app The name of the app. (required) * @param string $id The ID of the rule to simulate. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['simulateGET'] to see the possible values for this operation * @@ -4930,9 +4984,9 @@ public function simulateGET($id, string $contentType = self::contentTypes['simul * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SimulatedRuleEventsDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function simulateGETWithHttpInfo($id, string $contentType = self::contentTypes['simulateGET'][0]) + public function simulateGETWithHttpInfo($app, $id, string $contentType = self::contentTypes['simulateGET'][0]) { - $request = $this->simulateGETRequest($id, $contentType); + $request = $this->simulateGETRequest($app, $id, $contentType); try { $options = $this->createHttpClientOption(); @@ -5046,15 +5100,16 @@ public function simulateGETWithHttpInfo($id, string $contentType = self::content * * Simulate a rule. * + * @param string $app The name of the app. (required) * @param string $id The ID of the rule to simulate. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['simulateGET'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function simulateGETAsync($id, string $contentType = self::contentTypes['simulateGET'][0]) + public function simulateGETAsync($app, $id, string $contentType = self::contentTypes['simulateGET'][0]) { - return $this->simulateGETAsyncWithHttpInfo($id, $contentType) + return $this->simulateGETAsyncWithHttpInfo($app, $id, $contentType) ->then( function ($response) { return $response[0]; @@ -5067,16 +5122,17 @@ function ($response) { * * Simulate a rule. * + * @param string $app The name of the app. (required) * @param string $id The ID of the rule to simulate. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['simulateGET'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function simulateGETAsyncWithHttpInfo($id, string $contentType = self::contentTypes['simulateGET'][0]) + public function simulateGETAsyncWithHttpInfo($app, $id, string $contentType = self::contentTypes['simulateGET'][0]) { $returnType = '\Squidex\Client\Model\SimulatedRuleEventsDto'; - $request = $this->simulateGETRequest($id, $contentType); + $request = $this->simulateGETRequest($app, $id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -5117,17 +5173,17 @@ function ($exception) { /** * Create request for operation 'simulateGET' * + * @param string $app The name of the app. (required) * @param string $id The ID of the rule to simulate. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['simulateGET'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function simulateGETRequest($id, string $contentType = self::contentTypes['simulateGET'][0]) + public function simulateGETRequest($app, $id, string $contentType = self::contentTypes['simulateGET'][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 ' @@ -5227,6 +5283,7 @@ public function simulateGETRequest($id, string $contentType = self::contentTypes * * Simulate a rule. * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\CreateRuleDto $create_rule_dto The rule to simulate. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['simulatePOST'] to see the possible values for this operation * @@ -5234,9 +5291,9 @@ public function simulateGETRequest($id, string $contentType = self::contentTypes * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SimulatedRuleEventsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function simulatePOST($create_rule_dto, string $contentType = self::contentTypes['simulatePOST'][0]) + public function simulatePOST($app, $create_rule_dto, string $contentType = self::contentTypes['simulatePOST'][0]) { - list($response) = $this->simulatePOSTWithHttpInfo($create_rule_dto, $contentType); + list($response) = $this->simulatePOSTWithHttpInfo($app, $create_rule_dto, $contentType); return $response; } @@ -5245,6 +5302,7 @@ public function simulatePOST($create_rule_dto, string $contentType = self::conte * * Simulate a rule. * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\CreateRuleDto $create_rule_dto The rule to simulate. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['simulatePOST'] to see the possible values for this operation * @@ -5252,9 +5310,9 @@ public function simulatePOST($create_rule_dto, string $contentType = self::conte * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SimulatedRuleEventsDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function simulatePOSTWithHttpInfo($create_rule_dto, string $contentType = self::contentTypes['simulatePOST'][0]) + public function simulatePOSTWithHttpInfo($app, $create_rule_dto, string $contentType = self::contentTypes['simulatePOST'][0]) { - $request = $this->simulatePOSTRequest($create_rule_dto, $contentType); + $request = $this->simulatePOSTRequest($app, $create_rule_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -5391,15 +5449,16 @@ public function simulatePOSTWithHttpInfo($create_rule_dto, string $contentType = * * Simulate a rule. * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\CreateRuleDto $create_rule_dto The rule to simulate. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['simulatePOST'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function simulatePOSTAsync($create_rule_dto, string $contentType = self::contentTypes['simulatePOST'][0]) + public function simulatePOSTAsync($app, $create_rule_dto, string $contentType = self::contentTypes['simulatePOST'][0]) { - return $this->simulatePOSTAsyncWithHttpInfo($create_rule_dto, $contentType) + return $this->simulatePOSTAsyncWithHttpInfo($app, $create_rule_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -5412,16 +5471,17 @@ function ($response) { * * Simulate a rule. * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\CreateRuleDto $create_rule_dto The rule to simulate. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['simulatePOST'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function simulatePOSTAsyncWithHttpInfo($create_rule_dto, string $contentType = self::contentTypes['simulatePOST'][0]) + public function simulatePOSTAsyncWithHttpInfo($app, $create_rule_dto, string $contentType = self::contentTypes['simulatePOST'][0]) { $returnType = '\Squidex\Client\Model\SimulatedRuleEventsDto'; - $request = $this->simulatePOSTRequest($create_rule_dto, $contentType); + $request = $this->simulatePOSTRequest($app, $create_rule_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -5462,17 +5522,17 @@ function ($exception) { /** * Create request for operation 'simulatePOST' * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\CreateRuleDto $create_rule_dto The rule to simulate. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['simulatePOST'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function simulatePOSTRequest($create_rule_dto, string $contentType = self::contentTypes['simulatePOST'][0]) + public function simulatePOSTRequest($app, $create_rule_dto, string $contentType = self::contentTypes['simulatePOST'][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 ' @@ -5571,6 +5631,7 @@ public function simulatePOSTRequest($create_rule_dto, string $contentType = self * * Trigger a rule. * + * @param string $app The name of the app. (required) * @param string $id The ID of the rule to disable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['triggerRule'] to see the possible values for this operation * @@ -5578,9 +5639,9 @@ public function simulatePOSTRequest($create_rule_dto, string $contentType = self * @throws \InvalidArgumentException * @return void */ - public function triggerRule($id, string $contentType = self::contentTypes['triggerRule'][0]) + public function triggerRule($app, $id, string $contentType = self::contentTypes['triggerRule'][0]) { - $this->triggerRuleWithHttpInfo($id, $contentType); + $this->triggerRuleWithHttpInfo($app, $id, $contentType); } /** @@ -5588,6 +5649,7 @@ public function triggerRule($id, string $contentType = self::contentTypes['trigg * * Trigger a rule. * + * @param string $app The name of the app. (required) * @param string $id The ID of the rule to disable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['triggerRule'] to see the possible values for this operation * @@ -5595,9 +5657,9 @@ public function triggerRule($id, string $contentType = self::contentTypes['trigg * @throws \InvalidArgumentException * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function triggerRuleWithHttpInfo($id, string $contentType = self::contentTypes['triggerRule'][0]) + public function triggerRuleWithHttpInfo($app, $id, string $contentType = self::contentTypes['triggerRule'][0]) { - $request = $this->triggerRuleRequest($id, $contentType); + $request = $this->triggerRuleRequest($app, $id, $contentType); try { $options = $this->createHttpClientOption(); @@ -5664,15 +5726,16 @@ public function triggerRuleWithHttpInfo($id, string $contentType = self::content * * Trigger a rule. * + * @param string $app The name of the app. (required) * @param string $id The ID of the rule to disable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['triggerRule'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function triggerRuleAsync($id, string $contentType = self::contentTypes['triggerRule'][0]) + public function triggerRuleAsync($app, $id, string $contentType = self::contentTypes['triggerRule'][0]) { - return $this->triggerRuleAsyncWithHttpInfo($id, $contentType) + return $this->triggerRuleAsyncWithHttpInfo($app, $id, $contentType) ->then( function ($response) { return $response[0]; @@ -5685,16 +5748,17 @@ function ($response) { * * Trigger a rule. * + * @param string $app The name of the app. (required) * @param string $id The ID of the rule to disable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['triggerRule'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function triggerRuleAsyncWithHttpInfo($id, string $contentType = self::contentTypes['triggerRule'][0]) + public function triggerRuleAsyncWithHttpInfo($app, $id, string $contentType = self::contentTypes['triggerRule'][0]) { $returnType = ''; - $request = $this->triggerRuleRequest($id, $contentType); + $request = $this->triggerRuleRequest($app, $id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -5722,17 +5786,17 @@ function ($exception) { /** * Create request for operation 'triggerRule' * + * @param string $app The name of the app. (required) * @param string $id The ID of the rule to disable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['triggerRule'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function triggerRuleRequest($id, string $contentType = self::contentTypes['triggerRule'][0]) + public function triggerRuleRequest($app, $id, string $contentType = self::contentTypes['triggerRule'][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 ' diff --git a/lib/Api/SchemasApi.php b/lib/Api/SchemasApi.php index 397bfae..ea81fa3 100644 --- a/lib/Api/SchemasApi.php +++ b/lib/Api/SchemasApi.php @@ -214,6 +214,7 @@ public function getConfig() * * Delete a schema field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to disable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteField'] to see the possible values for this operation @@ -222,9 +223,9 @@ public function getConfig() * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function deleteField($schema, $id, string $contentType = self::contentTypes['deleteField'][0]) + public function deleteField($app, $schema, $id, string $contentType = self::contentTypes['deleteField'][0]) { - list($response) = $this->deleteFieldWithHttpInfo($schema, $id, $contentType); + list($response) = $this->deleteFieldWithHttpInfo($app, $schema, $id, $contentType); return $response; } @@ -233,6 +234,7 @@ public function deleteField($schema, $id, string $contentType = self::contentTyp * * Delete a schema field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to disable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteField'] to see the possible values for this operation @@ -241,9 +243,9 @@ public function deleteField($schema, $id, string $contentType = self::contentTyp * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function deleteFieldWithHttpInfo($schema, $id, string $contentType = self::contentTypes['deleteField'][0]) + public function deleteFieldWithHttpInfo($app, $schema, $id, string $contentType = self::contentTypes['deleteField'][0]) { - $request = $this->deleteFieldRequest($schema, $id, $contentType); + $request = $this->deleteFieldRequest($app, $schema, $id, $contentType); try { $options = $this->createHttpClientOption(); @@ -380,6 +382,7 @@ public function deleteFieldWithHttpInfo($schema, $id, string $contentType = self * * Delete a schema field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to disable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteField'] to see the possible values for this operation @@ -387,9 +390,9 @@ public function deleteFieldWithHttpInfo($schema, $id, string $contentType = self * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteFieldAsync($schema, $id, string $contentType = self::contentTypes['deleteField'][0]) + public function deleteFieldAsync($app, $schema, $id, string $contentType = self::contentTypes['deleteField'][0]) { - return $this->deleteFieldAsyncWithHttpInfo($schema, $id, $contentType) + return $this->deleteFieldAsyncWithHttpInfo($app, $schema, $id, $contentType) ->then( function ($response) { return $response[0]; @@ -402,6 +405,7 @@ function ($response) { * * Delete a schema field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to disable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteField'] to see the possible values for this operation @@ -409,10 +413,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteFieldAsyncWithHttpInfo($schema, $id, string $contentType = self::contentTypes['deleteField'][0]) + public function deleteFieldAsyncWithHttpInfo($app, $schema, $id, string $contentType = self::contentTypes['deleteField'][0]) { $returnType = '\Squidex\Client\Model\SchemaDto'; - $request = $this->deleteFieldRequest($schema, $id, $contentType); + $request = $this->deleteFieldRequest($app, $schema, $id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -453,6 +457,7 @@ function ($exception) { /** * Create request for operation 'deleteField' * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to disable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteField'] to see the possible values for this operation @@ -460,11 +465,10 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function deleteFieldRequest($schema, $id, string $contentType = self::contentTypes['deleteField'][0]) + public function deleteFieldRequest($app, $schema, $id, string $contentType = self::contentTypes['deleteField'][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 ' @@ -579,6 +583,7 @@ public function deleteFieldRequest($schema, $id, string $contentType = self::con * * Delete a nested field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to disable. (required) @@ -588,9 +593,9 @@ public function deleteFieldRequest($schema, $id, string $contentType = self::con * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function deleteNestedField($schema, $parent_id, $id, string $contentType = self::contentTypes['deleteNestedField'][0]) + public function deleteNestedField($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['deleteNestedField'][0]) { - list($response) = $this->deleteNestedFieldWithHttpInfo($schema, $parent_id, $id, $contentType); + list($response) = $this->deleteNestedFieldWithHttpInfo($app, $schema, $parent_id, $id, $contentType); return $response; } @@ -599,6 +604,7 @@ public function deleteNestedField($schema, $parent_id, $id, string $contentType * * Delete a nested field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to disable. (required) @@ -608,9 +614,9 @@ public function deleteNestedField($schema, $parent_id, $id, string $contentType * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function deleteNestedFieldWithHttpInfo($schema, $parent_id, $id, string $contentType = self::contentTypes['deleteNestedField'][0]) + public function deleteNestedFieldWithHttpInfo($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['deleteNestedField'][0]) { - $request = $this->deleteNestedFieldRequest($schema, $parent_id, $id, $contentType); + $request = $this->deleteNestedFieldRequest($app, $schema, $parent_id, $id, $contentType); try { $options = $this->createHttpClientOption(); @@ -747,6 +753,7 @@ public function deleteNestedFieldWithHttpInfo($schema, $parent_id, $id, string $ * * Delete a nested field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to disable. (required) @@ -755,9 +762,9 @@ public function deleteNestedFieldWithHttpInfo($schema, $parent_id, $id, string $ * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteNestedFieldAsync($schema, $parent_id, $id, string $contentType = self::contentTypes['deleteNestedField'][0]) + public function deleteNestedFieldAsync($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['deleteNestedField'][0]) { - return $this->deleteNestedFieldAsyncWithHttpInfo($schema, $parent_id, $id, $contentType) + return $this->deleteNestedFieldAsyncWithHttpInfo($app, $schema, $parent_id, $id, $contentType) ->then( function ($response) { return $response[0]; @@ -770,6 +777,7 @@ function ($response) { * * Delete a nested field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to disable. (required) @@ -778,10 +786,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteNestedFieldAsyncWithHttpInfo($schema, $parent_id, $id, string $contentType = self::contentTypes['deleteNestedField'][0]) + public function deleteNestedFieldAsyncWithHttpInfo($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['deleteNestedField'][0]) { $returnType = '\Squidex\Client\Model\SchemaDto'; - $request = $this->deleteNestedFieldRequest($schema, $parent_id, $id, $contentType); + $request = $this->deleteNestedFieldRequest($app, $schema, $parent_id, $id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -822,6 +830,7 @@ function ($exception) { /** * Create request for operation 'deleteNestedField' * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to disable. (required) @@ -830,11 +839,10 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function deleteNestedFieldRequest($schema, $parent_id, $id, string $contentType = self::contentTypes['deleteNestedField'][0]) + public function deleteNestedFieldRequest($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['deleteNestedField'][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 ' @@ -964,6 +972,7 @@ public function deleteNestedFieldRequest($schema, $parent_id, $id, string $conte * * Disable a schema field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to disable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['disableField'] to see the possible values for this operation @@ -972,9 +981,9 @@ public function deleteNestedFieldRequest($schema, $parent_id, $id, string $conte * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function disableField($schema, $id, string $contentType = self::contentTypes['disableField'][0]) + public function disableField($app, $schema, $id, string $contentType = self::contentTypes['disableField'][0]) { - list($response) = $this->disableFieldWithHttpInfo($schema, $id, $contentType); + list($response) = $this->disableFieldWithHttpInfo($app, $schema, $id, $contentType); return $response; } @@ -983,6 +992,7 @@ public function disableField($schema, $id, string $contentType = self::contentTy * * Disable a schema field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to disable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['disableField'] to see the possible values for this operation @@ -991,9 +1001,9 @@ public function disableField($schema, $id, string $contentType = self::contentTy * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function disableFieldWithHttpInfo($schema, $id, string $contentType = self::contentTypes['disableField'][0]) + public function disableFieldWithHttpInfo($app, $schema, $id, string $contentType = self::contentTypes['disableField'][0]) { - $request = $this->disableFieldRequest($schema, $id, $contentType); + $request = $this->disableFieldRequest($app, $schema, $id, $contentType); try { $options = $this->createHttpClientOption(); @@ -1130,6 +1140,7 @@ public function disableFieldWithHttpInfo($schema, $id, string $contentType = sel * * Disable a schema field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to disable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['disableField'] to see the possible values for this operation @@ -1137,9 +1148,9 @@ public function disableFieldWithHttpInfo($schema, $id, string $contentType = sel * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function disableFieldAsync($schema, $id, string $contentType = self::contentTypes['disableField'][0]) + public function disableFieldAsync($app, $schema, $id, string $contentType = self::contentTypes['disableField'][0]) { - return $this->disableFieldAsyncWithHttpInfo($schema, $id, $contentType) + return $this->disableFieldAsyncWithHttpInfo($app, $schema, $id, $contentType) ->then( function ($response) { return $response[0]; @@ -1152,6 +1163,7 @@ function ($response) { * * Disable a schema field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to disable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['disableField'] to see the possible values for this operation @@ -1159,10 +1171,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function disableFieldAsyncWithHttpInfo($schema, $id, string $contentType = self::contentTypes['disableField'][0]) + public function disableFieldAsyncWithHttpInfo($app, $schema, $id, string $contentType = self::contentTypes['disableField'][0]) { $returnType = '\Squidex\Client\Model\SchemaDto'; - $request = $this->disableFieldRequest($schema, $id, $contentType); + $request = $this->disableFieldRequest($app, $schema, $id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1203,6 +1215,7 @@ function ($exception) { /** * Create request for operation 'disableField' * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to disable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['disableField'] to see the possible values for this operation @@ -1210,11 +1223,10 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function disableFieldRequest($schema, $id, string $contentType = self::contentTypes['disableField'][0]) + public function disableFieldRequest($app, $schema, $id, string $contentType = self::contentTypes['disableField'][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 ' @@ -1329,6 +1341,7 @@ public function disableFieldRequest($schema, $id, string $contentType = self::co * * Disable a nested field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to disable. (required) @@ -1338,9 +1351,9 @@ public function disableFieldRequest($schema, $id, string $contentType = self::co * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function disableNestedField($schema, $parent_id, $id, string $contentType = self::contentTypes['disableNestedField'][0]) + public function disableNestedField($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['disableNestedField'][0]) { - list($response) = $this->disableNestedFieldWithHttpInfo($schema, $parent_id, $id, $contentType); + list($response) = $this->disableNestedFieldWithHttpInfo($app, $schema, $parent_id, $id, $contentType); return $response; } @@ -1349,6 +1362,7 @@ public function disableNestedField($schema, $parent_id, $id, string $contentType * * Disable a nested field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to disable. (required) @@ -1358,9 +1372,9 @@ public function disableNestedField($schema, $parent_id, $id, string $contentType * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function disableNestedFieldWithHttpInfo($schema, $parent_id, $id, string $contentType = self::contentTypes['disableNestedField'][0]) + public function disableNestedFieldWithHttpInfo($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['disableNestedField'][0]) { - $request = $this->disableNestedFieldRequest($schema, $parent_id, $id, $contentType); + $request = $this->disableNestedFieldRequest($app, $schema, $parent_id, $id, $contentType); try { $options = $this->createHttpClientOption(); @@ -1497,6 +1511,7 @@ public function disableNestedFieldWithHttpInfo($schema, $parent_id, $id, string * * Disable a nested field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to disable. (required) @@ -1505,9 +1520,9 @@ public function disableNestedFieldWithHttpInfo($schema, $parent_id, $id, string * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function disableNestedFieldAsync($schema, $parent_id, $id, string $contentType = self::contentTypes['disableNestedField'][0]) + public function disableNestedFieldAsync($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['disableNestedField'][0]) { - return $this->disableNestedFieldAsyncWithHttpInfo($schema, $parent_id, $id, $contentType) + return $this->disableNestedFieldAsyncWithHttpInfo($app, $schema, $parent_id, $id, $contentType) ->then( function ($response) { return $response[0]; @@ -1520,6 +1535,7 @@ function ($response) { * * Disable a nested field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to disable. (required) @@ -1528,10 +1544,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function disableNestedFieldAsyncWithHttpInfo($schema, $parent_id, $id, string $contentType = self::contentTypes['disableNestedField'][0]) + public function disableNestedFieldAsyncWithHttpInfo($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['disableNestedField'][0]) { $returnType = '\Squidex\Client\Model\SchemaDto'; - $request = $this->disableNestedFieldRequest($schema, $parent_id, $id, $contentType); + $request = $this->disableNestedFieldRequest($app, $schema, $parent_id, $id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1572,6 +1588,7 @@ function ($exception) { /** * Create request for operation 'disableNestedField' * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to disable. (required) @@ -1580,11 +1597,10 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function disableNestedFieldRequest($schema, $parent_id, $id, string $contentType = self::contentTypes['disableNestedField'][0]) + public function disableNestedFieldRequest($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['disableNestedField'][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 ' @@ -1714,6 +1730,7 @@ public function disableNestedFieldRequest($schema, $parent_id, $id, string $cont * * Enable a schema field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to enable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['enableField'] to see the possible values for this operation @@ -1722,9 +1739,9 @@ public function disableNestedFieldRequest($schema, $parent_id, $id, string $cont * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function enableField($schema, $id, string $contentType = self::contentTypes['enableField'][0]) + public function enableField($app, $schema, $id, string $contentType = self::contentTypes['enableField'][0]) { - list($response) = $this->enableFieldWithHttpInfo($schema, $id, $contentType); + list($response) = $this->enableFieldWithHttpInfo($app, $schema, $id, $contentType); return $response; } @@ -1733,6 +1750,7 @@ public function enableField($schema, $id, string $contentType = self::contentTyp * * Enable a schema field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to enable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['enableField'] to see the possible values for this operation @@ -1741,9 +1759,9 @@ public function enableField($schema, $id, string $contentType = self::contentTyp * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function enableFieldWithHttpInfo($schema, $id, string $contentType = self::contentTypes['enableField'][0]) + public function enableFieldWithHttpInfo($app, $schema, $id, string $contentType = self::contentTypes['enableField'][0]) { - $request = $this->enableFieldRequest($schema, $id, $contentType); + $request = $this->enableFieldRequest($app, $schema, $id, $contentType); try { $options = $this->createHttpClientOption(); @@ -1880,6 +1898,7 @@ public function enableFieldWithHttpInfo($schema, $id, string $contentType = self * * Enable a schema field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to enable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['enableField'] to see the possible values for this operation @@ -1887,9 +1906,9 @@ public function enableFieldWithHttpInfo($schema, $id, string $contentType = self * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function enableFieldAsync($schema, $id, string $contentType = self::contentTypes['enableField'][0]) + public function enableFieldAsync($app, $schema, $id, string $contentType = self::contentTypes['enableField'][0]) { - return $this->enableFieldAsyncWithHttpInfo($schema, $id, $contentType) + return $this->enableFieldAsyncWithHttpInfo($app, $schema, $id, $contentType) ->then( function ($response) { return $response[0]; @@ -1902,6 +1921,7 @@ function ($response) { * * Enable a schema field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to enable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['enableField'] to see the possible values for this operation @@ -1909,10 +1929,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function enableFieldAsyncWithHttpInfo($schema, $id, string $contentType = self::contentTypes['enableField'][0]) + public function enableFieldAsyncWithHttpInfo($app, $schema, $id, string $contentType = self::contentTypes['enableField'][0]) { $returnType = '\Squidex\Client\Model\SchemaDto'; - $request = $this->enableFieldRequest($schema, $id, $contentType); + $request = $this->enableFieldRequest($app, $schema, $id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1953,6 +1973,7 @@ function ($exception) { /** * Create request for operation 'enableField' * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to enable. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['enableField'] to see the possible values for this operation @@ -1960,11 +1981,10 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function enableFieldRequest($schema, $id, string $contentType = self::contentTypes['enableField'][0]) + public function enableFieldRequest($app, $schema, $id, string $contentType = self::contentTypes['enableField'][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 ' @@ -2079,6 +2099,7 @@ public function enableFieldRequest($schema, $id, string $contentType = self::con * * Enable a nested field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to enable. (required) @@ -2088,9 +2109,9 @@ public function enableFieldRequest($schema, $id, string $contentType = self::con * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function enableNestedField($schema, $parent_id, $id, string $contentType = self::contentTypes['enableNestedField'][0]) + public function enableNestedField($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['enableNestedField'][0]) { - list($response) = $this->enableNestedFieldWithHttpInfo($schema, $parent_id, $id, $contentType); + list($response) = $this->enableNestedFieldWithHttpInfo($app, $schema, $parent_id, $id, $contentType); return $response; } @@ -2099,6 +2120,7 @@ public function enableNestedField($schema, $parent_id, $id, string $contentType * * Enable a nested field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to enable. (required) @@ -2108,9 +2130,9 @@ public function enableNestedField($schema, $parent_id, $id, string $contentType * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function enableNestedFieldWithHttpInfo($schema, $parent_id, $id, string $contentType = self::contentTypes['enableNestedField'][0]) + public function enableNestedFieldWithHttpInfo($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['enableNestedField'][0]) { - $request = $this->enableNestedFieldRequest($schema, $parent_id, $id, $contentType); + $request = $this->enableNestedFieldRequest($app, $schema, $parent_id, $id, $contentType); try { $options = $this->createHttpClientOption(); @@ -2247,6 +2269,7 @@ public function enableNestedFieldWithHttpInfo($schema, $parent_id, $id, string $ * * Enable a nested field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to enable. (required) @@ -2255,9 +2278,9 @@ public function enableNestedFieldWithHttpInfo($schema, $parent_id, $id, string $ * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function enableNestedFieldAsync($schema, $parent_id, $id, string $contentType = self::contentTypes['enableNestedField'][0]) + public function enableNestedFieldAsync($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['enableNestedField'][0]) { - return $this->enableNestedFieldAsyncWithHttpInfo($schema, $parent_id, $id, $contentType) + return $this->enableNestedFieldAsyncWithHttpInfo($app, $schema, $parent_id, $id, $contentType) ->then( function ($response) { return $response[0]; @@ -2270,6 +2293,7 @@ function ($response) { * * Enable a nested field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to enable. (required) @@ -2278,10 +2302,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function enableNestedFieldAsyncWithHttpInfo($schema, $parent_id, $id, string $contentType = self::contentTypes['enableNestedField'][0]) + public function enableNestedFieldAsyncWithHttpInfo($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['enableNestedField'][0]) { $returnType = '\Squidex\Client\Model\SchemaDto'; - $request = $this->enableNestedFieldRequest($schema, $parent_id, $id, $contentType); + $request = $this->enableNestedFieldRequest($app, $schema, $parent_id, $id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -2322,6 +2346,7 @@ function ($exception) { /** * Create request for operation 'enableNestedField' * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to enable. (required) @@ -2330,11 +2355,10 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function enableNestedFieldRequest($schema, $parent_id, $id, string $contentType = self::contentTypes['enableNestedField'][0]) + public function enableNestedFieldRequest($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['enableNestedField'][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 ' @@ -2464,6 +2488,7 @@ public function enableNestedFieldRequest($schema, $parent_id, $id, string $conte * * Hide a schema field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to hide. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['hideField'] to see the possible values for this operation @@ -2472,9 +2497,9 @@ public function enableNestedFieldRequest($schema, $parent_id, $id, string $conte * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function hideField($schema, $id, string $contentType = self::contentTypes['hideField'][0]) + public function hideField($app, $schema, $id, string $contentType = self::contentTypes['hideField'][0]) { - list($response) = $this->hideFieldWithHttpInfo($schema, $id, $contentType); + list($response) = $this->hideFieldWithHttpInfo($app, $schema, $id, $contentType); return $response; } @@ -2483,6 +2508,7 @@ public function hideField($schema, $id, string $contentType = self::contentTypes * * Hide a schema field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to hide. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['hideField'] to see the possible values for this operation @@ -2491,9 +2517,9 @@ public function hideField($schema, $id, string $contentType = self::contentTypes * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function hideFieldWithHttpInfo($schema, $id, string $contentType = self::contentTypes['hideField'][0]) + public function hideFieldWithHttpInfo($app, $schema, $id, string $contentType = self::contentTypes['hideField'][0]) { - $request = $this->hideFieldRequest($schema, $id, $contentType); + $request = $this->hideFieldRequest($app, $schema, $id, $contentType); try { $options = $this->createHttpClientOption(); @@ -2630,6 +2656,7 @@ public function hideFieldWithHttpInfo($schema, $id, string $contentType = self:: * * Hide a schema field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to hide. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['hideField'] to see the possible values for this operation @@ -2637,9 +2664,9 @@ public function hideFieldWithHttpInfo($schema, $id, string $contentType = self:: * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function hideFieldAsync($schema, $id, string $contentType = self::contentTypes['hideField'][0]) + public function hideFieldAsync($app, $schema, $id, string $contentType = self::contentTypes['hideField'][0]) { - return $this->hideFieldAsyncWithHttpInfo($schema, $id, $contentType) + return $this->hideFieldAsyncWithHttpInfo($app, $schema, $id, $contentType) ->then( function ($response) { return $response[0]; @@ -2652,6 +2679,7 @@ function ($response) { * * Hide a schema field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to hide. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['hideField'] to see the possible values for this operation @@ -2659,10 +2687,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function hideFieldAsyncWithHttpInfo($schema, $id, string $contentType = self::contentTypes['hideField'][0]) + public function hideFieldAsyncWithHttpInfo($app, $schema, $id, string $contentType = self::contentTypes['hideField'][0]) { $returnType = '\Squidex\Client\Model\SchemaDto'; - $request = $this->hideFieldRequest($schema, $id, $contentType); + $request = $this->hideFieldRequest($app, $schema, $id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -2703,6 +2731,7 @@ function ($exception) { /** * Create request for operation 'hideField' * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to hide. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['hideField'] to see the possible values for this operation @@ -2710,11 +2739,10 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function hideFieldRequest($schema, $id, string $contentType = self::contentTypes['hideField'][0]) + public function hideFieldRequest($app, $schema, $id, string $contentType = self::contentTypes['hideField'][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 ' @@ -2829,6 +2857,7 @@ public function hideFieldRequest($schema, $id, string $contentType = self::conte * * Hide a nested field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to hide. (required) @@ -2838,9 +2867,9 @@ public function hideFieldRequest($schema, $id, string $contentType = self::conte * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function hideNestedField($schema, $parent_id, $id, string $contentType = self::contentTypes['hideNestedField'][0]) + public function hideNestedField($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['hideNestedField'][0]) { - list($response) = $this->hideNestedFieldWithHttpInfo($schema, $parent_id, $id, $contentType); + list($response) = $this->hideNestedFieldWithHttpInfo($app, $schema, $parent_id, $id, $contentType); return $response; } @@ -2849,6 +2878,7 @@ public function hideNestedField($schema, $parent_id, $id, string $contentType = * * Hide a nested field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to hide. (required) @@ -2858,9 +2888,9 @@ public function hideNestedField($schema, $parent_id, $id, string $contentType = * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function hideNestedFieldWithHttpInfo($schema, $parent_id, $id, string $contentType = self::contentTypes['hideNestedField'][0]) + public function hideNestedFieldWithHttpInfo($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['hideNestedField'][0]) { - $request = $this->hideNestedFieldRequest($schema, $parent_id, $id, $contentType); + $request = $this->hideNestedFieldRequest($app, $schema, $parent_id, $id, $contentType); try { $options = $this->createHttpClientOption(); @@ -2997,6 +3027,7 @@ public function hideNestedFieldWithHttpInfo($schema, $parent_id, $id, string $co * * Hide a nested field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to hide. (required) @@ -3005,9 +3036,9 @@ public function hideNestedFieldWithHttpInfo($schema, $parent_id, $id, string $co * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function hideNestedFieldAsync($schema, $parent_id, $id, string $contentType = self::contentTypes['hideNestedField'][0]) + public function hideNestedFieldAsync($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['hideNestedField'][0]) { - return $this->hideNestedFieldAsyncWithHttpInfo($schema, $parent_id, $id, $contentType) + return $this->hideNestedFieldAsyncWithHttpInfo($app, $schema, $parent_id, $id, $contentType) ->then( function ($response) { return $response[0]; @@ -3020,6 +3051,7 @@ function ($response) { * * Hide a nested field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to hide. (required) @@ -3028,10 +3060,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function hideNestedFieldAsyncWithHttpInfo($schema, $parent_id, $id, string $contentType = self::contentTypes['hideNestedField'][0]) + public function hideNestedFieldAsyncWithHttpInfo($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['hideNestedField'][0]) { $returnType = '\Squidex\Client\Model\SchemaDto'; - $request = $this->hideNestedFieldRequest($schema, $parent_id, $id, $contentType); + $request = $this->hideNestedFieldRequest($app, $schema, $parent_id, $id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -3072,6 +3104,7 @@ function ($exception) { /** * Create request for operation 'hideNestedField' * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to hide. (required) @@ -3080,11 +3113,10 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function hideNestedFieldRequest($schema, $parent_id, $id, string $contentType = self::contentTypes['hideNestedField'][0]) + public function hideNestedFieldRequest($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['hideNestedField'][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 ' @@ -3214,6 +3246,7 @@ public function hideNestedFieldRequest($schema, $parent_id, $id, string $content * * Lock a schema field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to lock. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['lockField'] to see the possible values for this operation @@ -3222,9 +3255,9 @@ public function hideNestedFieldRequest($schema, $parent_id, $id, string $content * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function lockField($schema, $id, string $contentType = self::contentTypes['lockField'][0]) + public function lockField($app, $schema, $id, string $contentType = self::contentTypes['lockField'][0]) { - list($response) = $this->lockFieldWithHttpInfo($schema, $id, $contentType); + list($response) = $this->lockFieldWithHttpInfo($app, $schema, $id, $contentType); return $response; } @@ -3233,6 +3266,7 @@ public function lockField($schema, $id, string $contentType = self::contentTypes * * Lock a schema field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to lock. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['lockField'] to see the possible values for this operation @@ -3241,9 +3275,9 @@ public function lockField($schema, $id, string $contentType = self::contentTypes * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function lockFieldWithHttpInfo($schema, $id, string $contentType = self::contentTypes['lockField'][0]) + public function lockFieldWithHttpInfo($app, $schema, $id, string $contentType = self::contentTypes['lockField'][0]) { - $request = $this->lockFieldRequest($schema, $id, $contentType); + $request = $this->lockFieldRequest($app, $schema, $id, $contentType); try { $options = $this->createHttpClientOption(); @@ -3380,6 +3414,7 @@ public function lockFieldWithHttpInfo($schema, $id, string $contentType = self:: * * Lock a schema field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to lock. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['lockField'] to see the possible values for this operation @@ -3387,9 +3422,9 @@ public function lockFieldWithHttpInfo($schema, $id, string $contentType = self:: * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function lockFieldAsync($schema, $id, string $contentType = self::contentTypes['lockField'][0]) + public function lockFieldAsync($app, $schema, $id, string $contentType = self::contentTypes['lockField'][0]) { - return $this->lockFieldAsyncWithHttpInfo($schema, $id, $contentType) + return $this->lockFieldAsyncWithHttpInfo($app, $schema, $id, $contentType) ->then( function ($response) { return $response[0]; @@ -3402,6 +3437,7 @@ function ($response) { * * Lock a schema field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to lock. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['lockField'] to see the possible values for this operation @@ -3409,10 +3445,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function lockFieldAsyncWithHttpInfo($schema, $id, string $contentType = self::contentTypes['lockField'][0]) + public function lockFieldAsyncWithHttpInfo($app, $schema, $id, string $contentType = self::contentTypes['lockField'][0]) { $returnType = '\Squidex\Client\Model\SchemaDto'; - $request = $this->lockFieldRequest($schema, $id, $contentType); + $request = $this->lockFieldRequest($app, $schema, $id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -3453,6 +3489,7 @@ function ($exception) { /** * Create request for operation 'lockField' * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to lock. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['lockField'] to see the possible values for this operation @@ -3460,11 +3497,10 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function lockFieldRequest($schema, $id, string $contentType = self::contentTypes['lockField'][0]) + public function lockFieldRequest($app, $schema, $id, string $contentType = self::contentTypes['lockField'][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 ' @@ -3579,6 +3615,7 @@ public function lockFieldRequest($schema, $id, string $contentType = self::conte * * Lock a nested field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to lock. (required) @@ -3588,9 +3625,9 @@ public function lockFieldRequest($schema, $id, string $contentType = self::conte * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function lockNestedField($schema, $parent_id, $id, string $contentType = self::contentTypes['lockNestedField'][0]) + public function lockNestedField($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['lockNestedField'][0]) { - list($response) = $this->lockNestedFieldWithHttpInfo($schema, $parent_id, $id, $contentType); + list($response) = $this->lockNestedFieldWithHttpInfo($app, $schema, $parent_id, $id, $contentType); return $response; } @@ -3599,6 +3636,7 @@ public function lockNestedField($schema, $parent_id, $id, string $contentType = * * Lock a nested field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to lock. (required) @@ -3608,9 +3646,9 @@ public function lockNestedField($schema, $parent_id, $id, string $contentType = * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function lockNestedFieldWithHttpInfo($schema, $parent_id, $id, string $contentType = self::contentTypes['lockNestedField'][0]) + public function lockNestedFieldWithHttpInfo($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['lockNestedField'][0]) { - $request = $this->lockNestedFieldRequest($schema, $parent_id, $id, $contentType); + $request = $this->lockNestedFieldRequest($app, $schema, $parent_id, $id, $contentType); try { $options = $this->createHttpClientOption(); @@ -3747,6 +3785,7 @@ public function lockNestedFieldWithHttpInfo($schema, $parent_id, $id, string $co * * Lock a nested field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to lock. (required) @@ -3755,9 +3794,9 @@ public function lockNestedFieldWithHttpInfo($schema, $parent_id, $id, string $co * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function lockNestedFieldAsync($schema, $parent_id, $id, string $contentType = self::contentTypes['lockNestedField'][0]) + public function lockNestedFieldAsync($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['lockNestedField'][0]) { - return $this->lockNestedFieldAsyncWithHttpInfo($schema, $parent_id, $id, $contentType) + return $this->lockNestedFieldAsyncWithHttpInfo($app, $schema, $parent_id, $id, $contentType) ->then( function ($response) { return $response[0]; @@ -3770,6 +3809,7 @@ function ($response) { * * Lock a nested field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to lock. (required) @@ -3778,10 +3818,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function lockNestedFieldAsyncWithHttpInfo($schema, $parent_id, $id, string $contentType = self::contentTypes['lockNestedField'][0]) + public function lockNestedFieldAsyncWithHttpInfo($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['lockNestedField'][0]) { $returnType = '\Squidex\Client\Model\SchemaDto'; - $request = $this->lockNestedFieldRequest($schema, $parent_id, $id, $contentType); + $request = $this->lockNestedFieldRequest($app, $schema, $parent_id, $id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -3822,6 +3862,7 @@ function ($exception) { /** * Create request for operation 'lockNestedField' * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to lock. (required) @@ -3830,11 +3871,10 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function lockNestedFieldRequest($schema, $parent_id, $id, string $contentType = self::contentTypes['lockNestedField'][0]) + public function lockNestedFieldRequest($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['lockNestedField'][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 ' @@ -3964,6 +4004,7 @@ public function lockNestedFieldRequest($schema, $parent_id, $id, string $content * * Add a schema field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\AddFieldDto $add_field_dto The field object that needs to be added to the schema. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postField'] to see the possible values for this operation @@ -3972,9 +4013,9 @@ public function lockNestedFieldRequest($schema, $parent_id, $id, string $content * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function postField($schema, $add_field_dto, string $contentType = self::contentTypes['postField'][0]) + public function postField($app, $schema, $add_field_dto, string $contentType = self::contentTypes['postField'][0]) { - list($response) = $this->postFieldWithHttpInfo($schema, $add_field_dto, $contentType); + list($response) = $this->postFieldWithHttpInfo($app, $schema, $add_field_dto, $contentType); return $response; } @@ -3983,6 +4024,7 @@ public function postField($schema, $add_field_dto, string $contentType = self::c * * Add a schema field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\AddFieldDto $add_field_dto The field object that needs to be added to the schema. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postField'] to see the possible values for this operation @@ -3991,9 +4033,9 @@ public function postField($schema, $add_field_dto, string $contentType = self::c * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function postFieldWithHttpInfo($schema, $add_field_dto, string $contentType = self::contentTypes['postField'][0]) + public function postFieldWithHttpInfo($app, $schema, $add_field_dto, string $contentType = self::contentTypes['postField'][0]) { - $request = $this->postFieldRequest($schema, $add_field_dto, $contentType); + $request = $this->postFieldRequest($app, $schema, $add_field_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -4153,6 +4195,7 @@ public function postFieldWithHttpInfo($schema, $add_field_dto, string $contentTy * * Add a schema field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\AddFieldDto $add_field_dto The field object that needs to be added to the schema. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postField'] to see the possible values for this operation @@ -4160,9 +4203,9 @@ public function postFieldWithHttpInfo($schema, $add_field_dto, string $contentTy * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postFieldAsync($schema, $add_field_dto, string $contentType = self::contentTypes['postField'][0]) + public function postFieldAsync($app, $schema, $add_field_dto, string $contentType = self::contentTypes['postField'][0]) { - return $this->postFieldAsyncWithHttpInfo($schema, $add_field_dto, $contentType) + return $this->postFieldAsyncWithHttpInfo($app, $schema, $add_field_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -4175,6 +4218,7 @@ function ($response) { * * Add a schema field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\AddFieldDto $add_field_dto The field object that needs to be added to the schema. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postField'] to see the possible values for this operation @@ -4182,10 +4226,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postFieldAsyncWithHttpInfo($schema, $add_field_dto, string $contentType = self::contentTypes['postField'][0]) + public function postFieldAsyncWithHttpInfo($app, $schema, $add_field_dto, string $contentType = self::contentTypes['postField'][0]) { $returnType = '\Squidex\Client\Model\SchemaDto'; - $request = $this->postFieldRequest($schema, $add_field_dto, $contentType); + $request = $this->postFieldRequest($app, $schema, $add_field_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -4226,6 +4270,7 @@ function ($exception) { /** * Create request for operation 'postField' * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\AddFieldDto $add_field_dto The field object that needs to be added to the schema. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postField'] to see the possible values for this operation @@ -4233,11 +4278,10 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function postFieldRequest($schema, $add_field_dto, string $contentType = self::contentTypes['postField'][0]) + public function postFieldRequest($app, $schema, $add_field_dto, string $contentType = self::contentTypes['postField'][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 ' @@ -4351,6 +4395,7 @@ public function postFieldRequest($schema, $add_field_dto, string $contentType = * * Add a nested field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param \Squidex\Client\Model\AddFieldDto $add_field_dto The field object that needs to be added to the schema. (required) @@ -4360,9 +4405,9 @@ public function postFieldRequest($schema, $add_field_dto, string $contentType = * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function postNestedField($schema, $parent_id, $add_field_dto, string $contentType = self::contentTypes['postNestedField'][0]) + public function postNestedField($app, $schema, $parent_id, $add_field_dto, string $contentType = self::contentTypes['postNestedField'][0]) { - list($response) = $this->postNestedFieldWithHttpInfo($schema, $parent_id, $add_field_dto, $contentType); + list($response) = $this->postNestedFieldWithHttpInfo($app, $schema, $parent_id, $add_field_dto, $contentType); return $response; } @@ -4371,6 +4416,7 @@ public function postNestedField($schema, $parent_id, $add_field_dto, string $con * * Add a nested field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param \Squidex\Client\Model\AddFieldDto $add_field_dto The field object that needs to be added to the schema. (required) @@ -4380,9 +4426,9 @@ public function postNestedField($schema, $parent_id, $add_field_dto, string $con * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function postNestedFieldWithHttpInfo($schema, $parent_id, $add_field_dto, string $contentType = self::contentTypes['postNestedField'][0]) + public function postNestedFieldWithHttpInfo($app, $schema, $parent_id, $add_field_dto, string $contentType = self::contentTypes['postNestedField'][0]) { - $request = $this->postNestedFieldRequest($schema, $parent_id, $add_field_dto, $contentType); + $request = $this->postNestedFieldRequest($app, $schema, $parent_id, $add_field_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -4542,6 +4588,7 @@ public function postNestedFieldWithHttpInfo($schema, $parent_id, $add_field_dto, * * Add a nested field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param \Squidex\Client\Model\AddFieldDto $add_field_dto The field object that needs to be added to the schema. (required) @@ -4550,9 +4597,9 @@ public function postNestedFieldWithHttpInfo($schema, $parent_id, $add_field_dto, * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postNestedFieldAsync($schema, $parent_id, $add_field_dto, string $contentType = self::contentTypes['postNestedField'][0]) + public function postNestedFieldAsync($app, $schema, $parent_id, $add_field_dto, string $contentType = self::contentTypes['postNestedField'][0]) { - return $this->postNestedFieldAsyncWithHttpInfo($schema, $parent_id, $add_field_dto, $contentType) + return $this->postNestedFieldAsyncWithHttpInfo($app, $schema, $parent_id, $add_field_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -4565,6 +4612,7 @@ function ($response) { * * Add a nested field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param \Squidex\Client\Model\AddFieldDto $add_field_dto The field object that needs to be added to the schema. (required) @@ -4573,10 +4621,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postNestedFieldAsyncWithHttpInfo($schema, $parent_id, $add_field_dto, string $contentType = self::contentTypes['postNestedField'][0]) + public function postNestedFieldAsyncWithHttpInfo($app, $schema, $parent_id, $add_field_dto, string $contentType = self::contentTypes['postNestedField'][0]) { $returnType = '\Squidex\Client\Model\SchemaDto'; - $request = $this->postNestedFieldRequest($schema, $parent_id, $add_field_dto, $contentType); + $request = $this->postNestedFieldRequest($app, $schema, $parent_id, $add_field_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -4617,6 +4665,7 @@ function ($exception) { /** * Create request for operation 'postNestedField' * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param \Squidex\Client\Model\AddFieldDto $add_field_dto The field object that needs to be added to the schema. (required) @@ -4625,11 +4674,10 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function postNestedFieldRequest($schema, $parent_id, $add_field_dto, string $contentType = self::contentTypes['postNestedField'][0]) + public function postNestedFieldRequest($app, $schema, $parent_id, $add_field_dto, string $contentType = self::contentTypes['postNestedField'][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 ' @@ -4758,6 +4806,7 @@ public function postNestedFieldRequest($schema, $parent_id, $add_field_dto, stri * * Update a schema field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to update. (required) * @param \Squidex\Client\Model\UpdateFieldDto $update_field_dto The field object that needs to be added to the schema. (required) @@ -4767,9 +4816,9 @@ public function postNestedFieldRequest($schema, $parent_id, $add_field_dto, stri * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putField($schema, $id, $update_field_dto, string $contentType = self::contentTypes['putField'][0]) + public function putField($app, $schema, $id, $update_field_dto, string $contentType = self::contentTypes['putField'][0]) { - list($response) = $this->putFieldWithHttpInfo($schema, $id, $update_field_dto, $contentType); + list($response) = $this->putFieldWithHttpInfo($app, $schema, $id, $update_field_dto, $contentType); return $response; } @@ -4778,6 +4827,7 @@ public function putField($schema, $id, $update_field_dto, string $contentType = * * Update a schema field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to update. (required) * @param \Squidex\Client\Model\UpdateFieldDto $update_field_dto The field object that needs to be added to the schema. (required) @@ -4787,9 +4837,9 @@ public function putField($schema, $id, $update_field_dto, string $contentType = * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putFieldWithHttpInfo($schema, $id, $update_field_dto, string $contentType = self::contentTypes['putField'][0]) + public function putFieldWithHttpInfo($app, $schema, $id, $update_field_dto, string $contentType = self::contentTypes['putField'][0]) { - $request = $this->putFieldRequest($schema, $id, $update_field_dto, $contentType); + $request = $this->putFieldRequest($app, $schema, $id, $update_field_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -4926,6 +4976,7 @@ public function putFieldWithHttpInfo($schema, $id, $update_field_dto, string $co * * Update a schema field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to update. (required) * @param \Squidex\Client\Model\UpdateFieldDto $update_field_dto The field object that needs to be added to the schema. (required) @@ -4934,9 +4985,9 @@ public function putFieldWithHttpInfo($schema, $id, $update_field_dto, string $co * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putFieldAsync($schema, $id, $update_field_dto, string $contentType = self::contentTypes['putField'][0]) + public function putFieldAsync($app, $schema, $id, $update_field_dto, string $contentType = self::contentTypes['putField'][0]) { - return $this->putFieldAsyncWithHttpInfo($schema, $id, $update_field_dto, $contentType) + return $this->putFieldAsyncWithHttpInfo($app, $schema, $id, $update_field_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -4949,6 +5000,7 @@ function ($response) { * * Update a schema field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to update. (required) * @param \Squidex\Client\Model\UpdateFieldDto $update_field_dto The field object that needs to be added to the schema. (required) @@ -4957,10 +5009,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putFieldAsyncWithHttpInfo($schema, $id, $update_field_dto, string $contentType = self::contentTypes['putField'][0]) + public function putFieldAsyncWithHttpInfo($app, $schema, $id, $update_field_dto, string $contentType = self::contentTypes['putField'][0]) { $returnType = '\Squidex\Client\Model\SchemaDto'; - $request = $this->putFieldRequest($schema, $id, $update_field_dto, $contentType); + $request = $this->putFieldRequest($app, $schema, $id, $update_field_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -5001,6 +5053,7 @@ function ($exception) { /** * Create request for operation 'putField' * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to update. (required) * @param \Squidex\Client\Model\UpdateFieldDto $update_field_dto The field object that needs to be added to the schema. (required) @@ -5009,11 +5062,10 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putFieldRequest($schema, $id, $update_field_dto, string $contentType = self::contentTypes['putField'][0]) + public function putFieldRequest($app, $schema, $id, $update_field_dto, string $contentType = self::contentTypes['putField'][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 ' @@ -5142,6 +5194,7 @@ public function putFieldRequest($schema, $id, $update_field_dto, string $content * * Update a nested field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to update. (required) @@ -5152,9 +5205,9 @@ public function putFieldRequest($schema, $id, $update_field_dto, string $content * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putNestedField($schema, $parent_id, $id, $update_field_dto, string $contentType = self::contentTypes['putNestedField'][0]) + public function putNestedField($app, $schema, $parent_id, $id, $update_field_dto, string $contentType = self::contentTypes['putNestedField'][0]) { - list($response) = $this->putNestedFieldWithHttpInfo($schema, $parent_id, $id, $update_field_dto, $contentType); + list($response) = $this->putNestedFieldWithHttpInfo($app, $schema, $parent_id, $id, $update_field_dto, $contentType); return $response; } @@ -5163,6 +5216,7 @@ public function putNestedField($schema, $parent_id, $id, $update_field_dto, stri * * Update a nested field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to update. (required) @@ -5173,9 +5227,9 @@ public function putNestedField($schema, $parent_id, $id, $update_field_dto, stri * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putNestedFieldWithHttpInfo($schema, $parent_id, $id, $update_field_dto, string $contentType = self::contentTypes['putNestedField'][0]) + public function putNestedFieldWithHttpInfo($app, $schema, $parent_id, $id, $update_field_dto, string $contentType = self::contentTypes['putNestedField'][0]) { - $request = $this->putNestedFieldRequest($schema, $parent_id, $id, $update_field_dto, $contentType); + $request = $this->putNestedFieldRequest($app, $schema, $parent_id, $id, $update_field_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -5312,6 +5366,7 @@ public function putNestedFieldWithHttpInfo($schema, $parent_id, $id, $update_fie * * Update a nested field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to update. (required) @@ -5321,9 +5376,9 @@ public function putNestedFieldWithHttpInfo($schema, $parent_id, $id, $update_fie * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putNestedFieldAsync($schema, $parent_id, $id, $update_field_dto, string $contentType = self::contentTypes['putNestedField'][0]) + public function putNestedFieldAsync($app, $schema, $parent_id, $id, $update_field_dto, string $contentType = self::contentTypes['putNestedField'][0]) { - return $this->putNestedFieldAsyncWithHttpInfo($schema, $parent_id, $id, $update_field_dto, $contentType) + return $this->putNestedFieldAsyncWithHttpInfo($app, $schema, $parent_id, $id, $update_field_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -5336,6 +5391,7 @@ function ($response) { * * Update a nested field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to update. (required) @@ -5345,10 +5401,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putNestedFieldAsyncWithHttpInfo($schema, $parent_id, $id, $update_field_dto, string $contentType = self::contentTypes['putNestedField'][0]) + public function putNestedFieldAsyncWithHttpInfo($app, $schema, $parent_id, $id, $update_field_dto, string $contentType = self::contentTypes['putNestedField'][0]) { $returnType = '\Squidex\Client\Model\SchemaDto'; - $request = $this->putNestedFieldRequest($schema, $parent_id, $id, $update_field_dto, $contentType); + $request = $this->putNestedFieldRequest($app, $schema, $parent_id, $id, $update_field_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -5389,6 +5445,7 @@ function ($exception) { /** * Create request for operation 'putNestedField' * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to update. (required) @@ -5398,11 +5455,10 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putNestedFieldRequest($schema, $parent_id, $id, $update_field_dto, string $contentType = self::contentTypes['putNestedField'][0]) + public function putNestedFieldRequest($app, $schema, $parent_id, $id, $update_field_dto, string $contentType = self::contentTypes['putNestedField'][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 ' @@ -5546,6 +5602,7 @@ public function putNestedFieldRequest($schema, $parent_id, $id, $update_field_dt * * Reorder all nested fields. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param \Squidex\Client\Model\ReorderFieldsDto $reorder_fields_dto The request that contains the field ids. (required) @@ -5555,9 +5612,9 @@ public function putNestedFieldRequest($schema, $parent_id, $id, $update_field_dt * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putNestedFieldOrdering($schema, $parent_id, $reorder_fields_dto, string $contentType = self::contentTypes['putNestedFieldOrdering'][0]) + public function putNestedFieldOrdering($app, $schema, $parent_id, $reorder_fields_dto, string $contentType = self::contentTypes['putNestedFieldOrdering'][0]) { - list($response) = $this->putNestedFieldOrderingWithHttpInfo($schema, $parent_id, $reorder_fields_dto, $contentType); + list($response) = $this->putNestedFieldOrderingWithHttpInfo($app, $schema, $parent_id, $reorder_fields_dto, $contentType); return $response; } @@ -5566,6 +5623,7 @@ public function putNestedFieldOrdering($schema, $parent_id, $reorder_fields_dto, * * Reorder all nested fields. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param \Squidex\Client\Model\ReorderFieldsDto $reorder_fields_dto The request that contains the field ids. (required) @@ -5575,9 +5633,9 @@ public function putNestedFieldOrdering($schema, $parent_id, $reorder_fields_dto, * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putNestedFieldOrderingWithHttpInfo($schema, $parent_id, $reorder_fields_dto, string $contentType = self::contentTypes['putNestedFieldOrdering'][0]) + public function putNestedFieldOrderingWithHttpInfo($app, $schema, $parent_id, $reorder_fields_dto, string $contentType = self::contentTypes['putNestedFieldOrdering'][0]) { - $request = $this->putNestedFieldOrderingRequest($schema, $parent_id, $reorder_fields_dto, $contentType); + $request = $this->putNestedFieldOrderingRequest($app, $schema, $parent_id, $reorder_fields_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -5714,6 +5772,7 @@ public function putNestedFieldOrderingWithHttpInfo($schema, $parent_id, $reorder * * Reorder all nested fields. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param \Squidex\Client\Model\ReorderFieldsDto $reorder_fields_dto The request that contains the field ids. (required) @@ -5722,9 +5781,9 @@ public function putNestedFieldOrderingWithHttpInfo($schema, $parent_id, $reorder * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putNestedFieldOrderingAsync($schema, $parent_id, $reorder_fields_dto, string $contentType = self::contentTypes['putNestedFieldOrdering'][0]) + public function putNestedFieldOrderingAsync($app, $schema, $parent_id, $reorder_fields_dto, string $contentType = self::contentTypes['putNestedFieldOrdering'][0]) { - return $this->putNestedFieldOrderingAsyncWithHttpInfo($schema, $parent_id, $reorder_fields_dto, $contentType) + return $this->putNestedFieldOrderingAsyncWithHttpInfo($app, $schema, $parent_id, $reorder_fields_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -5737,6 +5796,7 @@ function ($response) { * * Reorder all nested fields. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param \Squidex\Client\Model\ReorderFieldsDto $reorder_fields_dto The request that contains the field ids. (required) @@ -5745,10 +5805,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putNestedFieldOrderingAsyncWithHttpInfo($schema, $parent_id, $reorder_fields_dto, string $contentType = self::contentTypes['putNestedFieldOrdering'][0]) + public function putNestedFieldOrderingAsyncWithHttpInfo($app, $schema, $parent_id, $reorder_fields_dto, string $contentType = self::contentTypes['putNestedFieldOrdering'][0]) { $returnType = '\Squidex\Client\Model\SchemaDto'; - $request = $this->putNestedFieldOrderingRequest($schema, $parent_id, $reorder_fields_dto, $contentType); + $request = $this->putNestedFieldOrderingRequest($app, $schema, $parent_id, $reorder_fields_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -5789,6 +5849,7 @@ function ($exception) { /** * Create request for operation 'putNestedFieldOrdering' * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param \Squidex\Client\Model\ReorderFieldsDto $reorder_fields_dto The request that contains the field ids. (required) @@ -5797,11 +5858,10 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putNestedFieldOrderingRequest($schema, $parent_id, $reorder_fields_dto, string $contentType = self::contentTypes['putNestedFieldOrdering'][0]) + public function putNestedFieldOrderingRequest($app, $schema, $parent_id, $reorder_fields_dto, string $contentType = self::contentTypes['putNestedFieldOrdering'][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 ' @@ -5930,6 +5990,7 @@ public function putNestedFieldOrderingRequest($schema, $parent_id, $reorder_fiel * * Reorder all fields. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\ReorderFieldsDto $reorder_fields_dto The request that contains the field ids. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putSchemaFieldOrdering'] to see the possible values for this operation @@ -5938,9 +5999,9 @@ public function putNestedFieldOrderingRequest($schema, $parent_id, $reorder_fiel * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putSchemaFieldOrdering($schema, $reorder_fields_dto, string $contentType = self::contentTypes['putSchemaFieldOrdering'][0]) + public function putSchemaFieldOrdering($app, $schema, $reorder_fields_dto, string $contentType = self::contentTypes['putSchemaFieldOrdering'][0]) { - list($response) = $this->putSchemaFieldOrderingWithHttpInfo($schema, $reorder_fields_dto, $contentType); + list($response) = $this->putSchemaFieldOrderingWithHttpInfo($app, $schema, $reorder_fields_dto, $contentType); return $response; } @@ -5949,6 +6010,7 @@ public function putSchemaFieldOrdering($schema, $reorder_fields_dto, string $con * * Reorder all fields. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\ReorderFieldsDto $reorder_fields_dto The request that contains the field ids. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putSchemaFieldOrdering'] to see the possible values for this operation @@ -5957,9 +6019,9 @@ public function putSchemaFieldOrdering($schema, $reorder_fields_dto, string $con * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putSchemaFieldOrderingWithHttpInfo($schema, $reorder_fields_dto, string $contentType = self::contentTypes['putSchemaFieldOrdering'][0]) + public function putSchemaFieldOrderingWithHttpInfo($app, $schema, $reorder_fields_dto, string $contentType = self::contentTypes['putSchemaFieldOrdering'][0]) { - $request = $this->putSchemaFieldOrderingRequest($schema, $reorder_fields_dto, $contentType); + $request = $this->putSchemaFieldOrderingRequest($app, $schema, $reorder_fields_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -6096,6 +6158,7 @@ public function putSchemaFieldOrderingWithHttpInfo($schema, $reorder_fields_dto, * * Reorder all fields. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\ReorderFieldsDto $reorder_fields_dto The request that contains the field ids. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putSchemaFieldOrdering'] to see the possible values for this operation @@ -6103,9 +6166,9 @@ public function putSchemaFieldOrderingWithHttpInfo($schema, $reorder_fields_dto, * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putSchemaFieldOrderingAsync($schema, $reorder_fields_dto, string $contentType = self::contentTypes['putSchemaFieldOrdering'][0]) + public function putSchemaFieldOrderingAsync($app, $schema, $reorder_fields_dto, string $contentType = self::contentTypes['putSchemaFieldOrdering'][0]) { - return $this->putSchemaFieldOrderingAsyncWithHttpInfo($schema, $reorder_fields_dto, $contentType) + return $this->putSchemaFieldOrderingAsyncWithHttpInfo($app, $schema, $reorder_fields_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -6118,6 +6181,7 @@ function ($response) { * * Reorder all fields. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\ReorderFieldsDto $reorder_fields_dto The request that contains the field ids. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putSchemaFieldOrdering'] to see the possible values for this operation @@ -6125,10 +6189,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putSchemaFieldOrderingAsyncWithHttpInfo($schema, $reorder_fields_dto, string $contentType = self::contentTypes['putSchemaFieldOrdering'][0]) + public function putSchemaFieldOrderingAsyncWithHttpInfo($app, $schema, $reorder_fields_dto, string $contentType = self::contentTypes['putSchemaFieldOrdering'][0]) { $returnType = '\Squidex\Client\Model\SchemaDto'; - $request = $this->putSchemaFieldOrderingRequest($schema, $reorder_fields_dto, $contentType); + $request = $this->putSchemaFieldOrderingRequest($app, $schema, $reorder_fields_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -6169,6 +6233,7 @@ function ($exception) { /** * Create request for operation 'putSchemaFieldOrdering' * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\ReorderFieldsDto $reorder_fields_dto The request that contains the field ids. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putSchemaFieldOrdering'] to see the possible values for this operation @@ -6176,11 +6241,10 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putSchemaFieldOrderingRequest($schema, $reorder_fields_dto, string $contentType = self::contentTypes['putSchemaFieldOrdering'][0]) + public function putSchemaFieldOrderingRequest($app, $schema, $reorder_fields_dto, string $contentType = self::contentTypes['putSchemaFieldOrdering'][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 ' @@ -6294,6 +6358,7 @@ public function putSchemaFieldOrderingRequest($schema, $reorder_fields_dto, stri * * Configure UI fields. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\ConfigureUIFieldsDto $configure_ui_fields_dto The request that contains the field names. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putSchemaUIFields'] to see the possible values for this operation @@ -6302,9 +6367,9 @@ public function putSchemaFieldOrderingRequest($schema, $reorder_fields_dto, stri * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putSchemaUIFields($schema, $configure_ui_fields_dto, string $contentType = self::contentTypes['putSchemaUIFields'][0]) + public function putSchemaUIFields($app, $schema, $configure_ui_fields_dto, string $contentType = self::contentTypes['putSchemaUIFields'][0]) { - list($response) = $this->putSchemaUIFieldsWithHttpInfo($schema, $configure_ui_fields_dto, $contentType); + list($response) = $this->putSchemaUIFieldsWithHttpInfo($app, $schema, $configure_ui_fields_dto, $contentType); return $response; } @@ -6313,6 +6378,7 @@ public function putSchemaUIFields($schema, $configure_ui_fields_dto, string $con * * Configure UI fields. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\ConfigureUIFieldsDto $configure_ui_fields_dto The request that contains the field names. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putSchemaUIFields'] to see the possible values for this operation @@ -6321,9 +6387,9 @@ public function putSchemaUIFields($schema, $configure_ui_fields_dto, string $con * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putSchemaUIFieldsWithHttpInfo($schema, $configure_ui_fields_dto, string $contentType = self::contentTypes['putSchemaUIFields'][0]) + public function putSchemaUIFieldsWithHttpInfo($app, $schema, $configure_ui_fields_dto, string $contentType = self::contentTypes['putSchemaUIFields'][0]) { - $request = $this->putSchemaUIFieldsRequest($schema, $configure_ui_fields_dto, $contentType); + $request = $this->putSchemaUIFieldsRequest($app, $schema, $configure_ui_fields_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -6460,6 +6526,7 @@ public function putSchemaUIFieldsWithHttpInfo($schema, $configure_ui_fields_dto, * * Configure UI fields. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\ConfigureUIFieldsDto $configure_ui_fields_dto The request that contains the field names. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putSchemaUIFields'] to see the possible values for this operation @@ -6467,9 +6534,9 @@ public function putSchemaUIFieldsWithHttpInfo($schema, $configure_ui_fields_dto, * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putSchemaUIFieldsAsync($schema, $configure_ui_fields_dto, string $contentType = self::contentTypes['putSchemaUIFields'][0]) + public function putSchemaUIFieldsAsync($app, $schema, $configure_ui_fields_dto, string $contentType = self::contentTypes['putSchemaUIFields'][0]) { - return $this->putSchemaUIFieldsAsyncWithHttpInfo($schema, $configure_ui_fields_dto, $contentType) + return $this->putSchemaUIFieldsAsyncWithHttpInfo($app, $schema, $configure_ui_fields_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -6482,6 +6549,7 @@ function ($response) { * * Configure UI fields. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\ConfigureUIFieldsDto $configure_ui_fields_dto The request that contains the field names. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putSchemaUIFields'] to see the possible values for this operation @@ -6489,10 +6557,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putSchemaUIFieldsAsyncWithHttpInfo($schema, $configure_ui_fields_dto, string $contentType = self::contentTypes['putSchemaUIFields'][0]) + public function putSchemaUIFieldsAsyncWithHttpInfo($app, $schema, $configure_ui_fields_dto, string $contentType = self::contentTypes['putSchemaUIFields'][0]) { $returnType = '\Squidex\Client\Model\SchemaDto'; - $request = $this->putSchemaUIFieldsRequest($schema, $configure_ui_fields_dto, $contentType); + $request = $this->putSchemaUIFieldsRequest($app, $schema, $configure_ui_fields_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -6533,6 +6601,7 @@ function ($exception) { /** * Create request for operation 'putSchemaUIFields' * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\ConfigureUIFieldsDto $configure_ui_fields_dto The request that contains the field names. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putSchemaUIFields'] to see the possible values for this operation @@ -6540,11 +6609,10 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putSchemaUIFieldsRequest($schema, $configure_ui_fields_dto, string $contentType = self::contentTypes['putSchemaUIFields'][0]) + public function putSchemaUIFieldsRequest($app, $schema, $configure_ui_fields_dto, string $contentType = self::contentTypes['putSchemaUIFields'][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 ' @@ -6658,6 +6726,7 @@ public function putSchemaUIFieldsRequest($schema, $configure_ui_fields_dto, stri * * Show a schema field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to show. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['showField'] to see the possible values for this operation @@ -6666,9 +6735,9 @@ public function putSchemaUIFieldsRequest($schema, $configure_ui_fields_dto, stri * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function showField($schema, $id, string $contentType = self::contentTypes['showField'][0]) + public function showField($app, $schema, $id, string $contentType = self::contentTypes['showField'][0]) { - list($response) = $this->showFieldWithHttpInfo($schema, $id, $contentType); + list($response) = $this->showFieldWithHttpInfo($app, $schema, $id, $contentType); return $response; } @@ -6677,6 +6746,7 @@ public function showField($schema, $id, string $contentType = self::contentTypes * * Show a schema field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to show. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['showField'] to see the possible values for this operation @@ -6685,9 +6755,9 @@ public function showField($schema, $id, string $contentType = self::contentTypes * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function showFieldWithHttpInfo($schema, $id, string $contentType = self::contentTypes['showField'][0]) + public function showFieldWithHttpInfo($app, $schema, $id, string $contentType = self::contentTypes['showField'][0]) { - $request = $this->showFieldRequest($schema, $id, $contentType); + $request = $this->showFieldRequest($app, $schema, $id, $contentType); try { $options = $this->createHttpClientOption(); @@ -6824,6 +6894,7 @@ public function showFieldWithHttpInfo($schema, $id, string $contentType = self:: * * Show a schema field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to show. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['showField'] to see the possible values for this operation @@ -6831,9 +6902,9 @@ public function showFieldWithHttpInfo($schema, $id, string $contentType = self:: * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function showFieldAsync($schema, $id, string $contentType = self::contentTypes['showField'][0]) + public function showFieldAsync($app, $schema, $id, string $contentType = self::contentTypes['showField'][0]) { - return $this->showFieldAsyncWithHttpInfo($schema, $id, $contentType) + return $this->showFieldAsyncWithHttpInfo($app, $schema, $id, $contentType) ->then( function ($response) { return $response[0]; @@ -6846,6 +6917,7 @@ function ($response) { * * Show a schema field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to show. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['showField'] to see the possible values for this operation @@ -6853,10 +6925,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function showFieldAsyncWithHttpInfo($schema, $id, string $contentType = self::contentTypes['showField'][0]) + public function showFieldAsyncWithHttpInfo($app, $schema, $id, string $contentType = self::contentTypes['showField'][0]) { $returnType = '\Squidex\Client\Model\SchemaDto'; - $request = $this->showFieldRequest($schema, $id, $contentType); + $request = $this->showFieldRequest($app, $schema, $id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -6897,6 +6969,7 @@ function ($exception) { /** * Create request for operation 'showField' * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $id The ID of the field to show. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['showField'] to see the possible values for this operation @@ -6904,11 +6977,10 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function showFieldRequest($schema, $id, string $contentType = self::contentTypes['showField'][0]) + public function showFieldRequest($app, $schema, $id, string $contentType = self::contentTypes['showField'][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 ' @@ -7023,6 +7095,7 @@ public function showFieldRequest($schema, $id, string $contentType = self::conte * * Show a nested field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to show. (required) @@ -7032,9 +7105,9 @@ public function showFieldRequest($schema, $id, string $contentType = self::conte * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function showNestedField($schema, $parent_id, $id, string $contentType = self::contentTypes['showNestedField'][0]) + public function showNestedField($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['showNestedField'][0]) { - list($response) = $this->showNestedFieldWithHttpInfo($schema, $parent_id, $id, $contentType); + list($response) = $this->showNestedFieldWithHttpInfo($app, $schema, $parent_id, $id, $contentType); return $response; } @@ -7043,6 +7116,7 @@ public function showNestedField($schema, $parent_id, $id, string $contentType = * * Show a nested field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to show. (required) @@ -7052,9 +7126,9 @@ public function showNestedField($schema, $parent_id, $id, string $contentType = * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function showNestedFieldWithHttpInfo($schema, $parent_id, $id, string $contentType = self::contentTypes['showNestedField'][0]) + public function showNestedFieldWithHttpInfo($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['showNestedField'][0]) { - $request = $this->showNestedFieldRequest($schema, $parent_id, $id, $contentType); + $request = $this->showNestedFieldRequest($app, $schema, $parent_id, $id, $contentType); try { $options = $this->createHttpClientOption(); @@ -7191,6 +7265,7 @@ public function showNestedFieldWithHttpInfo($schema, $parent_id, $id, string $co * * Show a nested field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to show. (required) @@ -7199,9 +7274,9 @@ public function showNestedFieldWithHttpInfo($schema, $parent_id, $id, string $co * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function showNestedFieldAsync($schema, $parent_id, $id, string $contentType = self::contentTypes['showNestedField'][0]) + public function showNestedFieldAsync($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['showNestedField'][0]) { - return $this->showNestedFieldAsyncWithHttpInfo($schema, $parent_id, $id, $contentType) + return $this->showNestedFieldAsyncWithHttpInfo($app, $schema, $parent_id, $id, $contentType) ->then( function ($response) { return $response[0]; @@ -7214,6 +7289,7 @@ function ($response) { * * Show a nested field. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to show. (required) @@ -7222,10 +7298,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function showNestedFieldAsyncWithHttpInfo($schema, $parent_id, $id, string $contentType = self::contentTypes['showNestedField'][0]) + public function showNestedFieldAsyncWithHttpInfo($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['showNestedField'][0]) { $returnType = '\Squidex\Client\Model\SchemaDto'; - $request = $this->showNestedFieldRequest($schema, $parent_id, $id, $contentType); + $request = $this->showNestedFieldRequest($app, $schema, $parent_id, $id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -7266,6 +7342,7 @@ function ($exception) { /** * Create request for operation 'showNestedField' * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param int $parent_id The parent field id. (required) * @param int $id The ID of the field to show. (required) @@ -7274,11 +7351,10 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function showNestedFieldRequest($schema, $parent_id, $id, string $contentType = self::contentTypes['showNestedField'][0]) + public function showNestedFieldRequest($app, $schema, $parent_id, $id, string $contentType = self::contentTypes['showNestedField'][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 ' @@ -7408,6 +7484,7 @@ public function showNestedFieldRequest($schema, $parent_id, $id, string $content * * Delete a schema. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema to delete. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteSchema'] to see the possible values for this operation * @@ -7415,9 +7492,9 @@ public function showNestedFieldRequest($schema, $parent_id, $id, string $content * @throws \InvalidArgumentException * @return void */ - public function deleteSchema($schema, string $contentType = self::contentTypes['deleteSchema'][0]) + public function deleteSchema($app, $schema, string $contentType = self::contentTypes['deleteSchema'][0]) { - $this->deleteSchemaWithHttpInfo($schema, $contentType); + $this->deleteSchemaWithHttpInfo($app, $schema, $contentType); } /** @@ -7425,6 +7502,7 @@ public function deleteSchema($schema, string $contentType = self::contentTypes[' * * Delete a schema. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema to delete. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteSchema'] to see the possible values for this operation * @@ -7432,9 +7510,9 @@ public function deleteSchema($schema, string $contentType = self::contentTypes[' * @throws \InvalidArgumentException * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function deleteSchemaWithHttpInfo($schema, string $contentType = self::contentTypes['deleteSchema'][0]) + public function deleteSchemaWithHttpInfo($app, $schema, string $contentType = self::contentTypes['deleteSchema'][0]) { - $request = $this->deleteSchemaRequest($schema, $contentType); + $request = $this->deleteSchemaRequest($app, $schema, $contentType); try { $options = $this->createHttpClientOption(); @@ -7501,15 +7579,16 @@ public function deleteSchemaWithHttpInfo($schema, string $contentType = self::co * * Delete a schema. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema to delete. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteSchema'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteSchemaAsync($schema, string $contentType = self::contentTypes['deleteSchema'][0]) + public function deleteSchemaAsync($app, $schema, string $contentType = self::contentTypes['deleteSchema'][0]) { - return $this->deleteSchemaAsyncWithHttpInfo($schema, $contentType) + return $this->deleteSchemaAsyncWithHttpInfo($app, $schema, $contentType) ->then( function ($response) { return $response[0]; @@ -7522,16 +7601,17 @@ function ($response) { * * Delete a schema. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema to delete. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteSchema'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteSchemaAsyncWithHttpInfo($schema, string $contentType = self::contentTypes['deleteSchema'][0]) + public function deleteSchemaAsyncWithHttpInfo($app, $schema, string $contentType = self::contentTypes['deleteSchema'][0]) { $returnType = ''; - $request = $this->deleteSchemaRequest($schema, $contentType); + $request = $this->deleteSchemaRequest($app, $schema, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -7559,17 +7639,17 @@ function ($exception) { /** * Create request for operation 'deleteSchema' * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema to delete. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteSchema'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function deleteSchemaRequest($schema, string $contentType = self::contentTypes['deleteSchema'][0]) + public function deleteSchemaRequest($app, $schema, string $contentType = self::contentTypes['deleteSchema'][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 ' @@ -7669,6 +7749,7 @@ public function deleteSchemaRequest($schema, string $contentType = self::content * * Get a schema by name. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema to retrieve. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getSchema'] to see the possible values for this operation * @@ -7676,9 +7757,9 @@ public function deleteSchemaRequest($schema, string $contentType = self::content * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto */ - public function getSchema($schema, string $contentType = self::contentTypes['getSchema'][0]) + public function getSchema($app, $schema, string $contentType = self::contentTypes['getSchema'][0]) { - list($response) = $this->getSchemaWithHttpInfo($schema, $contentType); + list($response) = $this->getSchemaWithHttpInfo($app, $schema, $contentType); return $response; } @@ -7687,6 +7768,7 @@ public function getSchema($schema, string $contentType = self::contentTypes['get * * Get a schema by name. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema to retrieve. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getSchema'] to see the possible values for this operation * @@ -7694,9 +7776,9 @@ public function getSchema($schema, string $contentType = self::contentTypes['get * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getSchemaWithHttpInfo($schema, string $contentType = self::contentTypes['getSchema'][0]) + public function getSchemaWithHttpInfo($app, $schema, string $contentType = self::contentTypes['getSchema'][0]) { - $request = $this->getSchemaRequest($schema, $contentType); + $request = $this->getSchemaRequest($app, $schema, $contentType); try { $options = $this->createHttpClientOption(); @@ -7810,15 +7892,16 @@ public function getSchemaWithHttpInfo($schema, string $contentType = self::conte * * Get a schema by name. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema to retrieve. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getSchema'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getSchemaAsync($schema, string $contentType = self::contentTypes['getSchema'][0]) + public function getSchemaAsync($app, $schema, string $contentType = self::contentTypes['getSchema'][0]) { - return $this->getSchemaAsyncWithHttpInfo($schema, $contentType) + return $this->getSchemaAsyncWithHttpInfo($app, $schema, $contentType) ->then( function ($response) { return $response[0]; @@ -7831,16 +7914,17 @@ function ($response) { * * Get a schema by name. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema to retrieve. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getSchema'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getSchemaAsyncWithHttpInfo($schema, string $contentType = self::contentTypes['getSchema'][0]) + public function getSchemaAsyncWithHttpInfo($app, $schema, string $contentType = self::contentTypes['getSchema'][0]) { $returnType = '\Squidex\Client\Model\SchemaDto'; - $request = $this->getSchemaRequest($schema, $contentType); + $request = $this->getSchemaRequest($app, $schema, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -7881,17 +7965,17 @@ function ($exception) { /** * Create request for operation 'getSchema' * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema to retrieve. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getSchema'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getSchemaRequest($schema, string $contentType = self::contentTypes['getSchema'][0]) + public function getSchemaRequest($app, $schema, string $contentType = self::contentTypes['getSchema'][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 ' @@ -7991,15 +8075,16 @@ public function getSchemaRequest($schema, string $contentType = self::contentTyp * * Get schemas. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getSchemas'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemasDto|\Squidex\Client\Model\ErrorDto */ - public function getSchemas(string $contentType = self::contentTypes['getSchemas'][0]) + public function getSchemas($app, string $contentType = self::contentTypes['getSchemas'][0]) { - list($response) = $this->getSchemasWithHttpInfo($contentType); + list($response) = $this->getSchemasWithHttpInfo($app, $contentType); return $response; } @@ -8008,15 +8093,16 @@ public function getSchemas(string $contentType = self::contentTypes['getSchemas' * * Get schemas. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getSchemas'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemasDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getSchemasWithHttpInfo(string $contentType = self::contentTypes['getSchemas'][0]) + public function getSchemasWithHttpInfo($app, string $contentType = self::contentTypes['getSchemas'][0]) { - $request = $this->getSchemasRequest($contentType); + $request = $this->getSchemasRequest($app, $contentType); try { $options = $this->createHttpClientOption(); @@ -8130,14 +8216,15 @@ public function getSchemasWithHttpInfo(string $contentType = self::contentTypes[ * * Get schemas. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getSchemas'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getSchemasAsync(string $contentType = self::contentTypes['getSchemas'][0]) + public function getSchemasAsync($app, string $contentType = self::contentTypes['getSchemas'][0]) { - return $this->getSchemasAsyncWithHttpInfo($contentType) + return $this->getSchemasAsyncWithHttpInfo($app, $contentType) ->then( function ($response) { return $response[0]; @@ -8150,15 +8237,16 @@ function ($response) { * * Get schemas. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getSchemas'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getSchemasAsyncWithHttpInfo(string $contentType = self::contentTypes['getSchemas'][0]) + public function getSchemasAsyncWithHttpInfo($app, string $contentType = self::contentTypes['getSchemas'][0]) { $returnType = '\Squidex\Client\Model\SchemasDto'; - $request = $this->getSchemasRequest($contentType); + $request = $this->getSchemasRequest($app, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -8199,16 +8287,16 @@ function ($exception) { /** * Create request for operation 'getSchemas' * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getSchemas'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getSchemasRequest(string $contentType = self::contentTypes['getSchemas'][0]) + public function getSchemasRequest($app, string $contentType = self::contentTypes['getSchemas'][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 ' @@ -8293,6 +8381,7 @@ public function getSchemasRequest(string $contentType = self::contentTypes['getS * * Create a new schema. * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\CreateSchemaDto $create_schema_dto The schema object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postSchema'] to see the possible values for this operation * @@ -8300,9 +8389,9 @@ public function getSchemasRequest(string $contentType = self::contentTypes['getS * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function postSchema($create_schema_dto, string $contentType = self::contentTypes['postSchema'][0]) + public function postSchema($app, $create_schema_dto, string $contentType = self::contentTypes['postSchema'][0]) { - list($response) = $this->postSchemaWithHttpInfo($create_schema_dto, $contentType); + list($response) = $this->postSchemaWithHttpInfo($app, $create_schema_dto, $contentType); return $response; } @@ -8311,6 +8400,7 @@ public function postSchema($create_schema_dto, string $contentType = self::conte * * Create a new schema. * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\CreateSchemaDto $create_schema_dto The schema object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postSchema'] to see the possible values for this operation * @@ -8318,9 +8408,9 @@ public function postSchema($create_schema_dto, string $contentType = self::conte * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function postSchemaWithHttpInfo($create_schema_dto, string $contentType = self::contentTypes['postSchema'][0]) + public function postSchemaWithHttpInfo($app, $create_schema_dto, string $contentType = self::contentTypes['postSchema'][0]) { - $request = $this->postSchemaRequest($create_schema_dto, $contentType); + $request = $this->postSchemaRequest($app, $create_schema_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -8480,15 +8570,16 @@ public function postSchemaWithHttpInfo($create_schema_dto, string $contentType = * * Create a new schema. * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\CreateSchemaDto $create_schema_dto The schema object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postSchema'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postSchemaAsync($create_schema_dto, string $contentType = self::contentTypes['postSchema'][0]) + public function postSchemaAsync($app, $create_schema_dto, string $contentType = self::contentTypes['postSchema'][0]) { - return $this->postSchemaAsyncWithHttpInfo($create_schema_dto, $contentType) + return $this->postSchemaAsyncWithHttpInfo($app, $create_schema_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -8501,16 +8592,17 @@ function ($response) { * * Create a new schema. * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\CreateSchemaDto $create_schema_dto The schema object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postSchema'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postSchemaAsyncWithHttpInfo($create_schema_dto, string $contentType = self::contentTypes['postSchema'][0]) + public function postSchemaAsyncWithHttpInfo($app, $create_schema_dto, string $contentType = self::contentTypes['postSchema'][0]) { $returnType = '\Squidex\Client\Model\SchemaDto'; - $request = $this->postSchemaRequest($create_schema_dto, $contentType); + $request = $this->postSchemaRequest($app, $create_schema_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -8551,17 +8643,17 @@ function ($exception) { /** * Create request for operation 'postSchema' * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\CreateSchemaDto $create_schema_dto The schema object that needs to be added to the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postSchema'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function postSchemaRequest($create_schema_dto, string $contentType = self::contentTypes['postSchema'][0]) + public function postSchemaRequest($app, $create_schema_dto, string $contentType = self::contentTypes['postSchema'][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 ' @@ -8660,6 +8752,7 @@ public function postSchemaRequest($create_schema_dto, string $contentType = self * * Publish a schema. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema to publish. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['publishSchema'] to see the possible values for this operation * @@ -8667,9 +8760,9 @@ public function postSchemaRequest($create_schema_dto, string $contentType = self * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function publishSchema($schema, string $contentType = self::contentTypes['publishSchema'][0]) + public function publishSchema($app, $schema, string $contentType = self::contentTypes['publishSchema'][0]) { - list($response) = $this->publishSchemaWithHttpInfo($schema, $contentType); + list($response) = $this->publishSchemaWithHttpInfo($app, $schema, $contentType); return $response; } @@ -8678,6 +8771,7 @@ public function publishSchema($schema, string $contentType = self::contentTypes[ * * Publish a schema. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema to publish. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['publishSchema'] to see the possible values for this operation * @@ -8685,9 +8779,9 @@ public function publishSchema($schema, string $contentType = self::contentTypes[ * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function publishSchemaWithHttpInfo($schema, string $contentType = self::contentTypes['publishSchema'][0]) + public function publishSchemaWithHttpInfo($app, $schema, string $contentType = self::contentTypes['publishSchema'][0]) { - $request = $this->publishSchemaRequest($schema, $contentType); + $request = $this->publishSchemaRequest($app, $schema, $contentType); try { $options = $this->createHttpClientOption(); @@ -8824,15 +8918,16 @@ public function publishSchemaWithHttpInfo($schema, string $contentType = self::c * * Publish a schema. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema to publish. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['publishSchema'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function publishSchemaAsync($schema, string $contentType = self::contentTypes['publishSchema'][0]) + public function publishSchemaAsync($app, $schema, string $contentType = self::contentTypes['publishSchema'][0]) { - return $this->publishSchemaAsyncWithHttpInfo($schema, $contentType) + return $this->publishSchemaAsyncWithHttpInfo($app, $schema, $contentType) ->then( function ($response) { return $response[0]; @@ -8845,16 +8940,17 @@ function ($response) { * * Publish a schema. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema to publish. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['publishSchema'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function publishSchemaAsyncWithHttpInfo($schema, string $contentType = self::contentTypes['publishSchema'][0]) + public function publishSchemaAsyncWithHttpInfo($app, $schema, string $contentType = self::contentTypes['publishSchema'][0]) { $returnType = '\Squidex\Client\Model\SchemaDto'; - $request = $this->publishSchemaRequest($schema, $contentType); + $request = $this->publishSchemaRequest($app, $schema, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -8895,17 +8991,17 @@ function ($exception) { /** * Create request for operation 'publishSchema' * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema to publish. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['publishSchema'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function publishSchemaRequest($schema, string $contentType = self::contentTypes['publishSchema'][0]) + public function publishSchemaRequest($app, $schema, string $contentType = self::contentTypes['publishSchema'][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 ' @@ -9005,6 +9101,7 @@ public function publishSchemaRequest($schema, string $contentType = self::conten * * Update a schema category. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\ChangeCategoryDto $change_category_dto The schema object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putCategory'] to see the possible values for this operation @@ -9013,9 +9110,9 @@ public function publishSchemaRequest($schema, string $contentType = self::conten * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putCategory($schema, $change_category_dto, string $contentType = self::contentTypes['putCategory'][0]) + public function putCategory($app, $schema, $change_category_dto, string $contentType = self::contentTypes['putCategory'][0]) { - list($response) = $this->putCategoryWithHttpInfo($schema, $change_category_dto, $contentType); + list($response) = $this->putCategoryWithHttpInfo($app, $schema, $change_category_dto, $contentType); return $response; } @@ -9024,6 +9121,7 @@ public function putCategory($schema, $change_category_dto, string $contentType = * * Update a schema category. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\ChangeCategoryDto $change_category_dto The schema object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putCategory'] to see the possible values for this operation @@ -9032,9 +9130,9 @@ public function putCategory($schema, $change_category_dto, string $contentType = * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putCategoryWithHttpInfo($schema, $change_category_dto, string $contentType = self::contentTypes['putCategory'][0]) + public function putCategoryWithHttpInfo($app, $schema, $change_category_dto, string $contentType = self::contentTypes['putCategory'][0]) { - $request = $this->putCategoryRequest($schema, $change_category_dto, $contentType); + $request = $this->putCategoryRequest($app, $schema, $change_category_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -9171,6 +9269,7 @@ public function putCategoryWithHttpInfo($schema, $change_category_dto, string $c * * Update a schema category. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\ChangeCategoryDto $change_category_dto The schema object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putCategory'] to see the possible values for this operation @@ -9178,9 +9277,9 @@ public function putCategoryWithHttpInfo($schema, $change_category_dto, string $c * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putCategoryAsync($schema, $change_category_dto, string $contentType = self::contentTypes['putCategory'][0]) + public function putCategoryAsync($app, $schema, $change_category_dto, string $contentType = self::contentTypes['putCategory'][0]) { - return $this->putCategoryAsyncWithHttpInfo($schema, $change_category_dto, $contentType) + return $this->putCategoryAsyncWithHttpInfo($app, $schema, $change_category_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -9193,6 +9292,7 @@ function ($response) { * * Update a schema category. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\ChangeCategoryDto $change_category_dto The schema object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putCategory'] to see the possible values for this operation @@ -9200,10 +9300,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putCategoryAsyncWithHttpInfo($schema, $change_category_dto, string $contentType = self::contentTypes['putCategory'][0]) + public function putCategoryAsyncWithHttpInfo($app, $schema, $change_category_dto, string $contentType = self::contentTypes['putCategory'][0]) { $returnType = '\Squidex\Client\Model\SchemaDto'; - $request = $this->putCategoryRequest($schema, $change_category_dto, $contentType); + $request = $this->putCategoryRequest($app, $schema, $change_category_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -9244,6 +9344,7 @@ function ($exception) { /** * Create request for operation 'putCategory' * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\ChangeCategoryDto $change_category_dto The schema object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putCategory'] to see the possible values for this operation @@ -9251,11 +9352,10 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putCategoryRequest($schema, $change_category_dto, string $contentType = self::contentTypes['putCategory'][0]) + public function putCategoryRequest($app, $schema, $change_category_dto, string $contentType = self::contentTypes['putCategory'][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 ' @@ -9369,6 +9469,7 @@ public function putCategoryRequest($schema, $change_category_dto, string $conten * * Update the preview urls. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param array $request_body The preview urls for the schema. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putPreviewUrls'] to see the possible values for this operation @@ -9377,9 +9478,9 @@ public function putCategoryRequest($schema, $change_category_dto, string $conten * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putPreviewUrls($schema, $request_body, string $contentType = self::contentTypes['putPreviewUrls'][0]) + public function putPreviewUrls($app, $schema, $request_body, string $contentType = self::contentTypes['putPreviewUrls'][0]) { - list($response) = $this->putPreviewUrlsWithHttpInfo($schema, $request_body, $contentType); + list($response) = $this->putPreviewUrlsWithHttpInfo($app, $schema, $request_body, $contentType); return $response; } @@ -9388,6 +9489,7 @@ public function putPreviewUrls($schema, $request_body, string $contentType = sel * * Update the preview urls. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param array $request_body The preview urls for the schema. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putPreviewUrls'] to see the possible values for this operation @@ -9396,9 +9498,9 @@ public function putPreviewUrls($schema, $request_body, string $contentType = sel * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putPreviewUrlsWithHttpInfo($schema, $request_body, string $contentType = self::contentTypes['putPreviewUrls'][0]) + public function putPreviewUrlsWithHttpInfo($app, $schema, $request_body, string $contentType = self::contentTypes['putPreviewUrls'][0]) { - $request = $this->putPreviewUrlsRequest($schema, $request_body, $contentType); + $request = $this->putPreviewUrlsRequest($app, $schema, $request_body, $contentType); try { $options = $this->createHttpClientOption(); @@ -9535,6 +9637,7 @@ public function putPreviewUrlsWithHttpInfo($schema, $request_body, string $conte * * Update the preview urls. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param array $request_body The preview urls for the schema. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putPreviewUrls'] to see the possible values for this operation @@ -9542,9 +9645,9 @@ public function putPreviewUrlsWithHttpInfo($schema, $request_body, string $conte * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putPreviewUrlsAsync($schema, $request_body, string $contentType = self::contentTypes['putPreviewUrls'][0]) + public function putPreviewUrlsAsync($app, $schema, $request_body, string $contentType = self::contentTypes['putPreviewUrls'][0]) { - return $this->putPreviewUrlsAsyncWithHttpInfo($schema, $request_body, $contentType) + return $this->putPreviewUrlsAsyncWithHttpInfo($app, $schema, $request_body, $contentType) ->then( function ($response) { return $response[0]; @@ -9557,6 +9660,7 @@ function ($response) { * * Update the preview urls. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param array $request_body The preview urls for the schema. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putPreviewUrls'] to see the possible values for this operation @@ -9564,10 +9668,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putPreviewUrlsAsyncWithHttpInfo($schema, $request_body, string $contentType = self::contentTypes['putPreviewUrls'][0]) + public function putPreviewUrlsAsyncWithHttpInfo($app, $schema, $request_body, string $contentType = self::contentTypes['putPreviewUrls'][0]) { $returnType = '\Squidex\Client\Model\SchemaDto'; - $request = $this->putPreviewUrlsRequest($schema, $request_body, $contentType); + $request = $this->putPreviewUrlsRequest($app, $schema, $request_body, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -9608,6 +9712,7 @@ function ($exception) { /** * Create request for operation 'putPreviewUrls' * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param array $request_body The preview urls for the schema. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putPreviewUrls'] to see the possible values for this operation @@ -9615,11 +9720,10 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putPreviewUrlsRequest($schema, $request_body, string $contentType = self::contentTypes['putPreviewUrls'][0]) + public function putPreviewUrlsRequest($app, $schema, $request_body, string $contentType = self::contentTypes['putPreviewUrls'][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 ' @@ -9733,6 +9837,7 @@ public function putPreviewUrlsRequest($schema, $request_body, string $contentTyp * * Update the rules. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\ConfigureFieldRulesDto $configure_field_rules_dto The schema rules object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putRules'] to see the possible values for this operation @@ -9741,9 +9846,9 @@ public function putPreviewUrlsRequest($schema, $request_body, string $contentTyp * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putRules($schema, $configure_field_rules_dto, string $contentType = self::contentTypes['putRules'][0]) + public function putRules($app, $schema, $configure_field_rules_dto, string $contentType = self::contentTypes['putRules'][0]) { - list($response) = $this->putRulesWithHttpInfo($schema, $configure_field_rules_dto, $contentType); + list($response) = $this->putRulesWithHttpInfo($app, $schema, $configure_field_rules_dto, $contentType); return $response; } @@ -9752,6 +9857,7 @@ public function putRules($schema, $configure_field_rules_dto, string $contentTyp * * Update the rules. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\ConfigureFieldRulesDto $configure_field_rules_dto The schema rules object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putRules'] to see the possible values for this operation @@ -9760,9 +9866,9 @@ public function putRules($schema, $configure_field_rules_dto, string $contentTyp * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putRulesWithHttpInfo($schema, $configure_field_rules_dto, string $contentType = self::contentTypes['putRules'][0]) + public function putRulesWithHttpInfo($app, $schema, $configure_field_rules_dto, string $contentType = self::contentTypes['putRules'][0]) { - $request = $this->putRulesRequest($schema, $configure_field_rules_dto, $contentType); + $request = $this->putRulesRequest($app, $schema, $configure_field_rules_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -9899,6 +10005,7 @@ public function putRulesWithHttpInfo($schema, $configure_field_rules_dto, string * * Update the rules. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\ConfigureFieldRulesDto $configure_field_rules_dto The schema rules object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putRules'] to see the possible values for this operation @@ -9906,9 +10013,9 @@ public function putRulesWithHttpInfo($schema, $configure_field_rules_dto, string * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putRulesAsync($schema, $configure_field_rules_dto, string $contentType = self::contentTypes['putRules'][0]) + public function putRulesAsync($app, $schema, $configure_field_rules_dto, string $contentType = self::contentTypes['putRules'][0]) { - return $this->putRulesAsyncWithHttpInfo($schema, $configure_field_rules_dto, $contentType) + return $this->putRulesAsyncWithHttpInfo($app, $schema, $configure_field_rules_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -9921,6 +10028,7 @@ function ($response) { * * Update the rules. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\ConfigureFieldRulesDto $configure_field_rules_dto The schema rules object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putRules'] to see the possible values for this operation @@ -9928,10 +10036,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putRulesAsyncWithHttpInfo($schema, $configure_field_rules_dto, string $contentType = self::contentTypes['putRules'][0]) + public function putRulesAsyncWithHttpInfo($app, $schema, $configure_field_rules_dto, string $contentType = self::contentTypes['putRules'][0]) { $returnType = '\Squidex\Client\Model\SchemaDto'; - $request = $this->putRulesRequest($schema, $configure_field_rules_dto, $contentType); + $request = $this->putRulesRequest($app, $schema, $configure_field_rules_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -9972,6 +10080,7 @@ function ($exception) { /** * Create request for operation 'putRules' * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\ConfigureFieldRulesDto $configure_field_rules_dto The schema rules object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putRules'] to see the possible values for this operation @@ -9979,11 +10088,10 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putRulesRequest($schema, $configure_field_rules_dto, string $contentType = self::contentTypes['putRules'][0]) + public function putRulesRequest($app, $schema, $configure_field_rules_dto, string $contentType = self::contentTypes['putRules'][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 ' @@ -10097,6 +10205,7 @@ public function putRulesRequest($schema, $configure_field_rules_dto, string $con * * Update a schema. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\UpdateSchemaDto $update_schema_dto The schema object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putSchema'] to see the possible values for this operation @@ -10105,9 +10214,9 @@ public function putRulesRequest($schema, $configure_field_rules_dto, string $con * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putSchema($schema, $update_schema_dto, string $contentType = self::contentTypes['putSchema'][0]) + public function putSchema($app, $schema, $update_schema_dto, string $contentType = self::contentTypes['putSchema'][0]) { - list($response) = $this->putSchemaWithHttpInfo($schema, $update_schema_dto, $contentType); + list($response) = $this->putSchemaWithHttpInfo($app, $schema, $update_schema_dto, $contentType); return $response; } @@ -10116,6 +10225,7 @@ public function putSchema($schema, $update_schema_dto, string $contentType = sel * * Update a schema. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\UpdateSchemaDto $update_schema_dto The schema object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putSchema'] to see the possible values for this operation @@ -10124,9 +10234,9 @@ public function putSchema($schema, $update_schema_dto, string $contentType = sel * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putSchemaWithHttpInfo($schema, $update_schema_dto, string $contentType = self::contentTypes['putSchema'][0]) + public function putSchemaWithHttpInfo($app, $schema, $update_schema_dto, string $contentType = self::contentTypes['putSchema'][0]) { - $request = $this->putSchemaRequest($schema, $update_schema_dto, $contentType); + $request = $this->putSchemaRequest($app, $schema, $update_schema_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -10263,6 +10373,7 @@ public function putSchemaWithHttpInfo($schema, $update_schema_dto, string $conte * * Update a schema. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\UpdateSchemaDto $update_schema_dto The schema object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putSchema'] to see the possible values for this operation @@ -10270,9 +10381,9 @@ public function putSchemaWithHttpInfo($schema, $update_schema_dto, string $conte * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putSchemaAsync($schema, $update_schema_dto, string $contentType = self::contentTypes['putSchema'][0]) + public function putSchemaAsync($app, $schema, $update_schema_dto, string $contentType = self::contentTypes['putSchema'][0]) { - return $this->putSchemaAsyncWithHttpInfo($schema, $update_schema_dto, $contentType) + return $this->putSchemaAsyncWithHttpInfo($app, $schema, $update_schema_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -10285,6 +10396,7 @@ function ($response) { * * Update a schema. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\UpdateSchemaDto $update_schema_dto The schema object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putSchema'] to see the possible values for this operation @@ -10292,10 +10404,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putSchemaAsyncWithHttpInfo($schema, $update_schema_dto, string $contentType = self::contentTypes['putSchema'][0]) + public function putSchemaAsyncWithHttpInfo($app, $schema, $update_schema_dto, string $contentType = self::contentTypes['putSchema'][0]) { $returnType = '\Squidex\Client\Model\SchemaDto'; - $request = $this->putSchemaRequest($schema, $update_schema_dto, $contentType); + $request = $this->putSchemaRequest($app, $schema, $update_schema_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -10336,6 +10448,7 @@ function ($exception) { /** * Create request for operation 'putSchema' * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\UpdateSchemaDto $update_schema_dto The schema object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putSchema'] to see the possible values for this operation @@ -10343,11 +10456,10 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putSchemaRequest($schema, $update_schema_dto, string $contentType = self::contentTypes['putSchema'][0]) + public function putSchemaRequest($app, $schema, $update_schema_dto, string $contentType = self::contentTypes['putSchema'][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 ' @@ -10461,6 +10573,7 @@ public function putSchemaRequest($schema, $update_schema_dto, string $contentTyp * * Synchronize a schema. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\SynchronizeSchemaDto $synchronize_schema_dto The schema object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putSchemaSync'] to see the possible values for this operation @@ -10469,9 +10582,9 @@ public function putSchemaRequest($schema, $update_schema_dto, string $contentTyp * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putSchemaSync($schema, $synchronize_schema_dto, string $contentType = self::contentTypes['putSchemaSync'][0]) + public function putSchemaSync($app, $schema, $synchronize_schema_dto, string $contentType = self::contentTypes['putSchemaSync'][0]) { - list($response) = $this->putSchemaSyncWithHttpInfo($schema, $synchronize_schema_dto, $contentType); + list($response) = $this->putSchemaSyncWithHttpInfo($app, $schema, $synchronize_schema_dto, $contentType); return $response; } @@ -10480,6 +10593,7 @@ public function putSchemaSync($schema, $synchronize_schema_dto, string $contentT * * Synchronize a schema. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\SynchronizeSchemaDto $synchronize_schema_dto The schema object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putSchemaSync'] to see the possible values for this operation @@ -10488,9 +10602,9 @@ public function putSchemaSync($schema, $synchronize_schema_dto, string $contentT * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putSchemaSyncWithHttpInfo($schema, $synchronize_schema_dto, string $contentType = self::contentTypes['putSchemaSync'][0]) + public function putSchemaSyncWithHttpInfo($app, $schema, $synchronize_schema_dto, string $contentType = self::contentTypes['putSchemaSync'][0]) { - $request = $this->putSchemaSyncRequest($schema, $synchronize_schema_dto, $contentType); + $request = $this->putSchemaSyncRequest($app, $schema, $synchronize_schema_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -10627,6 +10741,7 @@ public function putSchemaSyncWithHttpInfo($schema, $synchronize_schema_dto, stri * * Synchronize a schema. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\SynchronizeSchemaDto $synchronize_schema_dto The schema object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putSchemaSync'] to see the possible values for this operation @@ -10634,9 +10749,9 @@ public function putSchemaSyncWithHttpInfo($schema, $synchronize_schema_dto, stri * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putSchemaSyncAsync($schema, $synchronize_schema_dto, string $contentType = self::contentTypes['putSchemaSync'][0]) + public function putSchemaSyncAsync($app, $schema, $synchronize_schema_dto, string $contentType = self::contentTypes['putSchemaSync'][0]) { - return $this->putSchemaSyncAsyncWithHttpInfo($schema, $synchronize_schema_dto, $contentType) + return $this->putSchemaSyncAsyncWithHttpInfo($app, $schema, $synchronize_schema_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -10649,6 +10764,7 @@ function ($response) { * * Synchronize a schema. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\SynchronizeSchemaDto $synchronize_schema_dto The schema object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putSchemaSync'] to see the possible values for this operation @@ -10656,10 +10772,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putSchemaSyncAsyncWithHttpInfo($schema, $synchronize_schema_dto, string $contentType = self::contentTypes['putSchemaSync'][0]) + public function putSchemaSyncAsyncWithHttpInfo($app, $schema, $synchronize_schema_dto, string $contentType = self::contentTypes['putSchemaSync'][0]) { $returnType = '\Squidex\Client\Model\SchemaDto'; - $request = $this->putSchemaSyncRequest($schema, $synchronize_schema_dto, $contentType); + $request = $this->putSchemaSyncRequest($app, $schema, $synchronize_schema_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -10700,6 +10816,7 @@ function ($exception) { /** * Create request for operation 'putSchemaSync' * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\SynchronizeSchemaDto $synchronize_schema_dto The schema object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putSchemaSync'] to see the possible values for this operation @@ -10707,11 +10824,10 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putSchemaSyncRequest($schema, $synchronize_schema_dto, string $contentType = self::contentTypes['putSchemaSync'][0]) + public function putSchemaSyncRequest($app, $schema, $synchronize_schema_dto, string $contentType = self::contentTypes['putSchemaSync'][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 ' @@ -10825,6 +10941,7 @@ public function putSchemaSyncRequest($schema, $synchronize_schema_dto, string $c * * Update the scripts. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\SchemaScriptsDto $schema_scripts_dto The schema scripts object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putScripts'] to see the possible values for this operation @@ -10833,9 +10950,9 @@ public function putSchemaSyncRequest($schema, $synchronize_schema_dto, string $c * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function putScripts($schema, $schema_scripts_dto, string $contentType = self::contentTypes['putScripts'][0]) + public function putScripts($app, $schema, $schema_scripts_dto, string $contentType = self::contentTypes['putScripts'][0]) { - list($response) = $this->putScriptsWithHttpInfo($schema, $schema_scripts_dto, $contentType); + list($response) = $this->putScriptsWithHttpInfo($app, $schema, $schema_scripts_dto, $contentType); return $response; } @@ -10844,6 +10961,7 @@ public function putScripts($schema, $schema_scripts_dto, string $contentType = s * * Update the scripts. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\SchemaScriptsDto $schema_scripts_dto The schema scripts object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putScripts'] to see the possible values for this operation @@ -10852,9 +10970,9 @@ public function putScripts($schema, $schema_scripts_dto, string $contentType = s * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function putScriptsWithHttpInfo($schema, $schema_scripts_dto, string $contentType = self::contentTypes['putScripts'][0]) + public function putScriptsWithHttpInfo($app, $schema, $schema_scripts_dto, string $contentType = self::contentTypes['putScripts'][0]) { - $request = $this->putScriptsRequest($schema, $schema_scripts_dto, $contentType); + $request = $this->putScriptsRequest($app, $schema, $schema_scripts_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -10991,6 +11109,7 @@ public function putScriptsWithHttpInfo($schema, $schema_scripts_dto, string $con * * Update the scripts. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\SchemaScriptsDto $schema_scripts_dto The schema scripts object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putScripts'] to see the possible values for this operation @@ -10998,9 +11117,9 @@ public function putScriptsWithHttpInfo($schema, $schema_scripts_dto, string $con * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putScriptsAsync($schema, $schema_scripts_dto, string $contentType = self::contentTypes['putScripts'][0]) + public function putScriptsAsync($app, $schema, $schema_scripts_dto, string $contentType = self::contentTypes['putScripts'][0]) { - return $this->putScriptsAsyncWithHttpInfo($schema, $schema_scripts_dto, $contentType) + return $this->putScriptsAsyncWithHttpInfo($app, $schema, $schema_scripts_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -11013,6 +11132,7 @@ function ($response) { * * Update the scripts. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\SchemaScriptsDto $schema_scripts_dto The schema scripts object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putScripts'] to see the possible values for this operation @@ -11020,10 +11140,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putScriptsAsyncWithHttpInfo($schema, $schema_scripts_dto, string $contentType = self::contentTypes['putScripts'][0]) + public function putScriptsAsyncWithHttpInfo($app, $schema, $schema_scripts_dto, string $contentType = self::contentTypes['putScripts'][0]) { $returnType = '\Squidex\Client\Model\SchemaDto'; - $request = $this->putScriptsRequest($schema, $schema_scripts_dto, $contentType); + $request = $this->putScriptsRequest($app, $schema, $schema_scripts_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -11064,6 +11184,7 @@ function ($exception) { /** * Create request for operation 'putScripts' * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema. (required) * @param \Squidex\Client\Model\SchemaScriptsDto $schema_scripts_dto The schema scripts object that needs to updated. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['putScripts'] to see the possible values for this operation @@ -11071,11 +11192,10 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function putScriptsRequest($schema, $schema_scripts_dto, string $contentType = self::contentTypes['putScripts'][0]) + public function putScriptsRequest($app, $schema, $schema_scripts_dto, string $contentType = self::contentTypes['putScripts'][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 ' @@ -11189,6 +11309,7 @@ public function putScriptsRequest($schema, $schema_scripts_dto, string $contentT * * Unpublish a schema. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema to unpublish. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['unpublishSchema'] to see the possible values for this operation * @@ -11196,9 +11317,9 @@ public function putScriptsRequest($schema, $schema_scripts_dto, string $contentT * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function unpublishSchema($schema, string $contentType = self::contentTypes['unpublishSchema'][0]) + public function unpublishSchema($app, $schema, string $contentType = self::contentTypes['unpublishSchema'][0]) { - list($response) = $this->unpublishSchemaWithHttpInfo($schema, $contentType); + list($response) = $this->unpublishSchemaWithHttpInfo($app, $schema, $contentType); return $response; } @@ -11207,6 +11328,7 @@ public function unpublishSchema($schema, string $contentType = self::contentType * * Unpublish a schema. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema to unpublish. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['unpublishSchema'] to see the possible values for this operation * @@ -11214,9 +11336,9 @@ public function unpublishSchema($schema, string $contentType = self::contentType * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SchemaDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function unpublishSchemaWithHttpInfo($schema, string $contentType = self::contentTypes['unpublishSchema'][0]) + public function unpublishSchemaWithHttpInfo($app, $schema, string $contentType = self::contentTypes['unpublishSchema'][0]) { - $request = $this->unpublishSchemaRequest($schema, $contentType); + $request = $this->unpublishSchemaRequest($app, $schema, $contentType); try { $options = $this->createHttpClientOption(); @@ -11353,15 +11475,16 @@ public function unpublishSchemaWithHttpInfo($schema, string $contentType = self: * * Unpublish a schema. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema to unpublish. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['unpublishSchema'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function unpublishSchemaAsync($schema, string $contentType = self::contentTypes['unpublishSchema'][0]) + public function unpublishSchemaAsync($app, $schema, string $contentType = self::contentTypes['unpublishSchema'][0]) { - return $this->unpublishSchemaAsyncWithHttpInfo($schema, $contentType) + return $this->unpublishSchemaAsyncWithHttpInfo($app, $schema, $contentType) ->then( function ($response) { return $response[0]; @@ -11374,16 +11497,17 @@ function ($response) { * * Unpublish a schema. * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema to unpublish. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['unpublishSchema'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function unpublishSchemaAsyncWithHttpInfo($schema, string $contentType = self::contentTypes['unpublishSchema'][0]) + public function unpublishSchemaAsyncWithHttpInfo($app, $schema, string $contentType = self::contentTypes['unpublishSchema'][0]) { $returnType = '\Squidex\Client\Model\SchemaDto'; - $request = $this->unpublishSchemaRequest($schema, $contentType); + $request = $this->unpublishSchemaRequest($app, $schema, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -11424,17 +11548,17 @@ function ($exception) { /** * Create request for operation 'unpublishSchema' * + * @param string $app The name of the app. (required) * @param string $schema The name of the schema to unpublish. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['unpublishSchema'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function unpublishSchemaRequest($schema, string $contentType = self::contentTypes['unpublishSchema'][0]) + public function unpublishSchemaRequest($app, $schema, string $contentType = self::contentTypes['unpublishSchema'][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 ' diff --git a/lib/Api/SearchApi.php b/lib/Api/SearchApi.php index 1d79898..0f25a71 100644 --- a/lib/Api/SearchApi.php +++ b/lib/Api/SearchApi.php @@ -124,6 +124,7 @@ public function getConfig() * * Get search results. * + * @param string $app The name of the app. (required) * @param string $query The search query. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getSearchResults'] to see the possible values for this operation * @@ -131,9 +132,9 @@ public function getConfig() * @throws \InvalidArgumentException * @return \Squidex\Client\Model\SearchResultDto[]|\Squidex\Client\Model\ErrorDto */ - public function getSearchResults($query = null, string $contentType = self::contentTypes['getSearchResults'][0]) + public function getSearchResults($app, $query = null, string $contentType = self::contentTypes['getSearchResults'][0]) { - list($response) = $this->getSearchResultsWithHttpInfo($query, $contentType); + list($response) = $this->getSearchResultsWithHttpInfo($app, $query, $contentType); return $response; } @@ -142,6 +143,7 @@ public function getSearchResults($query = null, string $contentType = self::cont * * Get search results. * + * @param string $app The name of the app. (required) * @param string $query The search query. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getSearchResults'] to see the possible values for this operation * @@ -149,9 +151,9 @@ public function getSearchResults($query = null, string $contentType = self::cont * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\SearchResultDto[]|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getSearchResultsWithHttpInfo($query = null, string $contentType = self::contentTypes['getSearchResults'][0]) + public function getSearchResultsWithHttpInfo($app, $query = null, string $contentType = self::contentTypes['getSearchResults'][0]) { - $request = $this->getSearchResultsRequest($query, $contentType); + $request = $this->getSearchResultsRequest($app, $query, $contentType); try { $options = $this->createHttpClientOption(); @@ -265,15 +267,16 @@ public function getSearchResultsWithHttpInfo($query = null, string $contentType * * Get search results. * + * @param string $app The name of the app. (required) * @param string $query The search query. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getSearchResults'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getSearchResultsAsync($query = null, string $contentType = self::contentTypes['getSearchResults'][0]) + public function getSearchResultsAsync($app, $query = null, string $contentType = self::contentTypes['getSearchResults'][0]) { - return $this->getSearchResultsAsyncWithHttpInfo($query, $contentType) + return $this->getSearchResultsAsyncWithHttpInfo($app, $query, $contentType) ->then( function ($response) { return $response[0]; @@ -286,16 +289,17 @@ function ($response) { * * Get search results. * + * @param string $app The name of the app. (required) * @param string $query The search query. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getSearchResults'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getSearchResultsAsyncWithHttpInfo($query = null, string $contentType = self::contentTypes['getSearchResults'][0]) + public function getSearchResultsAsyncWithHttpInfo($app, $query = null, string $contentType = self::contentTypes['getSearchResults'][0]) { $returnType = '\Squidex\Client\Model\SearchResultDto[]'; - $request = $this->getSearchResultsRequest($query, $contentType); + $request = $this->getSearchResultsRequest($app, $query, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -336,17 +340,17 @@ function ($exception) { /** * Create request for operation 'getSearchResults' * + * @param string $app The name of the app. (required) * @param string $query The search query. (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getSearchResults'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getSearchResultsRequest($query = null, string $contentType = self::contentTypes['getSearchResults'][0]) + public function getSearchResultsRequest($app, $query = null, string $contentType = self::contentTypes['getSearchResults'][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 ' diff --git a/lib/Api/StatisticsApi.php b/lib/Api/StatisticsApi.php index 4a38ef8..dbb77e7 100644 --- a/lib/Api/StatisticsApi.php +++ b/lib/Api/StatisticsApi.php @@ -142,15 +142,16 @@ public function getConfig() * * Get total asset size. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getCurrentStorageSize'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \Squidex\Client\Model\CurrentStorageDto|\Squidex\Client\Model\ErrorDto */ - public function getCurrentStorageSize(string $contentType = self::contentTypes['getCurrentStorageSize'][0]) + public function getCurrentStorageSize($app, string $contentType = self::contentTypes['getCurrentStorageSize'][0]) { - list($response) = $this->getCurrentStorageSizeWithHttpInfo($contentType); + list($response) = $this->getCurrentStorageSizeWithHttpInfo($app, $contentType); return $response; } @@ -159,15 +160,16 @@ public function getCurrentStorageSize(string $contentType = self::contentTypes[' * * Get total asset size. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getCurrentStorageSize'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\CurrentStorageDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getCurrentStorageSizeWithHttpInfo(string $contentType = self::contentTypes['getCurrentStorageSize'][0]) + public function getCurrentStorageSizeWithHttpInfo($app, string $contentType = self::contentTypes['getCurrentStorageSize'][0]) { - $request = $this->getCurrentStorageSizeRequest($contentType); + $request = $this->getCurrentStorageSizeRequest($app, $contentType); try { $options = $this->createHttpClientOption(); @@ -281,14 +283,15 @@ public function getCurrentStorageSizeWithHttpInfo(string $contentType = self::co * * Get total asset size. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getCurrentStorageSize'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getCurrentStorageSizeAsync(string $contentType = self::contentTypes['getCurrentStorageSize'][0]) + public function getCurrentStorageSizeAsync($app, string $contentType = self::contentTypes['getCurrentStorageSize'][0]) { - return $this->getCurrentStorageSizeAsyncWithHttpInfo($contentType) + return $this->getCurrentStorageSizeAsyncWithHttpInfo($app, $contentType) ->then( function ($response) { return $response[0]; @@ -301,15 +304,16 @@ function ($response) { * * Get total asset size. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getCurrentStorageSize'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getCurrentStorageSizeAsyncWithHttpInfo(string $contentType = self::contentTypes['getCurrentStorageSize'][0]) + public function getCurrentStorageSizeAsyncWithHttpInfo($app, string $contentType = self::contentTypes['getCurrentStorageSize'][0]) { $returnType = '\Squidex\Client\Model\CurrentStorageDto'; - $request = $this->getCurrentStorageSizeRequest($contentType); + $request = $this->getCurrentStorageSizeRequest($app, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -350,16 +354,16 @@ function ($exception) { /** * Create request for operation 'getCurrentStorageSize' * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getCurrentStorageSize'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getCurrentStorageSizeRequest(string $contentType = self::contentTypes['getCurrentStorageSize'][0]) + public function getCurrentStorageSizeRequest($app, string $contentType = self::contentTypes['getCurrentStorageSize'][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 ' @@ -444,15 +448,16 @@ public function getCurrentStorageSizeRequest(string $contentType = self::content * * Get api calls as log file. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getLog'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \Squidex\Client\Model\LogDownloadDto|\Squidex\Client\Model\ErrorDto */ - public function getLog(string $contentType = self::contentTypes['getLog'][0]) + public function getLog($app, string $contentType = self::contentTypes['getLog'][0]) { - list($response) = $this->getLogWithHttpInfo($contentType); + list($response) = $this->getLogWithHttpInfo($app, $contentType); return $response; } @@ -461,15 +466,16 @@ public function getLog(string $contentType = self::contentTypes['getLog'][0]) * * Get api calls as log file. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getLog'] to see the possible values for this operation * * @throws \Squidex\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\LogDownloadDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getLogWithHttpInfo(string $contentType = self::contentTypes['getLog'][0]) + public function getLogWithHttpInfo($app, string $contentType = self::contentTypes['getLog'][0]) { - $request = $this->getLogRequest($contentType); + $request = $this->getLogRequest($app, $contentType); try { $options = $this->createHttpClientOption(); @@ -583,14 +589,15 @@ public function getLogWithHttpInfo(string $contentType = self::contentTypes['get * * Get api calls as log file. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getLog'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getLogAsync(string $contentType = self::contentTypes['getLog'][0]) + public function getLogAsync($app, string $contentType = self::contentTypes['getLog'][0]) { - return $this->getLogAsyncWithHttpInfo($contentType) + return $this->getLogAsyncWithHttpInfo($app, $contentType) ->then( function ($response) { return $response[0]; @@ -603,15 +610,16 @@ function ($response) { * * Get api calls as log file. * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getLog'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getLogAsyncWithHttpInfo(string $contentType = self::contentTypes['getLog'][0]) + public function getLogAsyncWithHttpInfo($app, string $contentType = self::contentTypes['getLog'][0]) { $returnType = '\Squidex\Client\Model\LogDownloadDto'; - $request = $this->getLogRequest($contentType); + $request = $this->getLogRequest($app, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -652,16 +660,16 @@ function ($exception) { /** * Create request for operation 'getLog' * + * @param string $app The name of the app. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getLog'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getLogRequest(string $contentType = self::contentTypes['getLog'][0]) + public function getLogRequest($app, string $contentType = self::contentTypes['getLog'][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 ' @@ -746,6 +754,7 @@ public function getLogRequest(string $contentType = self::contentTypes['getLog'] * * Get asset usage by date. * + * @param string $app The name of the app. (required) * @param \DateTime $from_date The from date. (required) * @param \DateTime $to_date The to date. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getStorageSizes'] to see the possible values for this operation @@ -754,9 +763,9 @@ public function getLogRequest(string $contentType = self::contentTypes['getLog'] * @throws \InvalidArgumentException * @return \Squidex\Client\Model\StorageUsagePerDateDto[]|\Squidex\Client\Model\ErrorDto */ - public function getStorageSizes($from_date, $to_date, string $contentType = self::contentTypes['getStorageSizes'][0]) + public function getStorageSizes($app, $from_date, $to_date, string $contentType = self::contentTypes['getStorageSizes'][0]) { - list($response) = $this->getStorageSizesWithHttpInfo($from_date, $to_date, $contentType); + list($response) = $this->getStorageSizesWithHttpInfo($app, $from_date, $to_date, $contentType); return $response; } @@ -765,6 +774,7 @@ public function getStorageSizes($from_date, $to_date, string $contentType = self * * Get asset usage by date. * + * @param string $app The name of the app. (required) * @param \DateTime $from_date The from date. (required) * @param \DateTime $to_date The to date. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getStorageSizes'] to see the possible values for this operation @@ -773,9 +783,9 @@ public function getStorageSizes($from_date, $to_date, string $contentType = self * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\StorageUsagePerDateDto[]|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getStorageSizesWithHttpInfo($from_date, $to_date, string $contentType = self::contentTypes['getStorageSizes'][0]) + public function getStorageSizesWithHttpInfo($app, $from_date, $to_date, string $contentType = self::contentTypes['getStorageSizes'][0]) { - $request = $this->getStorageSizesRequest($from_date, $to_date, $contentType); + $request = $this->getStorageSizesRequest($app, $from_date, $to_date, $contentType); try { $options = $this->createHttpClientOption(); @@ -889,6 +899,7 @@ public function getStorageSizesWithHttpInfo($from_date, $to_date, string $conten * * Get asset usage by date. * + * @param string $app The name of the app. (required) * @param \DateTime $from_date The from date. (required) * @param \DateTime $to_date The to date. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getStorageSizes'] to see the possible values for this operation @@ -896,9 +907,9 @@ public function getStorageSizesWithHttpInfo($from_date, $to_date, string $conten * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getStorageSizesAsync($from_date, $to_date, string $contentType = self::contentTypes['getStorageSizes'][0]) + public function getStorageSizesAsync($app, $from_date, $to_date, string $contentType = self::contentTypes['getStorageSizes'][0]) { - return $this->getStorageSizesAsyncWithHttpInfo($from_date, $to_date, $contentType) + return $this->getStorageSizesAsyncWithHttpInfo($app, $from_date, $to_date, $contentType) ->then( function ($response) { return $response[0]; @@ -911,6 +922,7 @@ function ($response) { * * Get asset usage by date. * + * @param string $app The name of the app. (required) * @param \DateTime $from_date The from date. (required) * @param \DateTime $to_date The to date. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getStorageSizes'] to see the possible values for this operation @@ -918,10 +930,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getStorageSizesAsyncWithHttpInfo($from_date, $to_date, string $contentType = self::contentTypes['getStorageSizes'][0]) + public function getStorageSizesAsyncWithHttpInfo($app, $from_date, $to_date, string $contentType = self::contentTypes['getStorageSizes'][0]) { $returnType = '\Squidex\Client\Model\StorageUsagePerDateDto[]'; - $request = $this->getStorageSizesRequest($from_date, $to_date, $contentType); + $request = $this->getStorageSizesRequest($app, $from_date, $to_date, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -962,6 +974,7 @@ function ($exception) { /** * Create request for operation 'getStorageSizes' * + * @param string $app The name of the app. (required) * @param \DateTime $from_date The from date. (required) * @param \DateTime $to_date The to date. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getStorageSizes'] to see the possible values for this operation @@ -969,11 +982,10 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getStorageSizesRequest($from_date, $to_date, string $contentType = self::contentTypes['getStorageSizes'][0]) + public function getStorageSizesRequest($app, $from_date, $to_date, string $contentType = self::contentTypes['getStorageSizes'][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 ' @@ -1740,6 +1752,7 @@ public function getTeamCurrentStorageSizeForTeamRequest($team, string $contentTy * * Get api calls in date range. * + * @param string $app The name of the app. (required) * @param \DateTime $from_date The from date. (required) * @param \DateTime $to_date The to date. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getUsages'] to see the possible values for this operation @@ -1748,9 +1761,9 @@ public function getTeamCurrentStorageSizeForTeamRequest($team, string $contentTy * @throws \InvalidArgumentException * @return \Squidex\Client\Model\CallsUsageDtoDto|\Squidex\Client\Model\ErrorDto */ - public function getUsages($from_date, $to_date, string $contentType = self::contentTypes['getUsages'][0]) + public function getUsages($app, $from_date, $to_date, string $contentType = self::contentTypes['getUsages'][0]) { - list($response) = $this->getUsagesWithHttpInfo($from_date, $to_date, $contentType); + list($response) = $this->getUsagesWithHttpInfo($app, $from_date, $to_date, $contentType); return $response; } @@ -1759,6 +1772,7 @@ public function getUsages($from_date, $to_date, string $contentType = self::cont * * Get api calls in date range. * + * @param string $app The name of the app. (required) * @param \DateTime $from_date The from date. (required) * @param \DateTime $to_date The to date. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getUsages'] to see the possible values for this operation @@ -1767,9 +1781,9 @@ public function getUsages($from_date, $to_date, string $contentType = self::cont * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\CallsUsageDtoDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function getUsagesWithHttpInfo($from_date, $to_date, string $contentType = self::contentTypes['getUsages'][0]) + public function getUsagesWithHttpInfo($app, $from_date, $to_date, string $contentType = self::contentTypes['getUsages'][0]) { - $request = $this->getUsagesRequest($from_date, $to_date, $contentType); + $request = $this->getUsagesRequest($app, $from_date, $to_date, $contentType); try { $options = $this->createHttpClientOption(); @@ -1883,6 +1897,7 @@ public function getUsagesWithHttpInfo($from_date, $to_date, string $contentType * * Get api calls in date range. * + * @param string $app The name of the app. (required) * @param \DateTime $from_date The from date. (required) * @param \DateTime $to_date The to date. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getUsages'] to see the possible values for this operation @@ -1890,9 +1905,9 @@ public function getUsagesWithHttpInfo($from_date, $to_date, string $contentType * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getUsagesAsync($from_date, $to_date, string $contentType = self::contentTypes['getUsages'][0]) + public function getUsagesAsync($app, $from_date, $to_date, string $contentType = self::contentTypes['getUsages'][0]) { - return $this->getUsagesAsyncWithHttpInfo($from_date, $to_date, $contentType) + return $this->getUsagesAsyncWithHttpInfo($app, $from_date, $to_date, $contentType) ->then( function ($response) { return $response[0]; @@ -1905,6 +1920,7 @@ function ($response) { * * Get api calls in date range. * + * @param string $app The name of the app. (required) * @param \DateTime $from_date The from date. (required) * @param \DateTime $to_date The to date. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getUsages'] to see the possible values for this operation @@ -1912,10 +1928,10 @@ function ($response) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getUsagesAsyncWithHttpInfo($from_date, $to_date, string $contentType = self::contentTypes['getUsages'][0]) + public function getUsagesAsyncWithHttpInfo($app, $from_date, $to_date, string $contentType = self::contentTypes['getUsages'][0]) { $returnType = '\Squidex\Client\Model\CallsUsageDtoDto'; - $request = $this->getUsagesRequest($from_date, $to_date, $contentType); + $request = $this->getUsagesRequest($app, $from_date, $to_date, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1956,6 +1972,7 @@ function ($exception) { /** * Create request for operation 'getUsages' * + * @param string $app The name of the app. (required) * @param \DateTime $from_date The from date. (required) * @param \DateTime $to_date The to date. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getUsages'] to see the possible values for this operation @@ -1963,11 +1980,10 @@ function ($exception) { * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getUsagesRequest($from_date, $to_date, string $contentType = self::contentTypes['getUsages'][0]) + public function getUsagesRequest($app, $from_date, $to_date, string $contentType = self::contentTypes['getUsages'][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 ' diff --git a/lib/Api/TranslationsApi.php b/lib/Api/TranslationsApi.php index b7eb03f..4041ab5 100644 --- a/lib/Api/TranslationsApi.php +++ b/lib/Api/TranslationsApi.php @@ -76,6 +76,9 @@ class TranslationsApi /** @var string[] $contentTypes **/ public const contentTypes = [ + 'postQuestion' => [ + 'application/json', + ], 'postTranslation' => [ 'application/json', ], @@ -119,11 +122,360 @@ public function getConfig() return $this->config; } + /** + * Operation postQuestion + * + * Asks the chatbot a question a text. + * + * @param string $app The name of the app. (required) + * @param \Squidex\Client\Model\AskDto $ask_dto The question request. (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postQuestion'] to see the possible values for this operation + * + * @throws \Squidex\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return string[]|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto + */ + public function postQuestion($app, $ask_dto, string $contentType = self::contentTypes['postQuestion'][0]) + { + list($response) = $this->postQuestionWithHttpInfo($app, $ask_dto, $contentType); + return $response; + } + + /** + * Operation postQuestionWithHttpInfo + * + * Asks the chatbot a question a text. + * + * @param string $app The name of the app. (required) + * @param \Squidex\Client\Model\AskDto $ask_dto The question request. (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postQuestion'] to see the possible values for this operation + * + * @throws \Squidex\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of string[]|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) + */ + public function postQuestionWithHttpInfo($app, $ask_dto, string $contentType = self::contentTypes['postQuestion'][0]) + { + $request = $this->postQuestionRequest($app, $ask_dto, $contentType); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } catch (ConnectException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + switch($statusCode) { + case 200: + if ('string[]' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('string[]' !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, 'string[]', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + case 400: + if ('\Squidex\Client\Model\ErrorDto' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\Squidex\Client\Model\ErrorDto' !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, '\Squidex\Client\Model\ErrorDto', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + case 500: + if ('\Squidex\Client\Model\ErrorDto' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\Squidex\Client\Model\ErrorDto' !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, '\Squidex\Client\Model\ErrorDto', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } + + $returnType = 'string[]'; + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'string[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 400: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Squidex\Client\Model\ErrorDto', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Squidex\Client\Model\ErrorDto', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation postQuestionAsync + * + * Asks the chatbot a question a text. + * + * @param string $app The name of the app. (required) + * @param \Squidex\Client\Model\AskDto $ask_dto The question request. (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postQuestion'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function postQuestionAsync($app, $ask_dto, string $contentType = self::contentTypes['postQuestion'][0]) + { + return $this->postQuestionAsyncWithHttpInfo($app, $ask_dto, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation postQuestionAsyncWithHttpInfo + * + * Asks the chatbot a question a text. + * + * @param string $app The name of the app. (required) + * @param \Squidex\Client\Model\AskDto $ask_dto The question request. (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postQuestion'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function postQuestionAsyncWithHttpInfo($app, $ask_dto, string $contentType = self::contentTypes['postQuestion'][0]) + { + $returnType = 'string[]'; + $request = $this->postQuestionRequest($app, $ask_dto, $contentType); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'postQuestion' + * + * @param string $app The name of the app. (required) + * @param \Squidex\Client\Model\AskDto $ask_dto The question request. (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postQuestion'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function postQuestionRequest($app, $ask_dto, string $contentType = self::contentTypes['postQuestion'][0]) + { + + // verify the required parameter 'app' is set + if ($app === null || (is_array($app) && count($app) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $app when calling ' + ); + } + + // verify the required parameter 'ask_dto' is set + if ($ask_dto === null || (is_array($ask_dto) && count($ask_dto) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $ask_dto when calling ' + ); + } + + + $resourcePath = '/api/apps/{app}/ask'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + + // path params + if ($app !== null) { + $resourcePath = str_replace( + '{' . 'app' . '}', + ObjectSerializer::toPathValue($app), + $resourcePath + ); + } + + + $headers = $this->headerSelector->selectHeaders( + ['application/json', ], + $contentType, + $multipart + ); + + // for model (json/xml) + if (isset($ask_dto)) { + if (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the body + $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($ask_dto)); + } else { + $httpBody = $ask_dto; + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem + ]; + } + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the form parameters + $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); + } else { + // for HTTP post (form) + $httpBody = ObjectSerializer::buildQuery($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $operationHost = $this->config->getHost(); + $query = ObjectSerializer::buildQuery($queryParams); + return new Request( + 'POST', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + /** * Operation postTranslation * * Translate a text. * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\TranslateDto $translate_dto The translation request. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postTranslation'] to see the possible values for this operation * @@ -131,9 +483,9 @@ public function getConfig() * @throws \InvalidArgumentException * @return \Squidex\Client\Model\TranslationDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto */ - public function postTranslation($translate_dto, string $contentType = self::contentTypes['postTranslation'][0]) + public function postTranslation($app, $translate_dto, string $contentType = self::contentTypes['postTranslation'][0]) { - list($response) = $this->postTranslationWithHttpInfo($translate_dto, $contentType); + list($response) = $this->postTranslationWithHttpInfo($app, $translate_dto, $contentType); return $response; } @@ -142,6 +494,7 @@ public function postTranslation($translate_dto, string $contentType = self::cont * * Translate a text. * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\TranslateDto $translate_dto The translation request. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postTranslation'] to see the possible values for this operation * @@ -149,9 +502,9 @@ public function postTranslation($translate_dto, string $contentType = self::cont * @throws \InvalidArgumentException * @return array of \Squidex\Client\Model\TranslationDto|\Squidex\Client\Model\ErrorDto|\Squidex\Client\Model\ErrorDto, HTTP status code, HTTP response headers (array of strings) */ - public function postTranslationWithHttpInfo($translate_dto, string $contentType = self::contentTypes['postTranslation'][0]) + public function postTranslationWithHttpInfo($app, $translate_dto, string $contentType = self::contentTypes['postTranslation'][0]) { - $request = $this->postTranslationRequest($translate_dto, $contentType); + $request = $this->postTranslationRequest($app, $translate_dto, $contentType); try { $options = $this->createHttpClientOption(); @@ -288,15 +641,16 @@ public function postTranslationWithHttpInfo($translate_dto, string $contentType * * Translate a text. * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\TranslateDto $translate_dto The translation request. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postTranslation'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postTranslationAsync($translate_dto, string $contentType = self::contentTypes['postTranslation'][0]) + public function postTranslationAsync($app, $translate_dto, string $contentType = self::contentTypes['postTranslation'][0]) { - return $this->postTranslationAsyncWithHttpInfo($translate_dto, $contentType) + return $this->postTranslationAsyncWithHttpInfo($app, $translate_dto, $contentType) ->then( function ($response) { return $response[0]; @@ -309,16 +663,17 @@ function ($response) { * * Translate a text. * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\TranslateDto $translate_dto The translation request. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postTranslation'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function postTranslationAsyncWithHttpInfo($translate_dto, string $contentType = self::contentTypes['postTranslation'][0]) + public function postTranslationAsyncWithHttpInfo($app, $translate_dto, string $contentType = self::contentTypes['postTranslation'][0]) { $returnType = '\Squidex\Client\Model\TranslationDto'; - $request = $this->postTranslationRequest($translate_dto, $contentType); + $request = $this->postTranslationRequest($app, $translate_dto, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -359,17 +714,17 @@ function ($exception) { /** * Create request for operation 'postTranslation' * + * @param string $app The name of the app. (required) * @param \Squidex\Client\Model\TranslateDto $translate_dto The translation request. (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postTranslation'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function postTranslationRequest($translate_dto, string $contentType = self::contentTypes['postTranslation'][0]) + public function postTranslationRequest($app, $translate_dto, string $contentType = self::contentTypes['postTranslation'][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 ' diff --git a/lib/Api/UsersApi.php b/lib/Api/UsersApi.php index 430e70b..3b9cfad 100644 --- a/lib/Api/UsersApi.php +++ b/lib/Api/UsersApi.php @@ -88,6 +88,9 @@ class UsersApi 'getUsers' => [ 'application/json', ], + 'postUser' => [ + 'application/json', + ], ]; /** @@ -1327,6 +1330,250 @@ public function getUsersRequest($query = null, string $contentType = self::conte ); } + /** + * Operation postUser + * + * Update the user profile. + * + * @param \Squidex\Client\Model\UpdateProfileDto $update_profile_dto The values to update. (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postUser'] to see the possible values for this operation + * + * @throws \Squidex\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return void + */ + public function postUser($update_profile_dto, string $contentType = self::contentTypes['postUser'][0]) + { + $this->postUserWithHttpInfo($update_profile_dto, $contentType); + } + + /** + * Operation postUserWithHttpInfo + * + * Update the user profile. + * + * @param \Squidex\Client\Model\UpdateProfileDto $update_profile_dto The values to update. (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postUser'] 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 postUserWithHttpInfo($update_profile_dto, string $contentType = self::contentTypes['postUser'][0]) + { + $request = $this->postUserRequest($update_profile_dto, $contentType); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } catch (ConnectException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + return [null, $statusCode, $response->getHeaders()]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 400: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Squidex\Client\Model\ErrorDto', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Squidex\Client\Model\ErrorDto', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation postUserAsync + * + * Update the user profile. + * + * @param \Squidex\Client\Model\UpdateProfileDto $update_profile_dto The values to update. (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postUser'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function postUserAsync($update_profile_dto, string $contentType = self::contentTypes['postUser'][0]) + { + return $this->postUserAsyncWithHttpInfo($update_profile_dto, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation postUserAsyncWithHttpInfo + * + * Update the user profile. + * + * @param \Squidex\Client\Model\UpdateProfileDto $update_profile_dto The values to update. (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postUser'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function postUserAsyncWithHttpInfo($update_profile_dto, string $contentType = self::contentTypes['postUser'][0]) + { + $returnType = ''; + $request = $this->postUserRequest($update_profile_dto, $contentType); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'postUser' + * + * @param \Squidex\Client\Model\UpdateProfileDto $update_profile_dto The values to update. (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['postUser'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function postUserRequest($update_profile_dto, string $contentType = self::contentTypes['postUser'][0]) + { + + // verify the required parameter 'update_profile_dto' is set + if ($update_profile_dto === null || (is_array($update_profile_dto) && count($update_profile_dto) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $update_profile_dto when calling ' + ); + } + + + $resourcePath = '/api/user'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + + + + $headers = $this->headerSelector->selectHeaders( + ['application/json', ], + $contentType, + $multipart + ); + + // for model (json/xml) + if (isset($update_profile_dto)) { + if (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the body + $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($update_profile_dto)); + } else { + $httpBody = $update_profile_dto; + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem + ]; + } + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the form parameters + $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); + } else { + // for HTTP post (form) + $httpBody = ObjectSerializer::buildQuery($formParams); + } + } + + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $operationHost = $this->config->getHost(); + $query = ObjectSerializer::buildQuery($queryParams); + return new Request( + 'POST', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + /** * Create http client option * diff --git a/lib/Model/ArrayCalculatedDefaultValue.php b/lib/Model/ArrayCalculatedDefaultValue.php new file mode 100644 index 0000000..628ccb0 --- /dev/null +++ b/lib/Model/ArrayCalculatedDefaultValue.php @@ -0,0 +1,63 @@ + 'int', 'max_items' => 'int', + 'calculated_default_value' => '\Squidex\Client\Model\ArrayCalculatedDefaultValue', 'unique_fields' => 'string[]' ]; @@ -84,6 +85,7 @@ class ArrayFieldPropertiesDto extends FieldPropertiesDto protected static $openAPIFormats = [ 'min_items' => 'int32', 'max_items' => 'int32', + 'calculated_default_value' => null, 'unique_fields' => null ]; @@ -95,6 +97,7 @@ class ArrayFieldPropertiesDto extends FieldPropertiesDto protected static array $openAPINullables = [ 'min_items' => true, 'max_items' => true, + 'calculated_default_value' => false, 'unique_fields' => true ]; @@ -196,6 +199,7 @@ public function isNullableSetToNull(string $property): bool protected static $attributeMap = [ 'min_items' => 'minItems', 'max_items' => 'maxItems', + 'calculated_default_value' => 'calculatedDefaultValue', 'unique_fields' => 'uniqueFields' ]; @@ -207,6 +211,7 @@ public function isNullableSetToNull(string $property): bool protected static $setters = [ 'min_items' => 'setMinItems', 'max_items' => 'setMaxItems', + 'calculated_default_value' => 'setCalculatedDefaultValue', 'unique_fields' => 'setUniqueFields' ]; @@ -218,6 +223,7 @@ public function isNullableSetToNull(string $property): bool protected static $getters = [ 'min_items' => 'getMinItems', 'max_items' => 'getMaxItems', + 'calculated_default_value' => 'getCalculatedDefaultValue', 'unique_fields' => 'getUniqueFields' ]; @@ -276,6 +282,7 @@ public function __construct(array $data = null) $this->setIfExists('min_items', $data ?? [], null); $this->setIfExists('max_items', $data ?? [], null); + $this->setIfExists('calculated_default_value', $data ?? [], null); $this->setIfExists('unique_fields', $data ?? [], null); @@ -393,6 +400,33 @@ public function setMaxItems($max_items) return $this; } + /** + * Gets calculated_default_value + * + * @return \Squidex\Client\Model\ArrayCalculatedDefaultValue|null + */ + public function getCalculatedDefaultValue() + { + return $this->container['calculated_default_value']; + } + + /** + * Sets calculated_default_value + * + * @param \Squidex\Client\Model\ArrayCalculatedDefaultValue|null $calculated_default_value calculated_default_value + * + * @return self + */ + public function setCalculatedDefaultValue($calculated_default_value) + { + if (is_null($calculated_default_value)) { + throw new \InvalidArgumentException('non-nullable calculated_default_value cannot be null'); + } + $this->container['calculated_default_value'] = $calculated_default_value; + + return $this; + } + /** * Gets unique_fields * diff --git a/lib/Model/AskDto.php b/lib/Model/AskDto.php new file mode 100644 index 0000000..c080f6a --- /dev/null +++ b/lib/Model/AskDto.php @@ -0,0 +1,443 @@ + + */ +class AskDto implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'AskDto'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'prompt' => 'string' + ]; + + /** + * Array of mapping. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIMappings = [ + ]; + + /** + * Array of mapping. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIMappingsReverse = [ + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'prompt' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'prompt' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of discriminator mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIMappings() + { + return self::$openAPIMappings; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'prompt' => 'prompt' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'prompt' => 'setPrompt' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'prompt' => 'getPrompt' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->setIfExists('prompt', $data ?? [], null); + + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['prompt'] === null) { + $invalidProperties[] = "'prompt' can't be null"; + } + if ((mb_strlen($this->container['prompt']) < 1)) { + $invalidProperties[] = "invalid value for 'prompt', the character length must be bigger than or equal to 1."; + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets prompt + * + * @return string + */ + public function getPrompt() + { + return $this->container['prompt']; + } + + /** + * Sets prompt + * + * @param string $prompt The text to ask. + * + * @return self + */ + public function setPrompt($prompt) + { + if (is_null($prompt)) { + throw new \InvalidArgumentException('non-nullable prompt cannot be null'); + } + + + $this->container['prompt'] = $prompt; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/ComponentsFieldPropertiesDto.php b/lib/Model/ComponentsFieldPropertiesDto.php index 6fa0f3d..34b0b19 100644 --- a/lib/Model/ComponentsFieldPropertiesDto.php +++ b/lib/Model/ComponentsFieldPropertiesDto.php @@ -57,6 +57,7 @@ class ComponentsFieldPropertiesDto extends FieldPropertiesDto protected static $openAPITypes = [ 'min_items' => 'int', 'max_items' => 'int', + 'calculated_default_value' => '\Squidex\Client\Model\ArrayCalculatedDefaultValue', 'schema_ids' => 'string[]', 'unique_fields' => 'string[]' ]; @@ -85,6 +86,7 @@ class ComponentsFieldPropertiesDto extends FieldPropertiesDto protected static $openAPIFormats = [ 'min_items' => 'int32', 'max_items' => 'int32', + 'calculated_default_value' => null, 'schema_ids' => null, 'unique_fields' => null ]; @@ -97,6 +99,7 @@ class ComponentsFieldPropertiesDto extends FieldPropertiesDto protected static array $openAPINullables = [ 'min_items' => true, 'max_items' => true, + 'calculated_default_value' => false, 'schema_ids' => true, 'unique_fields' => true ]; @@ -199,6 +202,7 @@ public function isNullableSetToNull(string $property): bool protected static $attributeMap = [ 'min_items' => 'minItems', 'max_items' => 'maxItems', + 'calculated_default_value' => 'calculatedDefaultValue', 'schema_ids' => 'schemaIds', 'unique_fields' => 'uniqueFields' ]; @@ -211,6 +215,7 @@ public function isNullableSetToNull(string $property): bool protected static $setters = [ 'min_items' => 'setMinItems', 'max_items' => 'setMaxItems', + 'calculated_default_value' => 'setCalculatedDefaultValue', 'schema_ids' => 'setSchemaIds', 'unique_fields' => 'setUniqueFields' ]; @@ -223,6 +228,7 @@ public function isNullableSetToNull(string $property): bool protected static $getters = [ 'min_items' => 'getMinItems', 'max_items' => 'getMaxItems', + 'calculated_default_value' => 'getCalculatedDefaultValue', 'schema_ids' => 'getSchemaIds', 'unique_fields' => 'getUniqueFields' ]; @@ -282,6 +288,7 @@ public function __construct(array $data = null) $this->setIfExists('min_items', $data ?? [], null); $this->setIfExists('max_items', $data ?? [], null); + $this->setIfExists('calculated_default_value', $data ?? [], null); $this->setIfExists('schema_ids', $data ?? [], null); $this->setIfExists('unique_fields', $data ?? [], null); @@ -400,6 +407,33 @@ public function setMaxItems($max_items) return $this; } + /** + * Gets calculated_default_value + * + * @return \Squidex\Client\Model\ArrayCalculatedDefaultValue|null + */ + public function getCalculatedDefaultValue() + { + return $this->container['calculated_default_value']; + } + + /** + * Sets calculated_default_value + * + * @param \Squidex\Client\Model\ArrayCalculatedDefaultValue|null $calculated_default_value calculated_default_value + * + * @return self + */ + public function setCalculatedDefaultValue($calculated_default_value) + { + if (is_null($calculated_default_value)) { + throw new \InvalidArgumentException('non-nullable calculated_default_value cannot be null'); + } + $this->container['calculated_default_value'] = $calculated_default_value; + + return $this; + } + /** * Gets schema_ids * diff --git a/lib/Model/DeepDetectRuleActionDto.php b/lib/Model/DeepDetectRuleActionDto.php new file mode 100644 index 0000000..73c3e41 --- /dev/null +++ b/lib/Model/DeepDetectRuleActionDto.php @@ -0,0 +1,471 @@ + + */ +class DeepDetectRuleActionDto extends RuleActionDto +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'DeepDetectRuleActionDto'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'minimum_probability' => 'int', + 'maximum_tags' => 'int' + ]; + + /** + * Array of mapping. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIMappings = [ + ]; + + /** + * Array of mapping. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIMappingsReverse = [ + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'minimum_probability' => 'int64', + 'maximum_tags' => 'int64' + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'minimum_probability' => false, + 'maximum_tags' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes + parent::openAPITypes(); + } + + /** + * Array of discriminator mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIMappings() + { + return self::$openAPIMappings; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats + parent::openAPIFormats(); + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables + parent::openAPINullables(); + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'minimum_probability' => 'minimumProbability', + 'maximum_tags' => 'maximumTags' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'minimum_probability' => 'setMinimumProbability', + 'maximum_tags' => 'setMaximumTags' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'minimum_probability' => 'getMinimumProbability', + 'maximum_tags' => 'getMaximumTags' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return parent::attributeMap() + self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return parent::setters() + self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return parent::getters() + self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + parent::__construct($data); + + $this->setIfExists('minimum_probability', $data ?? [], null); + $this->setIfExists('maximum_tags', $data ?? [], null); + + + // Initialize discriminator property with the model name. + $this->container['action_type'] = parent::$openAPIMappingsReverse['DeepDetectRuleActionDto']; + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = parent::listInvalidProperties(); + + if ($this->container['minimum_probability'] === null) { + $invalidProperties[] = "'minimum_probability' can't be null"; + } + if ($this->container['maximum_tags'] === null) { + $invalidProperties[] = "'maximum_tags' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets minimum_probability + * + * @return int + */ + public function getMinimumProbability() + { + return $this->container['minimum_probability']; + } + + /** + * Sets minimum_probability + * + * @param int $minimum_probability The minimum probability for objects to be recognized (0 - 100). + * + * @return self + */ + public function setMinimumProbability($minimum_probability) + { + if (is_null($minimum_probability)) { + throw new \InvalidArgumentException('non-nullable minimum_probability cannot be null'); + } + $this->container['minimum_probability'] = $minimum_probability; + + return $this; + } + + /** + * Gets maximum_tags + * + * @return int + */ + public function getMaximumTags() + { + return $this->container['maximum_tags']; + } + + /** + * Sets maximum_tags + * + * @param int $maximum_tags The maximum number of tags to use. + * + * @return self + */ + public function setMaximumTags($maximum_tags) + { + if (is_null($maximum_tags)) { + throw new \InvalidArgumentException('non-nullable maximum_tags cannot be null'); + } + $this->container['maximum_tags'] = $maximum_tags; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/ReferencesFieldPropertiesDto.php b/lib/Model/ReferencesFieldPropertiesDto.php index a55779e..cc823dd 100644 --- a/lib/Model/ReferencesFieldPropertiesDto.php +++ b/lib/Model/ReferencesFieldPropertiesDto.php @@ -62,6 +62,7 @@ class ReferencesFieldPropertiesDto extends FieldPropertiesDto 'allow_duplicates' => 'bool', 'resolve_reference' => 'bool', 'must_be_published' => 'bool', + 'query' => 'string', 'editor' => '\Squidex\Client\Model\ReferencesFieldEditor', 'schema_ids' => 'string[]' ]; @@ -95,6 +96,7 @@ class ReferencesFieldPropertiesDto extends FieldPropertiesDto 'allow_duplicates' => null, 'resolve_reference' => null, 'must_be_published' => null, + 'query' => null, 'editor' => null, 'schema_ids' => null ]; @@ -112,6 +114,7 @@ class ReferencesFieldPropertiesDto extends FieldPropertiesDto 'allow_duplicates' => false, 'resolve_reference' => false, 'must_be_published' => false, + 'query' => true, 'editor' => false, 'schema_ids' => true ]; @@ -219,6 +222,7 @@ public function isNullableSetToNull(string $property): bool 'allow_duplicates' => 'allowDuplicates', 'resolve_reference' => 'resolveReference', 'must_be_published' => 'mustBePublished', + 'query' => 'query', 'editor' => 'editor', 'schema_ids' => 'schemaIds' ]; @@ -236,6 +240,7 @@ public function isNullableSetToNull(string $property): bool 'allow_duplicates' => 'setAllowDuplicates', 'resolve_reference' => 'setResolveReference', 'must_be_published' => 'setMustBePublished', + 'query' => 'setQuery', 'editor' => 'setEditor', 'schema_ids' => 'setSchemaIds' ]; @@ -253,6 +258,7 @@ public function isNullableSetToNull(string $property): bool 'allow_duplicates' => 'getAllowDuplicates', 'resolve_reference' => 'getResolveReference', 'must_be_published' => 'getMustBePublished', + 'query' => 'getQuery', 'editor' => 'getEditor', 'schema_ids' => 'getSchemaIds' ]; @@ -317,6 +323,7 @@ public function __construct(array $data = null) $this->setIfExists('allow_duplicates', $data ?? [], null); $this->setIfExists('resolve_reference', $data ?? [], null); $this->setIfExists('must_be_published', $data ?? [], null); + $this->setIfExists('query', $data ?? [], null); $this->setIfExists('editor', $data ?? [], null); $this->setIfExists('schema_ids', $data ?? [], null); @@ -577,6 +584,40 @@ public function setMustBePublished($must_be_published) return $this; } + /** + * Gets query + * + * @return string|null + */ + public function getQuery() + { + return $this->container['query']; + } + + /** + * Sets query + * + * @param string|null $query The initial query that is applied in the UI. + * + * @return self + */ + public function setQuery($query) + { + if (is_null($query)) { + array_push($this->openAPINullablesSetToNull, 'query'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('query', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['query'] = $query; + + return $this; + } + /** * Gets editor * diff --git a/lib/Model/RuleActionDto.php b/lib/Model/RuleActionDto.php index 4ba8dd7..75afa5c 100644 --- a/lib/Model/RuleActionDto.php +++ b/lib/Model/RuleActionDto.php @@ -70,6 +70,7 @@ class RuleActionDto implements ModelInterface, ArrayAccess, \JsonSerializable 'AzureQueue' => 'AzureQueueRuleActionDto', 'Comment' => 'CommentRuleActionDto', 'CreateContent' => 'CreateContentRuleActionDto', + 'DeepDetect' => 'DeepDetectRuleActionDto', 'Discourse' => 'DiscourseRuleActionDto', 'ElasticSearch' => 'ElasticSearchRuleActionDto', 'Email' => 'EmailRuleActionDto', @@ -96,6 +97,7 @@ class RuleActionDto implements ModelInterface, ArrayAccess, \JsonSerializable 'AzureQueueRuleActionDto' => 'AzureQueue', 'CommentRuleActionDto' => 'Comment', 'CreateContentRuleActionDto' => 'CreateContent', + 'DeepDetectRuleActionDto' => 'DeepDetect', 'DiscourseRuleActionDto' => 'Discourse', 'ElasticSearchRuleActionDto' => 'ElasticSearch', 'EmailRuleActionDto' => 'Email', diff --git a/lib/Model/TranslationDto.php b/lib/Model/TranslationDto.php index 8db48ef..4a48c27 100644 --- a/lib/Model/TranslationDto.php +++ b/lib/Model/TranslationDto.php @@ -57,7 +57,8 @@ class TranslationDto implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'result' => '\Squidex\Client\Model\TranslationResultCode', + 'status' => '\Squidex\Client\Model\TranslationStatus', + 'result' => '\Squidex\Client\Model\TranslationStatus', 'text' => 'string' ]; @@ -83,6 +84,7 @@ class TranslationDto implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPIFormats = [ + 'status' => null, 'result' => null, 'text' => null ]; @@ -93,7 +95,8 @@ class TranslationDto implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static array $openAPINullables = [ - 'result' => false, + 'status' => false, + 'result' => false, 'text' => true ]; @@ -193,6 +196,7 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ + 'status' => 'status', 'result' => 'result', 'text' => 'text' ]; @@ -203,6 +207,7 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ + 'status' => 'setStatus', 'result' => 'setResult', 'text' => 'setText' ]; @@ -213,6 +218,7 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ + 'status' => 'getStatus', 'result' => 'getResult', 'text' => 'getText' ]; @@ -274,6 +280,7 @@ public function getModelName() */ public function __construct(array $data = null) { + $this->setIfExists('status', $data ?? [], null); $this->setIfExists('result', $data ?? [], null); $this->setIfExists('text', $data ?? [], null); @@ -306,6 +313,9 @@ public function listInvalidProperties() { $invalidProperties = []; + if ($this->container['status'] === null) { + $invalidProperties[] = "'status' can't be null"; + } if ($this->container['result'] === null) { $invalidProperties[] = "'result' can't be null"; } @@ -324,10 +334,37 @@ public function valid() } + /** + * Gets status + * + * @return \Squidex\Client\Model\TranslationStatus + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param \Squidex\Client\Model\TranslationStatus $status status + * + * @return self + */ + public function setStatus($status) + { + if (is_null($status)) { + throw new \InvalidArgumentException('non-nullable status cannot be null'); + } + $this->container['status'] = $status; + + return $this; + } + /** * Gets result * - * @return \Squidex\Client\Model\TranslationResultCode + * @return \Squidex\Client\Model\TranslationStatus */ public function getResult() { @@ -337,7 +374,7 @@ public function getResult() /** * Sets result * - * @param \Squidex\Client\Model\TranslationResultCode $result result + * @param \Squidex\Client\Model\TranslationStatus $result result * * @return self */ diff --git a/lib/Model/TranslationStatus.php b/lib/Model/TranslationStatus.php new file mode 100644 index 0000000..13f0f6b --- /dev/null +++ b/lib/Model/TranslationStatus.php @@ -0,0 +1,75 @@ + + */ +class UpdateProfileDto implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'UpdateProfileDto'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'answers' => 'array' + ]; + + /** + * Array of mapping. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIMappings = [ + ]; + + /** + * Array of mapping. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIMappingsReverse = [ + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'answers' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'answers' => true + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of discriminator mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIMappings() + { + return self::$openAPIMappings; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'answers' => 'answers' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'answers' => 'setAnswers' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'answers' => 'getAnswers' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->setIfExists('answers', $data ?? [], null); + + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets answers + * + * @return array|null + */ + public function getAnswers() + { + return $this->container['answers']; + } + + /** + * Sets answers + * + * @param array|null $answers The answers from a questionaire. + * + * @return self + */ + public function setAnswers($answers) + { + if (is_null($answers)) { + array_push($this->openAPINullablesSetToNull, 'answers'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('answers', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['answers'] = $answers; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/openapi.json b/openapi.json index b5f8c75..5c43195 100644 --- a/openapi.json +++ b/openapi.json @@ -1,5 +1,5 @@ { - "x-generator": "NSwag v13.18.2.0 (NJsonSchema v10.8.0.0 (Newtonsoft.Json v13.0.0.0))", + "x-generator": "NSwag v13.19.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v13.0.0.0))", "openapi": "3.0.0", "info": { "title": "Squidex API", @@ -536,6 +536,60 @@ "x-fern-sdk-method-name": "getUserResources" } }, + "/api/user": { + "post": { + "tags": [ + "Users" + ], + "summary": "Update the user profile.", + "operationId": "Users_PostUser", + "requestBody": { + "x-name": "request", + "description": "The values to update.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateProfileDto" + } + } + }, + "required": true, + "x-position": 1 + }, + "responses": { + "204": { + "description": "User updated." + }, + "400": { + "description": "Validation error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [] + } + ], + "x-fern-sdk-group-name": "users", + "x-fern-sdk-method-name": "postUser" + } + }, "/api/users": { "get": { "tags": [ @@ -707,7 +761,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" } @@ -768,6 +821,85 @@ "x-fern-sdk-method-name": "postTranslation" } }, + "/api/apps/{app}/ask": { + "post": { + "tags": [ + "Translations" + ], + "summary": "Asks the chatbot a question a text.", + "operationId": "Translations_PostQuestion", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + } + ], + "requestBody": { + "x-name": "request", + "description": "The question request.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AskDto" + } + } + }, + "required": true, + "x-position": 2 + }, + "responses": { + "200": { + "description": "Question asked.", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + }, + "400": { + "description": "Validation error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.translate" + ] + } + ], + "x-fern-sdk-group-name": "translations", + "x-fern-sdk-method-name": "postQuestion" + } + }, "/api/templates": { "get": { "tags": [ @@ -1385,7 +1517,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" } @@ -1442,7 +1573,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -1598,7 +1728,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" } @@ -1710,7 +1839,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -1872,7 +2000,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -1942,7 +2069,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -2042,7 +2168,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -2153,7 +2278,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -2243,7 +2367,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -2333,7 +2456,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -2434,7 +2556,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -2533,7 +2654,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -2621,7 +2741,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -2731,7 +2850,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -2831,7 +2949,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -2920,7 +3037,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -3020,7 +3136,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -3109,7 +3224,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -3209,7 +3323,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -3298,7 +3411,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -3398,7 +3510,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -3487,7 +3598,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -3587,7 +3697,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -3676,7 +3785,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -3775,7 +3883,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" } @@ -3830,7 +3937,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" } @@ -3917,7 +4023,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -3982,7 +4087,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -4070,7 +4174,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -4140,7 +4243,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -4230,7 +4332,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -4320,7 +4421,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -4410,7 +4510,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -4500,7 +4599,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -4590,7 +4688,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -4667,7 +4764,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -4765,6 +4861,7 @@ "squidex-oauth-auth": [] } ], + "x-fern-sdk-group-name": "rules", "x-fern-sdk-method-name": "getActions" } }, @@ -4784,7 +4881,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" } @@ -4821,6 +4917,7 @@ ] } ], + "x-fern-sdk-group-name": "rules", "x-fern-sdk-method-name": "getRules" }, "post": { @@ -4838,7 +4935,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" } @@ -4898,6 +4994,7 @@ ] } ], + "x-fern-sdk-group-name": "rules", "x-fern-sdk-method-name": "postRule" } }, @@ -4917,7 +5014,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" } @@ -4954,6 +5050,7 @@ ] } ], + "x-fern-sdk-group-name": "rules", "x-fern-sdk-method-name": "deleteRuleRun" } }, @@ -4973,7 +5070,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -5043,6 +5139,7 @@ ] } ], + "x-fern-sdk-group-name": "rules", "x-fern-sdk-method-name": "putRule" }, "delete": { @@ -5060,7 +5157,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -5110,6 +5206,7 @@ ] } ], + "x-fern-sdk-group-name": "rules", "x-fern-sdk-method-name": "deleteRule" } }, @@ -5129,7 +5226,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -5186,6 +5282,7 @@ ] } ], + "x-fern-sdk-group-name": "rules", "x-fern-sdk-method-name": "enableRule" } }, @@ -5205,7 +5302,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -5262,6 +5358,7 @@ ] } ], + "x-fern-sdk-group-name": "rules", "x-fern-sdk-method-name": "disableRule" } }, @@ -5281,7 +5378,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -5331,6 +5427,7 @@ ] } ], + "x-fern-sdk-group-name": "rules", "x-fern-sdk-method-name": "triggerRule" } }, @@ -5350,7 +5447,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -5407,6 +5503,7 @@ ] } ], + "x-fern-sdk-group-name": "rules", "x-fern-sdk-method-name": "putRuleRun" } }, @@ -5426,7 +5523,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -5473,6 +5569,7 @@ ] } ], + "x-fern-sdk-group-name": "rules", "x-fern-sdk-method-name": "deleteRuleEvents" } }, @@ -5492,7 +5589,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" } @@ -5552,6 +5648,7 @@ ] } ], + "x-fern-sdk-group-name": "rules", "x-fern-sdk-method-name": "simulatePOST" } }, @@ -5571,7 +5668,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -5618,6 +5714,7 @@ ] } ], + "x-fern-sdk-group-name": "rules", "x-fern-sdk-method-name": "simulateGET" } }, @@ -5637,7 +5734,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -5706,6 +5802,7 @@ ] } ], + "x-fern-sdk-group-name": "rules", "x-fern-sdk-method-name": "getEvents" }, "delete": { @@ -5723,7 +5820,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" } @@ -5760,6 +5856,7 @@ ] } ], + "x-fern-sdk-group-name": "rules", "x-fern-sdk-method-name": "deleteEvents" } }, @@ -5779,7 +5876,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -5829,6 +5925,7 @@ ] } ], + "x-fern-sdk-group-name": "rules", "x-fern-sdk-method-name": "putEvent" }, "delete": { @@ -5846,7 +5943,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -5896,6 +5992,7 @@ ] } ], + "x-fern-sdk-group-name": "rules", "x-fern-sdk-method-name": "deleteEvent" } }, @@ -5931,6 +6028,7 @@ } } }, + "x-fern-sdk-group-name": "rules", "x-fern-sdk-method-name": "getEventTypes" } }, @@ -5976,6 +6074,7 @@ } } }, + "x-fern-sdk-group-name": "rules", "x-fern-sdk-method-name": "getEventSchema" } }, @@ -5995,7 +6094,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" } @@ -6052,7 +6150,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" } @@ -6326,7 +6423,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" } @@ -6466,7 +6562,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -6924,7 +7019,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 0, "x-fern-sdk-variable": "appName" }, @@ -7003,6 +7097,15 @@ }, "x-position": 8 }, + { + "name": "X-Fields", + "in": "header", + "description": "The list of content fields (comma-separated).", + "schema": { + "type": "string" + }, + "x-position": 9 + }, { "name": "X-Flatten", "in": "header", @@ -7010,16 +7113,16 @@ "schema": { "type": "boolean" }, - "x-position": 9 + "x-position": 10 }, { "name": "X-Languages", "in": "header", - "description": "Only resolve these languages (comma-separated).", + "description": "The list of languages to resolve (comma-separated).", "schema": { "type": "string" }, - "x-position": 10 + "x-position": 11 }, { "name": "X-NoSlowTotal", @@ -7028,7 +7131,7 @@ "schema": { "type": "boolean" }, - "x-position": 11 + "x-position": 12 }, { "name": "X-NoTotal", @@ -7037,7 +7140,7 @@ "schema": { "type": "boolean" }, - "x-position": 12 + "x-position": 13 }, { "name": "X-Unpublished", @@ -7046,7 +7149,7 @@ "schema": { "type": "boolean" }, - "x-position": 13 + "x-position": 14 } ], "responses": { @@ -7098,7 +7201,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 0, "x-fern-sdk-variable": "appName" }, @@ -7153,7 +7255,7 @@ { "name": "X-Languages", "in": "header", - "description": "Only resolve these languages (comma-separated).", + "description": "The list of languages to resolve (comma-separated).", "schema": { "type": "string" }, @@ -7236,7 +7338,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 0, "x-fern-sdk-variable": "appName" }, @@ -7250,6 +7351,15 @@ }, "x-position": 1 }, + { + "name": "X-Fields", + "in": "header", + "description": "The list of content fields (comma-separated).", + "schema": { + "type": "string" + }, + "x-position": 3 + }, { "name": "X-Flatten", "in": "header", @@ -7257,16 +7367,16 @@ "schema": { "type": "boolean" }, - "x-position": 3 + "x-position": 4 }, { "name": "X-Languages", "in": "header", - "description": "Only resolve these languages (comma-separated).", + "description": "The list of languages to resolve (comma-separated).", "schema": { "type": "string" }, - "x-position": 4 + "x-position": 5 }, { "name": "X-NoSlowTotal", @@ -7275,7 +7385,7 @@ "schema": { "type": "boolean" }, - "x-position": 5 + "x-position": 6 }, { "name": "X-NoTotal", @@ -7284,7 +7394,7 @@ "schema": { "type": "boolean" }, - "x-position": 6 + "x-position": 7 }, { "name": "X-Unpublished", @@ -7293,7 +7403,7 @@ "schema": { "type": "boolean" }, - "x-position": 7 + "x-position": 8 } ], "requestBody": { @@ -7370,7 +7480,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 0, "x-fern-sdk-variable": "appName" }, @@ -7405,6 +7514,15 @@ }, "x-position": 3 }, + { + "name": "X-Fields", + "in": "header", + "description": "The list of content fields (comma-separated).", + "schema": { + "type": "string" + }, + "x-position": 4 + }, { "name": "X-Flatten", "in": "header", @@ -7412,16 +7530,16 @@ "schema": { "type": "boolean" }, - "x-position": 4 + "x-position": 5 }, { "name": "X-Languages", "in": "header", - "description": "Only resolve these languages (comma-separated).", + "description": "The list of languages to resolve (comma-separated).", "schema": { "type": "string" }, - "x-position": 5 + "x-position": 6 }, { "name": "X-Unpublished", @@ -7430,7 +7548,7 @@ "schema": { "type": "boolean" }, - "x-position": 6 + "x-position": 7 } ], "responses": { @@ -7482,7 +7600,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 0, "x-fern-sdk-variable": "appName" }, @@ -7546,7 +7663,7 @@ { "name": "X-Languages", "in": "header", - "description": "Only resolve these languages (comma-separated).", + "description": "The list of languages to resolve (comma-separated).", "schema": { "type": "string" }, @@ -7627,7 +7744,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 0, "x-fern-sdk-variable": "appName" }, @@ -7663,7 +7779,7 @@ { "name": "X-Languages", "in": "header", - "description": "Only resolve these languages (comma-separated).", + "description": "The list of languages to resolve (comma-separated).", "schema": { "type": "string" }, @@ -7744,7 +7860,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 0, "x-fern-sdk-variable": "appName" }, @@ -7780,7 +7895,7 @@ { "name": "X-Languages", "in": "header", - "description": "Only resolve these languages (comma-separated).", + "description": "The list of languages to resolve (comma-separated).", "schema": { "type": "string" }, @@ -7861,7 +7976,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -7960,7 +8074,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -8039,7 +8152,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 0, "x-fern-sdk-variable": "appName" }, @@ -8073,6 +8185,15 @@ }, "x-position": 3 }, + { + "name": "X-Fields", + "in": "header", + "description": "The list of content fields (comma-separated).", + "schema": { + "type": "string" + }, + "x-position": 4 + }, { "name": "X-Flatten", "in": "header", @@ -8080,16 +8201,16 @@ "schema": { "type": "boolean" }, - "x-position": 4 + "x-position": 5 }, { "name": "X-Languages", "in": "header", - "description": "Only resolve these languages (comma-separated).", + "description": "The list of languages to resolve (comma-separated).", "schema": { "type": "string" }, - "x-position": 5 + "x-position": 6 }, { "name": "X-Unpublished", @@ -8098,7 +8219,7 @@ "schema": { "type": "boolean" }, - "x-position": 6 + "x-position": 7 }, { "name": "X-NoSlowTotal", @@ -8107,7 +8228,7 @@ "schema": { "type": "boolean" }, - "x-position": 7 + "x-position": 8 }, { "name": "X-NoTotal", @@ -8116,7 +8237,7 @@ "schema": { "type": "boolean" }, - "x-position": 8 + "x-position": 9 } ], "responses": { @@ -8170,7 +8291,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 0, "x-fern-sdk-variable": "appName" }, @@ -8204,6 +8324,15 @@ }, "x-position": 3 }, + { + "name": "X-Fields", + "in": "header", + "description": "The list of content fields (comma-separated).", + "schema": { + "type": "string" + }, + "x-position": 4 + }, { "name": "X-Flatten", "in": "header", @@ -8211,16 +8340,16 @@ "schema": { "type": "boolean" }, - "x-position": 4 + "x-position": 5 }, { "name": "X-Languages", "in": "header", - "description": "Only resolve these languages (comma-separated).", + "description": "The list of languages to resolve (comma-separated).", "schema": { "type": "string" }, - "x-position": 5 + "x-position": 6 }, { "name": "X-Unpublished", @@ -8229,7 +8358,7 @@ "schema": { "type": "boolean" }, - "x-position": 6 + "x-position": 7 }, { "name": "X-NoSlowTotal", @@ -8238,7 +8367,7 @@ "schema": { "type": "boolean" }, - "x-position": 7 + "x-position": 8 }, { "name": "X-NoTotal", @@ -8247,7 +8376,7 @@ "schema": { "type": "boolean" }, - "x-position": 8 + "x-position": 9 } ], "responses": { @@ -8301,7 +8430,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 0, "x-fern-sdk-variable": "appName" }, @@ -8348,7 +8476,7 @@ { "name": "X-Languages", "in": "header", - "description": "Only resolve these languages (comma-separated).", + "description": "The list of languages to resolve (comma-separated).", "schema": { "type": "string" }, @@ -8410,7 +8538,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -8505,7 +8632,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -8599,7 +8725,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 0, "x-fern-sdk-variable": "appName" }, @@ -8635,7 +8760,7 @@ { "name": "X-Languages", "in": "header", - "description": "Only resolve these languages (comma-separated).", + "description": "The list of languages to resolve (comma-separated).", "schema": { "type": "string" }, @@ -8716,7 +8841,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 0, "x-fern-sdk-variable": "appName" }, @@ -8752,7 +8876,7 @@ { "name": "X-Languages", "in": "header", - "description": "Only resolve these languages (comma-separated).", + "description": "The list of languages to resolve (comma-separated).", "schema": { "type": "string" }, @@ -8822,7 +8946,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 0, "x-fern-sdk-variable": "appName" }, @@ -8858,7 +8981,7 @@ { "name": "X-Languages", "in": "header", - "description": "Only resolve these languages (comma-separated).", + "description": "The list of languages to resolve (comma-separated).", "schema": { "type": "string" }, @@ -8926,7 +9049,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 0, "x-fern-sdk-variable": "appName" }, @@ -8962,7 +9084,7 @@ { "name": "X-Languages", "in": "header", - "description": "Only resolve these languages (comma-separated).", + "description": "The list of languages to resolve (comma-separated).", "schema": { "type": "string" }, @@ -9015,13 +9137,14 @@ "x-fern-sdk-method-name": "deleteVersion" } }, - "/api/apps/{app}/watching/{resource}": { + "/api/content/{app}/graphql": { "get": { "tags": [ - "Comments" + "Contents" ], - "summary": "Get all watching users..", - "operationId": "Comments_GetWatchingUsers", + "summary": "GraphQL endpoint.", + "description": "You can read the generated documentation for your app at /api/content/{appName}/docs.", + "operationId": "ContentsShared_GetGraphQL", "parameters": [ { "name": "app", @@ -9031,32 +9154,27 @@ "schema": { "type": "string" }, - "x-hidden": true, - "x-position": 1, + "x-position": 0, "x-fern-sdk-variable": "appName" }, { - "name": "resource", - "in": "path", - "required": true, - "description": "The path to the resource.", + "name": "X-Unpublished", + "in": "header", + "description": "Return unpublished content items.", "schema": { - "type": "string", - "nullable": true + "type": "boolean" }, - "x-position": 2 + "x-position": 1 } ], "responses": { "200": { - "description": "Watching users returned.", + "description": "Contents returned or mutated.", "content": { - "application/json": { + "application/octet-stream": { "schema": { - "type": "array", - "items": { - "type": "string" - } + "type": "string", + "format": "binary" } } } @@ -9080,18 +9198,18 @@ "squidex-oauth-auth": [] } ], - "x-fern-sdk-group-name": "comments", - "x-fern-sdk-method-name": "getWatchingUsers" + "x-fern-sdk-group-name": "contents", + "x-fern-sdk-method-name": "getGraphQL" } }, - "/api/apps/{app}/comments/{commentsId}": { + "/api/content/{app}/graphql/batch": { "get": { "tags": [ - "Comments" + "Contents" ], - "summary": "Get all comments.", - "description": "When passing in a version you can retrieve all updates since then.", - "operationId": "Comments_GetComments", + "summary": "GraphQL endpoint.", + "description": "You can read the generated documentation for your app at /api/content/{appName}/docs.", + "operationId": "ContentsShared_GetGraphQL2", "parameters": [ { "name": "app", @@ -9101,39 +9219,27 @@ "schema": { "type": "string" }, - "x-hidden": true, - "x-position": 1, + "x-position": 0, "x-fern-sdk-variable": "appName" }, { - "name": "commentsId", - "in": "path", - "required": true, - "description": "The ID of the comments.", + "name": "X-Unpublished", + "in": "header", + "description": "Return unpublished content items.", "schema": { - "type": "string" + "type": "boolean" }, - "x-position": 2 - }, - { - "name": "version", - "in": "query", - "description": "The current version.", - "schema": { - "type": "integer", - "format": "int64", - "default": -2 - }, - "x-position": 3 + "x-position": 1 } ], "responses": { "200": { - "description": "Comments returned.", + "description": "Contents returned or mutated.", "content": { - "application/json": { + "application/octet-stream": { "schema": { - "$ref": "#/components/schemas/CommentsDto" + "type": "string", + "format": "binary" } } } @@ -9154,20 +9260,21 @@ }, "security": [ { - "squidex-oauth-auth": [ - "squidex.apps.{app}.comments.read" - ] + "squidex-oauth-auth": [] } ], - "x-fern-sdk-group-name": "comments", - "x-fern-sdk-method-name": "getComments" - }, - "post": { + "x-fern-sdk-group-name": "contents", + "x-fern-sdk-method-name": "getGraphQL2" + } + }, + "/api/content/{app}": { + "get": { "tags": [ - "Comments" + "Contents" ], - "summary": "Create a new comment.", - "operationId": "Comments_PostComment", + "summary": "Queries contents.", + "description": "You can read the generated documentation for your app at /api/content/{appName}/docs.", + "operationId": "ContentsShared_GetAllContents", "parameters": [ { "name": "app", @@ -9177,150 +9284,139 @@ "schema": { "type": "string" }, - "x-hidden": true, - "x-position": 1, + "x-position": 0, "x-fern-sdk-variable": "appName" }, { - "name": "commentsId", - "in": "path", - "required": true, - "description": "The ID of the comments.", + "name": "ids", + "in": "query", + "description": "The list of ids to query.", "schema": { - "type": "string" + "type": "string", + "nullable": true + }, + "x-position": 1 + }, + { + "name": "scheduleFrom", + "in": "query", + "description": "The start of the schedule.", + "schema": { + "type": "string", + "format": "date-time", + "nullable": true }, "x-position": 2 - } - ], - "requestBody": { - "x-name": "request", - "description": "The comment object that needs to created.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/UpsertCommentDto" - } - } }, - "required": true, - "x-position": 3 - }, - "responses": { - "201": { - "description": "Comment created.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CommentDto" - } - } - } + { + "name": "scheduleTo", + "in": "query", + "description": "The end of the schedule.", + "schema": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "x-position": 3 }, - "400": { - "description": "Comment request not valid.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorDto" - } - } - } + { + "name": "referencing", + "in": "query", + "description": "The ID of the referencing content item.", + "schema": { + "type": "string", + "nullable": true + }, + "x-position": 4 }, - "404": { - "description": "App not found." + { + "name": "references", + "in": "query", + "description": "The ID of the reference content item.", + "schema": { + "type": "string", + "nullable": true + }, + "x-position": 5 }, - "500": { - "description": "Operation failed.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorDto" - } - } - } - } - }, - "security": [ { - "squidex-oauth-auth": [ - "squidex.apps.{app}.comments.create" - ] - } - ], - "x-fern-sdk-group-name": "comments", - "x-fern-sdk-method-name": "postComment" - } - }, - "/api/apps/{app}/comments/{commentsId}/{commentId}": { - "put": { - "tags": [ - "Comments" - ], - "summary": "Update a comment.", - "operationId": "Comments_PutComment", - "parameters": [ + "name": "q", + "in": "query", + "description": "The optional json query.", + "schema": { + "type": "string", + "nullable": true + }, + "x-position": 6 + }, { - "name": "app", - "in": "path", - "required": true, - "description": "The name of the app.", + "name": "X-Fields", + "in": "header", + "description": "The list of content fields (comma-separated).", "schema": { "type": "string" }, - "x-hidden": true, - "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-position": 7 }, { - "name": "commentsId", - "in": "path", - "required": true, - "description": "The ID of the comments.", + "name": "X-Flatten", + "in": "header", + "description": "Provide the data as flat object.", "schema": { - "type": "string" + "type": "boolean" }, - "x-position": 2 + "x-position": 8 }, { - "name": "commentId", - "in": "path", - "required": true, - "description": "The ID of the comment.", + "name": "X-Languages", + "in": "header", + "description": "The list of languages to resolve (comma-separated).", "schema": { "type": "string" }, - "x-position": 3 + "x-position": 9 + }, + { + "name": "X-NoSlowTotal", + "in": "header", + "description": "Do not return the total amount, if it would be slow.", + "schema": { + "type": "boolean" + }, + "x-position": 10 + }, + { + "name": "X-NoTotal", + "in": "header", + "description": "Do not return the total amount.", + "schema": { + "type": "boolean" + }, + "x-position": 11 + }, + { + "name": "X-Unpublished", + "in": "header", + "description": "Return unpublished content items.", + "schema": { + "type": "boolean" + }, + "x-position": 12 } ], - "requestBody": { - "x-name": "request", - "description": "The comment object that needs to updated.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/UpsertCommentDto" - } - } - }, - "required": true, - "x-position": 4 - }, "responses": { - "204": { - "description": "Comment updated." - }, - "400": { - "description": "Comment request not valid.", + "200": { + "description": "Contents returned.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorDto" + "$ref": "#/components/schemas/ContentsDto" } } } }, "404": { - "description": "Comment or app not found." + "description": "App not found." }, "500": { "description": "Operation failed.", @@ -9335,20 +9431,19 @@ }, "security": [ { - "squidex-oauth-auth": [ - "squidex.apps.{app}.comments.update" - ] + "squidex-oauth-auth": [] } ], - "x-fern-sdk-group-name": "comments", - "x-fern-sdk-method-name": "putComment" + "x-fern-sdk-group-name": "contents", + "x-fern-sdk-method-name": "getAllContents" }, - "delete": { + "post": { "tags": [ - "Comments" + "Contents" ], - "summary": "Delete a comment.", - "operationId": "Comments_DeleteComment", + "summary": "Queries contents.", + "description": "You can read the generated documentation for your app at /api/content/{appName}/docs.", + "operationId": "ContentsShared_GetAllContentsPost", "parameters": [ { "name": "app", @@ -9358,37 +9453,90 @@ "schema": { "type": "string" }, - "x-hidden": true, - "x-position": 1, + "x-position": 0, "x-fern-sdk-variable": "appName" }, { - "name": "commentsId", - "in": "path", - "required": true, - "description": "The ID of the comments.", + "name": "X-Fields", + "in": "header", + "description": "The list of content fields (comma-separated).", "schema": { "type": "string" }, "x-position": 2 }, { - "name": "commentId", - "in": "path", - "required": true, - "description": "The ID of the comment.", - "schema": { - "type": "string" + "name": "X-Flatten", + "in": "header", + "description": "Provide the data as flat object.", + "schema": { + "type": "boolean" }, "x-position": 3 + }, + { + "name": "X-Languages", + "in": "header", + "description": "The list of languages to resolve (comma-separated).", + "schema": { + "type": "string" + }, + "x-position": 4 + }, + { + "name": "X-NoSlowTotal", + "in": "header", + "description": "Do not return the total amount, if it would be slow.", + "schema": { + "type": "boolean" + }, + "x-position": 5 + }, + { + "name": "X-NoTotal", + "in": "header", + "description": "Do not return the total amount.", + "schema": { + "type": "boolean" + }, + "x-position": 6 + }, + { + "name": "X-Unpublished", + "in": "header", + "description": "Return unpublished content items.", + "schema": { + "type": "boolean" + }, + "x-position": 7 } ], + "requestBody": { + "x-name": "query", + "description": "The required query object.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AllContentsByPostDto" + } + } + }, + "required": true, + "x-position": 1 + }, "responses": { - "204": { - "description": "Comment deleted." + "200": { + "description": "Contents returned.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ContentsDto" + } + } + } }, "404": { - "description": "Comment or app not found." + "description": "App not found." }, "400": { "description": "Validation error.", @@ -9413,57 +9561,83 @@ }, "security": [ { - "squidex-oauth-auth": [ - "squidex.apps.{app}.comments.delete" - ] + "squidex-oauth-auth": [] } ], - "x-fern-sdk-group-name": "comments", - "x-fern-sdk-method-name": "deleteComment" + "x-fern-sdk-group-name": "contents", + "x-fern-sdk-method-name": "getAllContentsPost" } }, - "/api/users/{userId}/notifications": { - "get": { + "/api/content/{app}/bulk": { + "post": { "tags": [ - "Notifications" + "Contents" ], - "summary": "Get all notifications.", - "description": "When passing in a version you can retrieve all updates since then.", - "operationId": "UserNotifications_GetNotifications", + "summary": "Bulk update content items.", + "description": "You can read the generated documentation for your app at /api/content/{appName}/docs.", + "operationId": "ContentsShared_BulkUpdateContents", "parameters": [ { - "name": "userId", + "name": "app", "in": "path", "required": true, - "description": "The user id.", + "description": "The name of the app.", "schema": { "type": "string" }, - "x-position": 1 + "x-position": 1, + "x-fern-sdk-variable": "appName" }, { - "name": "version", + "name": "schema", "in": "query", - "description": "The current version.", + "description": "The name of the schema.", "schema": { - "type": "integer", - "format": "int64", - "default": -2 + "type": "string" }, "x-position": 2 } ], + "requestBody": { + "x-name": "request", + "description": "The bulk update request.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BulkUpdateContentsDto" + } + } + }, + "required": true, + "x-position": 3 + }, "responses": { "200": { - "description": "All comments returned.", + "description": "", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CommentsDto" + "type": "array", + "items": { + "$ref": "#/components/schemas/BulkResultDto" + } + } + } + } + }, + "400": { + "description": "Contents request not valid.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" } } } }, + "404": { + "description": "Contents references, schema or app not found." + }, "500": { "description": "Operation failed.", "content": { @@ -9477,36 +9651,39 @@ }, "security": [ { - "squidex-oauth-auth": [] + "squidex-oauth-auth": [ + "squidex.apps.{app}.contents.{schema}.read.own" + ] } ], - "x-fern-sdk-group-name": "notifications", - "x-fern-sdk-method-name": "getNotifications" + "x-fern-sdk-group-name": "contents", + "x-fern-sdk-method-name": "bulkUpdateContents" } }, - "/api/users/{userId}/notifications/{commentId}": { - "delete": { + "/api/apps/{app}/watching/{resource}": { + "get": { "tags": [ - "Notifications" + "Comments" ], - "summary": "Delete a notification.", - "operationId": "UserNotifications_DeleteComment", + "summary": "Get all watching users..", + "operationId": "Comments_GetWatchingUsers", "parameters": [ { - "name": "userId", + "name": "app", "in": "path", "required": true, - "description": "The user id.", + "description": "The name of the app.", "schema": { "type": "string" }, - "x-position": 1 + "x-position": 1, + "x-fern-sdk-variable": "appName" }, { - "name": "commentId", + "name": "resource", "in": "path", "required": true, - "description": "The ID of the comment.", + "description": "The path to the resource.", "schema": { "type": "string" }, @@ -9514,22 +9691,22 @@ } ], "responses": { - "204": { - "description": "Comment deleted." - }, - "404": { - "description": "Comment not found." - }, - "400": { - "description": "Validation error.", + "200": { + "description": "Watching users returned.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorDto" + "type": "array", + "items": { + "type": "string" + } } } } }, + "404": { + "description": "App not found." + }, "500": { "description": "Operation failed.", "content": { @@ -9546,17 +9723,18 @@ "squidex-oauth-auth": [] } ], - "x-fern-sdk-group-name": "notifications", - "x-fern-sdk-method-name": "deleteComment" + "x-fern-sdk-group-name": "comments", + "x-fern-sdk-method-name": "getWatchingUsers" } }, - "/api/apps/{app}/backups/{id}": { + "/api/apps/{app}/comments/{commentsId}": { "get": { "tags": [ - "Backups" + "Comments" ], - "summary": "Get the backup content.", - "operationId": "BackupContent_GetBackupContent", + "summary": "Get all comments.", + "description": "When passing in a version you can retrieve all updates since then.", + "operationId": "Comments_GetComments", "parameters": [ { "name": "app", @@ -9566,35 +9744,44 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, { - "name": "id", + "name": "commentsId", "in": "path", "required": true, - "description": "The ID of the backup.", + "description": "The ID of the comments.", "schema": { "type": "string" }, "x-position": 2 + }, + { + "name": "version", + "in": "query", + "description": "The current version.", + "schema": { + "type": "integer", + "format": "int64", + "default": -2 + }, + "x-position": 3 } ], "responses": { "200": { - "description": "Backup found and content returned.", + "description": "Comments returned.", "content": { - "application/octet-stream": { + "application/json": { "schema": { - "type": "string", - "format": "binary" + "$ref": "#/components/schemas/CommentsDto" } } } }, "404": { - "description": "Backup or app not found." + "description": "App not found." }, "500": { "description": "Operation failed.", @@ -9607,15 +9794,22 @@ } } }, - "x-fern-sdk-group-name": "backups", - "x-fern-sdk-method-name": "getBackupContent" + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.comments.read" + ] + } + ], + "x-fern-sdk-group-name": "comments", + "x-fern-sdk-method-name": "getComments" }, - "delete": { + "post": { "tags": [ - "Backups" + "Comments" ], - "summary": "Delete a backup.", - "operationId": "Backups_DeleteBackup", + "summary": "Create a new comment.", + "operationId": "Comments_PostComment", "parameters": [ { "name": "app", @@ -9625,31 +9819,47 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, { - "name": "id", + "name": "commentsId", "in": "path", "required": true, - "description": "The ID of the backup to delete.", + "description": "The ID of the comments.", "schema": { "type": "string" }, "x-position": 2 } ], - "responses": { - "204": { - "description": "Backup deleted." - }, - "404": { - "description": "Backup or app not found." + "requestBody": { + "x-name": "request", + "description": "The comment object that needs to created.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpsertCommentDto" + } + } }, - "400": { - "description": "Validation error.", - "content": { + "required": true, + "x-position": 3 + }, + "responses": { + "201": { + "description": "Comment created.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CommentDto" + } + } + } + }, + "400": { + "description": "Comment request not valid.", + "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorDto" @@ -9657,6 +9867,9 @@ } } }, + "404": { + "description": "App not found." + }, "500": { "description": "Operation failed.", "content": { @@ -9671,67 +9884,83 @@ "security": [ { "squidex-oauth-auth": [ - "squidex.apps.{app}.backups.delete" + "squidex.apps.{app}.comments.create" ] } ], - "x-fern-sdk-group-name": "backups", - "x-fern-sdk-method-name": "deleteBackup" + "x-fern-sdk-group-name": "comments", + "x-fern-sdk-method-name": "postComment" } }, - "/api/apps/backups/{id}": { - "get": { + "/api/apps/{app}/comments/{commentsId}/{commentId}": { + "put": { "tags": [ - "Backups" + "Comments" ], - "summary": "Get the backup content.", - "operationId": "BackupContent_GetBackupContentV2", + "summary": "Update a comment.", + "operationId": "Comments_PutComment", "parameters": [ { - "name": "id", + "name": "app", "in": "path", "required": true, - "description": "The ID of the backup.", + "description": "The name of the app.", "schema": { "type": "string" }, - "x-position": 1 + "x-position": 1, + "x-fern-sdk-variable": "appName" }, { - "name": "appId", - "in": "query", - "description": "The ID of the app.", + "name": "commentsId", + "in": "path", + "required": true, + "description": "The ID of the comments.", "schema": { "type": "string" }, "x-position": 2 }, { - "name": "app", - "in": "query", - "description": "The name of the app.", + "name": "commentId", + "in": "path", + "required": true, + "description": "The ID of the comment.", "schema": { - "type": "string", - "default": "" + "type": "string" }, - "x-hidden": true, "x-position": 3 } ], + "requestBody": { + "x-name": "request", + "description": "The comment object that needs to updated.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpsertCommentDto" + } + } + }, + "required": true, + "x-position": 4 + }, "responses": { - "200": { - "description": "Backup found and content returned.", + "204": { + "description": "Comment updated." + }, + "400": { + "description": "Comment request not valid.", "content": { - "application/octet-stream": { + "application/json": { "schema": { - "type": "string", - "format": "binary" + "$ref": "#/components/schemas/ErrorDto" } } } }, "404": { - "description": "Backup or app not found." + "description": "Comment or app not found." }, "500": { "description": "Operation failed.", @@ -9744,17 +9973,22 @@ } } }, - "x-fern-sdk-group-name": "backups", - "x-fern-sdk-method-name": "getBackupContentV2" - } - }, - "/api/apps/{app}/backups": { - "get": { + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.comments.update" + ] + } + ], + "x-fern-sdk-group-name": "comments", + "x-fern-sdk-method-name": "putComment" + }, + "delete": { "tags": [ - "Backups" + "Comments" ], - "summary": "Get all backup jobs.", - "operationId": "Backups_GetBackups", + "summary": "Delete a comment.", + "operationId": "Comments_DeleteComment", "parameters": [ { "name": "app", @@ -9764,25 +9998,47 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" + }, + { + "name": "commentsId", + "in": "path", + "required": true, + "description": "The ID of the comments.", + "schema": { + "type": "string" + }, + "x-position": 2 + }, + { + "name": "commentId", + "in": "path", + "required": true, + "description": "The ID of the comment.", + "schema": { + "type": "string" + }, + "x-position": 3 } ], "responses": { - "200": { - "description": "Backups returned.", + "204": { + "description": "Comment deleted." + }, + "404": { + "description": "Comment or app not found." + }, + "400": { + "description": "Validation error.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BackupJobsDto" + "$ref": "#/components/schemas/ErrorDto" } } } }, - "404": { - "description": "App not found." - }, "500": { "description": "Operation failed.", "content": { @@ -9797,50 +10053,56 @@ "security": [ { "squidex-oauth-auth": [ - "squidex.apps.{app}.backups.read" + "squidex.apps.{app}.comments.delete" ] } ], - "x-fern-sdk-group-name": "backups", - "x-fern-sdk-method-name": "getBackups" - }, - "post": { + "x-fern-sdk-group-name": "comments", + "x-fern-sdk-method-name": "deleteComment" + } + }, + "/api/users/{userId}/notifications": { + "get": { "tags": [ - "Backups" + "Notifications" ], - "summary": "Start a new backup.", - "operationId": "Backups_PostBackup", + "summary": "Get all notifications.", + "description": "When passing in a version you can retrieve all updates since then.", + "operationId": "UserNotifications_GetNotifications", "parameters": [ { - "name": "app", + "name": "userId", "in": "path", "required": true, - "description": "The name of the app.", + "description": "The user id.", "schema": { "type": "string" }, - "x-hidden": true, - "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-position": 1 + }, + { + "name": "version", + "in": "query", + "description": "The current version.", + "schema": { + "type": "integer", + "format": "int64", + "default": -2 + }, + "x-position": 2 } ], "responses": { - "204": { - "description": "Backup started." - }, - "400": { - "description": "Backup contingent reached.", + "200": { + "description": "All comments returned.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorDto" + "$ref": "#/components/schemas/CommentsDto" } } } }, - "404": { - "description": "App not found." - }, "500": { "description": "Operation failed.", "content": { @@ -9854,29 +10116,55 @@ }, "security": [ { - "squidex-oauth-auth": [ - "squidex.apps.{app}.backups.create" - ] + "squidex-oauth-auth": [] } ], - "x-fern-sdk-group-name": "backups", - "x-fern-sdk-method-name": "postBackup" + "x-fern-sdk-group-name": "notifications", + "x-fern-sdk-method-name": "getNotifications" } }, - "/api/apps/restore": { - "get": { + "/api/users/{userId}/notifications/{commentId}": { + "delete": { "tags": [ - "Backups" + "Notifications" + ], + "summary": "Delete a notification.", + "operationId": "UserNotifications_DeleteComment", + "parameters": [ + { + "name": "userId", + "in": "path", + "required": true, + "description": "The user id.", + "schema": { + "type": "string" + }, + "x-position": 1 + }, + { + "name": "commentId", + "in": "path", + "required": true, + "description": "The ID of the comment.", + "schema": { + "type": "string" + }, + "x-position": 2 + } ], - "summary": "Get current restore status.", - "operationId": "Restore_GetRestoreJob", "responses": { - "200": { - "description": "Status returned.", + "204": { + "description": "Comment deleted." + }, + "404": { + "description": "Comment not found." + }, + "400": { + "description": "Validation error.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/RestoreJobDto" + "$ref": "#/components/schemas/ErrorDto" } } } @@ -9894,36 +10182,107 @@ }, "security": [ { - "squidex-oauth-auth": [ - "squidex.admin.restore" - ] + "squidex-oauth-auth": [] } ], - "x-fern-sdk-group-name": "backups", - "x-fern-sdk-method-name": "getRestoreJob" - }, - "post": { - "tags": [ - "Backups" + "x-fern-sdk-group-name": "notifications", + "x-fern-sdk-method-name": "deleteComment" + } + }, + "/api/apps/{app}/backups/{id}": { + "get": { + "tags": [ + "Backups" ], - "summary": "Restore a backup.", - "operationId": "Restore_PostRestoreJob", - "requestBody": { - "x-name": "request", - "description": "The backup to restore.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/RestoreRequestDto" + "summary": "Get the backup content.", + "operationId": "BackupContent_GetBackupContent", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the backup.", + "schema": { + "type": "string" + }, + "x-position": 2 + } + ], + "responses": { + "200": { + "description": "Backup found and content returned.", + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } } } }, - "required": true, - "x-position": 1 + "404": { + "description": "Backup or app not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } }, + "x-fern-sdk-group-name": "backups", + "x-fern-sdk-method-name": "getBackupContent" + }, + "delete": { + "tags": [ + "Backups" + ], + "summary": "Delete a backup.", + "operationId": "Backups_DeleteBackup", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "The ID of the backup to delete.", + "schema": { + "type": "string" + }, + "x-position": 2 + } + ], "responses": { "204": { - "description": "Restore operation started." + "description": "Backup deleted." + }, + "404": { + "description": "Backup or app not found." }, "400": { "description": "Validation error.", @@ -9949,89 +10308,363 @@ "security": [ { "squidex-oauth-auth": [ - "squidex.admin.restore" + "squidex.apps.{app}.backups.delete" ] } ], "x-fern-sdk-group-name": "backups", - "x-fern-sdk-method-name": "postRestoreJob" + "x-fern-sdk-method-name": "deleteBackup" } }, - "/api/assets/{app}/{idOrSlug}/{more}": { + "/api/apps/backups/{id}": { "get": { "tags": [ - "Assets" + "Backups" ], - "summary": "Get the asset content.", - "operationId": "AssetContent_GetAssetContentBySlug", + "summary": "Get the backup content.", + "operationId": "BackupContent_GetBackupContentV2", "parameters": [ { - "name": "app", + "name": "id", "in": "path", "required": true, - "description": "The name of the app.", + "description": "The ID of the backup.", "schema": { "type": "string" }, - "x-hidden": true, - "x-position": 1, - "x-fern-sdk-variable": "appName" + "x-position": 1 }, { - "name": "idOrSlug", - "in": "path", - "required": true, - "description": "The id or slug of the asset.", + "name": "appId", + "in": "query", + "description": "The ID of the app.", "schema": { "type": "string" }, "x-position": 2 }, { - "name": "version", + "name": "app", "in": "query", - "description": "The optional version of the asset.", + "description": "The name of the app.", "schema": { - "type": "integer", - "format": "int64" + "type": "string", + "default": "" }, "x-position": 3 + } + ], + "responses": { + "200": { + "description": "Backup found and content returned.", + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + } + } }, - { - "name": "cache", - "in": "query", - "description": "The cache duration in seconds.", - "schema": { - "type": "integer", - "format": "int64" - }, - "x-position": 4 + "404": { + "description": "Backup or app not found." }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "x-fern-sdk-group-name": "backups", + "x-fern-sdk-method-name": "getBackupContentV2" + } + }, + "/api/apps/{app}/backups": { + "get": { + "tags": [ + "Backups" + ], + "summary": "Get all backup jobs.", + "operationId": "Backups_GetBackups", + "parameters": [ { - "name": "download", - "in": "query", - "description": "Set it to 0 to prevent download.", + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", "schema": { - "type": "integer", - "format": "int32" + "type": "string" }, - "x-position": 5 + "x-position": 1, + "x-fern-sdk-variable": "appName" + } + ], + "responses": { + "200": { + "description": "Backups returned.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BackupJobsDto" + } + } + } }, - { - "name": "width", - "in": "query", - "description": "The target width of the asset, if it is an image.", - "schema": { - "type": "integer", - "format": "int32", - "nullable": true - }, - "x-position": 6 + "404": { + "description": "App not found." }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ { - "name": "height", - "in": "query", - "description": "The target height of the asset, if it is an image.", + "squidex-oauth-auth": [ + "squidex.apps.{app}.backups.read" + ] + } + ], + "x-fern-sdk-group-name": "backups", + "x-fern-sdk-method-name": "getBackups" + }, + "post": { + "tags": [ + "Backups" + ], + "summary": "Start a new backup.", + "operationId": "Backups_PostBackup", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + } + ], + "responses": { + "204": { + "description": "Backup started." + }, + "400": { + "description": "Backup contingent reached.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "404": { + "description": "App not found." + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.apps.{app}.backups.create" + ] + } + ], + "x-fern-sdk-group-name": "backups", + "x-fern-sdk-method-name": "postBackup" + } + }, + "/api/apps/restore": { + "get": { + "tags": [ + "Backups" + ], + "summary": "Get current restore status.", + "operationId": "Restore_GetRestoreJob", + "responses": { + "200": { + "description": "Status returned.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RestoreJobDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.admin.restore" + ] + } + ], + "x-fern-sdk-group-name": "backups", + "x-fern-sdk-method-name": "getRestoreJob" + }, + "post": { + "tags": [ + "Backups" + ], + "summary": "Restore a backup.", + "operationId": "Restore_PostRestoreJob", + "requestBody": { + "x-name": "request", + "description": "The backup to restore.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RestoreRequestDto" + } + } + }, + "required": true, + "x-position": 1 + }, + "responses": { + "204": { + "description": "Restore operation started." + }, + "400": { + "description": "Validation error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + }, + "500": { + "description": "Operation failed.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorDto" + } + } + } + } + }, + "security": [ + { + "squidex-oauth-auth": [ + "squidex.admin.restore" + ] + } + ], + "x-fern-sdk-group-name": "backups", + "x-fern-sdk-method-name": "postRestoreJob" + } + }, + "/api/assets/{app}/{idOrSlug}/{more}": { + "get": { + "tags": [ + "Assets" + ], + "summary": "Get the asset content.", + "operationId": "AssetContent_GetAssetContentBySlug", + "parameters": [ + { + "name": "app", + "in": "path", + "required": true, + "description": "The name of the app.", + "schema": { + "type": "string" + }, + "x-position": 1, + "x-fern-sdk-variable": "appName" + }, + { + "name": "idOrSlug", + "in": "path", + "required": true, + "description": "The id or slug of the asset.", + "schema": { + "type": "string" + }, + "x-position": 2 + }, + { + "name": "version", + "in": "query", + "description": "The optional version of the asset.", + "schema": { + "type": "integer", + "format": "int64" + }, + "x-position": 3 + }, + { + "name": "cache", + "in": "query", + "description": "The cache duration in seconds.", + "schema": { + "type": "integer", + "format": "int64" + }, + "x-position": 4 + }, + { + "name": "download", + "in": "query", + "description": "Set it to 0 to prevent download.", + "schema": { + "type": "integer", + "format": "int32" + }, + "x-position": 5 + }, + { + "name": "width", + "in": "query", + "description": "The target width of the asset, if it is an image.", + "schema": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "x-position": 6 + }, + { + "name": "height", + "in": "query", + "description": "The target height of the asset, if it is an image.", "schema": { "type": "integer", "format": "int32", @@ -10065,7 +10698,8 @@ "in": "query", "description": "Optional background color.", "schema": { - "type": "string" + "type": "string", + "nullable": true }, "x-position": 10 }, @@ -10118,6 +10752,15 @@ }, "x-position": 15 }, + { + "name": "deleted", + "in": "query", + "description": "Also return deleted content items.", + "schema": { + "type": "boolean" + }, + "x-position": 16 + }, { "name": "format", "in": "query", @@ -10126,7 +10769,7 @@ "nullable": true, "$ref": "#/components/schemas/ImageFormat" }, - "x-position": 16 + "x-position": 17 }, { "name": "more", @@ -10134,10 +10777,9 @@ "required": true, "description": "Optional suffix that can be used to seo-optimize the link to the image Has not effect.", "schema": { - "type": "string", - "nullable": true + "type": "string" }, - "x-position": 17 + "x-position": 18 } ], "responses": { @@ -10271,7 +10913,8 @@ "in": "query", "description": "Optional background color.", "schema": { - "type": "string" + "type": "string", + "nullable": true }, "x-position": 9 }, @@ -10324,6 +10967,15 @@ }, "x-position": 14 }, + { + "name": "deleted", + "in": "query", + "description": "Also return deleted content items.", + "schema": { + "type": "boolean" + }, + "x-position": 15 + }, { "name": "format", "in": "query", @@ -10332,7 +10984,7 @@ "nullable": true, "$ref": "#/components/schemas/ImageFormat" }, - "x-position": 15 + "x-position": 16 } ], "responses": { @@ -10388,7 +11040,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -10463,7 +11114,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" } @@ -10543,7 +11193,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -10631,7 +11280,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -10701,7 +11349,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -10792,7 +11439,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" } @@ -10853,7 +11499,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -10948,7 +11593,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 0, "x-fern-sdk-variable": "appName" }, @@ -11088,7 +11732,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -11209,7 +11852,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 0, "x-fern-sdk-variable": "appName" }, @@ -11307,7 +11949,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -11373,7 +12014,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -11491,7 +12131,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -11579,7 +12218,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -11667,7 +12305,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" } @@ -11751,7 +12388,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -11853,7 +12489,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -11943,7 +12578,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" } @@ -11998,7 +12632,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" } @@ -12079,7 +12712,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" } @@ -12135,7 +12767,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" } @@ -12216,7 +12847,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -12305,7 +12935,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -12382,7 +13011,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" } @@ -12437,7 +13065,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" } @@ -12517,7 +13144,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" } @@ -12582,7 +13208,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -12659,7 +13284,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" } @@ -12708,7 +13332,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" } @@ -12788,7 +13411,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" } @@ -12855,7 +13477,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" } @@ -12910,7 +13531,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" } @@ -12990,7 +13610,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -13078,7 +13697,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -13155,7 +13773,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" } @@ -13210,7 +13827,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" } @@ -13290,7 +13906,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" } @@ -13350,7 +13965,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -13438,7 +14052,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -13681,7 +14294,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" } @@ -13734,7 +14346,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" } @@ -13812,7 +14423,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" } @@ -13872,7 +14482,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" } @@ -13952,7 +14561,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" } @@ -14005,7 +14613,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" } @@ -14085,7 +14692,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" } @@ -14140,7 +14746,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" } @@ -14220,7 +14825,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -14308,7 +14912,6 @@ "schema": { "type": "string" }, - "x-hidden": true, "x-position": 1, "x-fern-sdk-variable": "appName" }, @@ -14433,24 +15036,6 @@ } } }, - "UISettingsDto": { - "type": "object", - "additionalProperties": false, - "required": [ - "canCreateApps", - "canCreateTeams" - ], - "properties": { - "canCreateApps": { - "type": "boolean", - "description": "True when the user can create apps." - }, - "canCreateTeams": { - "type": "boolean", - "description": "True when the user can create teams." - } - } - }, "UpdateSettingDto": { "type": "object", "additionalProperties": false, @@ -14463,7 +15048,7 @@ } } }, - "ContentsDto": { + "UsersDto": { "allOf": [ { "$ref": "#/components/schemas/Resource" @@ -14473,34 +15058,26 @@ "additionalProperties": false, "required": [ "total", - "items", - "statuses" + "items" ], "properties": { "total": { "type": "integer", - "description": "The total number of content items.", + "description": "The total number of users.", "format": "int64" }, "items": { "type": "array", - "description": "The content items.", - "items": { - "$ref": "#/components/schemas/ContentDto" - } - }, - "statuses": { - "type": "array", - "description": "The possible statuses.", + "description": "The users.", "items": { - "$ref": "#/components/schemas/StatusInfoDto" + "$ref": "#/components/schemas/UserDto" } } } } ] }, - "ContentDto": { + "UserDto": { "allOf": [ { "$ref": "#/components/schemas/Resource" @@ -14510,1167 +15087,1000 @@ "additionalProperties": false, "required": [ "id", - "createdBy", - "lastModifiedBy", - "data", - "created", - "lastModified", - "status", - "statusColor", - "schemaId", - "isDeleted", - "version" + "email", + "displayName", + "isLocked", + "permissions" ], "properties": { "id": { "type": "string", - "description": "The if of the content item." - }, - "createdBy": { - "type": "string", - "description": "The user that has created the content item." - }, - "lastModifiedBy": { - "type": "string", - "description": "The user that has updated the content item." - }, - "data": { - "description": "The data of the content item." - }, - "referenceData": { - "description": "The reference data for the frontend UI.", - "nullable": true, - "$ref": "#/components/schemas/ContentData" - }, - "created": { - "type": "string", - "description": "The date and time when the content item has been created.", - "format": "date-time" - }, - "lastModified": { - "type": "string", - "description": "The date and time when the content item has been modified last.", - "format": "date-time" - }, - "status": { - "type": "string", - "description": "The status of the content." - }, - "newStatus": { - "type": "string", - "description": "The new status of the content.", - "nullable": true - }, - "statusColor": { - "type": "string", - "description": "The color of the status." - }, - "newStatusColor": { - "type": "string", - "description": "The color of the new status.", - "nullable": true - }, - "editToken": { - "type": "string", - "description": "The UI token.", - "nullable": true - }, - "scheduleJob": { - "description": "The scheduled status.", - "nullable": true, - "$ref": "#/components/schemas/ScheduleJobDto" + "description": "The ID of the user." }, - "schemaId": { + "email": { "type": "string", - "description": "The ID of the schema." + "description": "The email of the user. Unique value." }, - "schemaName": { + "displayName": { "type": "string", - "description": "The name of the schema.", - "nullable": true + "description": "The display name (usually first name and last name) of the user." }, - "schemaDisplayName": { - "type": "string", - "description": "The display name of the schema.", - "nullable": true + "isLocked": { + "type": "boolean", + "description": "Determines if the user is locked." }, - "referenceFields": { + "permissions": { "type": "array", - "description": "The reference fields.", - "nullable": true, + "description": "Additional permissions for the user.", "items": { - "$ref": "#/components/schemas/FieldDto" + "type": "string" } - }, - "isDeleted": { - "type": "boolean", - "description": "Indicates whether the content is deleted." - }, - "version": { - "type": "integer", - "description": "The version of the content.", - "format": "int64" } } } ] }, - "ContentData": { + "Resource": { "type": "object", - "additionalProperties": { - "nullable": true, - "$ref": "#/components/schemas/ContentFieldData" + "x-abstract": true, + "additionalProperties": false, + "required": [ + "_links" + ], + "properties": { + "_links": { + "type": "object", + "description": "The links.", + "additionalProperties": { + "$ref": "#/components/schemas/ResourceLink" + } + } } }, - "ContentFieldData": { + "ResourceLink": { "type": "object", - "additionalProperties": {} + "additionalProperties": false, + "required": [ + "href", + "method" + ], + "properties": { + "href": { + "type": "string", + "description": "The link url.", + "minLength": 1 + }, + "method": { + "type": "string", + "description": "The link method.", + "minLength": 1 + }, + "metadata": { + "type": "string", + "description": "Additional data about the link.", + "nullable": true + } + } }, - "ScheduleJobDto": { + "CreateUserDto": { "type": "object", "additionalProperties": false, "required": [ - "id", - "status", - "dueTime", - "color", - "scheduledBy" + "email", + "displayName", + "password", + "permissions" ], "properties": { - "id": { + "email": { "type": "string", - "description": "The ID of the schedule job." + "description": "The email of the user. Unique value.", + "minLength": 1 }, - "status": { + "displayName": { "type": "string", - "description": "The new status." + "description": "The display name (usually first name and last name) of the user.", + "minLength": 1 }, - "dueTime": { + "password": { "type": "string", - "description": "The target date and time when the content should be scheduled.", - "format": "date-time" + "description": "The password of the user.", + "minLength": 1 }, - "color": { + "permissions": { + "type": "array", + "description": "Additional permissions for the user.", + "items": { + "type": "string" + } + } + } + }, + "UpdateUserDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "email", + "displayName", + "permissions" + ], + "properties": { + "email": { "type": "string", - "description": "The color of the scheduled status." + "description": "The email of the user. Unique value.", + "minLength": 1 }, - "scheduledBy": { + "displayName": { "type": "string", - "description": "The user who schedule the content." + "description": "The display name (usually first name and last name) of the user.", + "minLength": 1 + }, + "password": { + "type": "string", + "description": "The password of the user.", + "nullable": true + }, + "permissions": { + "type": "array", + "description": "Additional permissions for the user.", + "items": { + "type": "string" + } } } }, - "FieldDto": { + "ResourcesDto": { "allOf": [ { "$ref": "#/components/schemas/Resource" }, { "type": "object", - "additionalProperties": false, - "required": [ - "name", - "partitioning", - "properties", - "fieldId", - "isHidden", - "isLocked", - "isDisabled" - ], - "properties": { - "fieldId": { - "type": "integer", - "description": "The ID of the field.", - "format": "int64" - }, - "name": { - "type": "string", - "description": "The name of the field. Must be unique within the schema.", - "minLength": 1, - "pattern": "^[a-z0-9]+(\\-[a-z0-9]+)*$" - }, - "isHidden": { - "type": "boolean", - "description": "Defines if the field is hidden." - }, - "isLocked": { - "type": "boolean", - "description": "Defines if the field is locked." - }, - "isDisabled": { - "type": "boolean", - "description": "Defines if the field is disabled." - }, - "partitioning": { - "type": "string", - "description": "Defines the partitioning of the field.", - "minLength": 1 - }, - "properties": { - "description": "The field properties.", - "$ref": "#/components/schemas/FieldPropertiesDto" - }, - "nested": { - "type": "array", - "description": "The nested fields.", - "nullable": true, - "items": { - "$ref": "#/components/schemas/NestedFieldDto" - } - } - } + "additionalProperties": false } ] }, - "FieldPropertiesDto": { + "UpdateProfileDto": { "type": "object", - "discriminator": { - "propertyName": "fieldType", - "mapping": { - "Array": "#/components/schemas/ArrayFieldPropertiesDto", - "Assets": "#/components/schemas/AssetsFieldPropertiesDto", - "Boolean": "#/components/schemas/BooleanFieldPropertiesDto", - "Component": "#/components/schemas/ComponentFieldPropertiesDto", - "Components": "#/components/schemas/ComponentsFieldPropertiesDto", - "DateTime": "#/components/schemas/DateTimeFieldPropertiesDto", - "Geolocation": "#/components/schemas/GeolocationFieldPropertiesDto", - "Json": "#/components/schemas/JsonFieldPropertiesDto", - "Number": "#/components/schemas/NumberFieldPropertiesDto", - "References": "#/components/schemas/ReferencesFieldPropertiesDto", - "String": "#/components/schemas/StringFieldPropertiesDto", - "Tags": "#/components/schemas/TagsFieldPropertiesDto", - "UI": "#/components/schemas/UIFieldPropertiesDto" + "additionalProperties": false, + "properties": { + "answers": { + "type": "object", + "description": "The answers from a questionaire.", + "nullable": true, + "additionalProperties": { + "type": "string", + "nullable": true + } } - }, - "x-abstract": true, + } + }, + "TranslationDto": { + "type": "object", "additionalProperties": false, "required": [ - "fieldType" + "status", + "result" ], "properties": { - "label": { - "type": "string", - "description": "Optional label for the editor.", - "maxLength": 100, - "minLength": 0, - "nullable": true + "status": { + "description": "The result of the translation.", + "$ref": "#/components/schemas/TranslationStatus" }, - "hints": { - "type": "string", - "description": "Hints to describe the field.", - "maxLength": 1000, - "minLength": 0, - "nullable": true + "result": { + "description": "The result of the translation.", + "deprecated": true, + "x-deprecatedMessage": "Use Status property now.", + "$ref": "#/components/schemas/TranslationStatus" }, - "placeholder": { + "text": { "type": "string", - "description": "Placeholder to show when no value has been entered.", - "maxLength": 100, - "minLength": 0, + "description": "The translated text.", "nullable": true - }, - "isRequired": { - "type": "boolean", - "description": "Indicates if the field is required." - }, - "isRequiredOnPublish": { - "type": "boolean", - "description": "Indicates if the field is required when publishing." - }, - "isHalfWidth": { - "type": "boolean", - "description": "Indicates if the field should be rendered with half width only." - }, - "editorUrl": { + } + } + }, + "TranslationStatus": { + "type": "string", + "description": "", + "x-enumNames": [ + "Translated", + "LanguageNotSupported", + "NotTranslated", + "NotConfigured", + "Unauthorized", + "Failed" + ], + "enum": [ + "Translated", + "LanguageNotSupported", + "NotTranslated", + "NotConfigured", + "Unauthorized", + "Failed" + ] + }, + "TranslateDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "text", + "targetLanguage" + ], + "properties": { + "text": { "type": "string", - "description": "Optional url to the editor.", - "nullable": true + "description": "The text to translate.", + "minLength": 1 }, - "tags": { - "type": "array", - "description": "Tags for automation processes.", - "nullable": true, - "items": { - "type": "string" - } + "targetLanguage": { + "type": "string", + "description": "The target language.", + "minLength": 1 }, - "fieldType": { - "type": "string" + "sourceLanguage": { + "type": "string", + "description": "The optional source language." } } }, - "ArrayFieldPropertiesDto": { + "AskDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "prompt" + ], + "properties": { + "prompt": { + "type": "string", + "description": "The text to ask.", + "minLength": 1 + } + } + }, + "TemplatesDto": { "allOf": [ { - "$ref": "#/components/schemas/FieldPropertiesDto" + "$ref": "#/components/schemas/Resource" }, { "type": "object", "additionalProperties": false, + "required": [ + "items" + ], "properties": { - "minItems": { - "type": "integer", - "description": "The minimum allowed items for the field value.", - "format": "int32", - "nullable": true - }, - "maxItems": { - "type": "integer", - "description": "The maximum allowed items for the field value.", - "format": "int32", - "nullable": true - }, - "uniqueFields": { + "items": { "type": "array", - "description": "The fields that must be unique.", - "nullable": true, + "description": "The event consumers.", "items": { - "type": "string" + "$ref": "#/components/schemas/TemplateDto" } } } } ] }, - "AssetsFieldPropertiesDto": { + "TemplateDto": { "allOf": [ { - "$ref": "#/components/schemas/FieldPropertiesDto" + "$ref": "#/components/schemas/Resource" }, { "type": "object", "additionalProperties": false, + "required": [ + "name", + "title", + "description", + "isStarter" + ], "properties": { - "previewMode": { - "description": "The preview mode for the asset.", - "$ref": "#/components/schemas/AssetPreviewMode" - }, - "defaultValues": { - "description": "The language specific default value as a list of asset ids.", - "nullable": true, - "$ref": "#/components/schemas/LocalizedValueOfReadonlyListOfString" - }, - "defaultValue": { - "type": "array", - "description": "The default value as a list of asset ids.", - "nullable": true, - "items": { - "type": "string" - } - }, - "folderId": { + "name": { "type": "string", - "description": "The initial id to the folder.", - "nullable": true + "description": "The name of the template." }, - "previewFormat": { + "title": { "type": "string", - "description": "The preview format.", - "nullable": true - }, - "minItems": { - "type": "integer", - "description": "The minimum allowed items for the field value.", - "format": "int32", - "nullable": true - }, - "maxItems": { - "type": "integer", - "description": "The maximum allowed items for the field value.", - "format": "int32", - "nullable": true - }, - "minSize": { - "type": "integer", - "description": "The minimum file size in bytes.", - "format": "int32", - "nullable": true - }, - "maxSize": { - "type": "integer", - "description": "The maximum file size in bytes.", - "format": "int32", - "nullable": true + "description": "The title of the template." }, - "minWidth": { - "type": "integer", - "description": "The minimum image width in pixels.", - "format": "int32", - "nullable": true + "description": { + "type": "string", + "description": "The description of the template." }, - "maxWidth": { - "type": "integer", - "description": "The maximum image width in pixels.", - "format": "int32", - "nullable": true - }, - "minHeight": { - "type": "integer", - "description": "The minimum image height in pixels.", - "format": "int32", - "nullable": true - }, - "maxHeight": { - "type": "integer", - "description": "The maximum image height in pixels.", - "format": "int32", - "nullable": true - }, - "aspectWidth": { - "type": "integer", - "description": "The image aspect width in pixels.", - "format": "int32", - "nullable": true - }, - "aspectHeight": { - "type": "integer", - "description": "The image aspect height in pixels.", - "format": "int32", - "nullable": true - }, - "expectedType": { - "description": "The expected type.", - "nullable": true, - "$ref": "#/components/schemas/AssetType" - }, - "resolveFirst": { - "type": "boolean", - "description": "True to resolve first asset in the content list." - }, - "mustBeImage": { - "type": "boolean", - "description": "True to resolve first image in the content list.", - "deprecated": true, - "x-deprecatedMessage": "Use 'expectedType' field now" - }, - "resolveImage": { - "type": "boolean", - "description": "True to resolve first image in the content list.", - "deprecated": true, - "x-deprecatedMessage": "Use 'resolveFirst' field now" - }, - "allowedExtensions": { - "type": "array", - "description": "The allowed file extensions.", - "nullable": true, - "items": { - "type": "string" - } - }, - "allowDuplicates": { + "isStarter": { "type": "boolean", - "description": "True, if duplicate values are allowed." + "description": "True, if the template is a starter." } } } ] }, - "AssetPreviewMode": { - "type": "string", - "description": "", - "x-enumNames": [ - "ImageAndFileName", - "Image", - "FileName" - ], - "enum": [ - "ImageAndFileName", - "Image", - "FileName" - ] - }, - "LocalizedValueOfReadonlyListOfString": { - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "AssetType": { - "type": "string", - "description": "", - "x-enumNames": [ - "Unknown", - "Image", - "Audio", - "Video" - ], - "enum": [ - "Unknown", - "Image", - "Audio", - "Video" - ] - }, - "BooleanFieldPropertiesDto": { + "TemplateDetailsDto": { "allOf": [ { - "$ref": "#/components/schemas/FieldPropertiesDto" + "$ref": "#/components/schemas/Resource" }, { "type": "object", "additionalProperties": false, + "required": [ + "details" + ], "properties": { - "defaultValues": { - "description": "The language specific default value for the field value.", - "nullable": true, - "$ref": "#/components/schemas/LocalizedValueOfNullableBoolean" - }, - "defaultValue": { - "type": "boolean", - "description": "The default value for the field value.", - "nullable": true - }, - "inlineEditable": { - "type": "boolean", - "description": "Indicates that the inline editor is enabled for this field." - }, - "editor": { - "description": "The editor that is used to manage this field.", - "$ref": "#/components/schemas/BooleanFieldEditor" + "details": { + "type": "string", + "description": "The details of the template." } } } ] }, - "LocalizedValueOfNullableBoolean": { - "type": "object", - "additionalProperties": { - "type": "boolean", - "nullable": true - } - }, - "BooleanFieldEditor": { - "type": "string", - "description": "", - "x-enumNames": [ - "Checkbox", - "Toggle" - ], - "enum": [ - "Checkbox", - "Toggle" - ] - }, - "ComponentFieldPropertiesDto": { + "ContributorsDto": { "allOf": [ { - "$ref": "#/components/schemas/FieldPropertiesDto" + "$ref": "#/components/schemas/Resource" }, { "type": "object", "additionalProperties": false, + "required": [ + "items", + "maxContributors" + ], "properties": { - "schemaIds": { + "items": { "type": "array", - "description": "The ID of the embedded schemas.", - "nullable": true, + "description": "The contributors.", "items": { - "type": "string" + "$ref": "#/components/schemas/ContributorDto" } - } - } - } - ] - }, - "ComponentsFieldPropertiesDto": { - "allOf": [ - { - "$ref": "#/components/schemas/FieldPropertiesDto" - }, - { - "type": "object", - "additionalProperties": false, - "properties": { - "minItems": { - "type": "integer", - "description": "The minimum allowed items for the field value.", - "format": "int32", - "nullable": true }, - "maxItems": { + "maxContributors": { "type": "integer", - "description": "The maximum allowed items for the field value.", - "format": "int32", - "nullable": true - }, - "schemaIds": { - "type": "array", - "description": "The ID of the embedded schemas.", - "nullable": true, - "items": { - "type": "string" - } + "description": "The maximum number of allowed contributors.", + "format": "int64" }, - "uniqueFields": { - "type": "array", - "description": "The fields that must be unique.", + "_meta": { + "description": "The metadata to provide information about this request.", "nullable": true, - "items": { - "type": "string" - } + "$ref": "#/components/schemas/ContributorsMetadata" } } } ] }, - "DateTimeFieldPropertiesDto": { + "ContributorDto": { "allOf": [ { - "$ref": "#/components/schemas/FieldPropertiesDto" + "$ref": "#/components/schemas/Resource" }, { "type": "object", "additionalProperties": false, + "required": [ + "contributorId", + "contributorName", + "contributorEmail" + ], "properties": { - "defaultValues": { - "description": "The language specific default value for the field value.", - "nullable": true, - "$ref": "#/components/schemas/LocalizedValueOfNullableInstant" - }, - "defaultValue": { + "contributorId": { "type": "string", - "description": "The default value for the field value.", - "format": "date-time", - "nullable": true + "description": "The ID of the user that contributes to the app." }, - "maxValue": { + "contributorName": { "type": "string", - "description": "The maximum allowed value for the field value.", - "format": "date-time", - "nullable": true + "description": "The display name." }, - "minValue": { + "contributorEmail": { "type": "string", - "description": "The minimum allowed value for the field value.", - "format": "date-time", - "nullable": true + "description": "The email address." }, - "format": { + "role": { "type": "string", - "description": "The format pattern when displayed in the UI.", + "description": "The role of the contributor.", "nullable": true - }, - "editor": { - "description": "The editor that is used to manage this field.", - "$ref": "#/components/schemas/DateTimeFieldEditor" - }, - "calculatedDefaultValue": { - "description": "The calculated default value for the field value.", - "nullable": true, - "$ref": "#/components/schemas/DateTimeCalculatedDefaultValue" } } } ] }, - "LocalizedValueOfNullableInstant": { + "ContributorsMetadata": { "type": "object", - "additionalProperties": { - "type": "string", - "format": "date-time", - "nullable": true - } - }, - "DateTimeFieldEditor": { - "type": "string", - "description": "", - "x-enumNames": [ - "Date", - "DateTime" - ], - "enum": [ - "Date", - "DateTime" - ] - }, - "DateTimeCalculatedDefaultValue": { - "type": "string", - "description": "", - "x-enumNames": [ - "Now", - "Today" + "additionalProperties": false, + "required": [ + "isInvited" ], - "enum": [ - "Now", - "Today" - ] - }, - "GeolocationFieldPropertiesDto": { - "allOf": [ - { - "$ref": "#/components/schemas/FieldPropertiesDto" - }, - { - "type": "object", - "additionalProperties": false, - "properties": { - "editor": { - "description": "The editor that is used to manage this field.", - "$ref": "#/components/schemas/GeolocationFieldEditor" - } - } + "properties": { + "isInvited": { + "type": "string", + "description": "Indicates whether the user has been invited." } - ] + } }, - "GeolocationFieldEditor": { - "type": "string", - "description": "", - "x-enumNames": [ - "Map" + "AssignContributorDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "contributorId" ], - "enum": [ - "Map" - ] - }, - "JsonFieldPropertiesDto": { - "allOf": [ - { - "$ref": "#/components/schemas/FieldPropertiesDto" + "properties": { + "contributorId": { + "type": "string", + "description": "The id or email of the user to add to the app.", + "minLength": 1 }, - { - "type": "object", - "additionalProperties": false, - "properties": { - "graphQLSchema": { - "type": "string", - "description": "The GraphQL schema.", - "nullable": true - } - } + "role": { + "type": "string", + "description": "The role of the contributor.", + "nullable": true + }, + "invite": { + "type": "boolean", + "description": "Set to true to invite the user if he does not exist." } - ] + } }, - "NumberFieldPropertiesDto": { + "TeamDto": { "allOf": [ { - "$ref": "#/components/schemas/FieldPropertiesDto" + "$ref": "#/components/schemas/Resource" }, { "type": "object", "additionalProperties": false, + "required": [ + "id", + "name", + "version", + "created", + "lastModified" + ], "properties": { - "defaultValues": { - "description": "The language specific default value for the field value.", - "nullable": true, - "$ref": "#/components/schemas/LocalizedValueOfNullableDouble" - }, - "defaultValue": { - "type": "number", - "description": "The default value for the field value.", - "format": "double", - "nullable": true - }, - "maxValue": { - "type": "number", - "description": "The maximum allowed value for the field value.", - "format": "double", - "nullable": true + "id": { + "type": "string", + "description": "The ID of the team." }, - "minValue": { - "type": "number", - "description": "The minimum allowed value for the field value.", - "format": "double", - "nullable": true + "name": { + "type": "string", + "description": "The name of the team." }, - "allowedValues": { - "type": "array", - "description": "The allowed values for the field value.", - "nullable": true, - "items": { - "type": "number", - "format": "double" - } + "version": { + "type": "integer", + "description": "The version of the team.", + "format": "int64" }, - "isUnique": { - "type": "boolean", - "description": "Indicates if the field value must be unique. Ignored for nested fields and localized fields." + "created": { + "type": "string", + "description": "The timestamp when the team has been created.", + "format": "date-time" }, - "inlineEditable": { - "type": "boolean", - "description": "Indicates that the inline editor is enabled for this field." + "lastModified": { + "type": "string", + "description": "The timestamp when the team has been modified last.", + "format": "date-time" }, - "editor": { - "description": "The editor that is used to manage this field.", - "$ref": "#/components/schemas/NumberFieldEditor" + "roleName": { + "type": "string", + "description": "The role name of the user.", + "nullable": true } } } ] }, - "LocalizedValueOfNullableDouble": { + "CreateTeamDto": { "type": "object", - "additionalProperties": { - "type": "number", - "format": "double", - "nullable": true + "additionalProperties": false, + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string", + "description": "The name of the team.", + "minLength": 1 + } } }, - "NumberFieldEditor": { - "type": "string", - "description": "", - "x-enumNames": [ - "Input", - "Radio", - "Dropdown", - "Stars" + "UpdateTeamDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "name" ], - "enum": [ - "Input", - "Radio", - "Dropdown", - "Stars" - ] + "properties": { + "name": { + "type": "string", + "description": "The name of the team.", + "minLength": 1 + } + } }, - "ReferencesFieldPropertiesDto": { - "allOf": [ - { - "$ref": "#/components/schemas/FieldPropertiesDto" + "LogDownloadDto": { + "type": "object", + "additionalProperties": false, + "properties": { + "downloadUrl": { + "type": "string", + "description": "The url to download the log.", + "nullable": true + } + } + }, + "CallsUsageDtoDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "totalCalls", + "totalBytes", + "monthCalls", + "monthBytes", + "blockingApiCalls", + "allowedBytes", + "allowedCalls", + "averageElapsedMs", + "details" + ], + "properties": { + "totalCalls": { + "type": "integer", + "description": "The total number of API calls.", + "format": "int64" }, - { - "type": "object", - "additionalProperties": false, - "properties": { - "defaultValues": { - "description": "The language specific default value as a list of content ids.", - "nullable": true, - "$ref": "#/components/schemas/LocalizedValueOfReadonlyListOfString" - }, - "defaultValue": { - "type": "array", - "description": "The default value as a list of content ids.", - "nullable": true, - "items": { - "type": "string" - } - }, - "minItems": { - "type": "integer", - "description": "The minimum allowed items for the field value.", - "format": "int32", - "nullable": true - }, - "maxItems": { - "type": "integer", - "description": "The maximum allowed items for the field value.", - "format": "int32", - "nullable": true - }, - "allowDuplicates": { - "type": "boolean", - "description": "True, if duplicate values are allowed." - }, - "resolveReference": { - "type": "boolean", - "description": "True to resolve references in the content list." - }, - "mustBePublished": { - "type": "boolean", - "description": "True when all references must be published." + "totalBytes": { + "type": "integer", + "description": "The total number of bytes transferred.", + "format": "int64" + }, + "monthCalls": { + "type": "integer", + "description": "The total number of API calls this month.", + "format": "int64" + }, + "monthBytes": { + "type": "integer", + "description": "The total number of bytes transferred this month.", + "format": "int64" + }, + "blockingApiCalls": { + "type": "integer", + "description": "The amount of calls that will block the app.", + "format": "int64" + }, + "allowedBytes": { + "type": "integer", + "description": "The included API traffic.", + "format": "int64" + }, + "allowedCalls": { + "type": "integer", + "description": "The included API calls.", + "format": "int64" + }, + "averageElapsedMs": { + "type": "number", + "description": "The average duration in milliseconds.", + "format": "double" + }, + "details": { + "type": "object", + "description": "The statistics by date and group.", + "additionalProperties": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CallsUsagePerDateDto" + } + } + } + } + }, + "CallsUsagePerDateDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "date", + "totalCalls", + "totalBytes", + "averageElapsedMs" + ], + "properties": { + "date": { + "type": "string", + "description": "The date when the usage was tracked.", + "format": "date" + }, + "totalCalls": { + "type": "integer", + "description": "The total number of API calls.", + "format": "int64" + }, + "totalBytes": { + "type": "integer", + "description": "The total number of bytes transferred.", + "format": "int64" + }, + "averageElapsedMs": { + "type": "number", + "description": "The average duration in milliseconds.", + "format": "double" + } + } + }, + "CurrentStorageDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "size", + "maxAllowed" + ], + "properties": { + "size": { + "type": "integer", + "description": "The size in bytes.", + "format": "int64" + }, + "maxAllowed": { + "type": "integer", + "description": "The maximum allowed asset size.", + "format": "int64" + } + } + }, + "StorageUsagePerDateDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "date", + "totalCount", + "totalSize" + ], + "properties": { + "date": { + "type": "string", + "description": "The date when the usage was tracked.", + "format": "date" + }, + "totalCount": { + "type": "integer", + "description": "The number of assets.", + "format": "int64" + }, + "totalSize": { + "type": "integer", + "description": "The size in bytes.", + "format": "int64" + } + } + }, + "SearchResultDto": { + "allOf": [ + { + "$ref": "#/components/schemas/Resource" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "name", + "type" + ], + "properties": { + "name": { + "type": "string", + "description": "The name of the search result." }, - "editor": { - "description": "The editor that is used to manage this field.", - "$ref": "#/components/schemas/ReferencesFieldEditor" + "type": { + "description": "The type of the search result.", + "$ref": "#/components/schemas/SearchResultType" }, - "schemaIds": { - "type": "array", - "description": "The ID of the referenced schemas.", - "nullable": true, - "items": { - "type": "string" - } + "label": { + "type": "string", + "description": "An optional label.", + "nullable": true } } } ] }, - "ReferencesFieldEditor": { + "SearchResultType": { "type": "string", "description": "", "x-enumNames": [ - "List", - "Dropdown", - "Tags", - "Checkboxes", - "Input" + "Asset", + "Content", + "Dashboard", + "Setting", + "Rule", + "Schema" ], "enum": [ - "List", - "Dropdown", - "Tags", - "Checkboxes", - "Input" + "Asset", + "Content", + "Dashboard", + "Setting", + "Rule", + "Schema" ] }, - "StringFieldPropertiesDto": { + "SchemaDto": { "allOf": [ { - "$ref": "#/components/schemas/FieldPropertiesDto" + "$ref": "#/components/schemas/Resource" }, { "type": "object", "additionalProperties": false, + "required": [ + "createdBy", + "lastModifiedBy", + "name", + "properties", + "scripts", + "previewUrls", + "fieldsInLists", + "fieldsInReferences", + "fields", + "id", + "type", + "isSingleton", + "isPublished", + "created", + "lastModified", + "version", + "fieldRules" + ], "properties": { - "defaultValues": { - "description": "The language specific default value for the field value.", - "nullable": true, - "$ref": "#/components/schemas/LocalizedValueOfString" - }, - "defaultValue": { + "id": { "type": "string", - "description": "The default value for the field value.", - "nullable": true + "description": "The ID of the schema." }, - "pattern": { + "createdBy": { "type": "string", - "description": "The pattern to enforce a specific format for the field value.", - "nullable": true + "description": "The user that has created the schema.", + "minLength": 1 }, - "patternMessage": { + "lastModifiedBy": { "type": "string", - "description": "The validation message for the pattern.", - "nullable": true + "description": "The user that has updated the schema.", + "minLength": 1 }, - "folderId": { + "name": { "type": "string", - "description": "The initial id to the folder when the control supports file uploads.", - "nullable": true + "description": "The name of the schema. Unique within the app.", + "minLength": 1, + "pattern": "^[a-z0-9]+(\\-[a-z0-9]+)*$" }, - "minLength": { - "type": "integer", - "description": "The minimum allowed length for the field value.", - "format": "int32", - "nullable": true + "type": { + "description": "The type of the schema.", + "$ref": "#/components/schemas/SchemaType" }, - "maxLength": { - "type": "integer", - "description": "The maximum allowed length for the field value.", - "format": "int32", + "category": { + "type": "string", + "description": "The name of the category.", "nullable": true }, - "minCharacters": { - "type": "integer", - "description": "The minimum allowed of normal characters for the field value.", - "format": "int32", - "nullable": true + "properties": { + "description": "The schema properties.", + "$ref": "#/components/schemas/SchemaPropertiesDto" }, - "maxCharacters": { - "type": "integer", - "description": "The maximum allowed of normal characters for the field value.", - "format": "int32", - "nullable": true + "isSingleton": { + "type": "boolean", + "description": "Indicates if the schema is a singleton.", + "deprecated": true, + "x-deprecatedMessage": "Use 'type' field now." }, - "minWords": { - "type": "integer", - "description": "The minimum allowed number of words for the field value.", - "format": "int32", - "nullable": true + "isPublished": { + "type": "boolean", + "description": "Indicates if the schema is published." }, - "maxWords": { + "created": { + "type": "string", + "description": "The date and time when the schema has been created.", + "format": "date-time" + }, + "lastModified": { + "type": "string", + "description": "The date and time when the schema has been modified last.", + "format": "date-time" + }, + "version": { "type": "integer", - "description": "The maximum allowed number of words for the field value.", - "format": "int32", - "nullable": true + "description": "The version of the schema.", + "format": "int64" }, - "allowedValues": { - "type": "array", - "description": "The allowed values for the field value.", - "nullable": true, - "items": { + "scripts": { + "description": "The scripts.", + "$ref": "#/components/schemas/SchemaScriptsDto" + }, + "previewUrls": { + "type": "object", + "description": "The preview Urls.", + "additionalProperties": { "type": "string" } }, - "schemaIds": { + "fieldsInLists": { "type": "array", - "description": "The allowed schema ids that can be embedded.", - "nullable": true, + "description": "The name of fields that are used in content lists.", "items": { "type": "string" } }, - "isUnique": { - "type": "boolean", - "description": "Indicates if the field value must be unique. Ignored for nested fields and localized fields." - }, - "isEmbeddable": { - "type": "boolean", - "description": "Indicates that other content items or references are embedded." - }, - "inlineEditable": { - "type": "boolean", - "description": "Indicates that the inline editor is enabled for this field." - }, - "createEnum": { - "type": "boolean", - "description": "Indicates whether GraphQL Enum should be created." - }, - "contentType": { - "description": "How the string content should be interpreted.", - "$ref": "#/components/schemas/StringContentType" - }, - "editor": { - "description": "The editor that is used to manage this field.", - "$ref": "#/components/schemas/StringFieldEditor" - } - } - } - ] - }, - "LocalizedValueOfString": { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "StringContentType": { - "type": "string", - "description": "", - "x-enumNames": [ - "Unspecified", - "Html", - "Markdown" - ], - "enum": [ - "Unspecified", - "Html", - "Markdown" - ] - }, - "StringFieldEditor": { - "type": "string", - "description": "", - "x-enumNames": [ - "Input", - "Color", - "Markdown", - "Dropdown", - "Html", - "Radio", - "RichText", - "Slug", - "StockPhoto", - "TextArea" - ], - "enum": [ - "Input", - "Color", - "Markdown", - "Dropdown", - "Html", - "Radio", - "RichText", - "Slug", - "StockPhoto", - "TextArea" - ] - }, - "TagsFieldPropertiesDto": { - "allOf": [ - { - "$ref": "#/components/schemas/FieldPropertiesDto" - }, - { - "type": "object", - "additionalProperties": false, - "properties": { - "defaultValues": { - "description": "The language specific default value for the field value.", - "nullable": true, - "$ref": "#/components/schemas/LocalizedValueOfReadonlyListOfString" - }, - "defaultValue": { + "fieldsInReferences": { "type": "array", - "description": "The default value.", - "nullable": true, + "description": "The name of fields that are used in content references.", "items": { "type": "string" } }, - "minItems": { - "type": "integer", - "description": "The minimum allowed items for the field value.", - "format": "int32", - "nullable": true - }, - "maxItems": { - "type": "integer", - "description": "The maximum allowed items for the field value.", - "format": "int32", - "nullable": true - }, - "allowedValues": { + "fieldRules": { "type": "array", - "description": "The allowed values for the field value.", - "nullable": true, + "description": "The field rules.", "items": { - "type": "string" + "$ref": "#/components/schemas/FieldRuleDto" } }, - "createEnum": { - "type": "boolean", - "description": "Indicates whether GraphQL Enum should be created." - }, - "editor": { - "description": "The editor that is used to manage this field.", - "$ref": "#/components/schemas/TagsFieldEditor" + "fields": { + "type": "array", + "description": "The list of fields.", + "items": { + "$ref": "#/components/schemas/FieldDto" + } } } } ] }, - "TagsFieldEditor": { + "SchemaType": { "type": "string", "description": "", "x-enumNames": [ - "Tags", - "Checkboxes", - "Dropdown" + "Default", + "Singleton", + "Component" ], "enum": [ - "Tags", - "Checkboxes", - "Dropdown" - ] - }, - "UIFieldPropertiesDto": { - "allOf": [ - { - "$ref": "#/components/schemas/FieldPropertiesDto" - }, - { - "type": "object", - "additionalProperties": false, - "properties": { - "editor": { - "description": "The editor that is used to manage this field.", - "$ref": "#/components/schemas/UIFieldEditor" - } - } - } + "Default", + "Singleton", + "Component" ] }, - "UIFieldEditor": { - "type": "string", - "description": "", - "x-enumNames": [ - "Separator" + "SchemaPropertiesDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "validateOnPublish" ], - "enum": [ - "Separator" - ] - }, - "NestedFieldDto": { - "allOf": [ - { - "$ref": "#/components/schemas/Resource" - }, - { - "type": "object", - "additionalProperties": false, + "properties": { + "label": { + "type": "string", + "description": "Optional label for the editor.", + "maxLength": 100, + "minLength": 0, + "nullable": true + }, + "hints": { + "type": "string", + "description": "Hints to describe the schema.", + "maxLength": 1000, + "minLength": 0, + "nullable": true + }, + "contentsSidebarUrl": { + "type": "string", + "description": "The url to a the sidebar plugin for content lists.", + "nullable": true + }, + "contentSidebarUrl": { + "type": "string", + "description": "The url to a the sidebar plugin for content items.", + "nullable": true + }, + "contentEditorUrl": { + "type": "string", + "description": "The url to the editor plugin.", + "nullable": true + }, + "validateOnPublish": { + "type": "boolean", + "description": "True to validate the content items on publish." + }, + "tags": { + "type": "array", + "description": "Tags for automation processes.", + "nullable": true, + "items": { + "type": "string" + } + } + } + }, + "SchemaScriptsDto": { + "type": "object", + "additionalProperties": false, + "properties": { + "query": { + "type": "string", + "description": "The script that is executed for each content when querying contents.", + "nullable": true + }, + "queryPre": { + "type": "string", + "description": "The script that is executed for all contents when querying contents.", + "nullable": true + }, + "create": { + "type": "string", + "description": "The script that is executed when creating a content.", + "nullable": true + }, + "update": { + "type": "string", + "description": "The script that is executed when updating a content.", + "nullable": true + }, + "delete": { + "type": "string", + "description": "The script that is executed when deleting a content.", + "nullable": true + }, + "change": { + "type": "string", + "description": "The script that is executed when change a content status.", + "nullable": true + } + } + }, + "FieldRuleDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "action", + "field" + ], + "properties": { + "action": { + "description": "The action to perform when the condition is met.", + "$ref": "#/components/schemas/FieldRuleAction" + }, + "field": { + "type": "string", + "description": "The field to update.", + "minLength": 1 + }, + "condition": { + "type": "string", + "description": "The condition.", + "nullable": true + } + } + }, + "FieldRuleAction": { + "type": "string", + "description": "", + "x-enumNames": [ + "Disable", + "Hide", + "Require" + ], + "enum": [ + "Disable", + "Hide", + "Require" + ] + }, + "FieldDto": { + "allOf": [ + { + "$ref": "#/components/schemas/Resource" + }, + { + "type": "object", + "additionalProperties": false, "required": [ "name", + "partitioning", "properties", "fieldId", "isHidden", @@ -15701,1291 +16111,1037 @@ "type": "boolean", "description": "Defines if the field is disabled." }, + "partitioning": { + "type": "string", + "description": "Defines the partitioning of the field.", + "minLength": 1 + }, "properties": { "description": "The field properties.", "$ref": "#/components/schemas/FieldPropertiesDto" + }, + "nested": { + "type": "array", + "description": "The nested fields.", + "nullable": true, + "items": { + "$ref": "#/components/schemas/NestedFieldDto" + } } } } ] }, - "Resource": { + "FieldPropertiesDto": { "type": "object", - "x-abstract": true, - "additionalProperties": false, - "required": [ - "_links" - ], - "properties": { - "_links": { - "type": "object", - "description": "The links.", - "additionalProperties": { - "$ref": "#/components/schemas/ResourceLink" - } + "discriminator": { + "propertyName": "fieldType", + "mapping": { + "Array": "#/components/schemas/ArrayFieldPropertiesDto", + "Assets": "#/components/schemas/AssetsFieldPropertiesDto", + "Boolean": "#/components/schemas/BooleanFieldPropertiesDto", + "Component": "#/components/schemas/ComponentFieldPropertiesDto", + "Components": "#/components/schemas/ComponentsFieldPropertiesDto", + "DateTime": "#/components/schemas/DateTimeFieldPropertiesDto", + "Geolocation": "#/components/schemas/GeolocationFieldPropertiesDto", + "Json": "#/components/schemas/JsonFieldPropertiesDto", + "Number": "#/components/schemas/NumberFieldPropertiesDto", + "References": "#/components/schemas/ReferencesFieldPropertiesDto", + "String": "#/components/schemas/StringFieldPropertiesDto", + "Tags": "#/components/schemas/TagsFieldPropertiesDto", + "UI": "#/components/schemas/UIFieldPropertiesDto" } - } - }, - "ResourceLink": { - "type": "object", + }, + "x-abstract": true, "additionalProperties": false, "required": [ - "href", - "method" + "fieldType" ], "properties": { - "href": { + "label": { "type": "string", - "description": "The link url.", - "minLength": 1 + "description": "Optional label for the editor.", + "maxLength": 100, + "minLength": 0, + "nullable": true }, - "method": { + "hints": { "type": "string", - "description": "The link method.", - "minLength": 1 + "description": "Hints to describe the field.", + "maxLength": 1000, + "minLength": 0, + "nullable": true }, - "metadata": { + "placeholder": { "type": "string", - "description": "Additional data about the link.", + "description": "Placeholder to show when no value has been entered.", + "maxLength": 100, + "minLength": 0, "nullable": true - } - } - }, - "StatusInfoDto": { - "type": "object", - "additionalProperties": false, - "required": [ - "status", - "color" - ], - "properties": { - "status": { - "type": "string", - "description": "The name of the status." }, - "color": { + "isRequired": { + "type": "boolean", + "description": "Indicates if the field is required." + }, + "isRequiredOnPublish": { + "type": "boolean", + "description": "Indicates if the field is required when publishing." + }, + "isHalfWidth": { + "type": "boolean", + "description": "Indicates if the field should be rendered with half width only." + }, + "editorUrl": { "type": "string", - "description": "The color of the status." - } - } - }, - "AllContentsByPostDto": { - "type": "object", - "additionalProperties": false, - "properties": { - "ids": { + "description": "Optional url to the editor.", + "nullable": true + }, + "tags": { "type": "array", - "description": "The list of ids to query.", + "description": "Tags for automation processes.", "nullable": true, "items": { "type": "string" } }, - "scheduledFrom": { - "type": "string", - "description": "The start of the schedule.", - "format": "date-time", - "nullable": true - }, - "scheduledTo": { - "type": "string", - "description": "The end of the schedule.", - "format": "date-time", - "nullable": true - }, - "referencing": { - "type": "string", - "description": "The ID of the referencing content item.", - "nullable": true - }, - "references": { - "type": "string", - "description": "The ID of the reference content item.", - "nullable": true - }, - "oData": { - "type": "string", - "description": "The optional odata query.", - "nullable": true - }, - "q": { - "description": "The optional json query.", - "nullable": true - } - } - }, - "BulkResultDto": { - "type": "object", - "additionalProperties": false, - "required": [ - "jobIndex" - ], - "properties": { - "error": { - "description": "The error when the bulk job failed.", - "nullable": true, - "$ref": "#/components/schemas/ErrorDto" - }, - "jobIndex": { - "type": "integer", - "description": "The index of the bulk job where the result belongs to. The order can change.", - "format": "int32" - }, - "id": { - "type": "string", - "description": "The ID of the entity that has been handled successfully or not.", - "nullable": true - }, - "contentId": { - "type": "string", - "description": "The ID of the entity that has been handled successfully or not.", - "deprecated": true, - "x-deprecatedMessage": "Use 'id' field now.", - "nullable": true - } - } - }, - "BulkUpdateContentsDto": { - "type": "object", - "additionalProperties": false, - "required": [ - "jobs" - ], - "properties": { - "jobs": { - "type": "array", - "description": "The contents to update or insert.", - "items": { - "$ref": "#/components/schemas/BulkUpdateContentsJobDto" - } - }, - "publish": { - "type": "boolean", - "description": "True to automatically publish the content.", - "deprecated": true, - "x-deprecatedMessage": "Use 'jobs.status' fields now." - }, - "doNotScript": { - "type": "boolean", - "description": "True to turn off scripting for faster inserts. Default: true." - }, - "doNotValidate": { - "type": "boolean", - "description": "True to turn off validation for faster inserts. Default: false." - }, - "doNotValidateWorkflow": { - "type": "boolean", - "description": "True to turn off validation of workflow rules. Default: false." - }, - "checkReferrers": { - "type": "boolean", - "description": "True to check referrers of deleted contents." - }, - "optimizeValidation": { - "type": "boolean", - "description": "True to turn off costly validation: Unique checks, asset checks and reference checks. Default: true." - } - } - }, - "BulkUpdateContentsJobDto": { - "type": "object", - "additionalProperties": false, - "properties": { - "query": { - "description": "An optional query to identify the content to update.", - "nullable": true, - "$ref": "#/components/schemas/QueryJsonDto" - }, - "id": { - "type": "string", - "description": "An optional ID of the content to update.", - "nullable": true - }, - "data": { - "description": "The data of the content when type is set to 'Upsert', 'Create', 'Update' or 'Patch.", - "nullable": true, - "$ref": "#/components/schemas/ContentData" - }, - "status": { - "type": "string", - "description": "The new status when the type is set to 'ChangeStatus' or 'Upsert'.", - "nullable": true - }, - "dueTime": { - "type": "string", - "description": "The due time.", - "format": "date-time", - "nullable": true - }, - "type": { - "description": "The update type.", - "$ref": "#/components/schemas/BulkUpdateContentType" - }, - "schema": { - "type": "string", - "description": "The optional schema id or name.", - "nullable": true - }, - "patch": { - "type": "boolean", - "description": "Makes the update as patch." - }, - "permanent": { - "type": "boolean", - "description": "True to delete the content permanently." - }, - "expectedCount": { - "type": "integer", - "description": "The number of expected items. Set it to a higher number to update multiple items when a query is defined.", - "format": "int64" - }, - "expectedVersion": { - "type": "integer", - "description": "The expected version.", - "format": "int64" - } - } - }, - "QueryJsonDto": { - "type": "object", - "additionalProperties": false, - "required": [ - "skip", - "take", - "random", - "top" - ], - "properties": { - "filter": { - "nullable": true - }, - "fullText": { - "type": "string", - "nullable": true - }, - "skip": { - "type": "integer", - "format": "int64" - }, - "take": { - "type": "integer", - "format": "int64" - }, - "random": { - "type": "integer", - "format": "int64" - }, - "top": { - "type": "integer", - "format": "int64" - }, - "sort": { - "type": "array", - "nullable": true, - "items": { - "$ref": "#/components/schemas/SortNode" - } - } - } - }, - "SortNode": { - "type": "object", - "additionalProperties": false, - "required": [ - "path", - "order" - ], - "properties": { - "path": { - "$ref": "#/components/schemas/PropertyPath" - }, - "order": { - "$ref": "#/components/schemas/SortOrder" - } - } - }, - "PropertyPath": { - "type": "array", - "items": { - "type": "string" - } - }, - "SortOrder": { - "type": "string", - "description": "", - "x-enumNames": [ - "Ascending", - "Descending" - ], - "enum": [ - "Ascending", - "Descending" - ] - }, - "BulkUpdateContentType": { - "type": "string", - "description": "", - "x-enumNames": [ - "Upsert", - "ChangeStatus", - "Create", - "Delete", - "Patch", - "Update", - "Validate" - ], - "enum": [ - "Upsert", - "ChangeStatus", - "Create", - "Delete", - "Patch", - "Update", - "Validate" - ] - }, - "UsersDto": { - "allOf": [ - { - "$ref": "#/components/schemas/Resource" - }, - { - "type": "object", - "additionalProperties": false, - "required": [ - "total", - "items" - ], - "properties": { - "total": { - "type": "integer", - "description": "The total number of users.", - "format": "int64" - }, - "items": { - "type": "array", - "description": "The users.", - "items": { - "$ref": "#/components/schemas/UserDto" - } - } - } - } - ] - }, - "UserDto": { - "allOf": [ - { - "$ref": "#/components/schemas/Resource" - }, - { - "type": "object", - "additionalProperties": false, - "required": [ - "id", - "email", - "displayName", - "isLocked", - "permissions" - ], - "properties": { - "id": { - "type": "string", - "description": "The ID of the user." - }, - "email": { - "type": "string", - "description": "The email of the user. Unique value." - }, - "displayName": { - "type": "string", - "description": "The display name (usually first name and last name) of the user." - }, - "isLocked": { - "type": "boolean", - "description": "Determines if the user is locked." - }, - "permissions": { - "type": "array", - "description": "Additional permissions for the user.", - "items": { - "type": "string" - } - } - } - } - ] - }, - "CreateUserDto": { - "type": "object", - "additionalProperties": false, - "required": [ - "email", - "displayName", - "password", - "permissions" - ], - "properties": { - "email": { - "type": "string", - "description": "The email of the user. Unique value.", - "minLength": 1 - }, - "displayName": { - "type": "string", - "description": "The display name (usually first name and last name) of the user.", - "minLength": 1 - }, - "password": { - "type": "string", - "description": "The password of the user.", - "minLength": 1 - }, - "permissions": { - "type": "array", - "description": "Additional permissions for the user.", - "items": { - "type": "string" - } - } - } - }, - "UpdateUserDto": { - "type": "object", - "additionalProperties": false, - "required": [ - "email", - "displayName", - "permissions" - ], - "properties": { - "email": { - "type": "string", - "description": "The email of the user. Unique value.", - "minLength": 1 - }, - "displayName": { - "type": "string", - "description": "The display name (usually first name and last name) of the user.", - "minLength": 1 - }, - "password": { - "type": "string", - "description": "The password of the user.", - "nullable": true - }, - "permissions": { - "type": "array", - "description": "Additional permissions for the user.", - "items": { - "type": "string" - } - } - } - }, - "ResourcesDto": { - "allOf": [ - { - "$ref": "#/components/schemas/Resource" - }, - { - "type": "object", - "additionalProperties": false - } - ] - }, - "TranslationDto": { - "type": "object", - "additionalProperties": false, - "required": [ - "result" - ], - "properties": { - "result": { - "description": "The result of the translation.", - "$ref": "#/components/schemas/TranslationResultCode" - }, - "text": { - "type": "string", - "description": "The translated text.", - "nullable": true - } - } - }, - "TranslationResultCode": { - "type": "string", - "description": "", - "x-enumNames": [ - "Translated", - "LanguageNotSupported", - "NotTranslated", - "NotConfigured", - "Unauthorized", - "Failed" - ], - "enum": [ - "Translated", - "LanguageNotSupported", - "NotTranslated", - "NotConfigured", - "Unauthorized", - "Failed" - ] - }, - "TranslateDto": { - "type": "object", - "additionalProperties": false, - "required": [ - "text", - "targetLanguage" - ], - "properties": { - "text": { - "type": "string", - "description": "The text to translate.", - "minLength": 1 - }, - "targetLanguage": { - "type": "string", - "description": "The target language.", - "minLength": 1 - }, - "sourceLanguage": { - "type": "string", - "description": "The optional source language." + "fieldType": { + "type": "string" } } }, - "TemplatesDto": { + "ArrayFieldPropertiesDto": { "allOf": [ { - "$ref": "#/components/schemas/Resource" + "$ref": "#/components/schemas/FieldPropertiesDto" }, { "type": "object", "additionalProperties": false, - "required": [ - "items" - ], "properties": { - "items": { + "minItems": { + "type": "integer", + "description": "The minimum allowed items for the field value.", + "format": "int32", + "nullable": true + }, + "maxItems": { + "type": "integer", + "description": "The maximum allowed items for the field value.", + "format": "int32", + "nullable": true + }, + "calculatedDefaultValue": { + "description": "The calculated default value for the field value.", + "$ref": "#/components/schemas/ArrayCalculatedDefaultValue" + }, + "uniqueFields": { "type": "array", - "description": "The event consumers.", + "description": "The fields that must be unique.", + "nullable": true, "items": { - "$ref": "#/components/schemas/TemplateDto" + "type": "string" } } } } ] }, - "TemplateDto": { + "ArrayCalculatedDefaultValue": { + "type": "string", + "description": "", + "x-enumNames": [ + "EmptyArray", + "Null" + ], + "enum": [ + "EmptyArray", + "Null" + ] + }, + "AssetsFieldPropertiesDto": { "allOf": [ { - "$ref": "#/components/schemas/Resource" + "$ref": "#/components/schemas/FieldPropertiesDto" }, { "type": "object", "additionalProperties": false, - "required": [ - "name", - "title", - "description", - "isStarter" - ], "properties": { - "name": { - "type": "string", - "description": "The name of the template." + "previewMode": { + "description": "The preview mode for the asset.", + "$ref": "#/components/schemas/AssetPreviewMode" }, - "title": { + "defaultValues": { + "description": "The language specific default value as a list of asset ids.", + "nullable": true, + "$ref": "#/components/schemas/LocalizedValueOfReadonlyListOfString" + }, + "defaultValue": { + "type": "array", + "description": "The default value as a list of asset ids.", + "nullable": true, + "items": { + "type": "string" + } + }, + "folderId": { "type": "string", - "description": "The title of the template." + "description": "The initial id to the folder.", + "nullable": true }, - "description": { + "previewFormat": { "type": "string", - "description": "The description of the template." + "description": "The preview format.", + "nullable": true }, - "isStarter": { + "minItems": { + "type": "integer", + "description": "The minimum allowed items for the field value.", + "format": "int32", + "nullable": true + }, + "maxItems": { + "type": "integer", + "description": "The maximum allowed items for the field value.", + "format": "int32", + "nullable": true + }, + "minSize": { + "type": "integer", + "description": "The minimum file size in bytes.", + "format": "int32", + "nullable": true + }, + "maxSize": { + "type": "integer", + "description": "The maximum file size in bytes.", + "format": "int32", + "nullable": true + }, + "minWidth": { + "type": "integer", + "description": "The minimum image width in pixels.", + "format": "int32", + "nullable": true + }, + "maxWidth": { + "type": "integer", + "description": "The maximum image width in pixels.", + "format": "int32", + "nullable": true + }, + "minHeight": { + "type": "integer", + "description": "The minimum image height in pixels.", + "format": "int32", + "nullable": true + }, + "maxHeight": { + "type": "integer", + "description": "The maximum image height in pixels.", + "format": "int32", + "nullable": true + }, + "aspectWidth": { + "type": "integer", + "description": "The image aspect width in pixels.", + "format": "int32", + "nullable": true + }, + "aspectHeight": { + "type": "integer", + "description": "The image aspect height in pixels.", + "format": "int32", + "nullable": true + }, + "expectedType": { + "description": "The expected type.", + "nullable": true, + "$ref": "#/components/schemas/AssetType" + }, + "resolveFirst": { "type": "boolean", - "description": "True, if the template is a starter." + "description": "True to resolve first asset in the content list." + }, + "mustBeImage": { + "type": "boolean", + "description": "True to resolve first image in the content list.", + "deprecated": true, + "x-deprecatedMessage": "Use 'expectedType' field now" + }, + "resolveImage": { + "type": "boolean", + "description": "True to resolve first image in the content list.", + "deprecated": true, + "x-deprecatedMessage": "Use 'resolveFirst' field now" + }, + "allowedExtensions": { + "type": "array", + "description": "The allowed file extensions.", + "nullable": true, + "items": { + "type": "string" + } + }, + "allowDuplicates": { + "type": "boolean", + "description": "True, if duplicate values are allowed." } } } ] }, - "TemplateDetailsDto": { + "AssetPreviewMode": { + "type": "string", + "description": "", + "x-enumNames": [ + "ImageAndFileName", + "Image", + "FileName" + ], + "enum": [ + "ImageAndFileName", + "Image", + "FileName" + ] + }, + "LocalizedValueOfReadonlyListOfString": { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "AssetType": { + "type": "string", + "description": "", + "x-enumNames": [ + "Unknown", + "Image", + "Audio", + "Video" + ], + "enum": [ + "Unknown", + "Image", + "Audio", + "Video" + ] + }, + "BooleanFieldPropertiesDto": { "allOf": [ { - "$ref": "#/components/schemas/Resource" + "$ref": "#/components/schemas/FieldPropertiesDto" }, { "type": "object", "additionalProperties": false, - "required": [ - "details" - ], "properties": { - "details": { - "type": "string", - "description": "The details of the template." + "defaultValues": { + "description": "The language specific default value for the field value.", + "nullable": true, + "$ref": "#/components/schemas/LocalizedValueOfNullableBoolean" + }, + "defaultValue": { + "type": "boolean", + "description": "The default value for the field value.", + "nullable": true + }, + "inlineEditable": { + "type": "boolean", + "description": "Indicates that the inline editor is enabled for this field." + }, + "editor": { + "description": "The editor that is used to manage this field.", + "$ref": "#/components/schemas/BooleanFieldEditor" } } } ] }, - "ContributorsDto": { + "LocalizedValueOfNullableBoolean": { + "type": "object", + "additionalProperties": { + "type": "boolean", + "nullable": true + } + }, + "BooleanFieldEditor": { + "type": "string", + "description": "", + "x-enumNames": [ + "Checkbox", + "Toggle" + ], + "enum": [ + "Checkbox", + "Toggle" + ] + }, + "ComponentFieldPropertiesDto": { "allOf": [ { - "$ref": "#/components/schemas/Resource" + "$ref": "#/components/schemas/FieldPropertiesDto" }, { "type": "object", "additionalProperties": false, - "required": [ - "items", - "maxContributors" - ], "properties": { - "items": { + "schemaIds": { "type": "array", - "description": "The contributors.", + "description": "The ID of the embedded schemas.", + "nullable": true, "items": { - "$ref": "#/components/schemas/ContributorDto" + "type": "string" } - }, - "maxContributors": { - "type": "integer", - "description": "The maximum number of allowed contributors.", - "format": "int64" - }, - "_meta": { - "description": "The metadata to provide information about this request.", - "nullable": true, - "$ref": "#/components/schemas/ContributorsMetadata" } } } ] }, - "ContributorDto": { + "ComponentsFieldPropertiesDto": { "allOf": [ { - "$ref": "#/components/schemas/Resource" + "$ref": "#/components/schemas/FieldPropertiesDto" }, { "type": "object", "additionalProperties": false, - "required": [ - "contributorId", - "contributorName", - "contributorEmail" - ], "properties": { - "contributorId": { - "type": "string", - "description": "The ID of the user that contributes to the app." + "minItems": { + "type": "integer", + "description": "The minimum allowed items for the field value.", + "format": "int32", + "nullable": true }, - "contributorName": { - "type": "string", - "description": "The display name." + "maxItems": { + "type": "integer", + "description": "The maximum allowed items for the field value.", + "format": "int32", + "nullable": true }, - "contributorEmail": { - "type": "string", - "description": "The email address." + "calculatedDefaultValue": { + "description": "The calculated default value for the field value.", + "$ref": "#/components/schemas/ArrayCalculatedDefaultValue" }, - "role": { - "type": "string", - "description": "The role of the contributor.", - "nullable": true + "schemaIds": { + "type": "array", + "description": "The ID of the embedded schemas.", + "nullable": true, + "items": { + "type": "string" + } + }, + "uniqueFields": { + "type": "array", + "description": "The fields that must be unique.", + "nullable": true, + "items": { + "type": "string" + } } } } ] }, - "ContributorsMetadata": { - "type": "object", - "additionalProperties": false, - "required": [ - "isInvited" - ], - "properties": { - "isInvited": { - "type": "string", - "description": "Indicates whether the user has been invited." - } - } - }, - "AssignContributorDto": { - "type": "object", - "additionalProperties": false, - "required": [ - "contributorId" - ], - "properties": { - "contributorId": { - "type": "string", - "description": "The id or email of the user to add to the app.", - "minLength": 1 - }, - "role": { - "type": "string", - "description": "The role of the contributor.", - "nullable": true - }, - "invite": { - "type": "boolean", - "description": "Set to true to invite the user if he does not exist." - } - } - }, - "TeamDto": { + "DateTimeFieldPropertiesDto": { "allOf": [ { - "$ref": "#/components/schemas/Resource" + "$ref": "#/components/schemas/FieldPropertiesDto" }, { "type": "object", "additionalProperties": false, - "required": [ - "id", - "name", - "version", - "created", - "lastModified" - ], "properties": { - "id": { - "type": "string", - "description": "The ID of the team." + "defaultValues": { + "description": "The language specific default value for the field value.", + "nullable": true, + "$ref": "#/components/schemas/LocalizedValueOfNullableInstant" }, - "name": { + "defaultValue": { "type": "string", - "description": "The name of the team." - }, - "version": { - "type": "integer", - "description": "The version of the team.", - "format": "int64" + "description": "The default value for the field value.", + "format": "date-time", + "nullable": true }, - "created": { + "maxValue": { "type": "string", - "description": "The timestamp when the team has been created.", - "format": "date-time" + "description": "The maximum allowed value for the field value.", + "format": "date-time", + "nullable": true }, - "lastModified": { + "minValue": { "type": "string", - "description": "The timestamp when the team has been modified last.", - "format": "date-time" + "description": "The minimum allowed value for the field value.", + "format": "date-time", + "nullable": true }, - "roleName": { + "format": { "type": "string", - "description": "The role name of the user.", + "description": "The format pattern when displayed in the UI.", "nullable": true + }, + "editor": { + "description": "The editor that is used to manage this field.", + "$ref": "#/components/schemas/DateTimeFieldEditor" + }, + "calculatedDefaultValue": { + "description": "The calculated default value for the field value.", + "nullable": true, + "$ref": "#/components/schemas/DateTimeCalculatedDefaultValue" } } } - ] - }, - "CreateTeamDto": { - "type": "object", - "additionalProperties": false, - "required": [ - "name" - ], - "properties": { - "name": { - "type": "string", - "description": "The name of the team.", - "minLength": 1 - } - } - }, - "UpdateTeamDto": { - "type": "object", - "additionalProperties": false, - "required": [ - "name" - ], - "properties": { - "name": { - "type": "string", - "description": "The name of the team.", - "minLength": 1 - } - } - }, - "LogDownloadDto": { - "type": "object", - "additionalProperties": false, - "properties": { - "downloadUrl": { - "type": "string", - "description": "The url to download the log.", - "nullable": true - } - } - }, - "CallsUsageDtoDto": { - "type": "object", - "additionalProperties": false, - "required": [ - "totalCalls", - "totalBytes", - "monthCalls", - "monthBytes", - "blockingApiCalls", - "allowedBytes", - "allowedCalls", - "averageElapsedMs", - "details" - ], - "properties": { - "totalCalls": { - "type": "integer", - "description": "The total number of API calls.", - "format": "int64" - }, - "totalBytes": { - "type": "integer", - "description": "The total number of bytes transferred.", - "format": "int64" - }, - "monthCalls": { - "type": "integer", - "description": "The total number of API calls this month.", - "format": "int64" - }, - "monthBytes": { - "type": "integer", - "description": "The total number of bytes transferred this month.", - "format": "int64" - }, - "blockingApiCalls": { - "type": "integer", - "description": "The amount of calls that will block the app.", - "format": "int64" - }, - "allowedBytes": { - "type": "integer", - "description": "The included API traffic.", - "format": "int64" - }, - "allowedCalls": { - "type": "integer", - "description": "The included API calls.", - "format": "int64" - }, - "averageElapsedMs": { - "type": "number", - "description": "The average duration in milliseconds.", - "format": "double" - }, - "details": { - "type": "object", - "description": "The statistics by date and group.", - "additionalProperties": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CallsUsagePerDateDto" - } - } - } - } + ] }, - "CallsUsagePerDateDto": { + "LocalizedValueOfNullableInstant": { "type": "object", - "additionalProperties": false, - "required": [ - "date", - "totalCalls", - "totalBytes", - "averageElapsedMs" - ], - "properties": { - "date": { - "type": "string", - "description": "The date when the usage was tracked.", - "format": "date" - }, - "totalCalls": { - "type": "integer", - "description": "The total number of API calls.", - "format": "int64" - }, - "totalBytes": { - "type": "integer", - "description": "The total number of bytes transferred.", - "format": "int64" - }, - "averageElapsedMs": { - "type": "number", - "description": "The average duration in milliseconds.", - "format": "double" - } + "additionalProperties": { + "type": "string", + "format": "date-time", + "nullable": true } }, - "CurrentStorageDto": { - "type": "object", - "additionalProperties": false, - "required": [ - "size", - "maxAllowed" + "DateTimeFieldEditor": { + "type": "string", + "description": "", + "x-enumNames": [ + "Date", + "DateTime" ], - "properties": { - "size": { - "type": "integer", - "description": "The size in bytes.", - "format": "int64" + "enum": [ + "Date", + "DateTime" + ] + }, + "DateTimeCalculatedDefaultValue": { + "type": "string", + "description": "", + "x-enumNames": [ + "Now", + "Today" + ], + "enum": [ + "Now", + "Today" + ] + }, + "GeolocationFieldPropertiesDto": { + "allOf": [ + { + "$ref": "#/components/schemas/FieldPropertiesDto" }, - "maxAllowed": { - "type": "integer", - "description": "The maximum allowed asset size.", - "format": "int64" + { + "type": "object", + "additionalProperties": false, + "properties": { + "editor": { + "description": "The editor that is used to manage this field.", + "$ref": "#/components/schemas/GeolocationFieldEditor" + } + } } - } + ] }, - "StorageUsagePerDateDto": { - "type": "object", - "additionalProperties": false, - "required": [ - "date", - "totalCount", - "totalSize" + "GeolocationFieldEditor": { + "type": "string", + "description": "", + "x-enumNames": [ + "Map" ], - "properties": { - "date": { - "type": "string", - "description": "The date when the usage was tracked.", - "format": "date" + "enum": [ + "Map" + ] + }, + "JsonFieldPropertiesDto": { + "allOf": [ + { + "$ref": "#/components/schemas/FieldPropertiesDto" }, - "totalCount": { - "type": "integer", - "description": "The number of assets.", - "format": "int64" + { + "type": "object", + "additionalProperties": false, + "properties": { + "graphQLSchema": { + "type": "string", + "description": "The GraphQL schema.", + "nullable": true + } + } + } + ] + }, + "NumberFieldPropertiesDto": { + "allOf": [ + { + "$ref": "#/components/schemas/FieldPropertiesDto" }, - "totalSize": { - "type": "integer", - "description": "The size in bytes.", - "format": "int64" + { + "type": "object", + "additionalProperties": false, + "properties": { + "defaultValues": { + "description": "The language specific default value for the field value.", + "nullable": true, + "$ref": "#/components/schemas/LocalizedValueOfNullableDouble" + }, + "defaultValue": { + "type": "number", + "description": "The default value for the field value.", + "format": "double", + "nullable": true + }, + "maxValue": { + "type": "number", + "description": "The maximum allowed value for the field value.", + "format": "double", + "nullable": true + }, + "minValue": { + "type": "number", + "description": "The minimum allowed value for the field value.", + "format": "double", + "nullable": true + }, + "allowedValues": { + "type": "array", + "description": "The allowed values for the field value.", + "nullable": true, + "items": { + "type": "number", + "format": "double" + } + }, + "isUnique": { + "type": "boolean", + "description": "Indicates if the field value must be unique. Ignored for nested fields and localized fields." + }, + "inlineEditable": { + "type": "boolean", + "description": "Indicates that the inline editor is enabled for this field." + }, + "editor": { + "description": "The editor that is used to manage this field.", + "$ref": "#/components/schemas/NumberFieldEditor" + } + } } + ] + }, + "LocalizedValueOfNullableDouble": { + "type": "object", + "additionalProperties": { + "type": "number", + "format": "double", + "nullable": true } }, - "SearchResultDto": { + "NumberFieldEditor": { + "type": "string", + "description": "", + "x-enumNames": [ + "Input", + "Radio", + "Dropdown", + "Stars" + ], + "enum": [ + "Input", + "Radio", + "Dropdown", + "Stars" + ] + }, + "ReferencesFieldPropertiesDto": { "allOf": [ { - "$ref": "#/components/schemas/Resource" + "$ref": "#/components/schemas/FieldPropertiesDto" }, { "type": "object", "additionalProperties": false, - "required": [ - "name", - "type" - ], "properties": { - "name": { - "type": "string", - "description": "The name of the search result." + "defaultValues": { + "description": "The language specific default value as a list of content ids.", + "nullable": true, + "$ref": "#/components/schemas/LocalizedValueOfReadonlyListOfString" + }, + "defaultValue": { + "type": "array", + "description": "The default value as a list of content ids.", + "nullable": true, + "items": { + "type": "string" + } + }, + "minItems": { + "type": "integer", + "description": "The minimum allowed items for the field value.", + "format": "int32", + "nullable": true + }, + "maxItems": { + "type": "integer", + "description": "The maximum allowed items for the field value.", + "format": "int32", + "nullable": true + }, + "allowDuplicates": { + "type": "boolean", + "description": "True, if duplicate values are allowed." }, - "type": { - "description": "The type of the search result.", - "$ref": "#/components/schemas/SearchResultType" + "resolveReference": { + "type": "boolean", + "description": "True to resolve references in the content list." }, - "label": { + "mustBePublished": { + "type": "boolean", + "description": "True when all references must be published." + }, + "query": { "type": "string", - "description": "An optional label.", + "description": "The initial query that is applied in the UI.", "nullable": true + }, + "editor": { + "description": "The editor that is used to manage this field.", + "$ref": "#/components/schemas/ReferencesFieldEditor" + }, + "schemaIds": { + "type": "array", + "description": "The ID of the referenced schemas.", + "nullable": true, + "items": { + "type": "string" + } } } } ] }, - "SearchResultType": { + "ReferencesFieldEditor": { "type": "string", "description": "", "x-enumNames": [ - "Asset", - "Content", - "Dashboard", - "Setting", - "Rule", - "Schema" + "List", + "Dropdown", + "Tags", + "Checkboxes", + "Input" ], "enum": [ - "Asset", - "Content", - "Dashboard", - "Setting", - "Rule", - "Schema" + "List", + "Dropdown", + "Tags", + "Checkboxes", + "Input" ] }, - "SchemaDto": { + "StringFieldPropertiesDto": { "allOf": [ { - "$ref": "#/components/schemas/Resource" + "$ref": "#/components/schemas/FieldPropertiesDto" }, { "type": "object", "additionalProperties": false, - "required": [ - "createdBy", - "lastModifiedBy", - "name", - "properties", - "scripts", - "previewUrls", - "fieldsInLists", - "fieldsInReferences", - "fields", - "id", - "type", - "isSingleton", - "isPublished", - "created", - "lastModified", - "version", - "fieldRules" - ], "properties": { - "id": { - "type": "string", - "description": "The ID of the schema." + "defaultValues": { + "description": "The language specific default value for the field value.", + "nullable": true, + "$ref": "#/components/schemas/LocalizedValueOfString" }, - "createdBy": { + "defaultValue": { "type": "string", - "description": "The user that has created the schema.", - "minLength": 1 + "description": "The default value for the field value.", + "nullable": true }, - "lastModifiedBy": { + "pattern": { "type": "string", - "description": "The user that has updated the schema.", - "minLength": 1 + "description": "The pattern to enforce a specific format for the field value.", + "nullable": true }, - "name": { + "patternMessage": { "type": "string", - "description": "The name of the schema. Unique within the app.", - "minLength": 1, - "pattern": "^[a-z0-9]+(\\-[a-z0-9]+)*$" - }, - "type": { - "description": "The type of the schema.", - "$ref": "#/components/schemas/SchemaType" + "description": "The validation message for the pattern.", + "nullable": true }, - "category": { + "folderId": { "type": "string", - "description": "The name of the category.", + "description": "The initial id to the folder when the control supports file uploads.", "nullable": true }, - "properties": { - "description": "The schema properties.", - "$ref": "#/components/schemas/SchemaPropertiesDto" + "minLength": { + "type": "integer", + "description": "The minimum allowed length for the field value.", + "format": "int32", + "nullable": true }, - "isSingleton": { - "type": "boolean", - "description": "Indicates if the schema is a singleton.", - "deprecated": true, - "x-deprecatedMessage": "Use 'type' field now." + "maxLength": { + "type": "integer", + "description": "The maximum allowed length for the field value.", + "format": "int32", + "nullable": true }, - "isPublished": { - "type": "boolean", - "description": "Indicates if the schema is published." + "minCharacters": { + "type": "integer", + "description": "The minimum allowed of normal characters for the field value.", + "format": "int32", + "nullable": true }, - "created": { - "type": "string", - "description": "The date and time when the schema has been created.", - "format": "date-time" + "maxCharacters": { + "type": "integer", + "description": "The maximum allowed of normal characters for the field value.", + "format": "int32", + "nullable": true }, - "lastModified": { - "type": "string", - "description": "The date and time when the schema has been modified last.", - "format": "date-time" + "minWords": { + "type": "integer", + "description": "The minimum allowed number of words for the field value.", + "format": "int32", + "nullable": true }, - "version": { + "maxWords": { "type": "integer", - "description": "The version of the schema.", - "format": "int64" + "description": "The maximum allowed number of words for the field value.", + "format": "int32", + "nullable": true }, - "scripts": { - "description": "The scripts.", - "$ref": "#/components/schemas/SchemaScriptsDto" + "allowedValues": { + "type": "array", + "description": "The allowed values for the field value.", + "nullable": true, + "items": { + "type": "string" + } }, - "previewUrls": { - "type": "object", - "description": "The preview Urls.", - "additionalProperties": { + "schemaIds": { + "type": "array", + "description": "The allowed schema ids that can be embedded.", + "nullable": true, + "items": { "type": "string" } }, - "fieldsInLists": { + "isUnique": { + "type": "boolean", + "description": "Indicates if the field value must be unique. Ignored for nested fields and localized fields." + }, + "isEmbeddable": { + "type": "boolean", + "description": "Indicates that other content items or references are embedded." + }, + "inlineEditable": { + "type": "boolean", + "description": "Indicates that the inline editor is enabled for this field." + }, + "createEnum": { + "type": "boolean", + "description": "Indicates whether GraphQL Enum should be created." + }, + "contentType": { + "description": "How the string content should be interpreted.", + "$ref": "#/components/schemas/StringContentType" + }, + "editor": { + "description": "The editor that is used to manage this field.", + "$ref": "#/components/schemas/StringFieldEditor" + } + } + } + ] + }, + "LocalizedValueOfString": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "StringContentType": { + "type": "string", + "description": "", + "x-enumNames": [ + "Unspecified", + "Html", + "Markdown" + ], + "enum": [ + "Unspecified", + "Html", + "Markdown" + ] + }, + "StringFieldEditor": { + "type": "string", + "description": "", + "x-enumNames": [ + "Input", + "Color", + "Markdown", + "Dropdown", + "Html", + "Radio", + "RichText", + "Slug", + "StockPhoto", + "TextArea" + ], + "enum": [ + "Input", + "Color", + "Markdown", + "Dropdown", + "Html", + "Radio", + "RichText", + "Slug", + "StockPhoto", + "TextArea" + ] + }, + "TagsFieldPropertiesDto": { + "allOf": [ + { + "$ref": "#/components/schemas/FieldPropertiesDto" + }, + { + "type": "object", + "additionalProperties": false, + "properties": { + "defaultValues": { + "description": "The language specific default value for the field value.", + "nullable": true, + "$ref": "#/components/schemas/LocalizedValueOfReadonlyListOfString" + }, + "defaultValue": { "type": "array", - "description": "The name of fields that are used in content lists.", + "description": "The default value.", + "nullable": true, "items": { "type": "string" } }, - "fieldsInReferences": { + "minItems": { + "type": "integer", + "description": "The minimum allowed items for the field value.", + "format": "int32", + "nullable": true + }, + "maxItems": { + "type": "integer", + "description": "The maximum allowed items for the field value.", + "format": "int32", + "nullable": true + }, + "allowedValues": { "type": "array", - "description": "The name of fields that are used in content references.", + "description": "The allowed values for the field value.", + "nullable": true, "items": { "type": "string" } }, - "fieldRules": { - "type": "array", - "description": "The field rules.", - "items": { - "$ref": "#/components/schemas/FieldRuleDto" - } + "createEnum": { + "type": "boolean", + "description": "Indicates whether GraphQL Enum should be created." }, - "fields": { - "type": "array", - "description": "The list of fields.", - "items": { - "$ref": "#/components/schemas/FieldDto" - } + "editor": { + "description": "The editor that is used to manage this field.", + "$ref": "#/components/schemas/TagsFieldEditor" } } } ] }, - "SchemaType": { + "TagsFieldEditor": { "type": "string", "description": "", "x-enumNames": [ - "Default", - "Singleton", - "Component" + "Tags", + "Checkboxes", + "Dropdown" ], "enum": [ - "Default", - "Singleton", - "Component" + "Tags", + "Checkboxes", + "Dropdown" ] }, - "SchemaPropertiesDto": { - "type": "object", - "additionalProperties": false, - "required": [ - "validateOnPublish" - ], - "properties": { - "label": { - "type": "string", - "description": "Optional label for the editor.", - "maxLength": 100, - "minLength": 0, - "nullable": true - }, - "hints": { - "type": "string", - "description": "Hints to describe the schema.", - "maxLength": 1000, - "minLength": 0, - "nullable": true - }, - "contentsSidebarUrl": { - "type": "string", - "description": "The url to a the sidebar plugin for content lists.", - "nullable": true - }, - "contentSidebarUrl": { - "type": "string", - "description": "The url to a the sidebar plugin for content items.", - "nullable": true - }, - "contentEditorUrl": { - "type": "string", - "description": "The url to the editor plugin.", - "nullable": true - }, - "validateOnPublish": { - "type": "boolean", - "description": "True to validate the content items on publish." + "UIFieldPropertiesDto": { + "allOf": [ + { + "$ref": "#/components/schemas/FieldPropertiesDto" }, - "tags": { - "type": "array", - "description": "Tags for automation processes.", - "nullable": true, - "items": { - "type": "string" + { + "type": "object", + "additionalProperties": false, + "properties": { + "editor": { + "description": "The editor that is used to manage this field.", + "$ref": "#/components/schemas/UIFieldEditor" + } } } - } - }, - "SchemaScriptsDto": { - "type": "object", - "additionalProperties": false, - "properties": { - "query": { - "type": "string", - "description": "The script that is executed for each content when querying contents.", - "nullable": true - }, - "queryPre": { - "type": "string", - "description": "The script that is executed for all contents when querying contents.", - "nullable": true - }, - "create": { - "type": "string", - "description": "The script that is executed when creating a content.", - "nullable": true - }, - "update": { - "type": "string", - "description": "The script that is executed when updating a content.", - "nullable": true - }, - "delete": { - "type": "string", - "description": "The script that is executed when deleting a content.", - "nullable": true - }, - "change": { - "type": "string", - "description": "The script that is executed when change a content status.", - "nullable": true - } - } - }, - "FieldRuleDto": { - "type": "object", - "additionalProperties": false, - "required": [ - "action", - "field" - ], - "properties": { - "action": { - "description": "The action to perform when the condition is met.", - "$ref": "#/components/schemas/FieldRuleAction" - }, - "field": { - "type": "string", - "description": "The field to update.", - "minLength": 1 - }, - "condition": { - "type": "string", - "description": "The condition.", - "nullable": true - } - } + ] }, - "FieldRuleAction": { + "UIFieldEditor": { "type": "string", "description": "", "x-enumNames": [ - "Disable", - "Hide", - "Require" + "Separator" ], "enum": [ - "Disable", - "Hide", - "Require" + "Separator" + ] + }, + "NestedFieldDto": { + "allOf": [ + { + "$ref": "#/components/schemas/Resource" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "name", + "properties", + "fieldId", + "isHidden", + "isLocked", + "isDisabled" + ], + "properties": { + "fieldId": { + "type": "integer", + "description": "The ID of the field.", + "format": "int64" + }, + "name": { + "type": "string", + "description": "The name of the field. Must be unique within the schema.", + "minLength": 1, + "pattern": "^[a-z0-9]+(\\-[a-z0-9]+)*$" + }, + "isHidden": { + "type": "boolean", + "description": "Defines if the field is hidden." + }, + "isLocked": { + "type": "boolean", + "description": "Defines if the field is locked." + }, + "isDisabled": { + "type": "boolean", + "description": "Defines if the field is disabled." + }, + "properties": { + "description": "The field properties.", + "$ref": "#/components/schemas/FieldPropertiesDto" + } + } + } ] }, "AddFieldDto": { @@ -17775,6 +17931,7 @@ "AzureQueue": "#/components/schemas/AzureQueueRuleActionDto", "Comment": "#/components/schemas/CommentRuleActionDto", "CreateContent": "#/components/schemas/CreateContentRuleActionDto", + "DeepDetect": "#/components/schemas/DeepDetectRuleActionDto", "Discourse": "#/components/schemas/DiscourseRuleActionDto", "ElasticSearch": "#/components/schemas/ElasticSearchRuleActionDto", "Email": "#/components/schemas/EmailRuleActionDto", @@ -17945,10 +18102,39 @@ "type": "string", "description": "An optional client name." }, - "publish": { - "title": "Publish", - "type": "boolean", - "description": "Publish the content." + "publish": { + "title": "Publish", + "type": "boolean", + "description": "Publish the content." + } + } + } + ] + }, + "DeepDetectRuleActionDto": { + "allOf": [ + { + "$ref": "#/components/schemas/RuleActionDto" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "minimumProbability", + "maximumTags" + ], + "properties": { + "minimumProbability": { + "title": "Min Probability", + "type": "integer", + "description": "The minimum probability for objects to be recognized (0 - 100).", + "format": "int64" + }, + "maximumTags": { + "title": "Max Tags", + "type": "integer", + "description": "The maximum number of tags to use.", + "format": "int64" } } } @@ -19268,6 +19454,221 @@ } ] }, + "ContentsDto": { + "allOf": [ + { + "$ref": "#/components/schemas/Resource" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "total", + "items", + "statuses" + ], + "properties": { + "total": { + "type": "integer", + "description": "The total number of content items.", + "format": "int64" + }, + "items": { + "type": "array", + "description": "The content items.", + "items": { + "$ref": "#/components/schemas/ContentDto" + } + }, + "statuses": { + "type": "array", + "description": "The possible statuses.", + "items": { + "$ref": "#/components/schemas/StatusInfoDto" + } + } + } + } + ] + }, + "ContentDto": { + "allOf": [ + { + "$ref": "#/components/schemas/Resource" + }, + { + "type": "object", + "additionalProperties": false, + "required": [ + "id", + "createdBy", + "lastModifiedBy", + "data", + "created", + "lastModified", + "status", + "statusColor", + "schemaId", + "isDeleted", + "version" + ], + "properties": { + "id": { + "type": "string", + "description": "The if of the content item." + }, + "createdBy": { + "type": "string", + "description": "The user that has created the content item." + }, + "lastModifiedBy": { + "type": "string", + "description": "The user that has updated the content item." + }, + "data": { + "description": "The data of the content item." + }, + "referenceData": { + "description": "The reference data for the frontend UI.", + "nullable": true, + "$ref": "#/components/schemas/ContentData" + }, + "created": { + "type": "string", + "description": "The date and time when the content item has been created.", + "format": "date-time" + }, + "lastModified": { + "type": "string", + "description": "The date and time when the content item has been modified last.", + "format": "date-time" + }, + "status": { + "type": "string", + "description": "The status of the content." + }, + "newStatus": { + "type": "string", + "description": "The new status of the content.", + "nullable": true + }, + "statusColor": { + "type": "string", + "description": "The color of the status." + }, + "newStatusColor": { + "type": "string", + "description": "The color of the new status.", + "nullable": true + }, + "editToken": { + "type": "string", + "description": "The UI token.", + "nullable": true + }, + "scheduleJob": { + "description": "The scheduled status.", + "nullable": true, + "$ref": "#/components/schemas/ScheduleJobDto" + }, + "schemaId": { + "type": "string", + "description": "The ID of the schema." + }, + "schemaName": { + "type": "string", + "description": "The name of the schema.", + "nullable": true + }, + "schemaDisplayName": { + "type": "string", + "description": "The display name of the schema.", + "nullable": true + }, + "referenceFields": { + "type": "array", + "description": "The reference fields.", + "nullable": true, + "items": { + "$ref": "#/components/schemas/FieldDto" + } + }, + "isDeleted": { + "type": "boolean", + "description": "Indicates whether the content is deleted." + }, + "version": { + "type": "integer", + "description": "The version of the content.", + "format": "int64" + } + } + } + ] + }, + "ContentData": { + "type": "object", + "additionalProperties": { + "nullable": true, + "$ref": "#/components/schemas/ContentFieldData" + } + }, + "ContentFieldData": { + "type": "object", + "additionalProperties": {} + }, + "ScheduleJobDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "id", + "status", + "dueTime", + "color", + "scheduledBy" + ], + "properties": { + "id": { + "type": "string", + "description": "The ID of the schedule job." + }, + "status": { + "type": "string", + "description": "The new status." + }, + "dueTime": { + "type": "string", + "description": "The target date and time when the content should be scheduled.", + "format": "date-time" + }, + "color": { + "type": "string", + "description": "The color of the scheduled status." + }, + "scheduledBy": { + "type": "string", + "description": "The user who schedule the content." + } + } + }, + "StatusInfoDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "status", + "color" + ], + "properties": { + "status": { + "type": "string", + "description": "The name of the status." + }, + "color": { + "type": "string", + "description": "The color of the status." + } + } + }, "QueryDto": { "type": "object", "additionalProperties": false, @@ -19285,13 +19686,44 @@ "description": "The optional odata query.", "nullable": true }, - "q": { - "description": "The optional json query.", + "q": { + "description": "The optional json query.", + "nullable": true + }, + "parentId": { + "type": "string", + "description": "The parent id (for assets).", + "nullable": true + } + } + }, + "BulkResultDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "jobIndex" + ], + "properties": { + "error": { + "description": "The error when the bulk job failed.", + "nullable": true, + "$ref": "#/components/schemas/ErrorDto" + }, + "jobIndex": { + "type": "integer", + "description": "The index of the bulk job where the result belongs to. The order can change.", + "format": "int32" + }, + "id": { + "type": "string", + "description": "The ID of the entity that has been handled successfully or not.", "nullable": true }, - "parentId": { + "contentId": { "type": "string", - "description": "The parent id (for assets).", + "description": "The ID of the entity that has been handled successfully or not.", + "deprecated": true, + "x-deprecatedMessage": "Use 'id' field now.", "nullable": true } } @@ -19326,6 +19758,205 @@ } } }, + "BulkUpdateContentsDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "jobs" + ], + "properties": { + "jobs": { + "type": "array", + "description": "The contents to update or insert.", + "items": { + "$ref": "#/components/schemas/BulkUpdateContentsJobDto" + } + }, + "publish": { + "type": "boolean", + "description": "True to automatically publish the content.", + "deprecated": true, + "x-deprecatedMessage": "Use 'jobs.status' fields now." + }, + "doNotScript": { + "type": "boolean", + "description": "True to turn off scripting for faster inserts. Default: true." + }, + "doNotValidate": { + "type": "boolean", + "description": "True to turn off validation for faster inserts. Default: false." + }, + "doNotValidateWorkflow": { + "type": "boolean", + "description": "True to turn off validation of workflow rules. Default: false." + }, + "checkReferrers": { + "type": "boolean", + "description": "True to check referrers of deleted contents." + }, + "optimizeValidation": { + "type": "boolean", + "description": "True to turn off costly validation: Unique checks, asset checks and reference checks. Default: true." + } + } + }, + "BulkUpdateContentsJobDto": { + "type": "object", + "additionalProperties": false, + "properties": { + "query": { + "description": "An optional query to identify the content to update.", + "nullable": true, + "$ref": "#/components/schemas/QueryJsonDto" + }, + "id": { + "type": "string", + "description": "An optional ID of the content to update.", + "nullable": true + }, + "data": { + "description": "The data of the content when type is set to 'Upsert', 'Create', 'Update' or 'Patch.", + "nullable": true, + "$ref": "#/components/schemas/ContentData" + }, + "status": { + "type": "string", + "description": "The new status when the type is set to 'ChangeStatus' or 'Upsert'.", + "nullable": true + }, + "dueTime": { + "type": "string", + "description": "The due time.", + "format": "date-time", + "nullable": true + }, + "type": { + "description": "The update type.", + "$ref": "#/components/schemas/BulkUpdateContentType" + }, + "schema": { + "type": "string", + "description": "The optional schema id or name.", + "nullable": true + }, + "patch": { + "type": "boolean", + "description": "Makes the update as patch." + }, + "permanent": { + "type": "boolean", + "description": "True to delete the content permanently." + }, + "expectedCount": { + "type": "integer", + "description": "The number of expected items. Set it to a higher number to update multiple items when a query is defined.", + "format": "int64" + }, + "expectedVersion": { + "type": "integer", + "description": "The expected version.", + "format": "int64" + } + } + }, + "QueryJsonDto": { + "type": "object", + "additionalProperties": false, + "required": [ + "skip", + "take", + "random", + "top" + ], + "properties": { + "filter": { + "nullable": true + }, + "fullText": { + "type": "string", + "nullable": true + }, + "skip": { + "type": "integer", + "format": "int64" + }, + "take": { + "type": "integer", + "format": "int64" + }, + "random": { + "type": "integer", + "format": "int64" + }, + "top": { + "type": "integer", + "format": "int64" + }, + "sort": { + "type": "array", + "nullable": true, + "items": { + "$ref": "#/components/schemas/SortNode" + } + } + } + }, + "SortNode": { + "type": "object", + "additionalProperties": false, + "required": [ + "path", + "order" + ], + "properties": { + "path": { + "$ref": "#/components/schemas/PropertyPath" + }, + "order": { + "$ref": "#/components/schemas/SortOrder" + } + } + }, + "PropertyPath": { + "type": "array", + "items": { + "type": "string" + } + }, + "SortOrder": { + "type": "string", + "description": "", + "x-enumNames": [ + "Ascending", + "Descending" + ], + "enum": [ + "Ascending", + "Descending" + ] + }, + "BulkUpdateContentType": { + "type": "string", + "description": "", + "x-enumNames": [ + "Upsert", + "ChangeStatus", + "Create", + "Delete", + "Patch", + "Update", + "Validate" + ], + "enum": [ + "Upsert", + "ChangeStatus", + "Create", + "Delete", + "Patch", + "Update", + "Validate" + ] + }, "ChangeStatusDto": { "type": "object", "additionalProperties": false, @@ -19350,6 +19981,51 @@ } } }, + "AllContentsByPostDto": { + "type": "object", + "additionalProperties": false, + "properties": { + "ids": { + "type": "array", + "description": "The list of ids to query.", + "nullable": true, + "items": { + "type": "string" + } + }, + "scheduledFrom": { + "type": "string", + "description": "The start of the schedule.", + "format": "date-time", + "nullable": true + }, + "scheduledTo": { + "type": "string", + "description": "The end of the schedule.", + "format": "date-time", + "nullable": true + }, + "referencing": { + "type": "string", + "description": "The ID of the referencing content item.", + "nullable": true + }, + "references": { + "type": "string", + "description": "The ID of the reference content item.", + "nullable": true + }, + "oData": { + "type": "string", + "description": "The optional odata query.", + "nullable": true + }, + "q": { + "description": "The optional json query.", + "nullable": true + } + } + }, "CommentsDto": { "type": "object", "additionalProperties": false,