Skip to content

Commit

Permalink
update to jane 7.6 and regenerate the SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierlacot committed Mar 29, 2024
1 parent 2ffe36b commit 251fd23
Show file tree
Hide file tree
Showing 318 changed files with 32,626 additions and 16,170 deletions.
13 changes: 6 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,16 @@
},
"require": {
"php": ">=8.0",
"jane-php/open-api-runtime": "^7.4",
"jane-php/open-api-runtime": "^7.6",
"php-http/client-implementation": "*",
"php-http/client-common": "^1.9 || ^2.0"
},
"require-dev": {
"jane-php/open-api-3": "^7.4",
"symfony/http-client": "^5.4 || ^6.0",
"nyholm/psr7": "^1.3",
"friendsofphp/php-cs-fixer": "^3.2",
"symfony/phpunit-bridge": "^5.4 || ^6.0",
"symfony/yaml": "^5.4 || ^6.0"
"jane-php/open-api-3": "^7.6",
"symfony/http-client": "^5.4 || ^6.0 || ^7.0",
"nyholm/psr7": "^1.6",
"symfony/phpunit-bridge": "^5.4 || ^6.0 || ^7.0",
"symfony/yaml": "^5.4 || ^6.0 || ^7.0"
},
"config": {
"allow-plugins": {
Expand Down
462 changes: 233 additions & 229 deletions generated/Client.php

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion generated/Endpoint/ClientsExpensesReport.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver
/**
* @return \JoliCode\Harvest\Api\Model\ExpenseReportsResults|\JoliCode\Harvest\Api\Model\Error|null
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
6 changes: 4 additions & 2 deletions generated/Endpoint/ClientsTimeReport.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class ClientsTimeReport extends \JoliCode\Harvest\Api\Runtime\Client\BaseEndpoin
*
* @var string $from only report on time entries with a spent_date on or after the given date
* @var string $to only report on time entries with a spent_date on or before the given date
* @var string $include_fixed_fee when true, billable amounts will be calculated and included for fixed fee projects
* @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1)
* @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000)
* }
Expand Down Expand Up @@ -57,11 +58,12 @@ public function getAuthenticationScopes(): array
protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
{
$optionsResolver = parent::getQueryOptionsResolver();
$optionsResolver->setDefined(['from', 'to', 'page', 'per_page']);
$optionsResolver->setDefined(['from', 'to', 'include_fixed_fee', 'page', 'per_page']);
$optionsResolver->setRequired(['from', 'to']);
$optionsResolver->setDefaults([]);
$optionsResolver->addAllowedTypes('from', ['string']);
$optionsResolver->addAllowedTypes('to', ['string']);
$optionsResolver->addAllowedTypes('include_fixed_fee', ['string']);
$optionsResolver->addAllowedTypes('page', ['int']);
$optionsResolver->addAllowedTypes('per_page', ['int']);

Expand All @@ -71,7 +73,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver
/**
* @return \JoliCode\Harvest\Api\Model\TimeReportsResults|\JoliCode\Harvest\Api\Model\Error|null
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
2 changes: 1 addition & 1 deletion generated/Endpoint/CreateBillableRate.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function getAuthenticationScopes(): array
/**
* @return \JoliCode\Harvest\Api\Model\BillableRate|\JoliCode\Harvest\Api\Model\Error|null
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
2 changes: 1 addition & 1 deletion generated/Endpoint/CreateClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function getAuthenticationScopes(): array
/**
* @return \JoliCode\Harvest\Api\Model\Client|\JoliCode\Harvest\Api\Model\Error|null
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
2 changes: 1 addition & 1 deletion generated/Endpoint/CreateContact.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function getAuthenticationScopes(): array
/**
* @return \JoliCode\Harvest\Api\Model\Contact|\JoliCode\Harvest\Api\Model\Error|null
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
2 changes: 1 addition & 1 deletion generated/Endpoint/CreateCostRate.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function getAuthenticationScopes(): array
/**
* @return \JoliCode\Harvest\Api\Model\CostRate|\JoliCode\Harvest\Api\Model\Error|null
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
2 changes: 1 addition & 1 deletion generated/Endpoint/CreateEstimate.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function getAuthenticationScopes(): array
/**
* @return \JoliCode\Harvest\Api\Model\Estimate|\JoliCode\Harvest\Api\Model\Error|null
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
2 changes: 1 addition & 1 deletion generated/Endpoint/CreateEstimateItemCategory.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function getAuthenticationScopes(): array
/**
* @return \JoliCode\Harvest\Api\Model\EstimateItemCategory|\JoliCode\Harvest\Api\Model\Error|null
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
2 changes: 1 addition & 1 deletion generated/Endpoint/CreateEstimateMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function getAuthenticationScopes(): array
/**
* @return \JoliCode\Harvest\Api\Model\EstimateMessage|\JoliCode\Harvest\Api\Model\Error|null
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
2 changes: 1 addition & 1 deletion generated/Endpoint/CreateExpense.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function getAuthenticationScopes(): array
/**
* @return \JoliCode\Harvest\Api\Model\Expense|\JoliCode\Harvest\Api\Model\Error|null
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
2 changes: 1 addition & 1 deletion generated/Endpoint/CreateExpenseCategory.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function getAuthenticationScopes(): array
/**
* @return \JoliCode\Harvest\Api\Model\ExpenseCategory|\JoliCode\Harvest\Api\Model\Error|null
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
2 changes: 1 addition & 1 deletion generated/Endpoint/CreateInvoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function getAuthenticationScopes(): array
/**
* @return \JoliCode\Harvest\Api\Model\Invoice|\JoliCode\Harvest\Api\Model\Error|null
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
2 changes: 1 addition & 1 deletion generated/Endpoint/CreateInvoiceItemCategory.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function getAuthenticationScopes(): array
/**
* @return \JoliCode\Harvest\Api\Model\InvoiceItemCategory|\JoliCode\Harvest\Api\Model\Error|null
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
2 changes: 1 addition & 1 deletion generated/Endpoint/CreateInvoiceMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function getAuthenticationScopes(): array
/**
* @return \JoliCode\Harvest\Api\Model\InvoiceMessage|\JoliCode\Harvest\Api\Model\Error|null
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
2 changes: 1 addition & 1 deletion generated/Endpoint/CreateInvoicePayment.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function getAuthenticationScopes(): array
/**
* @return \JoliCode\Harvest\Api\Model\InvoicePayment|\JoliCode\Harvest\Api\Model\Error|null
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
2 changes: 1 addition & 1 deletion generated/Endpoint/CreateProject.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function getAuthenticationScopes(): array
/**
* @return \JoliCode\Harvest\Api\Model\Project|\JoliCode\Harvest\Api\Model\Error|null
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
2 changes: 1 addition & 1 deletion generated/Endpoint/CreateRole.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function getAuthenticationScopes(): array
/**
* @return \JoliCode\Harvest\Api\Model\Role|\JoliCode\Harvest\Api\Model\Error|null
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
2 changes: 1 addition & 1 deletion generated/Endpoint/CreateTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function getAuthenticationScopes(): array
/**
* @return \JoliCode\Harvest\Api\Model\Task|\JoliCode\Harvest\Api\Model\Error|null
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
2 changes: 1 addition & 1 deletion generated/Endpoint/CreateTaskAssignment.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function getAuthenticationScopes(): array
/**
* @return \JoliCode\Harvest\Api\Model\TaskAssignment|\JoliCode\Harvest\Api\Model\Error|null
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
2 changes: 1 addition & 1 deletion generated/Endpoint/CreateTimeEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function getAuthenticationScopes(): array
/**
* @return \JoliCode\Harvest\Api\Model\TimeEntry|\JoliCode\Harvest\Api\Model\Error|null
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
2 changes: 1 addition & 1 deletion generated/Endpoint/CreateUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function getAuthenticationScopes(): array
/**
* @return \JoliCode\Harvest\Api\Model\User|\JoliCode\Harvest\Api\Model\Error|null
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
2 changes: 1 addition & 1 deletion generated/Endpoint/CreateUserAssignment.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function getAuthenticationScopes(): array
/**
* @return \JoliCode\Harvest\Api\Model\UserAssignment|\JoliCode\Harvest\Api\Model\Error|null
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
2 changes: 1 addition & 1 deletion generated/Endpoint/DeleteClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function getAuthenticationScopes(): array
/**
* @return \JoliCode\Harvest\Api\Model\Error|null
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
2 changes: 1 addition & 1 deletion generated/Endpoint/DeleteContact.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function getAuthenticationScopes(): array
/**
* @return \JoliCode\Harvest\Api\Model\Error|null
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
2 changes: 1 addition & 1 deletion generated/Endpoint/DeleteEstimate.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function getAuthenticationScopes(): array
/**
* @return \JoliCode\Harvest\Api\Model\Error|null
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
2 changes: 1 addition & 1 deletion generated/Endpoint/DeleteEstimateItemCategory.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function getAuthenticationScopes(): array
/**
* @return \JoliCode\Harvest\Api\Model\Error|null
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
2 changes: 1 addition & 1 deletion generated/Endpoint/DeleteEstimateMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function getAuthenticationScopes(): array
/**
* @return \JoliCode\Harvest\Api\Model\Error|null
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
Loading

0 comments on commit 251fd23

Please sign in to comment.