Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature upgrade #110

Merged
merged 8 commits into from
Oct 14, 2023
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
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@
],
"require": {
"php": "^8.2",
"guzzlehttp/guzzle": "^7.5",
"guzzlehttp/guzzle": "^7.6",
"illuminate/contracts": "^9.0|^10.0",
"nesbot/carbon": "^2.64.0",
"saloonphp/cache-plugin": "^2.0",
"saloonphp/saloon": "^2.0",
"saloonphp/laravel-plugin": "^2.0",
"saloonphp/cache-plugin": "^3.0",
"saloonphp/saloon": "^3.0",
"saloonphp/laravel-plugin": "^3.0",
"spatie/laravel-package-tools": "^1.14.0"
},
"require-dev": {
Expand Down
3 changes: 1 addition & 2 deletions src/Events/DocuWareResponseLog.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Http\Client\Response;
use Illuminate\Queue\SerializesModels;
use Saloon\Contracts\Response as SaloonContracts;
use Saloon\Http\Response as SaloonResponse;

class DocuWareResponseLog
Expand All @@ -16,7 +15,7 @@ class DocuWareResponseLog
use SerializesModels;

public function __construct(
public Response|SaloonResponse|SaloonContracts $response
public Response|SaloonResponse $response
) {
}
}
2 changes: 1 addition & 1 deletion src/Requests/Auth/PostLoginRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
use CodebarAg\DocuWare\Events\DocuWareResponseLog;
use CodebarAg\DocuWare\Support\EnsureValidResponse;
use Saloon\Contracts\Body\HasBody;
use Saloon\Contracts\Response;
use Saloon\Enums\Method;
use Saloon\Http\Response;
use Saloon\Http\SoloRequest;
use Saloon\Traits\Body\HasFormBody;

Expand Down
2 changes: 1 addition & 1 deletion src/Requests/Dialogs/GetDialogRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
use Saloon\CachePlugin\Contracts\Cacheable;
use Saloon\CachePlugin\Drivers\LaravelCacheDriver;
use Saloon\CachePlugin\Traits\HasCaching;
use Saloon\Contracts\Response;
use Saloon\Enums\Method;
use Saloon\Http\Request;
use Saloon\Http\Response;

class GetDialogRequest extends Request implements Cacheable
{
Expand Down
2 changes: 1 addition & 1 deletion src/Requests/Dialogs/GetDialogsRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
use Saloon\CachePlugin\Contracts\Cacheable;
use Saloon\CachePlugin\Drivers\LaravelCacheDriver;
use Saloon\CachePlugin\Traits\HasCaching;
use Saloon\Contracts\Response;
use Saloon\Enums\Method;
use Saloon\Http\Request;
use Saloon\Http\Response;

class GetDialogsRequest extends Request implements Cacheable
{
Expand Down
2 changes: 1 addition & 1 deletion src/Requests/Document/DeleteDocumentRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
namespace CodebarAg\DocuWare\Requests\Document;

use CodebarAg\DocuWare\Responses\Document\DeleteDocumentResponse;
use Saloon\Contracts\Response;
use Saloon\Enums\Method;
use Saloon\Http\Request;
use Saloon\Http\Response;

class DeleteDocumentRequest extends Request
{
Expand Down
2 changes: 1 addition & 1 deletion src/Requests/Document/GetDocumentCountRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
use Saloon\CachePlugin\Contracts\Cacheable;
use Saloon\CachePlugin\Drivers\LaravelCacheDriver;
use Saloon\CachePlugin\Traits\HasCaching;
use Saloon\Contracts\Response;
use Saloon\Enums\Method;
use Saloon\Http\Request;
use Saloon\Http\Response;

class GetDocumentCountRequest extends Request implements Cacheable
{
Expand Down
2 changes: 1 addition & 1 deletion src/Requests/Document/GetDocumentDownloadRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
use Saloon\CachePlugin\Contracts\Cacheable;
use Saloon\CachePlugin\Drivers\LaravelCacheDriver;
use Saloon\CachePlugin\Traits\HasCaching;
use Saloon\Contracts\Response;
use Saloon\Enums\Method;
use Saloon\Http\Request;
use Saloon\Http\Response;

class GetDocumentDownloadRequest extends Request implements Cacheable
{
Expand Down
2 changes: 1 addition & 1 deletion src/Requests/Document/GetDocumentPreviewRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
use Saloon\CachePlugin\Contracts\Cacheable;
use Saloon\CachePlugin\Drivers\LaravelCacheDriver;
use Saloon\CachePlugin\Traits\HasCaching;
use Saloon\Contracts\Response;
use Saloon\Enums\Method;
use Saloon\Http\Request;
use Saloon\Http\Response;

class GetDocumentPreviewRequest extends Request implements Cacheable
{
Expand Down
2 changes: 1 addition & 1 deletion src/Requests/Document/GetDocumentRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
use Saloon\CachePlugin\Contracts\Cacheable;
use Saloon\CachePlugin\Drivers\LaravelCacheDriver;
use Saloon\CachePlugin\Traits\HasCaching;
use Saloon\Contracts\Response;
use Saloon\Enums\Method;
use Saloon\Http\Request;
use Saloon\Http\Response;

class GetDocumentRequest extends Request implements Cacheable
{
Expand Down
2 changes: 1 addition & 1 deletion src/Requests/Document/GetDocumentsDownloadRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
use Saloon\CachePlugin\Contracts\Cacheable;
use Saloon\CachePlugin\Drivers\LaravelCacheDriver;
use Saloon\CachePlugin\Traits\HasCaching;
use Saloon\Contracts\Response;
use Saloon\Enums\Method;
use Saloon\Http\Request;
use Saloon\Http\Response;

class GetDocumentsDownloadRequest extends Request implements Cacheable
{
Expand Down
2 changes: 1 addition & 1 deletion src/Requests/Document/GetDocumentsRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
use Saloon\CachePlugin\Contracts\Cacheable;
use Saloon\CachePlugin\Drivers\LaravelCacheDriver;
use Saloon\CachePlugin\Traits\HasCaching;
use Saloon\Contracts\Response;
use Saloon\Enums\Method;
use Saloon\Http\Request;
use Saloon\Http\Response;

class GetDocumentsRequest extends Request implements Cacheable
{
Expand Down
2 changes: 1 addition & 1 deletion src/Requests/Document/PostDocumentRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
use CodebarAg\DocuWare\Responses\Document\PostDocumentResponse;
use Illuminate\Support\Collection;
use Saloon\Contracts\Body\HasBody;
use Saloon\Contracts\Response;
use Saloon\Data\MultipartValue;
use Saloon\Enums\Method;
use Saloon\Http\Request;
use Saloon\Http\Response;
use Saloon\Traits\Body\HasMultipartBody;

class PostDocumentRequest extends Request implements HasBody
Expand Down
2 changes: 1 addition & 1 deletion src/Requests/Document/PostTransferDocumentRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

use CodebarAg\DocuWare\Responses\Document\PostTransferDocumentResponse;
use Saloon\Contracts\Body\HasBody;
use Saloon\Contracts\Response;
use Saloon\Enums\Method;
use Saloon\Http\Request;
use Saloon\Http\Response;
use Saloon\Traits\Body\HasJsonBody;

class PostTransferDocumentRequest extends Request implements HasBody
Expand Down
2 changes: 1 addition & 1 deletion src/Requests/Document/PutDocumentFieldsRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
use CodebarAg\DocuWare\Exceptions\UnableToUpdateFields;
use CodebarAg\DocuWare\Responses\Document\PutDocumentFieldsResponse;
use Saloon\Contracts\Body\HasBody;
use Saloon\Contracts\Response;
use Saloon\Enums\Method;
use Saloon\Http\Request;
use Saloon\Http\Response;
use Saloon\Traits\Body\HasJsonBody;

class PutDocumentFieldsRequest extends Request implements HasBody
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
use Saloon\CachePlugin\Contracts\Cacheable;
use Saloon\CachePlugin\Drivers\LaravelCacheDriver;
use Saloon\CachePlugin\Traits\HasCaching;
use Saloon\Contracts\Response;
use Saloon\Enums\Method;
use Saloon\Http\Request;
use Saloon\Http\Response;

class GetDocumentDownloadThumbnailRequest extends Request implements Cacheable
{
Expand Down
2 changes: 1 addition & 1 deletion src/Requests/Fields/GetFieldsRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
use Saloon\CachePlugin\Contracts\Cacheable;
use Saloon\CachePlugin\Drivers\LaravelCacheDriver;
use Saloon\CachePlugin\Traits\HasCaching;
use Saloon\Contracts\Response;
use Saloon\Enums\Method;
use Saloon\Http\Request;
use Saloon\Http\Response;

class GetFieldsRequest extends Request implements Cacheable
{
Expand Down
2 changes: 1 addition & 1 deletion src/Requests/FileCabinets/GetFileCabinetsRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
use Saloon\CachePlugin\Contracts\Cacheable;
use Saloon\CachePlugin\Drivers\LaravelCacheDriver;
use Saloon\CachePlugin\Traits\HasCaching;
use Saloon\Contracts\Response;
use Saloon\Enums\Method;
use Saloon\Http\Request;
use Saloon\Http\Response;

class GetFileCabinetsRequest extends Request implements Cacheable
{
Expand Down
2 changes: 1 addition & 1 deletion src/Requests/Organization/GetOrganizationRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
use Saloon\CachePlugin\Contracts\Cacheable;
use Saloon\CachePlugin\Drivers\LaravelCacheDriver;
use Saloon\CachePlugin\Traits\HasCaching;
use Saloon\Contracts\Response;
use Saloon\Enums\Method;
use Saloon\Http\Request;
use Saloon\Http\Response;

class GetOrganizationRequest extends Request implements Cacheable
{
Expand Down
2 changes: 1 addition & 1 deletion src/Requests/Organization/GetOrganizationsRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
use Saloon\CachePlugin\Contracts\Cacheable;
use Saloon\CachePlugin\Drivers\LaravelCacheDriver;
use Saloon\CachePlugin\Traits\HasCaching;
use Saloon\Contracts\Response;
use Saloon\Enums\Method;
use Saloon\Http\Request;
use Saloon\Http\Response;

class GetOrganizationsRequest extends Request implements Cacheable
{
Expand Down
2 changes: 1 addition & 1 deletion src/Requests/Search/GetSearchRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
use Saloon\CachePlugin\Drivers\LaravelCacheDriver;
use Saloon\CachePlugin\Traits\HasCaching;
use Saloon\Contracts\Body\HasBody;
use Saloon\Contracts\Response;
use Saloon\Enums\Method;
use Saloon\Http\Request;
use Saloon\Http\Response;
use Saloon\Traits\Body\HasJsonBody;

class GetSearchRequest extends Request implements Cacheable, HasBody
Expand Down
2 changes: 1 addition & 1 deletion src/Requests/Sections/GetSectionsRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
use Saloon\CachePlugin\Contracts\Cacheable;
use Saloon\CachePlugin\Drivers\LaravelCacheDriver;
use Saloon\CachePlugin\Traits\HasCaching;
use Saloon\Contracts\Response;
use Saloon\Enums\Method;
use Saloon\Http\Request;
use Saloon\Http\Response;

class GetSectionsRequest extends Request implements Cacheable
{
Expand Down
2 changes: 1 addition & 1 deletion src/Requests/SelectList/GetSelectListRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
use Saloon\CachePlugin\Contracts\Cacheable;
use Saloon\CachePlugin\Drivers\LaravelCacheDriver;
use Saloon\CachePlugin\Traits\HasCaching;
use Saloon\Contracts\Response;
use Saloon\Enums\Method;
use Saloon\Http\Request;
use Saloon\Http\Response;

class GetSelectListRequest extends Request implements Cacheable
{
Expand Down
2 changes: 1 addition & 1 deletion src/Responses/Dialogs/GetDialogResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use CodebarAg\DocuWare\DTO\Dialog;
use CodebarAg\DocuWare\Events\DocuWareResponseLog;
use CodebarAg\DocuWare\Support\EnsureValidResponse;
use Saloon\Contracts\Response;
use Saloon\Http\Response;

final class GetDialogResponse
{
Expand Down
2 changes: 1 addition & 1 deletion src/Responses/Dialogs/GetDialogsResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use CodebarAg\DocuWare\Support\EnsureValidResponse;
use Illuminate\Support\Collection;
use Illuminate\Support\Enumerable;
use Saloon\Contracts\Response;
use Saloon\Http\Response;

final class GetDialogsResponse
{
Expand Down
2 changes: 1 addition & 1 deletion src/Responses/Document/DeleteDocumentResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use CodebarAg\DocuWare\Events\DocuWareResponseLog;
use CodebarAg\DocuWare\Support\EnsureValidResponse;
use Saloon\Contracts\Response;
use Saloon\Http\Response;

final class DeleteDocumentResponse
{
Expand Down
2 changes: 1 addition & 1 deletion src/Responses/Document/GetDocumentCountResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use CodebarAg\DocuWare\Exceptions\UnableToGetDocumentCount;
use CodebarAg\DocuWare\Support\EnsureValidResponse;
use Illuminate\Support\Arr;
use Saloon\Contracts\Response;
use Saloon\Http\Response;

final class GetDocumentCountResponse
{
Expand Down
2 changes: 1 addition & 1 deletion src/Responses/Document/GetDocumentDownloadResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use CodebarAg\DocuWare\Events\DocuWareResponseLog;
use CodebarAg\DocuWare\Support\EnsureValidResponse;
use Saloon\Contracts\Response;
use Saloon\Http\Response;

final class GetDocumentDownloadResponse
{
Expand Down
2 changes: 1 addition & 1 deletion src/Responses/Document/GetDocumentPreviewResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use CodebarAg\DocuWare\Events\DocuWareResponseLog;
use CodebarAg\DocuWare\Support\EnsureValidResponse;
use Saloon\Contracts\Response;
use Saloon\Http\Response;

final class GetDocumentPreviewResponse
{
Expand Down
2 changes: 1 addition & 1 deletion src/Responses/Document/GetDocumentResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use CodebarAg\DocuWare\DTO\Document;
use CodebarAg\DocuWare\Events\DocuWareResponseLog;
use CodebarAg\DocuWare\Support\EnsureValidResponse;
use Saloon\Contracts\Response;
use Saloon\Http\Response;

final class GetDocumentResponse
{
Expand Down
2 changes: 1 addition & 1 deletion src/Responses/Document/GetDocumentsDownloadResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use CodebarAg\DocuWare\Events\DocuWareResponseLog;
use CodebarAg\DocuWare\Support\EnsureValidResponse;
use Saloon\Contracts\Response;
use Saloon\Http\Response;

final class GetDocumentsDownloadResponse
{
Expand Down
2 changes: 1 addition & 1 deletion src/Responses/Document/GetDocumentsResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use CodebarAg\DocuWare\Events\DocuWareResponseLog;
use CodebarAg\DocuWare\Support\EnsureValidResponse;
use Illuminate\Support\Collection;
use Saloon\Contracts\Response;
use Saloon\Http\Response;

final class GetDocumentsResponse
{
Expand Down
2 changes: 1 addition & 1 deletion src/Responses/Document/PostDocumentResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use CodebarAg\DocuWare\DTO\Document;
use CodebarAg\DocuWare\Events\DocuWareResponseLog;
use CodebarAg\DocuWare\Support\EnsureValidResponse;
use Saloon\Contracts\Response;
use Saloon\Http\Response;

final class PostDocumentResponse
{
Expand Down
2 changes: 1 addition & 1 deletion src/Responses/Document/PostTransferDocumentResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use CodebarAg\DocuWare\Events\DocuWareResponseLog;
use CodebarAg\DocuWare\Support\EnsureValidResponse;
use Saloon\Contracts\Response;
use Saloon\Http\Response;

final class PostTransferDocumentResponse
{
Expand Down
2 changes: 1 addition & 1 deletion src/Responses/Document/PutDocumentFieldsResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use CodebarAg\DocuWare\Support\EnsureValidResponse;
use CodebarAg\DocuWare\Support\ParseValue;
use Illuminate\Support\Collection;
use Saloon\Contracts\Response;
use Saloon\Http\Response;

final class PutDocumentFieldsResponse
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use CodebarAg\DocuWare\DTO\DocumentThumbnail;
use CodebarAg\DocuWare\Events\DocuWareResponseLog;
use CodebarAg\DocuWare\Support\EnsureValidResponse;
use Saloon\Contracts\Response;
use Saloon\Http\Response;

final class GetDocumentDownloadThumbnailResponse
{
Expand Down
2 changes: 1 addition & 1 deletion src/Responses/Fields/GetFieldsResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use CodebarAg\DocuWare\Support\EnsureValidResponse;
use Illuminate\Support\Collection;
use Illuminate\Support\Enumerable;
use Saloon\Contracts\Response;
use Saloon\Http\Response;

final class GetFieldsResponse
{
Expand Down
2 changes: 1 addition & 1 deletion src/Responses/FileCabinets/GetFileCabinetsResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use CodebarAg\DocuWare\Support\EnsureValidResponse;
use Illuminate\Support\Collection;
use Illuminate\Support\Enumerable;
use Saloon\Contracts\Response;
use Saloon\Http\Response;

final class GetFileCabinetsResponse
{
Expand Down
Loading