Skip to content

Commit e2e7861

Browse files
authored
Merge pull request #6 from FastComments/release-2026-01-08
Release v1.2.0 - Properly Type Comment Vote Responses
2 parents 6bf2c98 + 21aefa3 commit e2e7861

17 files changed

Lines changed: 22 additions & 2742 deletions

.openapi-generator/FILES

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,6 @@ docs/Model/CreateTenantUserBody.md
108108
docs/Model/CreateTenantUserResponse.md
109109
docs/Model/CreateUserBadge200Response.md
110110
docs/Model/CreateUserBadgeParams.md
111-
docs/Model/CreateVote200Response.md
112-
docs/Model/CreateVoteResponse.md
113111
docs/Model/CustomConfigParameters.md
114112
docs/Model/CustomEmailTemplate.md
115113
docs/Model/DeleteComment200Response.md
@@ -124,8 +122,6 @@ docs/Model/DeleteHashTagRequest.md
124122
docs/Model/DeletePageAPIResponse.md
125123
docs/Model/DeleteSSOUserAPIResponse.md
126124
docs/Model/DeleteSubscriptionAPIResponse.md
127-
docs/Model/DeleteVote200Response.md
128-
docs/Model/DeleteVoteResponse.md
129125
docs/Model/DeletedCommentResultComment.md
130126
docs/Model/DigestEmailFrequency.md
131127
docs/Model/EmailTemplateDefinition.md
@@ -455,8 +451,6 @@ lib/Model/CreateTenantUserBody.php
455451
lib/Model/CreateTenantUserResponse.php
456452
lib/Model/CreateUserBadge200Response.php
457453
lib/Model/CreateUserBadgeParams.php
458-
lib/Model/CreateVote200Response.php
459-
lib/Model/CreateVoteResponse.php
460454
lib/Model/CustomConfigParameters.php
461455
lib/Model/CustomEmailTemplate.php
462456
lib/Model/DeleteComment200Response.php
@@ -471,8 +465,6 @@ lib/Model/DeleteHashTagRequest.php
471465
lib/Model/DeletePageAPIResponse.php
472466
lib/Model/DeleteSSOUserAPIResponse.php
473467
lib/Model/DeleteSubscriptionAPIResponse.php
474-
lib/Model/DeleteVote200Response.php
475-
lib/Model/DeleteVoteResponse.php
476468
lib/Model/DeletedCommentResultComment.php
477469
lib/Model/DigestEmailFrequency.php
478470
lib/Model/EmailTemplateDefinition.php
@@ -801,8 +793,6 @@ test/Model/CreateTenantUserBodyTest.php
801793
test/Model/CreateTenantUserResponseTest.php
802794
test/Model/CreateUserBadge200ResponseTest.php
803795
test/Model/CreateUserBadgeParamsTest.php
804-
test/Model/CreateVote200ResponseTest.php
805-
test/Model/CreateVoteResponseTest.php
806796
test/Model/CustomConfigParametersTest.php
807797
test/Model/CustomEmailTemplateTest.php
808798
test/Model/DeleteComment200ResponseTest.php
@@ -817,8 +807,6 @@ test/Model/DeleteHashTagRequestTest.php
817807
test/Model/DeletePageAPIResponseTest.php
818808
test/Model/DeleteSSOUserAPIResponseTest.php
819809
test/Model/DeleteSubscriptionAPIResponseTest.php
820-
test/Model/DeleteVote200ResponseTest.php
821-
test/Model/DeleteVoteResponseTest.php
822810
test/Model/DeletedCommentResultCommentTest.php
823811
test/Model/DigestEmailFrequencyTest.php
824812
test/Model/EmailTemplateDefinitionTest.php

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -329,8 +329,6 @@ Class | Method | HTTP request | Description
329329
- [CreateTenantUserResponse](docs/Model/CreateTenantUserResponse.md)
330330
- [CreateUserBadge200Response](docs/Model/CreateUserBadge200Response.md)
331331
- [CreateUserBadgeParams](docs/Model/CreateUserBadgeParams.md)
332-
- [CreateVote200Response](docs/Model/CreateVote200Response.md)
333-
- [CreateVoteResponse](docs/Model/CreateVoteResponse.md)
334332
- [CustomConfigParameters](docs/Model/CustomConfigParameters.md)
335333
- [CustomEmailTemplate](docs/Model/CustomEmailTemplate.md)
336334
- [DeleteComment200Response](docs/Model/DeleteComment200Response.md)
@@ -345,8 +343,6 @@ Class | Method | HTTP request | Description
345343
- [DeletePageAPIResponse](docs/Model/DeletePageAPIResponse.md)
346344
- [DeleteSSOUserAPIResponse](docs/Model/DeleteSSOUserAPIResponse.md)
347345
- [DeleteSubscriptionAPIResponse](docs/Model/DeleteSubscriptionAPIResponse.md)
348-
- [DeleteVote200Response](docs/Model/DeleteVote200Response.md)
349-
- [DeleteVoteResponse](docs/Model/DeleteVoteResponse.md)
350346
- [DeletedCommentResultComment](docs/Model/DeletedCommentResultComment.md)
351347
- [DigestEmailFrequency](docs/Model/DigestEmailFrequency.md)
352348
- [EmailTemplateDefinition](docs/Model/EmailTemplateDefinition.md)

docs/Api/DefaultApi.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1406,7 +1406,7 @@ try {
14061406
## `createVote()`
14071407

14081408
```php
1409-
createVote($tenant_id, $comment_id, $direction, $user_id, $anon_user_id): \FastComments\Client\Model\CreateVote200Response
1409+
createVote($tenant_id, $comment_id, $direction, $user_id, $anon_user_id): \FastComments\Client\Model\VoteComment200Response
14101410
```
14111411

14121412

@@ -1456,7 +1456,7 @@ try {
14561456

14571457
### Return type
14581458

1459-
[**\FastComments\Client\Model\CreateVote200Response**](../Model/CreateVote200Response.md)
1459+
[**\FastComments\Client\Model\VoteComment200Response**](../Model/VoteComment200Response.md)
14601460

14611461
### Authorization
14621462

@@ -2550,7 +2550,7 @@ try {
25502550
## `deleteVote()`
25512551

25522552
```php
2553-
deleteVote($tenant_id, $id, $edit_key): \FastComments\Client\Model\DeleteVote200Response
2553+
deleteVote($tenant_id, $id, $edit_key): \FastComments\Client\Model\DeleteCommentVote200Response
25542554
```
25552555

25562556

@@ -2596,7 +2596,7 @@ try {
25962596

25972597
### Return type
25982598

2599-
[**\FastComments\Client\Model\DeleteVote200Response**](../Model/DeleteVote200Response.md)
2599+
[**\FastComments\Client\Model\DeleteCommentVote200Response**](../Model/DeleteCommentVote200Response.md)
26002600

26012601
### Authorization
26022602

docs/Model/CreateVote200Response.md

Lines changed: 0 additions & 16 deletions
This file was deleted.

docs/Model/CreateVoteResponse.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

docs/Model/DeleteVote200Response.md

Lines changed: 0 additions & 16 deletions
This file was deleted.

docs/Model/DeleteVoteResponse.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

lib/Api/DefaultApi.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7424,7 +7424,7 @@ public function createUserBadgeRequest($tenant_id, $create_user_badge_params, st
74247424
*
74257425
* @throws \FastComments\Client\ApiException on non-2xx response or if the response body is not in the expected format
74267426
* @throws \InvalidArgumentException
7427-
* @return \FastComments\Client\Model\CreateVote200Response
7427+
* @return \FastComments\Client\Model\VoteComment200Response
74287428
*/
74297429
public function createVote($tenant_id, $comment_id, $direction, $user_id = null, $anon_user_id = null, string $contentType = self::contentTypes['createVote'][0])
74307430
{
@@ -7446,7 +7446,7 @@ public function createVote($tenant_id, $comment_id, $direction, $user_id = null,
74467446
*
74477447
* @throws \FastComments\Client\ApiException on non-2xx response or if the response body is not in the expected format
74487448
* @throws \InvalidArgumentException
7449-
* @return array of \FastComments\Client\Model\CreateVote200Response, HTTP status code, HTTP response headers (array of strings)
7449+
* @return array of \FastComments\Client\Model\VoteComment200Response, HTTP status code, HTTP response headers (array of strings)
74507450
*/
74517451
public function createVoteWithHttpInfo($tenant_id, $comment_id, $direction, $user_id = null, $anon_user_id = null, string $contentType = self::contentTypes['createVote'][0])
74527452
{
@@ -7477,11 +7477,11 @@ public function createVoteWithHttpInfo($tenant_id, $comment_id, $direction, $use
74777477

74787478
switch($statusCode) {
74797479
case 200:
7480-
if ('\FastComments\Client\Model\CreateVote200Response' === '\SplFileObject') {
7480+
if ('\FastComments\Client\Model\VoteComment200Response' === '\SplFileObject') {
74817481
$content = $response->getBody(); //stream goes to serializer
74827482
} else {
74837483
$content = (string) $response->getBody();
7484-
if ('\FastComments\Client\Model\CreateVote200Response' !== 'string') {
7484+
if ('\FastComments\Client\Model\VoteComment200Response' !== 'string') {
74857485
try {
74867486
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
74877487
} catch (\JsonException $exception) {
@@ -7499,7 +7499,7 @@ public function createVoteWithHttpInfo($tenant_id, $comment_id, $direction, $use
74997499
}
75007500

75017501
return [
7502-
ObjectSerializer::deserialize($content, '\FastComments\Client\Model\CreateVote200Response', []),
7502+
ObjectSerializer::deserialize($content, '\FastComments\Client\Model\VoteComment200Response', []),
75037503
$response->getStatusCode(),
75047504
$response->getHeaders()
75057505
];
@@ -7518,7 +7518,7 @@ public function createVoteWithHttpInfo($tenant_id, $comment_id, $direction, $use
75187518
);
75197519
}
75207520

7521-
$returnType = '\FastComments\Client\Model\CreateVote200Response';
7521+
$returnType = '\FastComments\Client\Model\VoteComment200Response';
75227522
if ($returnType === '\SplFileObject') {
75237523
$content = $response->getBody(); //stream goes to serializer
75247524
} else {
@@ -7551,7 +7551,7 @@ public function createVoteWithHttpInfo($tenant_id, $comment_id, $direction, $use
75517551
case 200:
75527552
$data = ObjectSerializer::deserialize(
75537553
$e->getResponseBody(),
7554-
'\FastComments\Client\Model\CreateVote200Response',
7554+
'\FastComments\Client\Model\VoteComment200Response',
75557555
$e->getResponseHeaders()
75567556
);
75577557
$e->setResponseObject($data);
@@ -7603,7 +7603,7 @@ function ($response) {
76037603
*/
76047604
public function createVoteAsyncWithHttpInfo($tenant_id, $comment_id, $direction, $user_id = null, $anon_user_id = null, string $contentType = self::contentTypes['createVote'][0])
76057605
{
7606-
$returnType = '\FastComments\Client\Model\CreateVote200Response';
7606+
$returnType = '\FastComments\Client\Model\VoteComment200Response';
76077607
$request = $this->createVoteRequest($tenant_id, $comment_id, $direction, $user_id, $anon_user_id, $contentType);
76087608

76097609
return $this->client
@@ -13648,7 +13648,7 @@ public function deleteUserBadgeRequest($tenant_id, $id, string $contentType = se
1364813648
*
1364913649
* @throws \FastComments\Client\ApiException on non-2xx response or if the response body is not in the expected format
1365013650
* @throws \InvalidArgumentException
13651-
* @return \FastComments\Client\Model\DeleteVote200Response
13651+
* @return \FastComments\Client\Model\DeleteCommentVote200Response
1365213652
*/
1365313653
public function deleteVote($tenant_id, $id, $edit_key = null, string $contentType = self::contentTypes['deleteVote'][0])
1365413654
{
@@ -13668,7 +13668,7 @@ public function deleteVote($tenant_id, $id, $edit_key = null, string $contentTyp
1366813668
*
1366913669
* @throws \FastComments\Client\ApiException on non-2xx response or if the response body is not in the expected format
1367013670
* @throws \InvalidArgumentException
13671-
* @return array of \FastComments\Client\Model\DeleteVote200Response, HTTP status code, HTTP response headers (array of strings)
13671+
* @return array of \FastComments\Client\Model\DeleteCommentVote200Response, HTTP status code, HTTP response headers (array of strings)
1367213672
*/
1367313673
public function deleteVoteWithHttpInfo($tenant_id, $id, $edit_key = null, string $contentType = self::contentTypes['deleteVote'][0])
1367413674
{
@@ -13699,11 +13699,11 @@ public function deleteVoteWithHttpInfo($tenant_id, $id, $edit_key = null, string
1369913699

1370013700
switch($statusCode) {
1370113701
case 200:
13702-
if ('\FastComments\Client\Model\DeleteVote200Response' === '\SplFileObject') {
13702+
if ('\FastComments\Client\Model\DeleteCommentVote200Response' === '\SplFileObject') {
1370313703
$content = $response->getBody(); //stream goes to serializer
1370413704
} else {
1370513705
$content = (string) $response->getBody();
13706-
if ('\FastComments\Client\Model\DeleteVote200Response' !== 'string') {
13706+
if ('\FastComments\Client\Model\DeleteCommentVote200Response' !== 'string') {
1370713707
try {
1370813708
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
1370913709
} catch (\JsonException $exception) {
@@ -13721,7 +13721,7 @@ public function deleteVoteWithHttpInfo($tenant_id, $id, $edit_key = null, string
1372113721
}
1372213722

1372313723
return [
13724-
ObjectSerializer::deserialize($content, '\FastComments\Client\Model\DeleteVote200Response', []),
13724+
ObjectSerializer::deserialize($content, '\FastComments\Client\Model\DeleteCommentVote200Response', []),
1372513725
$response->getStatusCode(),
1372613726
$response->getHeaders()
1372713727
];
@@ -13740,7 +13740,7 @@ public function deleteVoteWithHttpInfo($tenant_id, $id, $edit_key = null, string
1374013740
);
1374113741
}
1374213742

13743-
$returnType = '\FastComments\Client\Model\DeleteVote200Response';
13743+
$returnType = '\FastComments\Client\Model\DeleteCommentVote200Response';
1374413744
if ($returnType === '\SplFileObject') {
1374513745
$content = $response->getBody(); //stream goes to serializer
1374613746
} else {
@@ -13773,7 +13773,7 @@ public function deleteVoteWithHttpInfo($tenant_id, $id, $edit_key = null, string
1377313773
case 200:
1377413774
$data = ObjectSerializer::deserialize(
1377513775
$e->getResponseBody(),
13776-
'\FastComments\Client\Model\DeleteVote200Response',
13776+
'\FastComments\Client\Model\DeleteCommentVote200Response',
1377713777
$e->getResponseHeaders()
1377813778
);
1377913779
$e->setResponseObject($data);
@@ -13821,7 +13821,7 @@ function ($response) {
1382113821
*/
1382213822
public function deleteVoteAsyncWithHttpInfo($tenant_id, $id, $edit_key = null, string $contentType = self::contentTypes['deleteVote'][0])
1382313823
{
13824-
$returnType = '\FastComments\Client\Model\DeleteVote200Response';
13824+
$returnType = '\FastComments\Client\Model\DeleteCommentVote200Response';
1382513825
$request = $this->deleteVoteRequest($tenant_id, $id, $edit_key, $contentType);
1382613826

1382713827
return $this->client

0 commit comments

Comments
 (0)