Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,6 @@ docs/Model/CreateTenantUserBody.md
docs/Model/CreateTenantUserResponse.md
docs/Model/CreateUserBadge200Response.md
docs/Model/CreateUserBadgeParams.md
docs/Model/CreateVote200Response.md
docs/Model/CreateVoteResponse.md
docs/Model/CustomConfigParameters.md
docs/Model/CustomEmailTemplate.md
docs/Model/DeleteComment200Response.md
Expand All @@ -124,8 +122,6 @@ docs/Model/DeleteHashTagRequest.md
docs/Model/DeletePageAPIResponse.md
docs/Model/DeleteSSOUserAPIResponse.md
docs/Model/DeleteSubscriptionAPIResponse.md
docs/Model/DeleteVote200Response.md
docs/Model/DeleteVoteResponse.md
docs/Model/DeletedCommentResultComment.md
docs/Model/DigestEmailFrequency.md
docs/Model/EmailTemplateDefinition.md
Expand Down Expand Up @@ -455,8 +451,6 @@ lib/Model/CreateTenantUserBody.php
lib/Model/CreateTenantUserResponse.php
lib/Model/CreateUserBadge200Response.php
lib/Model/CreateUserBadgeParams.php
lib/Model/CreateVote200Response.php
lib/Model/CreateVoteResponse.php
lib/Model/CustomConfigParameters.php
lib/Model/CustomEmailTemplate.php
lib/Model/DeleteComment200Response.php
Expand All @@ -471,8 +465,6 @@ lib/Model/DeleteHashTagRequest.php
lib/Model/DeletePageAPIResponse.php
lib/Model/DeleteSSOUserAPIResponse.php
lib/Model/DeleteSubscriptionAPIResponse.php
lib/Model/DeleteVote200Response.php
lib/Model/DeleteVoteResponse.php
lib/Model/DeletedCommentResultComment.php
lib/Model/DigestEmailFrequency.php
lib/Model/EmailTemplateDefinition.php
Expand Down Expand Up @@ -801,8 +793,6 @@ test/Model/CreateTenantUserBodyTest.php
test/Model/CreateTenantUserResponseTest.php
test/Model/CreateUserBadge200ResponseTest.php
test/Model/CreateUserBadgeParamsTest.php
test/Model/CreateVote200ResponseTest.php
test/Model/CreateVoteResponseTest.php
test/Model/CustomConfigParametersTest.php
test/Model/CustomEmailTemplateTest.php
test/Model/DeleteComment200ResponseTest.php
Expand All @@ -817,8 +807,6 @@ test/Model/DeleteHashTagRequestTest.php
test/Model/DeletePageAPIResponseTest.php
test/Model/DeleteSSOUserAPIResponseTest.php
test/Model/DeleteSubscriptionAPIResponseTest.php
test/Model/DeleteVote200ResponseTest.php
test/Model/DeleteVoteResponseTest.php
test/Model/DeletedCommentResultCommentTest.php
test/Model/DigestEmailFrequencyTest.php
test/Model/EmailTemplateDefinitionTest.php
Expand Down
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,6 @@ Class | Method | HTTP request | Description
- [CreateTenantUserResponse](docs/Model/CreateTenantUserResponse.md)
- [CreateUserBadge200Response](docs/Model/CreateUserBadge200Response.md)
- [CreateUserBadgeParams](docs/Model/CreateUserBadgeParams.md)
- [CreateVote200Response](docs/Model/CreateVote200Response.md)
- [CreateVoteResponse](docs/Model/CreateVoteResponse.md)
- [CustomConfigParameters](docs/Model/CustomConfigParameters.md)
- [CustomEmailTemplate](docs/Model/CustomEmailTemplate.md)
- [DeleteComment200Response](docs/Model/DeleteComment200Response.md)
Expand All @@ -345,8 +343,6 @@ Class | Method | HTTP request | Description
- [DeletePageAPIResponse](docs/Model/DeletePageAPIResponse.md)
- [DeleteSSOUserAPIResponse](docs/Model/DeleteSSOUserAPIResponse.md)
- [DeleteSubscriptionAPIResponse](docs/Model/DeleteSubscriptionAPIResponse.md)
- [DeleteVote200Response](docs/Model/DeleteVote200Response.md)
- [DeleteVoteResponse](docs/Model/DeleteVoteResponse.md)
- [DeletedCommentResultComment](docs/Model/DeletedCommentResultComment.md)
- [DigestEmailFrequency](docs/Model/DigestEmailFrequency.md)
- [EmailTemplateDefinition](docs/Model/EmailTemplateDefinition.md)
Expand Down
8 changes: 4 additions & 4 deletions docs/Api/DefaultApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -1406,7 +1406,7 @@ try {
## `createVote()`

```php
createVote($tenant_id, $comment_id, $direction, $user_id, $anon_user_id): \FastComments\Client\Model\CreateVote200Response
createVote($tenant_id, $comment_id, $direction, $user_id, $anon_user_id): \FastComments\Client\Model\VoteComment200Response
```


Expand Down Expand Up @@ -1456,7 +1456,7 @@ try {

### Return type

[**\FastComments\Client\Model\CreateVote200Response**](../Model/CreateVote200Response.md)
[**\FastComments\Client\Model\VoteComment200Response**](../Model/VoteComment200Response.md)

### Authorization

Expand Down Expand Up @@ -2550,7 +2550,7 @@ try {
## `deleteVote()`

```php
deleteVote($tenant_id, $id, $edit_key): \FastComments\Client\Model\DeleteVote200Response
deleteVote($tenant_id, $id, $edit_key): \FastComments\Client\Model\DeleteCommentVote200Response
```


Expand Down Expand Up @@ -2596,7 +2596,7 @@ try {

### Return type

[**\FastComments\Client\Model\DeleteVote200Response**](../Model/DeleteVote200Response.md)
[**\FastComments\Client\Model\DeleteCommentVote200Response**](../Model/DeleteCommentVote200Response.md)

### Authorization

Expand Down
16 changes: 0 additions & 16 deletions docs/Model/CreateVote200Response.md

This file was deleted.

9 changes: 0 additions & 9 deletions docs/Model/CreateVoteResponse.md

This file was deleted.

16 changes: 0 additions & 16 deletions docs/Model/DeleteVote200Response.md

This file was deleted.

9 changes: 0 additions & 9 deletions docs/Model/DeleteVoteResponse.md

This file was deleted.

32 changes: 16 additions & 16 deletions lib/Api/DefaultApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -7424,7 +7424,7 @@ public function createUserBadgeRequest($tenant_id, $create_user_badge_params, st
*
* @throws \FastComments\Client\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
* @return \FastComments\Client\Model\CreateVote200Response
* @return \FastComments\Client\Model\VoteComment200Response
*/
public function createVote($tenant_id, $comment_id, $direction, $user_id = null, $anon_user_id = null, string $contentType = self::contentTypes['createVote'][0])
{
Expand All @@ -7446,7 +7446,7 @@ public function createVote($tenant_id, $comment_id, $direction, $user_id = null,
*
* @throws \FastComments\Client\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
* @return array of \FastComments\Client\Model\CreateVote200Response, HTTP status code, HTTP response headers (array of strings)
* @return array of \FastComments\Client\Model\VoteComment200Response, HTTP status code, HTTP response headers (array of strings)
*/
public function createVoteWithHttpInfo($tenant_id, $comment_id, $direction, $user_id = null, $anon_user_id = null, string $contentType = self::contentTypes['createVote'][0])
{
Expand Down Expand Up @@ -7477,11 +7477,11 @@ public function createVoteWithHttpInfo($tenant_id, $comment_id, $direction, $use

switch($statusCode) {
case 200:
if ('\FastComments\Client\Model\CreateVote200Response' === '\SplFileObject') {
if ('\FastComments\Client\Model\VoteComment200Response' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
$content = (string) $response->getBody();
if ('\FastComments\Client\Model\CreateVote200Response' !== 'string') {
if ('\FastComments\Client\Model\VoteComment200Response' !== 'string') {
try {
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
} catch (\JsonException $exception) {
Expand All @@ -7499,7 +7499,7 @@ public function createVoteWithHttpInfo($tenant_id, $comment_id, $direction, $use
}

return [
ObjectSerializer::deserialize($content, '\FastComments\Client\Model\CreateVote200Response', []),
ObjectSerializer::deserialize($content, '\FastComments\Client\Model\VoteComment200Response', []),
$response->getStatusCode(),
$response->getHeaders()
];
Expand All @@ -7518,7 +7518,7 @@ public function createVoteWithHttpInfo($tenant_id, $comment_id, $direction, $use
);
}

$returnType = '\FastComments\Client\Model\CreateVote200Response';
$returnType = '\FastComments\Client\Model\VoteComment200Response';
if ($returnType === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
Expand Down Expand Up @@ -7551,7 +7551,7 @@ public function createVoteWithHttpInfo($tenant_id, $comment_id, $direction, $use
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\FastComments\Client\Model\CreateVote200Response',
'\FastComments\Client\Model\VoteComment200Response',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
Expand Down Expand Up @@ -7603,7 +7603,7 @@ function ($response) {
*/
public function createVoteAsyncWithHttpInfo($tenant_id, $comment_id, $direction, $user_id = null, $anon_user_id = null, string $contentType = self::contentTypes['createVote'][0])
{
$returnType = '\FastComments\Client\Model\CreateVote200Response';
$returnType = '\FastComments\Client\Model\VoteComment200Response';
$request = $this->createVoteRequest($tenant_id, $comment_id, $direction, $user_id, $anon_user_id, $contentType);

return $this->client
Expand Down Expand Up @@ -13648,7 +13648,7 @@ public function deleteUserBadgeRequest($tenant_id, $id, string $contentType = se
*
* @throws \FastComments\Client\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
* @return \FastComments\Client\Model\DeleteVote200Response
* @return \FastComments\Client\Model\DeleteCommentVote200Response
*/
public function deleteVote($tenant_id, $id, $edit_key = null, string $contentType = self::contentTypes['deleteVote'][0])
{
Expand All @@ -13668,7 +13668,7 @@ public function deleteVote($tenant_id, $id, $edit_key = null, string $contentTyp
*
* @throws \FastComments\Client\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
* @return array of \FastComments\Client\Model\DeleteVote200Response, HTTP status code, HTTP response headers (array of strings)
* @return array of \FastComments\Client\Model\DeleteCommentVote200Response, HTTP status code, HTTP response headers (array of strings)
*/
public function deleteVoteWithHttpInfo($tenant_id, $id, $edit_key = null, string $contentType = self::contentTypes['deleteVote'][0])
{
Expand Down Expand Up @@ -13699,11 +13699,11 @@ public function deleteVoteWithHttpInfo($tenant_id, $id, $edit_key = null, string

switch($statusCode) {
case 200:
if ('\FastComments\Client\Model\DeleteVote200Response' === '\SplFileObject') {
if ('\FastComments\Client\Model\DeleteCommentVote200Response' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
$content = (string) $response->getBody();
if ('\FastComments\Client\Model\DeleteVote200Response' !== 'string') {
if ('\FastComments\Client\Model\DeleteCommentVote200Response' !== 'string') {
try {
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
} catch (\JsonException $exception) {
Expand All @@ -13721,7 +13721,7 @@ public function deleteVoteWithHttpInfo($tenant_id, $id, $edit_key = null, string
}

return [
ObjectSerializer::deserialize($content, '\FastComments\Client\Model\DeleteVote200Response', []),
ObjectSerializer::deserialize($content, '\FastComments\Client\Model\DeleteCommentVote200Response', []),
$response->getStatusCode(),
$response->getHeaders()
];
Expand All @@ -13740,7 +13740,7 @@ public function deleteVoteWithHttpInfo($tenant_id, $id, $edit_key = null, string
);
}

$returnType = '\FastComments\Client\Model\DeleteVote200Response';
$returnType = '\FastComments\Client\Model\DeleteCommentVote200Response';
if ($returnType === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
Expand Down Expand Up @@ -13773,7 +13773,7 @@ public function deleteVoteWithHttpInfo($tenant_id, $id, $edit_key = null, string
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\FastComments\Client\Model\DeleteVote200Response',
'\FastComments\Client\Model\DeleteCommentVote200Response',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
Expand Down Expand Up @@ -13821,7 +13821,7 @@ function ($response) {
*/
public function deleteVoteAsyncWithHttpInfo($tenant_id, $id, $edit_key = null, string $contentType = self::contentTypes['deleteVote'][0])
{
$returnType = '\FastComments\Client\Model\DeleteVote200Response';
$returnType = '\FastComments\Client\Model\DeleteCommentVote200Response';
$request = $this->deleteVoteRequest($tenant_id, $id, $edit_key, $contentType);

return $this->client
Expand Down
Loading