From 2efb42060eca5d872c9266806e6361c273a65a9f Mon Sep 17 00:00:00 2001 From: Rhys Lees <43909932+RhysLees@users.noreply.github.com> Date: Thu, 14 Mar 2024 17:49:49 +0000 Subject: [PATCH 01/54] WIP --- composer.json | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/composer.json b/composer.json index cfd04fb..2e0d928 100644 --- a/composer.json +++ b/composer.json @@ -24,20 +24,20 @@ } ], "require": { - "php": "^8.2", + "php": "^8.3", "guzzlehttp/guzzle": "^7.8", - "illuminate/contracts": "^10.0", + "illuminate/contracts": "^11.0", "nesbot/carbon": "^2.72", "saloonphp/cache-plugin": "^3.0", - "saloonphp/saloon": "^3.4", - "saloonphp/laravel-plugin": "^3.2", + "saloonphp/saloon": "^3.7", + "saloonphp/laravel-plugin": "^3.5", "spatie/laravel-package-tools": "^1.16" }, "require-dev": { - "laravel/pint": "^1.13", - "nunomaduro/larastan": "^2.8", - "orchestra/testbench": "^8.20", - "pestphp/pest": "^2.31", + "laravel/pint": "^1.14", + "nunomaduro/larastan": "^2.9", + "orchestra/testbench": "^9.0", + "pestphp/pest": "^2.34", "phpstan/extension-installer": "^1.3", "phpstan/phpstan-deprecation-rules": "^1.1", "phpstan/phpstan-phpunit": "^1.3", From d72e75f5bcf853c7f315937b49989f0610a87504 Mon Sep 17 00:00:00 2001 From: Rhys Lees <43909932+RhysLees@users.noreply.github.com> Date: Thu, 14 Mar 2024 22:03:46 +0000 Subject: [PATCH 02/54] WIP --- .github/workflows/run-tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index e8981ee..b4c926c 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -14,8 +14,8 @@ jobs: max-parallel: 1 matrix: os: [ ubuntu-latest, windows-latest ] - php: [ 8.2, 8.3 ] - laravel: [ 10.* ] + php: [ 8.3 ] + laravel: [ 11.* ] stability: [ prefer-lowest, prefer-stable ] name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} From 17dfc43222c9ea92e19e9db6b497b695c9fe6a0a Mon Sep 17 00:00:00 2001 From: Rhys Lees <43909932+RhysLees@users.noreply.github.com> Date: Fri, 15 Mar 2024 11:46:50 +0000 Subject: [PATCH 03/54] WIP --- .github/workflows/run-tests.yml | 2 +- composer.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index b4c926c..674e778 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -14,7 +14,7 @@ jobs: max-parallel: 1 matrix: os: [ ubuntu-latest, windows-latest ] - php: [ 8.3 ] + php: [ 8.2, 8.3 ] laravel: [ 11.* ] stability: [ prefer-lowest, prefer-stable ] diff --git a/composer.json b/composer.json index 2e0d928..c8ec772 100644 --- a/composer.json +++ b/composer.json @@ -24,7 +24,7 @@ } ], "require": { - "php": "^8.3", + "php": ">=8.2", "guzzlehttp/guzzle": "^7.8", "illuminate/contracts": "^11.0", "nesbot/carbon": "^2.72", From a10a64d4af1260439c82b6c8b74ee822dfe1e4d8 Mon Sep 17 00:00:00 2001 From: Rhys Lees <43909932+RhysLees@users.noreply.github.com> Date: Mon, 29 Apr 2024 23:40:41 +0100 Subject: [PATCH 04/54] WIP --- README.md | 274 ++++++++---------- config/laravel-docuware.php | 23 -- phpunit.xml.dist | 2 +- src/Commands/ListAuthCookie.php | 52 ---- src/Connectors/DocuWareConnector.php | 34 +++ src/Connectors/DocuWareDynamicConnector.php | 58 ---- src/Connectors/DocuWareStaticConnector.php | 50 ---- .../OAuth/IdentityServiceConfiguration.php | 86 ++++++ src/DTO/Authentication/OAuth/RequestToken.php | 29 ++ .../OAuth/ResponsibleIdentityService.php | 22 ++ src/DTO/Config.php | 28 -- src/DTO/Cookie.php | 33 --- src/DTO/{ => Documents}/Document.php | 3 +- src/DTO/{ => Documents}/DocumentField.php | 2 +- .../DocumentIndex/IndexDateDTO.php | 2 +- .../DocumentIndex/IndexDateTimeDTO.php | 2 +- .../DocumentIndex/IndexDecimalDTO.php | 2 +- .../DocumentIndex/IndexNumericDTO.php | 2 +- .../DocumentIndex/IndexTableDTO.php | 2 +- .../DocumentIndex/IndexTextDTO.php | 2 +- .../DocumentIndex/PrepareDTO.php | 2 +- .../DocumentIndex/PrepareTableDTO.php | 2 +- src/DTO/{ => Documents}/DocumentPaginator.php | 3 +- src/DTO/{ => Documents}/DocumentThumbnail.php | 2 +- src/DTO/{ => Documents}/Field.php | 2 +- src/DTO/{ => Documents}/TableRow.php | 2 +- src/DTO/FileCabinet.php | 45 --- src/DTO/{ => FileCabinets}/Dialog.php | 2 +- .../General/FileCabinetInformation.php | 73 +++++ src/DTO/General/Organization/FileCabinet.php | 73 +++++ .../Organization}/Organization.php | 2 +- .../Organization}/OrganizationIndex.php | 2 +- src/DocuWare.php | 97 ++----- src/Facades/DocuWare.php | 16 +- src/Requests/Auth/GetLogoffRequest.php | 22 -- src/Requests/Auth/PostLoginRequest.php | 53 ---- src/Requests/Auth/PostLogonRequest.php | 31 -- .../OAuth/GetIdentityServiceConfiguration.php | 41 +++ .../OAuth/GetResponsibleIdentityService.php | 33 +++ .../Authentication/OAuth/RequestToken.php | 55 ++++ .../Document/GetDocumentsDownloadRequest.php | 64 ---- .../Download/DownloadDocument.php} | 8 +- .../Download/DownloadThumbnail.php} | 8 +- .../GetDocumentPreviewRequest.php | 4 +- .../ModifyDocuments/DeleteDocument.php} | 6 +- .../ModifyDocuments/TransferDocument.php} | 8 +- .../UpdateIndexValues/UpdateIndexValues.php} | 10 +- .../Dialogs/GetASpecificDialog.php} | 8 +- .../Dialogs/GetAllDialogs.php} | 8 +- .../General/GetFileCabinetInformation.php} | 16 +- .../General/GetTotalNumberOfDocuments.php} | 24 +- .../GetASpecificDocumentFromAFileCabinet.php} | 10 +- .../Search/GetDocumentsFromAFileCabinet.php} | 10 +- .../SelectLists/GetSelectLists.php} | 8 +- .../Upload/CreateDataRecord.php} | 12 +- .../GetAllFileCabinetsAndDocumentTrays.php} | 23 +- .../General/Organization/GetLoginToken.php | 58 ++++ .../Organization/GetOrganization.php} | 8 +- src/Requests/Search/GetSearchRequest.php | 2 +- .../GetResponsibleIdentityServiceResponse.php | 20 ++ .../OAuth/RequestTokenResponse.php | 20 ++ .../Download/DownloadDocumentResponse.php} | 4 +- .../Download/DownloadThumbnailResponse.php} | 6 +- .../GetDocumentPreviewResponse.php | 2 +- .../DeleteDocumentResponse.php | 2 +- .../TransferDocumentResponse.php} | 4 +- .../UpdateIndexValuesResponse.php} | 4 +- src/Responses/Fields/GetFieldsResponse.php | 2 +- .../Dialogs/GetASpecificDialogResponse.php} | 6 +- .../Dialogs/GetAllDialogsResponse.php} | 6 +- .../GetFileCabinetInformationResponse.php | 22 ++ .../GetTotalNumberOfDocumentsResponse.php} | 4 +- ...cificDocumentFromAFileCabinetResponse.php} | 6 +- .../GetDocumentsFromAFileCabinetResponse.php} | 6 +- .../SelectLists/GetSelectListsResponse.php} | 4 +- .../Upload/CreateDataRecordResponse.php} | 6 +- ...lFileCabinetsAndDocumentTraysResponse.php} | 6 +- .../Organization/GetOrganizationResponse.php} | 8 +- .../RequestLoginTokenResponse.php} | 6 +- .../Organization/GetOrganizationResponse.php | 22 -- src/Responses/Search/GetSearchResponse.php | 2 +- src/Support/ParseValue.php | 2 +- tests/Console/ListAuthCookieCommandTest.php | 32 -- tests/Feature/DTOTest.php | 22 +- tests/Feature/DocuWareAuthenticationTest.php | 46 +++ tests/Feature/DocuWareConnectorTest.php | 29 -- tests/Feature/Facades/DocuWare/CookieTest.php | 13 - .../Requests/Dialogs/GetDialogRequestTest.php | 6 +- .../Dialogs/GetDialogsRequestTest.php | 6 +- .../Document/GetDocumentCountRequestTest.php | 8 +- .../GetDocumentDownloadRequestTest.php | 8 +- .../GetDocumentPreviewRequestTest.php | 6 +- .../Document/GetDocumentRequestTest.php | 10 +- .../GetDocumentsDownloadRequestTest.php | 32 -- .../Document/GetDocumentsRequestTest.php | 10 +- .../Document/PostDocumentRequestTest.php | 12 +- .../Document/PutDocumentFieldsRequestTest.php | 14 +- ...etDocumentDownloadThumbnailRequestTest.php | 10 +- .../Requests/Fields/GetFieldsRequestTest.php | 2 +- .../GetFileCabinetInformationTest.php | 16 + .../GetFileCabinetsRequestTest.php | 23 -- .../GetOrganizationRequestTest.php | 17 -- .../GetOrganizationsRequestTest.php | 8 +- .../Requests/Search/GetSearchRequestTest.php | 12 +- .../SelectList/GetSelectListRequest.php | 10 +- tests/Pest.php | 27 +- .../DTO/DocumentIndex/IndexDateDTOTest.php | 2 +- .../DocumentIndex/IndexDateTimeDTOTest.php | 2 +- .../DTO/DocumentIndex/IndexDecimalDTOTest.php | 2 +- .../DTO/DocumentIndex/IndexNumericDTOTest.php | 2 +- .../DTO/DocumentIndex/IndexTableDTOTest.php | 2 +- .../DTO/DocumentIndex/IndexTextDTOTest.php | 2 +- .../Unit/DTO/DocumentIndex/PrepareDTOTest.php | 6 +- .../DTO/DocumentIndex/PrepareTableDTOTest.php | 4 +- 114 files changed, 1029 insertions(+), 1103 deletions(-) delete mode 100644 src/Commands/ListAuthCookie.php create mode 100644 src/Connectors/DocuWareConnector.php delete mode 100644 src/Connectors/DocuWareDynamicConnector.php delete mode 100644 src/Connectors/DocuWareStaticConnector.php create mode 100644 src/DTO/Authentication/OAuth/IdentityServiceConfiguration.php create mode 100644 src/DTO/Authentication/OAuth/RequestToken.php create mode 100644 src/DTO/Authentication/OAuth/ResponsibleIdentityService.php delete mode 100644 src/DTO/Config.php delete mode 100644 src/DTO/Cookie.php rename src/DTO/{ => Documents}/Document.php (98%) rename src/DTO/{ => Documents}/DocumentField.php (97%) rename src/DTO/{ => Documents}/DocumentIndex/IndexDateDTO.php (92%) rename src/DTO/{ => Documents}/DocumentIndex/IndexDateTimeDTO.php (93%) rename src/DTO/{ => Documents}/DocumentIndex/IndexDecimalDTO.php (89%) rename src/DTO/{ => Documents}/DocumentIndex/IndexNumericDTO.php (89%) rename src/DTO/{ => Documents}/DocumentIndex/IndexTableDTO.php (96%) rename src/DTO/{ => Documents}/DocumentIndex/IndexTextDTO.php (88%) rename src/DTO/{ => Documents}/DocumentIndex/PrepareDTO.php (95%) rename src/DTO/{ => Documents}/DocumentIndex/PrepareTableDTO.php (89%) rename src/DTO/{ => Documents}/DocumentPaginator.php (96%) rename src/DTO/{ => Documents}/DocumentThumbnail.php (92%) rename src/DTO/{ => Documents}/Field.php (96%) rename src/DTO/{ => Documents}/TableRow.php (94%) delete mode 100644 src/DTO/FileCabinet.php rename src/DTO/{ => FileCabinets}/Dialog.php (96%) create mode 100644 src/DTO/FileCabinets/General/FileCabinetInformation.php create mode 100644 src/DTO/General/Organization/FileCabinet.php rename src/DTO/{ => General/Organization}/Organization.php (95%) rename src/DTO/{ => General/Organization}/OrganizationIndex.php (93%) delete mode 100644 src/Requests/Auth/GetLogoffRequest.php delete mode 100644 src/Requests/Auth/PostLoginRequest.php delete mode 100644 src/Requests/Auth/PostLogonRequest.php create mode 100644 src/Requests/Authentication/OAuth/GetIdentityServiceConfiguration.php create mode 100644 src/Requests/Authentication/OAuth/GetResponsibleIdentityService.php create mode 100644 src/Requests/Authentication/OAuth/RequestToken.php delete mode 100644 src/Requests/Document/GetDocumentsDownloadRequest.php rename src/Requests/{Document/GetDocumentDownloadRequest.php => Documents/Download/DownloadDocument.php} (82%) rename src/Requests/{Document/Thumbnail/GetDocumentDownloadThumbnailRequest.php => Documents/Download/DownloadThumbnail.php} (79%) rename src/Requests/{Document => Documents}/GetDocumentPreviewRequest.php (90%) rename src/Requests/{Document/DeleteDocumentRequest.php => Documents/ModifyDocuments/DeleteDocument.php} (75%) rename src/Requests/{Document/PostTransferDocumentRequest.php => Documents/ModifyDocuments/TransferDocument.php} (84%) rename src/Requests/{Document/PutDocumentFieldsRequest.php => Documents/UpdateIndexValues/UpdateIndexValues.php} (77%) rename src/Requests/{Dialogs/GetDialogRequest.php => FileCabinets/Dialogs/GetASpecificDialog.php} (79%) rename src/Requests/{Dialogs/GetDialogsRequest.php => FileCabinets/Dialogs/GetAllDialogs.php} (78%) rename src/Requests/{Organization/GetOrganizationRequest.php => FileCabinets/General/GetFileCabinetInformation.php} (58%) rename src/Requests/{Document/GetDocumentCountRequest.php => FileCabinets/General/GetTotalNumberOfDocuments.php} (72%) rename src/Requests/{Document/GetDocumentRequest.php => FileCabinets/Search/GetASpecificDocumentFromAFileCabinet.php} (73%) rename src/Requests/{Document/GetDocumentsRequest.php => FileCabinets/Search/GetDocumentsFromAFileCabinet.php} (76%) rename src/Requests/{SelectList/GetSelectListRequest.php => FileCabinets/SelectLists/GetSelectLists.php} (82%) rename src/Requests/{Document/PostDocumentRequest.php => FileCabinets/Upload/CreateDataRecord.php} (77%) rename src/Requests/{FileCabinets/GetFileCabinetsRequest.php => General/Organization/GetAllFileCabinetsAndDocumentTrays.php} (55%) create mode 100644 src/Requests/General/Organization/GetLoginToken.php rename src/Requests/{Organization/GetOrganizationsRequest.php => General/Organization/GetOrganization.php} (77%) create mode 100644 src/Responses/Authentication/OAuth/GetResponsibleIdentityServiceResponse.php create mode 100644 src/Responses/Authentication/OAuth/RequestTokenResponse.php rename src/Responses/{Document/GetDocumentDownloadResponse.php => Documents/Download/DownloadDocumentResponse.php} (79%) rename src/Responses/{Document/Thumbnail/GetDocumentDownloadThumbnailResponse.php => Documents/Download/DownloadThumbnailResponse.php} (76%) rename src/Responses/{Document => Documents}/GetDocumentPreviewResponse.php (88%) rename src/Responses/{Document => Documents/ModifyDocuments}/DeleteDocumentResponse.php (85%) rename src/Responses/{Document/PostTransferDocumentResponse.php => Documents/ModifyDocuments/TransferDocumentResponse.php} (77%) rename src/Responses/{Document/PutDocumentFieldsResponse.php => Documents/UpdateIndexValues/UpdateIndexValuesResponse.php} (85%) rename src/Responses/{Dialogs/GetDialogResponse.php => FileCabinets/Dialogs/GetASpecificDialogResponse.php} (73%) rename src/Responses/{Dialogs/GetDialogsResponse.php => FileCabinets/Dialogs/GetAllDialogsResponse.php} (79%) create mode 100644 src/Responses/FileCabinets/General/GetFileCabinetInformationResponse.php rename src/Responses/{Document/GetDocumentCountResponse.php => FileCabinets/General/GetTotalNumberOfDocumentsResponse.php} (88%) rename src/Responses/{Document/GetDocumentResponse.php => FileCabinets/Search/GetASpecificDocumentFromAFileCabinetResponse.php} (71%) rename src/Responses/{Document/GetDocumentsResponse.php => FileCabinets/Search/GetDocumentsFromAFileCabinetResponse.php} (79%) rename src/Responses/{SelectList/GetSelectListResponse.php => FileCabinets/SelectLists/GetSelectListsResponse.php} (78%) rename src/Responses/{Document/PostDocumentResponse.php => FileCabinets/Upload/CreateDataRecordResponse.php} (74%) rename src/Responses/{FileCabinets/GetFileCabinetsResponse.php => General/Organization/GetAllFileCabinetsAndDocumentTraysResponse.php} (76%) rename src/Responses/{Organization/GetOrganizationsResponse.php => General/Organization/GetOrganizationResponse.php} (63%) rename src/Responses/{Document/GetDocumentsDownloadResponse.php => General/Organization/RequestLoginTokenResponse.php} (70%) delete mode 100644 src/Responses/Organization/GetOrganizationResponse.php delete mode 100644 tests/Console/ListAuthCookieCommandTest.php create mode 100644 tests/Feature/DocuWareAuthenticationTest.php delete mode 100644 tests/Feature/DocuWareConnectorTest.php delete mode 100644 tests/Feature/Facades/DocuWare/CookieTest.php delete mode 100644 tests/Feature/Requests/Document/GetDocumentsDownloadRequestTest.php create mode 100644 tests/Feature/Requests/FileCabinets/GetFileCabinetInformationTest.php delete mode 100644 tests/Feature/Requests/FileCabinets/GetFileCabinetsRequestTest.php delete mode 100644 tests/Feature/Requests/Organization/GetOrganizationRequestTest.php diff --git a/README.md b/README.md index a5f925f..ed63a4f 100644 --- a/README.md +++ b/README.md @@ -20,37 +20,47 @@ then optimize the processes that power the core of your business. ## 🛠 Requirements -### > = v4.0 (alpha) +
+ Version Support + +### \> = v11.0 (alpha) + +- PHP: `^8.2`` + - Laravel: `^11.*` + - DocuWare Cloud Access + +### \> = v4.0 (alpha) - PHP: `^8.2`` - Laravel: `^11.*` - DocuWare Cloud Access -### > = v3.0 +### \> = v3.0 - PHP: `^8.2`` - Laravel: `^10.*` - DocuWare Cloud Access -### > = v2.0 +### \> = v2.0 - PHP: `^8.1` |`^8.2` - Laravel: `^9.*` | `^10.*` - DocuWare Cloud Access -- -### > = v1.2 +### \> = v1.2 - PHP: `^8.1` - Laravel: `^9.*` - DocuWare Cloud Access -### < v1.2 +### \< v1.2 - PHP: `^8.0` - Laravel: `^8.*` - DocuWare Cloud Access +
+ ## ⚙️ Installation You can install the package via composer: @@ -60,14 +70,12 @@ composer require codebar-ag/laravel-docuware ``` Add the following environment variables to your `.env` file: -The "DOCUWARE_COOKIES" variable is optional and only used if you want to set the request cookie manually. ```bash DOCUWARE_URL=https://domain.docuware.cloud DOCUWARE_USERNAME=user@domain.test DOCUWARE_PASSWORD=password DOCUWARE_PASSPHRASE="passphrase" -DOCUWARE_COOKIES="cookie" ``` With the passphrase we are able to encrypt the URLs. @@ -84,40 +92,54 @@ DOCUWARE_PASSPHRASE="a#bcd>2~C1'abc\\#" ## 🏗 Usage -```php -use CodebarAg\DocuWare\Connectors\DocuWareStaticConnector; +### Getting OAuth Token +
+ Getting OAuth Token -// Will use user credentials defined in config to authenticate and store cookie in cache -$connector = new DocuWareStaticConnector(); +```php +use CodebarAg\DocuWare\Facades\DocuWare; -// OR +$tokenResponse = new DocuWare::getNewAuthenticationOAuthToken( + username: 'username', // Optional if you need to authenticate with a username different from the one in .env + password: 'password', // Optional if you need to authenticate with a password different from the one in .env +); +``` -// Pass in a config manually -$config = Config::make([ - 'url' => 'https://domain.docuware.cloud', - 'cookie' => 'cookie', - 'cache_driver' => 'file', - 'cache_lifetime_in_seconds' => 60, - 'request_timeout_in_seconds' => 15, -]); +$tokenResponse will contain the following properties: -$connector = new DocuWareDynamicConnector($config); +```php +CodebarAg\DocuWare\DTO\Authentication\OAuth\RequestToken {#3591▶ + +accessToken: "your_access_token_will_be_here" + +tokenType: "Bearer" + +scope: "docuware.platform" + +expiresIn: 3600 + +expiresAt: Illuminate\Support\Carbon +} ``` +> You may use this token once or store it in your cache for future use. take note of the `expiresIn` and/or `expiresAt` property to know when the token will expire. + +Once you have your token, you can use it to authenticate your requests: + ```php -/** - * Return an organization. - */ - -$organization = $connector->send(new GetOrganizationRequest($id))->dto(); +use CodebarAg\DocuWare\Connectors\DocuWareConnector; + +$connector = new DocuWareConnector($tokenResponse->accessToken); ``` +
+ +### Available Requests + +
+ Available Requests + ```php /** - * Return all organizations. + * Return an organization. */ -$organizations = $connector->send(new GetOrganizationsRequest())->dto(); +$organization = $connector->send(new GetOrganization($id))->dto(); ``` ```php @@ -125,7 +147,7 @@ $organizations = $connector->send(new GetOrganizationsRequest())->dto(); * Return all file cabinets. */ -$fileCabinets = $connector->send(new GetFileCabinetsRequest())->dto(); +$fileCabinets = $connector->send(new GetAllFileCabinetsAndDocumentTrays())->dto(); ``` ```php @@ -141,7 +163,7 @@ $fields = $connector->send(new GetFieldsRequest($fileCabinetId))->dto(); * Return all dialogs of a file cabinet. */ -$dialogs = $connector->send(new GetDialogsRequest($fileCabinetId))->dto(); +$dialogs = $connector->send(new GetAllDialogs($fileCabinetId))->dto(); ``` ```php @@ -149,7 +171,7 @@ $dialogs = $connector->send(new GetDialogsRequest($fileCabinetId))->dto(); * Return all used values for a specific field. */ -$values = $connector->send(new GetSelectListRequest($fileCabinetId, $dialogId, $fieldName))->dto(); +$values = $connector->send(new GetSelectList($fileCabinetId, $dialogId, $fieldName))->dto(); ``` ```php @@ -157,7 +179,7 @@ $values = $connector->send(new GetSelectListRequest($fileCabinetId, $dialogId, $ * Return a document. */ -$document = $connector->send(new GetDocumentRequest($fileCabinetId, $documentId))->dto(); +$document = $connector->send(new GetASpecificDocumentFromAFileCabinet($fileCabinetId, $documentId))->dto(); ``` ```php @@ -165,7 +187,7 @@ $document = $connector->send(new GetDocumentRequest($fileCabinetId, $documentId) * Return all documents for a file cabinet. */ -$documents = $connector->send(new GetDocumentsRequest($fileCabinetId))->dto(); +$documents = $connector->send(new GetDocumentsFromAFileCabinet($fileCabinetId))->dto(); ``` ```php @@ -181,20 +203,7 @@ $content = $connector->send(new GetDocumentPreviewRequest($fileCabinetId, $docum * Download single document. */ -$content = $connector->send(new GetDocumentDownloadRequest($fileCabinetId, $documentId))->dto(); -``` - -```php -/** - * Download multiple documents. - * - * Although there are no mentioned limits in the documentation, - * it is not advisable to download more than 100 documents at once. - * - * Also note there is a default request timeout of 30 seconds. - */ - -$content = $connector->send(new GetDocumentsDownloadRequest($fileCabinetId, $documentIds))->dto(); +$content = $connector->send(new DownloadDocument($fileCabinetId, $documentId))->dto(); ``` ```php @@ -212,7 +221,7 @@ $section = $connector->send(new GetSectionsRequest($fileCabinetId, $documentId)) * You will use $section->id from above as $thumbnailId. */ -$thumbnail = $connector->send(new GetDocumentDownloadThumbnailRequest($fileCabinetId, $thumbnailId, $page = 0))->dto(); +$thumbnail = $connector->send(new DownloadThumbnail($fileCabinetId, $thumbnailId, $page = 0))->dto(); ``` ```php @@ -220,7 +229,7 @@ $thumbnail = $connector->send(new GetDocumentDownloadThumbnailRequest($fileCabin * Update value of a indexed field. */ -$value = $connector->send(new PutDocumentFieldsRequest($fileCabinetId, $documentId, [$fieldName => $newValue]))->dto(); +$value = $connector->send(new UpdateIndexValues($fileCabinetId, $documentId, [$fieldName => $newValue]))->dto(); ``` ```php @@ -228,7 +237,7 @@ $value = $connector->send(new PutDocumentFieldsRequest($fileCabinetId, $document * Update multiple values of indexed fields. */ -$values = $connector->send(new PutDocumentFieldsRequest($fileCabinetId, $documentId, [ +$values = $connector->send(new UpdateIndexValues($fileCabinetId, $documentId, [ $fieldName => $newValue, $field2Name => $new2Value, ]))->dto(); @@ -239,7 +248,7 @@ $values = $connector->send(new PutDocumentFieldsRequest($fileCabinetId, $documen * Upload new document. */ -$document = $connector->send(new PostDocumentRequest($fileCabinetId, $fileContent, $fileName))->dto(); +$document = $connector->send(new CreateDataRecord($fileCabinetId, $fileContent, $fileName))->dto(); ``` ```php @@ -247,7 +256,7 @@ $document = $connector->send(new PostDocumentRequest($fileCabinetId, $fileConten * Get total document count. */ -$content = $connector->send(new GetDocumentCountRequest($fileCabinetId, $dialogId))->dto(); +$content = $connector->send(new GetTotalNumberOfDocuments($fileCabinetId, $dialogId))->dto(); ``` ```php @@ -255,7 +264,7 @@ $content = $connector->send(new GetDocumentCountRequest($fileCabinetId, $dialogI * Upload new document with index values. */ -use CodebarAg\DocuWare\DTO\DocumentIndex\PrepareDTO; +use CodebarAg\DocuWare\DTO\Documents\DocumentIndex\PrepareDTO; $indexes = collect([ PrepareDTO::make('FIELD_TEXT', 'Indexed Text'), @@ -277,7 +286,7 @@ $document = $connector->send(new PostDocumentRequest( * Upload new data entry with index values. */ -use CodebarAg\DocuWare\DTO\DocumentIndex\PrepareDTO; +use CodebarAg\DocuWare\DTO\Documents\DocumentIndex\PrepareDTO; $indexes = collect([ PrepareDTO::make('FIELD_TEXT', 'Indexed Text'), @@ -302,13 +311,17 @@ $document = $connector->send(new PostDocumentRequest( $connector->send(new DeleteDocumentRequest($fileCabinetId, $document->id))->dto(); ``` +
+ ## 🔍 Search usage +
+ Search Usage ```php use CodebarAg\DocuWare\Facades\DocuWare; -use CodebarAg\DocuWare\Connectors\DocuWareStaticConnector; +use CodebarAg\DocuWare\Connectors\DocuWareConnector; -$connector = new DocuWareStaticConnector(); +$connector = new DocuWareConnector(); ``` ```php @@ -488,9 +501,13 @@ $paginatorRequest = DocuWare::searchRequestBuilder() $paginator = $connector->send($paginatorRequest)->dto(); ``` +
## 🖼 Make encrypted URL +
+ Make encrypted URL + ```php use CodebarAg\DocuWare\Facades\DocuWare; ``` @@ -535,47 +552,50 @@ $url = DocuWare::url() ->make(); ``` -Please see [Tests](tests/Feature/DocuWare.php) for more details. +
## 🏋️ Document Index Fields DTO showcase +
+ Document Index Fields DTO showcase + ```php -CodebarAg\DocuWare\DTO\DocumentIndex\IndexTextDTO { +CodebarAg\DocuWare\DTO\Documents\DocumentIndex\IndexTextDTO { +name: "FIELD_TEXT" // string +value: "Value" // null|string } ``` ```php -CodebarAg\DocuWare\DTO\DocumentIndex\IndexNumericDTO { +CodebarAg\DocuWare\DTO\Documents\DocumentIndex\IndexNumericDTO { +name: "FIELD_NUMERIC" // string +value: 1 // null|int } ``` ```php -CodebarAg\DocuWare\DTO\DocumentIndex\IndexDecimalDTO { +CodebarAg\DocuWare\DTO\Documents\DocumentIndex\IndexDecimalDTO { +name: "FIELD_DECIMAL" // string +value: 1.00 // null|int|float } ``` ```php -use CodebarAg\DocuWare\DTO\DocumentIndex\IndexDateDTO { + { +name: "FIELD_DATE" // string +value: now(), // null|Carbon } ``` ```php -use CodebarAg\DocuWare\DTO\DocumentIndex\IndexDateTimeDTO { + { +name: "FIELD_DATETIME" // string +value: now(), // null|Carbon } ``` ```php -use CodebarAg\DocuWare\DTO\DocumentIndex\IndexTableDTO { + { +name: "FIELD_TABLE" // string +value: collect([ 0 => [ @@ -596,7 +616,11 @@ use CodebarAg\DocuWare\DTO\DocumentIndex\IndexTableDTO { } ``` -## 🏋️ DTO showcase +
+ +## 🏋️ DTO Showcase +
+ DTO Showcase ```php CodebarAg\DocuWare\DTO\OrganizationIndex { @@ -725,65 +749,20 @@ CodebarAg\DocuWare\DTO\DocumentPaginator } ``` -## 🔐 Authentication - -You only need to provide correct credentials. Everything else is automatically -handled from the package. Under the hood we are storing the authentication -cookie in the cache named *docuware.cookies*. - -You can run `php artisan docuware:list-auth-cookie` command to get your auth session that you can use in your `.env` -file `DOCUWARE_COOKIES` key. - -But if you need further control you can use the following methods to login and -logout with DocuWare: - -```php -use CodebarAg\DocuWare\Facades\DocuWare; -``` - -```php -/** - * Receive a cookie - */ - -DocuWare::cookie(string $url, string $username, string $password); -``` - -```php -/** - * Login with your credentials. You only need to login once. Afterwards the - * authentication cookie is stored in the cache as `docuware.cookies` and - * is used for all further requests. - */ - -DocuWare::login(); -``` +
-```php -/** - * Logout your current session. Removes the authentication cookie in the cache. - */ - -DocuWare::logout(); -``` - -### Manual authentication - -If you want to provide your own authentication cookie you can use the following connector -to authenticate with the DocuWare REST API: - -```php -use CodebarAg\DocuWare\Connectors\StaticCookieConnector; -``` ## 📦 Caching requests +
+ Caching requests + All Get Requests are cachable and will be cached by default. To determine if the response is cached you can use the following method: ```php -$connector = new DocuWareStaticConnector(); +$connector = new DocuWareConnector(); $response = $connector->send(new GetDocumentRequest($fileCabinetId, $documentId)); $response->isCached(); // false @@ -797,7 +776,7 @@ $response->isCached(); // true To invalidate the cache for a specific request you can use the following method: ```php -$connector = new DocuWareStaticConnector(); +$connector = new DocuWareConnector(); $request = new GetDocumentRequest($fileCabinetId, $documentId); $request->invalidateCache(); @@ -808,7 +787,7 @@ $response = $connector->send($request); To temporarily disable caching for a specific request you can use the following method: ```php -$connector = new DocuWareStaticConnector(); +$connector = new DocuWareConnector(); $request = new GetDocumentRequest($fileCabinetId, $documentId); $request->disableCaching(); @@ -816,8 +795,13 @@ $request->disableCaching(); $response = $connector->send($request); ``` +
+ ## 💥 Exceptions explained +
+ Exceptions explained + - `CodebarAg\DocuWare\Exceptions\UnableToMakeRequest` This is thrown if you are not authorized to make the request. @@ -887,6 +871,8 @@ DocuWareResponseLog::class => [ ], ``` +
+ ## 🔧 Configuration file You can publish the config file with: @@ -901,15 +887,6 @@ This is the contents of the published config file: ConnectionEnum::WITHOUT_COOKIE, /* |-------------------------------------------------------------------------- @@ -921,16 +898,6 @@ return [ 'cache_driver' => env('DOCUWARE_CACHE_DRIVER', env('CACHE_DRIVER', 'file')), - /* - |-------------------------------------------------------------------------- - | Cookies - |-------------------------------------------------------------------------- - | This variable is optional and only used if you want to set the request cookie manually. - | - */ - - 'cookies' => env('DOCUWARE_COOKIES'), - /* |-------------------------------------------------------------------------- | Requests timeout @@ -971,19 +938,6 @@ return [ 'passphrase' => env('DOCUWARE_PASSPHRASE'), - /* - |-------------------------------------------------------------------------- - | Authentication Cookie Lifetime - |-------------------------------------------------------------------------- - | - | Here you may define the amount of minutes the authentication cookie is - | valid. Afterwards it will be removed from the cache and you need to - | provide a fresh one. By default, the lifetime lasts for one year. - | - */ - - 'cookie_lifetime' => (int) env('DOCUWARE_COOKIE_LIFETIME', 525600), - /* |-------------------------------------------------------------------------- | Configurations @@ -1000,7 +954,7 @@ return [ * to false (default) or always a new one is executed when ForceRefresh is set to true. */ - 'force_refresh' => false, + 'force_refresh' => true, 'include_suggestions' => false, 'additional_result_fields' => [], ], @@ -1009,7 +963,7 @@ return [ 'lifetime_in_seconds' => env('DOCUWARE_CACHE_LIFETIME_IN_SECONDS', 60), ], ], - + /* |-------------------------------------------------------------------------- | Tests @@ -1020,7 +974,18 @@ return [ 'file_cabinet_id' => env('DOCUWARE_TESTS_FILE_CABINET_ID'), 'dialog_id' => env('DOCUWARE_TESTS_DIALOG_ID'), 'basket_id' => env('DOCUWARE_TESTS_BASKET_ID'), + 'section' => (int) env('DOCUWARE_TESTS_SECTION'), 'organization_id' => env('DOCUWARE_TESTS_ORGANIZATION_ID'), + 'document_id' => (int) env('DOCUWARE_TESTS_DOCUMENT_ID'), + 'document_file_size_preview' => (int) env('DOCUWARE_TESTS_DOCUMENT_FILE_SIZE_PREVIEW'), + 'document_file_size' => (int) env('DOCUWARE_TESTS_DOCUMENT_FILE_SIZE'), + 'document_count' => (int) env('DOCUWARE_TESTS_DOCUMENT_COUNT'), + 'document_thumbnail_mime_type' => env('DOCUWARE_TESTS_DOCUMENT_THUMBNAIL_MIME_TYPE'), + 'document_thumbnail_file_size' => (int) env('DOCUWARE_TESTS_DOCUMENT_THUMBNAIL_FILE_SIZE'), + 'document_ids' => json_decode(env('DOCUWARE_TESTS_DOCUMENTS_IDS', '[]')), + 'documents_file_size' => (int) env('DOCUWARE_TESTS_DOCUMENTS_FILE_SIZE'), + 'field_name' => env('DOCUWARE_TESTS_FIELD_NAME'), + 'field_name_2' => env('DOCUWARE_TESTS_FIELD_NAME_2'), ], ]; ``` @@ -1036,14 +1001,13 @@ cp phpunit.xml.dist phpunit.xml Modify environment variables in the phpunit.xml-file: ```xml - + - - - // Disable caching for tests + + diff --git a/config/laravel-docuware.php b/config/laravel-docuware.php index a9240f4..40246fc 100644 --- a/config/laravel-docuware.php +++ b/config/laravel-docuware.php @@ -12,16 +12,6 @@ 'cache_driver' => env('DOCUWARE_CACHE_DRIVER', env('CACHE_DRIVER', 'file')), - /* - |-------------------------------------------------------------------------- - | Cookies - |-------------------------------------------------------------------------- - | This variable is optional and only used if you want to set the request cookie manually. - | - */ - - 'cookies' => env('DOCUWARE_COOKIES'), - /* |-------------------------------------------------------------------------- | Requests timeout @@ -62,19 +52,6 @@ 'passphrase' => env('DOCUWARE_PASSPHRASE'), - /* - |-------------------------------------------------------------------------- - | Authentication Cookie Lifetime - |-------------------------------------------------------------------------- - | - | Here you may define the amount of minutes the authentication cookie is - | valid. Afterwards it will be removed from the cache and you need to - | provide a fresh one. By default, the lifetime lasts for one year. - | - */ - - 'cookie_lifetime' => (int) env('DOCUWARE_COOKIE_LIFETIME', 525600), - /* |-------------------------------------------------------------------------- | Configurations diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 7e1c7e6..a6dd8d1 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -37,11 +37,11 @@ + - diff --git a/src/Commands/ListAuthCookie.php b/src/Commands/ListAuthCookie.php deleted file mode 100644 index 0e3914d..0000000 --- a/src/Commands/ListAuthCookie.php +++ /dev/null @@ -1,52 +0,0 @@ -info('No cookie found for the Key "'.$cacheKey.'".'); - } - if ($cookieHash) { - $this->info($cookieHash); - if ($this->option('with-date')) { - $this->newLine(); - $this->info("Created At: {$cookieCreationDate}"); - } - } - - return Command::SUCCESS; - } -} diff --git a/src/Connectors/DocuWareConnector.php b/src/Connectors/DocuWareConnector.php new file mode 100644 index 0000000..e3a9037 --- /dev/null +++ b/src/Connectors/DocuWareConnector.php @@ -0,0 +1,34 @@ + 'application/json', + ]; + } + + protected function defaultAuth(): TokenAuthenticator + { + return new TokenAuthenticator($this->token); + } +} diff --git a/src/Connectors/DocuWareDynamicConnector.php b/src/Connectors/DocuWareDynamicConnector.php deleted file mode 100644 index f8eca50..0000000 --- a/src/Connectors/DocuWareDynamicConnector.php +++ /dev/null @@ -1,58 +0,0 @@ -configuration = $config; - - $this->cookieJar = CookieJar::fromArray( - [Auth::COOKIE_NAME => $this->configuration->cookie], - parse_url($config->url, PHP_URL_HOST) - ); - } - - /** - * @throws \Exception - */ - public function resolveBaseUrl(): string - { - return $this->configuration->url.'/DocuWare/Platform'; - } - - public function defaultHeaders(): array - { - return [ - 'Accept' => 'application/json', - ]; - } - - public function defaultConfig(): array - { - return [ - 'timeout' => $this->configuration->requestTimeoutInSeconds, - 'cookies' => $this->cookieJar, - ]; - } - - public function getCoookieJar(): CookieJar - { - return $this->cookieJar; - } - - public function getConfiguration(): Config - { - return $this->configuration; - } -} diff --git a/src/Connectors/DocuWareStaticConnector.php b/src/Connectors/DocuWareStaticConnector.php deleted file mode 100644 index e18ff25..0000000 --- a/src/Connectors/DocuWareStaticConnector.php +++ /dev/null @@ -1,50 +0,0 @@ -cookieJar = Auth::cookieJar() ?? throw new \Exception('No cookie jar found'); - } - - /** - * @throws \Exception - */ - public function resolveBaseUrl(): string - { - return config('laravel-docuware.credentials.url').'/DocuWare/Platform'; - } - - public function defaultHeaders(): array - { - return [ - 'Accept' => 'application/json', - ]; - } - - public function defaultConfig(): array - { - return [ - 'timeout' => config('laravel-docuware.timeout'), - 'cookies' => $this->cookieJar, - ]; - } - - public function getCoookieJar(): CookieJar - { - return $this->cookieJar; - } -} diff --git a/src/DTO/Authentication/OAuth/IdentityServiceConfiguration.php b/src/DTO/Authentication/OAuth/IdentityServiceConfiguration.php new file mode 100644 index 0000000..6c219a8 --- /dev/null +++ b/src/DTO/Authentication/OAuth/IdentityServiceConfiguration.php @@ -0,0 +1,86 @@ +addSeconds(Arr::get($data, 'expires_in')), + ); + } + + public function __construct( + public string $accessToken, + public string $tokenType, + public string $scope, + public int $expiresIn, + public Carbon $expiresAt, + ) { + } +} diff --git a/src/DTO/Authentication/OAuth/ResponsibleIdentityService.php b/src/DTO/Authentication/OAuth/ResponsibleIdentityService.php new file mode 100644 index 0000000..dc52ce7 --- /dev/null +++ b/src/DTO/Authentication/OAuth/ResponsibleIdentityService.php @@ -0,0 +1,22 @@ +toArray() === [], UnableToLoginNoCookies::create()); - - $data = collect($cookieJar->toArray()) - ->reject(fn (array $cookie) => Arr::get($cookie, 'Value') === '') - ->firstWhere('Name', '.DWPLATFORMAUTH'); - - return new self( - cookie: Arr::get($data, 'Value'), - cookie_created_at: now(), - cookie_lifetime_until: now()->addMinutes(525600 * 0.75), - ); - } -} diff --git a/src/DTO/Document.php b/src/DTO/Documents/Document.php similarity index 98% rename from src/DTO/Document.php rename to src/DTO/Documents/Document.php index 9e464e5..f3117c4 100644 --- a/src/DTO/Document.php +++ b/src/DTO/Documents/Document.php @@ -1,8 +1,9 @@ config()->add('cookies', $cookieJar); - - $response = $request->send(); - - event(new DocuWareResponseLog($response)); - - EnsureValidResponse::from($response); - - return Cookie::make($cookieJar); - - } - - /** - * @throws InvalidResponseClassException - * @throws \Throwable - * @throws \ReflectionException - * @throws PendingRequestException - */ - public function login(): void - { - EnsureValidCredentials::check(); - // Checks if already logged in, if not, logs in - EnsureValidCookie::check(); - } - - /** - * @throws InvalidResponseClassException - * @throws \Throwable - * @throws \ReflectionException - * @throws PendingRequestException - */ - public function logout(): void - { - // SoloRequest - $request = new GetLogoffRequest(); - - $response = $request->send(); - - event(new DocuWareResponseLog($response)); - - Auth::forget(); - - $response->throw(); + public function getNewAuthenticationOAuthToken( + ?string $username = '', + ?string $password = '', + ?string $grantType = 'password', + ?string $clientId = 'docuware.platform.net.client' + ): RequestTokenDto { + $responsibleIdentityServiceResponse = (new GetResponsibleIdentityService())->send(); + + $identityServiceConfigurationResponse = (new GetIdentityServiceConfiguration( + identityServiceUrl: $responsibleIdentityServiceResponse->dto()->identityServiceUrl + ))->send(); + + $requestTokenResponse = (new RequestToken( + tokenEndpoint: $identityServiceConfigurationResponse->dto()->tokenEndpoint, + username: $username, + password: $password, + grantType: $grantType, + clientId: $clientId, + ))->send(); + + return $requestTokenResponse->dto(); } public function searchRequestBuilder(): DocuWareSearchRequestBuilder diff --git a/src/Facades/DocuWare.php b/src/Facades/DocuWare.php index 5ed0fa1..3d882b1 100644 --- a/src/Facades/DocuWare.php +++ b/src/Facades/DocuWare.php @@ -6,13 +6,13 @@ use CodebarAg\DocuWare\DocuWareSearchRequestBuilder; use CodebarAg\DocuWare\DocuWareUrl; use CodebarAg\DocuWare\DTO\Cookie; -use CodebarAg\DocuWare\DTO\Dialog; -use CodebarAg\DocuWare\DTO\Document; -use CodebarAg\DocuWare\DTO\DocumentThumbnail; -use CodebarAg\DocuWare\DTO\Field; -use CodebarAg\DocuWare\DTO\FileCabinet; -use CodebarAg\DocuWare\DTO\Organization; -use CodebarAg\DocuWare\DTO\OrganizationIndex; +use CodebarAg\DocuWare\DTO\Documents\Document; +use CodebarAg\DocuWare\DTO\Documents\DocumentThumbnail; +use CodebarAg\DocuWare\DTO\Documents\Field; +use CodebarAg\DocuWare\DTO\FileCabinets\Dialog; +use CodebarAg\DocuWare\DTO\FileCabinets\General\FileCabinetInformation; +use CodebarAg\DocuWare\DTO\General\Organization\Organization; +use CodebarAg\DocuWare\DTO\General\Organization\OrganizationIndex; use Illuminate\Support\Collection; use Illuminate\Support\Facades\Facade; @@ -24,7 +24,7 @@ * @method static void logout() * @method static Organization getOrganization(string $organizationId) * @method static Collection|OrganizationIndex[] getOrganizations() - * @method static Collection|FileCabinet[] getFileCabinets() + * @method static Collection|FileCabinetInformation[] getFileCabinets() * @method static Collection|Field[] getFields(string $fileCabinetId) * @method static Collection|Dialog[] getDialogs(string $fileCabinetId) * @method static array getSelectList(string $fileCabinetId, string $dialogId, string $fieldName) diff --git a/src/Requests/Auth/GetLogoffRequest.php b/src/Requests/Auth/GetLogoffRequest.php deleted file mode 100644 index dc931cc..0000000 --- a/src/Requests/Auth/GetLogoffRequest.php +++ /dev/null @@ -1,22 +0,0 @@ -url.'/DocuWare/Platform/Account/Logon'; - } - - protected function defaultBody(): array - { - return [ - 'UserName' => $this->username, - 'Password' => $this->password, - 'RememberMe' => $this->rememberMe, - 'RedirectToMyselfInCaseOfError' => $this->redirectToMyselfInCaseOfError, - 'LicenseType' => $this->licenseType, - ]; - } - - public function createDtoFromResponse(Response $response): Response - { - event(new DocuWareResponseLog($response)); - - EnsureValidResponse::from($response); - - return $response; - } -} diff --git a/src/Requests/Auth/PostLogonRequest.php b/src/Requests/Auth/PostLogonRequest.php deleted file mode 100644 index 7345c0d..0000000 --- a/src/Requests/Auth/PostLogonRequest.php +++ /dev/null @@ -1,31 +0,0 @@ - config('laravel-docuware.credentials.username'), - 'Password' => config('laravel-docuware.credentials.password'), - 'RememberMe' => false, - 'RedirectToMyselfInCaseOfError' => false, - 'LicenseType' => null, - ]; - } -} diff --git a/src/Requests/Authentication/OAuth/GetIdentityServiceConfiguration.php b/src/Requests/Authentication/OAuth/GetIdentityServiceConfiguration.php new file mode 100644 index 0000000..dfe465a --- /dev/null +++ b/src/Requests/Authentication/OAuth/GetIdentityServiceConfiguration.php @@ -0,0 +1,41 @@ +identityServiceUrl.'/.well-known/openid-configuration'; + } + + public function defaultHeaders(): array + { + return [ + 'Accept' => 'application/json', + ]; + } + + public function createDtoFromResponse(Response $response): IdentityServiceConfiguration + { + event(new DocuWareResponseLog($response)); + + EnsureValidResponse::from($response); + + return IdentityServiceConfiguration::make($response->json()); + } +} diff --git a/src/Requests/Authentication/OAuth/GetResponsibleIdentityService.php b/src/Requests/Authentication/OAuth/GetResponsibleIdentityService.php new file mode 100644 index 0000000..35f4c73 --- /dev/null +++ b/src/Requests/Authentication/OAuth/GetResponsibleIdentityService.php @@ -0,0 +1,33 @@ + 'application/json', + ]; + } + + public function createDtoFromResponse(Response $response): ResponsibleIdentityService + { + return GetResponsibleIdentityServiceResponse::fromResponse($response); + } +} diff --git a/src/Requests/Authentication/OAuth/RequestToken.php b/src/Requests/Authentication/OAuth/RequestToken.php new file mode 100644 index 0000000..091c529 --- /dev/null +++ b/src/Requests/Authentication/OAuth/RequestToken.php @@ -0,0 +1,55 @@ +tokenEndpoint; + } + + public function defaultHeaders(): array + { + return [ + 'Accept' => 'application/json', + ]; + } + + public function defaultBody(): array + { + return [ + 'scope' => 'docuware.platform', + 'grant_type' => $this->grantType, + 'client_id' => $this->clientId, + 'username' => filled($this->username) ? $this->username : config('laravel-docuware.credentials.username'), + 'password' => filled($this->password) ? $this->password : config('laravel-docuware.credentials.password'), + ]; + } + + public function createDtoFromResponse(Response $response): RequestTokenDto + { + return RequestTokenResponse::fromResponse($response); + } +} diff --git a/src/Requests/Document/GetDocumentsDownloadRequest.php b/src/Requests/Document/GetDocumentsDownloadRequest.php deleted file mode 100644 index 0653cd3..0000000 --- a/src/Requests/Document/GetDocumentsDownloadRequest.php +++ /dev/null @@ -1,64 +0,0 @@ -documentId = Arr::get($documentIds, 0); - $this->documentIds = array_slice($documentIds, 1); - } - - public function resolveEndpoint(): string - { - return '/FileCabinets/'.$this->fileCabinetId.'/Documents/'.$this->documentId.'/FileDownload'; - } - - public function resolveCacheDriver(): LaravelCacheDriver - { - return new LaravelCacheDriver(Cache::store(config('laravel-docuware.configurations.cache.driver'))); - } - - public function cacheExpiryInSeconds(): int - { - return config('laravel-docuware.configurations.cache.lifetime_in_seconds', 3600); - } - - public function defaultQuery(): array - { - return [ - 'keepAnnotations' => 'false', - 'append' => implode(',', $this->documentIds), - ]; - } - - public function createDtoFromResponse(Response $response): string - { - return GetDocumentsDownloadResponse::fromResponse($response); - } -} diff --git a/src/Requests/Document/GetDocumentDownloadRequest.php b/src/Requests/Documents/Download/DownloadDocument.php similarity index 82% rename from src/Requests/Document/GetDocumentDownloadRequest.php rename to src/Requests/Documents/Download/DownloadDocument.php index 09c2a64..27b48aa 100644 --- a/src/Requests/Document/GetDocumentDownloadRequest.php +++ b/src/Requests/Documents/Download/DownloadDocument.php @@ -1,8 +1,8 @@ organizationId; + return '/FileCabinets/'.$this->fileCabinetId; } public function resolveCacheDriver(): LaravelCacheDriver @@ -38,8 +38,8 @@ public function cacheExpiryInSeconds(): int return config('laravel-docuware.configurations.cache.lifetime_in_seconds', 3600); } - public function createDtoFromResponse(Response $response): Organization + public function createDtoFromResponse(Response $response): FileCabinetInformation { - return GetOrganizationResponse::fromResponse($response); + return GetFileCabinetInformationResponse::fromResponse($response); } } diff --git a/src/Requests/Document/GetDocumentCountRequest.php b/src/Requests/FileCabinets/General/GetTotalNumberOfDocuments.php similarity index 72% rename from src/Requests/Document/GetDocumentCountRequest.php rename to src/Requests/FileCabinets/General/GetTotalNumberOfDocuments.php index d33b6e0..5ec2f1d 100644 --- a/src/Requests/Document/GetDocumentCountRequest.php +++ b/src/Requests/FileCabinets/General/GetTotalNumberOfDocuments.php @@ -1,8 +1,8 @@ fileCabinetId.'/Query/CountExpression'; } + public function defaultQuery(): array + { + return [ + 'DialogId' => $this->searchDialogId, + ]; + } + public function resolveCacheDriver(): LaravelCacheDriver { return new LaravelCacheDriver(Cache::store(config('laravel-docuware.configurations.cache.driver'))); @@ -38,15 +45,8 @@ public function cacheExpiryInSeconds(): int return config('laravel-docuware.configurations.cache.lifetime_in_seconds', 3600); } - public function defaultQuery(): array - { - return [ - 'dialogId' => $this->dialogId, - ]; - } - public function createDtoFromResponse(Response $response): int { - return GetDocumentCountResponse::fromResponse($response); + return GetTotalNumberOfDocumentsResponse::fromResponse($response); } } diff --git a/src/Requests/Document/GetDocumentRequest.php b/src/Requests/FileCabinets/Search/GetASpecificDocumentFromAFileCabinet.php similarity index 73% rename from src/Requests/Document/GetDocumentRequest.php rename to src/Requests/FileCabinets/Search/GetASpecificDocumentFromAFileCabinet.php index 9b11bc3..fb9a0ac 100644 --- a/src/Requests/Document/GetDocumentRequest.php +++ b/src/Requests/FileCabinets/Search/GetASpecificDocumentFromAFileCabinet.php @@ -1,9 +1,9 @@ page, $this->perPage); + return GetDocumentsFromAFileCabinetResponse::fromResponse($response, $this->page, $this->perPage); } } diff --git a/src/Requests/SelectList/GetSelectListRequest.php b/src/Requests/FileCabinets/SelectLists/GetSelectLists.php similarity index 82% rename from src/Requests/SelectList/GetSelectListRequest.php rename to src/Requests/FileCabinets/SelectLists/GetSelectLists.php index e6dd819..a21eb16 100644 --- a/src/Requests/SelectList/GetSelectListRequest.php +++ b/src/Requests/FileCabinets/SelectLists/GetSelectLists.php @@ -1,8 +1,8 @@ $this->organizationId, + ]; + } + public function resolveCacheDriver(): LaravelCacheDriver { return new LaravelCacheDriver(Cache::store(config('laravel-docuware.configurations.cache.driver'))); @@ -36,6 +51,6 @@ public function cacheExpiryInSeconds(): int public function createDtoFromResponse(Response $response): Collection|Enumerable { - return GetFileCabinetsResponse::fromResponse($response); + return GetAllFileCabinetsAndDocumentTraysResponse::fromResponse($response); } } diff --git a/src/Requests/General/Organization/GetLoginToken.php b/src/Requests/General/Organization/GetLoginToken.php new file mode 100644 index 0000000..5ece850 --- /dev/null +++ b/src/Requests/General/Organization/GetLoginToken.php @@ -0,0 +1,58 @@ + $this->targetProducts, + 'Usage' => $this->usage, + 'Lifetime' => $this->lifetime, + ]; + } + + public function resolveCacheDriver(): LaravelCacheDriver + { + return new LaravelCacheDriver(Cache::store(config('laravel-docuware.configurations.cache.driver'))); + } + + public function cacheExpiryInSeconds(): int + { + return config('laravel-docuware.configurations.cache.lifetime_in_seconds', 3600); + } + + public function createDtoFromResponse(Response $response): string + { + return RequestLoginTokenResponse::fromResponse($response); + } +} diff --git a/src/Requests/Organization/GetOrganizationsRequest.php b/src/Requests/General/Organization/GetOrganization.php similarity index 77% rename from src/Requests/Organization/GetOrganizationsRequest.php rename to src/Requests/General/Organization/GetOrganization.php index 2187233..1518ebb 100644 --- a/src/Requests/Organization/GetOrganizationsRequest.php +++ b/src/Requests/General/Organization/GetOrganization.php @@ -1,8 +1,8 @@ json()); + } +} diff --git a/src/Responses/Authentication/OAuth/RequestTokenResponse.php b/src/Responses/Authentication/OAuth/RequestTokenResponse.php new file mode 100644 index 0000000..c5fc13c --- /dev/null +++ b/src/Responses/Authentication/OAuth/RequestTokenResponse.php @@ -0,0 +1,20 @@ +json()); + } +} diff --git a/src/Responses/Document/GetDocumentDownloadResponse.php b/src/Responses/Documents/Download/DownloadDocumentResponse.php similarity index 79% rename from src/Responses/Document/GetDocumentDownloadResponse.php rename to src/Responses/Documents/Download/DownloadDocumentResponse.php index 0741be1..7b2cdc2 100644 --- a/src/Responses/Document/GetDocumentDownloadResponse.php +++ b/src/Responses/Documents/Download/DownloadDocumentResponse.php @@ -1,12 +1,12 @@ throw()->json(); + + return FileCabinetInformation::fromJson($cabinet); + } +} diff --git a/src/Responses/Document/GetDocumentCountResponse.php b/src/Responses/FileCabinets/General/GetTotalNumberOfDocumentsResponse.php similarity index 88% rename from src/Responses/Document/GetDocumentCountResponse.php rename to src/Responses/FileCabinets/General/GetTotalNumberOfDocumentsResponse.php index 6c97d7a..6fd2f0d 100644 --- a/src/Responses/Document/GetDocumentCountResponse.php +++ b/src/Responses/FileCabinets/General/GetTotalNumberOfDocumentsResponse.php @@ -1,6 +1,6 @@ throw()->json('Organization'); - return collect($organizations)->map(fn (array $cabinet) => OrganizationIndex::fromJson($cabinet)); + return collect($organizations)->map(fn (array $organization) => Organization::fromJson($organization)); } } diff --git a/src/Responses/Document/GetDocumentsDownloadResponse.php b/src/Responses/General/Organization/RequestLoginTokenResponse.php similarity index 70% rename from src/Responses/Document/GetDocumentsDownloadResponse.php rename to src/Responses/General/Organization/RequestLoginTokenResponse.php index d7891c7..e5b82d3 100644 --- a/src/Responses/Document/GetDocumentsDownloadResponse.php +++ b/src/Responses/General/Organization/RequestLoginTokenResponse.php @@ -1,12 +1,12 @@ throw()->body(); + return $response->body(); } } diff --git a/src/Responses/Organization/GetOrganizationResponse.php b/src/Responses/Organization/GetOrganizationResponse.php deleted file mode 100644 index 3693e79..0000000 --- a/src/Responses/Organization/GetOrganizationResponse.php +++ /dev/null @@ -1,22 +0,0 @@ -throw()->json(); - - return Organization::fromJson($organization); - } -} diff --git a/src/Responses/Search/GetSearchResponse.php b/src/Responses/Search/GetSearchResponse.php index 42e4535..0faa887 100644 --- a/src/Responses/Search/GetSearchResponse.php +++ b/src/Responses/Search/GetSearchResponse.php @@ -2,7 +2,7 @@ namespace CodebarAg\DocuWare\Responses\Search; -use CodebarAg\DocuWare\DTO\DocumentPaginator; +use CodebarAg\DocuWare\DTO\Documents\DocumentPaginator; use CodebarAg\DocuWare\Events\DocuWareResponseLog; use CodebarAg\DocuWare\Support\EnsureValidResponse; use Exception; diff --git a/src/Support/ParseValue.php b/src/Support/ParseValue.php index 1637b2f..46db420 100644 --- a/src/Support/ParseValue.php +++ b/src/Support/ParseValue.php @@ -3,7 +3,7 @@ namespace CodebarAg\DocuWare\Support; use Carbon\Carbon; -use CodebarAg\DocuWare\DTO\TableRow; +use CodebarAg\DocuWare\DTO\Documents\TableRow; use Illuminate\Support\Arr; use Illuminate\Support\Collection; use Illuminate\Support\Str; diff --git a/tests/Console/ListAuthCookieCommandTest.php b/tests/Console/ListAuthCookieCommandTest.php deleted file mode 100644 index 800b811..0000000 --- a/tests/Console/ListAuthCookieCommandTest.php +++ /dev/null @@ -1,32 +0,0 @@ -group('console'); - -beforeEach(function () { - Auth::forget(); - EnsureValidCookie::check(); - - if (! Arr::get(Auth::cookies(), Auth::COOKIE_NAME)) { - $this->markTestIncomplete('No cookie configured'); - } -}); - -it('lists auth cookie without creation date', function () { - $this->artisan('docuware:list-auth-cookie') - ->assertSuccessful() - ->expectsOutputToContain(Arr::get(Auth::cookies(), Auth::COOKIE_NAME)) - ->doesntExpectOutputToContain('Created At:'); -}); - -it('lists auth cookie with creation date', function () { - $this->artisan('docuware:list-auth-cookie', ['--with-date' => true]) - ->assertSuccessful() - ->expectsOutputToContain(Arr::get(Auth::cookies(), Auth::COOKIE_NAME)) - ->expectsOutputToContain('Created At:'); -}); diff --git a/tests/Feature/DTOTest.php b/tests/Feature/DTOTest.php index d82d677..412eef2 100644 --- a/tests/Feature/DTOTest.php +++ b/tests/Feature/DTOTest.php @@ -2,16 +2,16 @@ namespace CodebarAg\DocuWare\Tests\Feature; -use CodebarAg\DocuWare\DTO\Dialog; -use CodebarAg\DocuWare\DTO\Document; -use CodebarAg\DocuWare\DTO\DocumentField; -use CodebarAg\DocuWare\DTO\DocumentPaginator; -use CodebarAg\DocuWare\DTO\Field; -use CodebarAg\DocuWare\DTO\FileCabinet; -use CodebarAg\DocuWare\DTO\Organization; -use CodebarAg\DocuWare\DTO\OrganizationIndex; +use CodebarAg\DocuWare\DTO\Documents\Document; +use CodebarAg\DocuWare\DTO\Documents\DocumentField; +use CodebarAg\DocuWare\DTO\Documents\DocumentPaginator; +use CodebarAg\DocuWare\DTO\Documents\Field; +use CodebarAg\DocuWare\DTO\Documents\TableRow; +use CodebarAg\DocuWare\DTO\FileCabinets\Dialog; +use CodebarAg\DocuWare\DTO\FileCabinets\General\FileCabinetInformation; +use CodebarAg\DocuWare\DTO\General\Organization\Organization; +use CodebarAg\DocuWare\DTO\General\Organization\OrganizationIndex; use CodebarAg\DocuWare\DTO\SuggestionField; -use CodebarAg\DocuWare\DTO\TableRow; uses()->group('dto'); @@ -26,8 +26,8 @@ }); it('create a fake file cabinet', function () { - $fake = FileCabinet::fake(); - $this->assertInstanceOf(FileCabinet::class, $fake); + $fake = FileCabinetInformation::fake(); + $this->assertInstanceOf(FileCabinetInformation::class, $fake); }); it('create a fake dialog', function () { diff --git a/tests/Feature/DocuWareAuthenticationTest.php b/tests/Feature/DocuWareAuthenticationTest.php new file mode 100644 index 0000000..e5e07b9 --- /dev/null +++ b/tests/Feature/DocuWareAuthenticationTest.php @@ -0,0 +1,46 @@ +send(); + + expect($responsibleIdentityServiceResponse->dto())->toBeInstanceOf(ResponsibleIdentityService::class); +})->group('authentication'); + +it('can get oath identity service configuration', function () { + $responsibleIdentityServiceResponse = (new GetResponsibleIdentityService())->send(); + + $identityServiceConfigurationResponse = (new GetIdentityServiceConfiguration( + identityServiceUrl: $responsibleIdentityServiceResponse->dto()->identityServiceUrl + ))->send(); + + expect($identityServiceConfigurationResponse->dto())->toBeInstanceOf(IdentityServiceConfiguration::class); +})->group('authentication'); + +it('can get oath request token', function () { + $responsibleIdentityServiceResponse = (new GetResponsibleIdentityService())->send(); + + $identityServiceConfigurationResponse = (new GetIdentityServiceConfiguration( + identityServiceUrl: $responsibleIdentityServiceResponse->dto()->identityServiceUrl + ))->send(); + + $requestTokenResponse = (new \CodebarAg\DocuWare\Requests\Authentication\OAuth\RequestToken( + tokenEndpoint: $identityServiceConfigurationResponse->dto()->tokenEndpoint + ))->send(); + + expect($requestTokenResponse->dto())->toBeInstanceOf(RequestToken::class); +})->group('authentication'); + +it('can authenticate with DocuWare', function () { + $res = DocuWare::getNewAuthenticationOAuthToken(); + + ray($res); + + expect($res)->toBeInstanceOf(RequestToken::class); +})->group('authentication'); diff --git a/tests/Feature/DocuWareConnectorTest.php b/tests/Feature/DocuWareConnectorTest.php deleted file mode 100644 index a2840ac..0000000 --- a/tests/Feature/DocuWareConnectorTest.php +++ /dev/null @@ -1,29 +0,0 @@ -defaultConfig(), 'timeout'); - //$cookies = Arr::get($connector->defaultConfig(), 'cookies'); - - expect($timeout)->toBe(config('laravel-docuware.timeout')); - //expect($cookies)->toBe(Auth::cookieJar()); - -})->group('connector'); - -it('returns the correct base url', function () { - $connector = new DocuWareStaticConnector(); - - expect($connector->resolveBaseUrl())->toBe(config('laravel-docuware.credentials.url').'/DocuWare/Platform'); -})->group('connector'); - -it('returns the correct default headers', function () { - $connector = new DocuWareStaticConnector(); - - expect($connector->defaultHeaders())->toBe([ - 'Accept' => 'application/json', - ]); -})->group('connector'); diff --git a/tests/Feature/Facades/DocuWare/CookieTest.php b/tests/Feature/Facades/DocuWare/CookieTest.php deleted file mode 100644 index 688d928..0000000 --- a/tests/Feature/Facades/DocuWare/CookieTest.php +++ /dev/null @@ -1,13 +0,0 @@ -not()->toBeEmpty(); -}); diff --git a/tests/Feature/Requests/Dialogs/GetDialogRequestTest.php b/tests/Feature/Requests/Dialogs/GetDialogRequestTest.php index d85e808..fccb753 100644 --- a/tests/Feature/Requests/Dialogs/GetDialogRequestTest.php +++ b/tests/Feature/Requests/Dialogs/GetDialogRequestTest.php @@ -1,8 +1,8 @@ connector->send(new GetDialogRequest($fileCabinetId, $dialogId))->dto(); + $dialog = $this->connector->send(new GetASpecificDialog($fileCabinetId, $dialogId))->dto(); $this->assertInstanceOf(Dialog::class, $dialog); diff --git a/tests/Feature/Requests/Dialogs/GetDialogsRequestTest.php b/tests/Feature/Requests/Dialogs/GetDialogsRequestTest.php index c9f344d..13e19e9 100644 --- a/tests/Feature/Requests/Dialogs/GetDialogsRequestTest.php +++ b/tests/Feature/Requests/Dialogs/GetDialogsRequestTest.php @@ -1,8 +1,8 @@ connector->send(new GetDialogsRequest($fileCabinetId))->dto(); + $dialogs = $this->connector->send(new GetAllDialogs($fileCabinetId))->dto(); $this->assertInstanceOf(Collection::class, $dialogs); diff --git a/tests/Feature/Requests/Document/GetDocumentCountRequestTest.php b/tests/Feature/Requests/Document/GetDocumentCountRequestTest.php index d23b655..59ae74c 100644 --- a/tests/Feature/Requests/Document/GetDocumentCountRequestTest.php +++ b/tests/Feature/Requests/Document/GetDocumentCountRequestTest.php @@ -1,8 +1,8 @@ connector->send(new PostDocumentRequest( + $document = $this->connector->send(new CreateDataRecord( $fileCabinetId, '::fake-file-content::', 'example.txt' ))->dto(); - $count = $this->connector->send(new GetDocumentCountRequest( + $count = $this->connector->send(new GetTotalNumberOfDocuments( $fileCabinetId, $dialogId ))->dto(); diff --git a/tests/Feature/Requests/Document/GetDocumentDownloadRequestTest.php b/tests/Feature/Requests/Document/GetDocumentDownloadRequestTest.php index d27fbed..d901fdc 100644 --- a/tests/Feature/Requests/Document/GetDocumentDownloadRequestTest.php +++ b/tests/Feature/Requests/Document/GetDocumentDownloadRequestTest.php @@ -1,8 +1,8 @@ connector->send(new PostDocumentRequest( + $document = $this->connector->send(new CreateDataRecord( $fileCabinetId, '::fake-file-content::', 'example.txt' ))->dto(); - $contents = $this->connector->send(new GetDocumentDownloadRequest( + $contents = $this->connector->send(new DownloadDocument( $fileCabinetId, $document->id ))->dto(); diff --git a/tests/Feature/Requests/Document/GetDocumentPreviewRequestTest.php b/tests/Feature/Requests/Document/GetDocumentPreviewRequestTest.php index 651ffb4..a560958 100644 --- a/tests/Feature/Requests/Document/GetDocumentPreviewRequestTest.php +++ b/tests/Feature/Requests/Document/GetDocumentPreviewRequestTest.php @@ -1,8 +1,8 @@ connector->send(new PostDocumentRequest( + $document = $this->connector->send(new CreateDataRecord( $fileCabinetId, '::fake-file-content::', 'example.txt' diff --git a/tests/Feature/Requests/Document/GetDocumentRequestTest.php b/tests/Feature/Requests/Document/GetDocumentRequestTest.php index 2d483d0..41331f2 100644 --- a/tests/Feature/Requests/Document/GetDocumentRequestTest.php +++ b/tests/Feature/Requests/Document/GetDocumentRequestTest.php @@ -1,9 +1,9 @@ connector->send(new PostDocumentRequest( + $document = $this->connector->send(new CreateDataRecord( $fileCabinetId, '::fake-file-content::', 'example.txt' ))->dto(); - $getdocument = $this->connector->send(new GetDocumentRequest($fileCabinetId, $document->id))->dto(); + $getdocument = $this->connector->send(new GetASpecificDocumentFromAFileCabinet($fileCabinetId, $document->id))->dto(); $this->assertInstanceOf(Document::class, $getdocument); diff --git a/tests/Feature/Requests/Document/GetDocumentsDownloadRequestTest.php b/tests/Feature/Requests/Document/GetDocumentsDownloadRequestTest.php deleted file mode 100644 index 19ffd96..0000000 --- a/tests/Feature/Requests/Document/GetDocumentsDownloadRequestTest.php +++ /dev/null @@ -1,32 +0,0 @@ -connector->send(new PostDocumentRequest( - $fileCabinetId, - '::fake-file-content::', - 'example.txt' - ))->dto(); - - $document2 = $this->connector->send(new PostDocumentRequest( - $fileCabinetId, - '::fake-file-content::', - 'example.txt' - ))->dto(); - - $contents = $this->connector->send(new GetDocumentsDownloadRequest( - $fileCabinetId, - [$document1->id, $document2->id] - ))->dto(); - - $this->assertSame(478, strlen($contents)); - Event::assertDispatched(DocuWareResponseLog::class); -}); diff --git a/tests/Feature/Requests/Document/GetDocumentsRequestTest.php b/tests/Feature/Requests/Document/GetDocumentsRequestTest.php index b68acd9..4b801ff 100644 --- a/tests/Feature/Requests/Document/GetDocumentsRequestTest.php +++ b/tests/Feature/Requests/Document/GetDocumentsRequestTest.php @@ -1,25 +1,25 @@ connector->send(new PostDocumentRequest( + $this->connector->send(new CreateDataRecord( config('laravel-docuware.tests.file_cabinet_id'), '::fake-file-content::', 'example.txt' ))->dto(); - $this->connector->send(new PostDocumentRequest( + $this->connector->send(new CreateDataRecord( config('laravel-docuware.tests.file_cabinet_id'), '::fake-file-content::', 'example.txt' ))->dto(); - $documents = $this->connector->send(new GetDocumentsRequest( + $documents = $this->connector->send(new GetDocumentsFromAFileCabinet( config('laravel-docuware.tests.file_cabinet_id') ))->dto(); diff --git a/tests/Feature/Requests/Document/PostDocumentRequestTest.php b/tests/Feature/Requests/Document/PostDocumentRequestTest.php index 8942b4c..5d7ad43 100644 --- a/tests/Feature/Requests/Document/PostDocumentRequestTest.php +++ b/tests/Feature/Requests/Document/PostDocumentRequestTest.php @@ -1,10 +1,10 @@ connector->send(new PostDocumentRequest( + $document = $this->connector->send(new CreateDataRecord( $fileCabinetId, null, null, @@ -38,7 +38,7 @@ $fileContent = '::fake-file-content::'; $fileName = 'example.txt'; - $document = $this->connector->send(new PostDocumentRequest( + $document = $this->connector->send(new CreateDataRecord( $fileCabinetId, $fileContent, $fileName, diff --git a/tests/Feature/Requests/Document/PutDocumentFieldsRequestTest.php b/tests/Feature/Requests/Document/PutDocumentFieldsRequestTest.php index 4dc47bd..c3446d9 100644 --- a/tests/Feature/Requests/Document/PutDocumentFieldsRequestTest.php +++ b/tests/Feature/Requests/Document/PutDocumentFieldsRequestTest.php @@ -1,9 +1,9 @@ connector->send(new PostDocumentRequest( + $document = $this->connector->send(new CreateDataRecord( $fileCabinetId, '::fake-file-content::', 'example.txt' ))->dto(); - $response = $this->connector->send(new PutDocumentFieldsRequest( + $response = $this->connector->send(new UpdateIndexValues( $fileCabinetId, $document->id, collect([ @@ -37,13 +37,13 @@ $fileCabinetId = config('laravel-docuware.tests.file_cabinet_id'); - $document = $this->connector->send(new PostDocumentRequest( + $document = $this->connector->send(new CreateDataRecord( $fileCabinetId, '::fake-file-content::', 'example.txt' ))->dto(); - $response = $this->connector->send(new PutDocumentFieldsRequest( + $response = $this->connector->send(new UpdateIndexValues( $fileCabinetId, $document->id, collect([ diff --git a/tests/Feature/Requests/Document/Thumbnail/GetDocumentDownloadThumbnailRequestTest.php b/tests/Feature/Requests/Document/Thumbnail/GetDocumentDownloadThumbnailRequestTest.php index b479bd9..29c8757 100644 --- a/tests/Feature/Requests/Document/Thumbnail/GetDocumentDownloadThumbnailRequestTest.php +++ b/tests/Feature/Requests/Document/Thumbnail/GetDocumentDownloadThumbnailRequestTest.php @@ -1,9 +1,9 @@ connector->send(new PostDocumentRequest( + $document = $this->connector->send(new CreateDataRecord( $fileCabinetId, '::fake-file-content::', 'example.txt' @@ -23,7 +23,7 @@ $document->id, ))->dto(); - $contents = $this->connector->send(new GetDocumentDownloadThumbnailRequest( + $contents = $this->connector->send(new DownloadThumbnail( $fileCabinetId, $sections->first()->id, ))->dto(); diff --git a/tests/Feature/Requests/Fields/GetFieldsRequestTest.php b/tests/Feature/Requests/Fields/GetFieldsRequestTest.php index 2dd7809..b1e94c5 100644 --- a/tests/Feature/Requests/Fields/GetFieldsRequestTest.php +++ b/tests/Feature/Requests/Fields/GetFieldsRequestTest.php @@ -1,6 +1,6 @@ connector->send(new GetFileCabinetInformation(env('DOCUWARE_TESTS_FILE_CABINET_ID')))->dto(); + + $this->assertInstanceOf(FileCabinetInformation::class, $fileCabinet); + + Event::assertDispatched(DocuWareResponseLog::class); +}); diff --git a/tests/Feature/Requests/FileCabinets/GetFileCabinetsRequestTest.php b/tests/Feature/Requests/FileCabinets/GetFileCabinetsRequestTest.php deleted file mode 100644 index 6ad64bc..0000000 --- a/tests/Feature/Requests/FileCabinets/GetFileCabinetsRequestTest.php +++ /dev/null @@ -1,23 +0,0 @@ -connector->send(new GetFileCabinetsRequest())->dto(); - - $this->assertInstanceOf(Collection::class, $fileCabinets); - - foreach ($fileCabinets as $fileCabinet) { - $this->assertInstanceOf(FileCabinet::class, $fileCabinet); - } - - $this->assertNotCount(0, $fileCabinets); - Event::assertDispatched(DocuWareResponseLog::class); - -}); diff --git a/tests/Feature/Requests/Organization/GetOrganizationRequestTest.php b/tests/Feature/Requests/Organization/GetOrganizationRequestTest.php deleted file mode 100644 index 64d8d28..0000000 --- a/tests/Feature/Requests/Organization/GetOrganizationRequestTest.php +++ /dev/null @@ -1,17 +0,0 @@ -connector->send(new GetOrganizationRequest($orgID))->dto(); - - $this->assertInstanceOf(Organization::class, $organization); - Event::assertDispatched(DocuWareResponseLog::class); -}); diff --git a/tests/Feature/Requests/Organization/GetOrganizationsRequestTest.php b/tests/Feature/Requests/Organization/GetOrganizationsRequestTest.php index cb7566a..59e8e74 100644 --- a/tests/Feature/Requests/Organization/GetOrganizationsRequestTest.php +++ b/tests/Feature/Requests/Organization/GetOrganizationsRequestTest.php @@ -1,20 +1,20 @@ connector->send(new GetOrganizationsRequest())->dto(); + $organizations = $this->connector->send(new GetOrganization())->dto(); $this->assertInstanceOf(Collection::class, $organizations); foreach ($organizations as $organization) { - $this->assertInstanceOf(OrganizationIndex::class, $organization); + $this->assertInstanceOf(Organization::class, $organization); } $this->assertNotCount(0, $organizations); diff --git a/tests/Feature/Requests/Search/GetSearchRequestTest.php b/tests/Feature/Requests/Search/GetSearchRequestTest.php index 44229ed..b429abf 100644 --- a/tests/Feature/Requests/Search/GetSearchRequestTest.php +++ b/tests/Feature/Requests/Search/GetSearchRequestTest.php @@ -2,11 +2,11 @@ use Carbon\Carbon; use CodebarAg\DocuWare\DocuWare; -use CodebarAg\DocuWare\DTO\DocumentIndex\IndexTextDTO; -use CodebarAg\DocuWare\DTO\DocumentPaginator; +use CodebarAg\DocuWare\DTO\Documents\DocumentIndex\IndexTextDTO; +use CodebarAg\DocuWare\DTO\Documents\DocumentPaginator; use CodebarAg\DocuWare\Events\DocuWareResponseLog; use CodebarAg\DocuWare\Exceptions\UnableToSearch; -use CodebarAg\DocuWare\Requests\Document\PostDocumentRequest; +use CodebarAg\DocuWare\Requests\FileCabinets\Upload\CreateDataRecord; use Illuminate\Support\Facades\Event; it('can search documents', function () { @@ -212,7 +212,7 @@ $fileContent = '::fake-file-content::'; $fileName = 'example.txt'; - $documentOne = $this->connector->send(new PostDocumentRequest( + $documentOne = $this->connector->send(new CreateDataRecord( $fileCabinetId, $fileContent, $fileName, @@ -222,7 +222,7 @@ ]), ))->dto(); - $documentTwo = $this->connector->send(new PostDocumentRequest( + $documentTwo = $this->connector->send(new CreateDataRecord( $fileCabinetId, $fileContent, $fileName, @@ -232,7 +232,7 @@ ]), ))->dto(); - $documentThree = $this->connector->send(new PostDocumentRequest( + $documentThree = $this->connector->send(new CreateDataRecord( $fileCabinetId, $fileContent, $fileName, diff --git a/tests/Feature/Requests/SelectList/GetSelectListRequest.php b/tests/Feature/Requests/SelectList/GetSelectListRequest.php index c0f89f2..6b98cba 100644 --- a/tests/Feature/Requests/SelectList/GetSelectListRequest.php +++ b/tests/Feature/Requests/SelectList/GetSelectListRequest.php @@ -1,9 +1,9 @@ connector->send(new PostDocumentRequest( + $document = $this->connector->send(new CreateDataRecord( $fileCabinetId, '::fake-file-content::', 'example.txt', @@ -22,7 +22,7 @@ ]) ))->dto(); - $types = $this->connector->send(new GetSelectListRequest( + $types = $this->connector->send(new GetSelectLists( $fileCabinetId, $dialogId, $fieldName, diff --git a/tests/Pest.php b/tests/Pest.php index 20ac8c5..3564320 100644 --- a/tests/Pest.php +++ b/tests/Pest.php @@ -1,14 +1,11 @@ group('docuware') ->in(__DIR__); uses() @@ -24,29 +21,23 @@ */ function getConnector(): object { - EnsureValidCookie::check(); - - $config = Config::make([ - 'url' => config('laravel-docuware.credentials.url'), - 'cookie' => config('laravel-docuware.cookies'), - 'cache_driver' => config('laravel-docuware.configurations.cache.driver'), - 'cache_lifetime_in_seconds' => config('laravel-docuware.configurations.cache.lifetime_in_seconds'), - 'request_timeout_in_seconds' => config('laravel-docuware.timeout'), - ]); + if (! env('DOCUWARE_TOKEN')) { + throw new Exception('DOCUWARE_TOKEN is not set in the .env file.'); + } - return new DocuWareStaticConnector($config); + return new DocuWareConnector(env('DOCUWARE_TOKEN')); } function clearFiles(): void { $connector = getConnector(); - $paginator = $connector->send(new GetDocumentsRequest( + $paginator = $connector->send(new GetDocumentsFromAFileCabinet( config('laravel-docuware.tests.file_cabinet_id') ))->dto(); foreach ($paginator->documents as $document) { - $connector->send(new DeleteDocumentRequest( + $connector->send(new DeleteDocument( config('laravel-docuware.tests.file_cabinet_id'), $document->id, ))->dto(); diff --git a/tests/Unit/DTO/DocumentIndex/IndexDateDTOTest.php b/tests/Unit/DTO/DocumentIndex/IndexDateDTOTest.php index 8a68faa..da4913d 100644 --- a/tests/Unit/DTO/DocumentIndex/IndexDateDTOTest.php +++ b/tests/Unit/DTO/DocumentIndex/IndexDateDTOTest.php @@ -2,7 +2,7 @@ namespace CodebarAg\DocuWare\Tests\Unit\DTO; -use CodebarAg\DocuWare\DTO\DocumentIndex\IndexDateDTO; +use CodebarAg\DocuWare\DTO\Documents\DocumentIndex\IndexDateDTO; it('create index date dto', function () { diff --git a/tests/Unit/DTO/DocumentIndex/IndexDateTimeDTOTest.php b/tests/Unit/DTO/DocumentIndex/IndexDateTimeDTOTest.php index 6a5c391..baf2a0c 100644 --- a/tests/Unit/DTO/DocumentIndex/IndexDateTimeDTOTest.php +++ b/tests/Unit/DTO/DocumentIndex/IndexDateTimeDTOTest.php @@ -2,7 +2,7 @@ namespace CodebarAg\DocuWare\Tests\Unit\DTO; -use CodebarAg\DocuWare\DTO\DocumentIndex\IndexDateTimeDTO; +use CodebarAg\DocuWare\DTO\Documents\DocumentIndex\IndexDateTimeDTO; it('create index date time dto', function () { diff --git a/tests/Unit/DTO/DocumentIndex/IndexDecimalDTOTest.php b/tests/Unit/DTO/DocumentIndex/IndexDecimalDTOTest.php index 3aa463c..9154e64 100644 --- a/tests/Unit/DTO/DocumentIndex/IndexDecimalDTOTest.php +++ b/tests/Unit/DTO/DocumentIndex/IndexDecimalDTOTest.php @@ -2,7 +2,7 @@ namespace CodebarAg\DocuWare\Tests\Unit\DTO; -use CodebarAg\DocuWare\DTO\DocumentIndex\IndexDecimalDTO; +use CodebarAg\DocuWare\DTO\Documents\DocumentIndex\IndexDecimalDTO; it('create index numeric dto', function () { diff --git a/tests/Unit/DTO/DocumentIndex/IndexNumericDTOTest.php b/tests/Unit/DTO/DocumentIndex/IndexNumericDTOTest.php index 959ebb0..b7ae4d6 100644 --- a/tests/Unit/DTO/DocumentIndex/IndexNumericDTOTest.php +++ b/tests/Unit/DTO/DocumentIndex/IndexNumericDTOTest.php @@ -2,7 +2,7 @@ namespace CodebarAg\DocuWare\Tests\Unit\DTO; -use CodebarAg\DocuWare\DTO\DocumentIndex\IndexNumericDTO; +use CodebarAg\DocuWare\DTO\Documents\DocumentIndex\IndexNumericDTO; it('create index numeric dto', function () { diff --git a/tests/Unit/DTO/DocumentIndex/IndexTableDTOTest.php b/tests/Unit/DTO/DocumentIndex/IndexTableDTOTest.php index a77f145..db4761d 100644 --- a/tests/Unit/DTO/DocumentIndex/IndexTableDTOTest.php +++ b/tests/Unit/DTO/DocumentIndex/IndexTableDTOTest.php @@ -2,7 +2,7 @@ namespace CodebarAg\DocuWare\Tests\Unit\DTO; -use CodebarAg\DocuWare\DTO\DocumentIndex\IndexTableDTO; +use CodebarAg\DocuWare\DTO\Documents\DocumentIndex\IndexTableDTO; it('create prepare index text dto', function () { diff --git a/tests/Unit/DTO/DocumentIndex/IndexTextDTOTest.php b/tests/Unit/DTO/DocumentIndex/IndexTextDTOTest.php index 0fe0f62..6556ebf 100644 --- a/tests/Unit/DTO/DocumentIndex/IndexTextDTOTest.php +++ b/tests/Unit/DTO/DocumentIndex/IndexTextDTOTest.php @@ -2,7 +2,7 @@ namespace CodebarAg\DocuWare\Tests\Unit\DTO; -use CodebarAg\DocuWare\DTO\DocumentIndex\IndexTextDTO; +use CodebarAg\DocuWare\DTO\Documents\DocumentIndex\IndexTextDTO; it('create prepare index text dto', function () { diff --git a/tests/Unit/DTO/DocumentIndex/PrepareDTOTest.php b/tests/Unit/DTO/DocumentIndex/PrepareDTOTest.php index 0d08ccb..80f35ba 100644 --- a/tests/Unit/DTO/DocumentIndex/PrepareDTOTest.php +++ b/tests/Unit/DTO/DocumentIndex/PrepareDTOTest.php @@ -2,9 +2,9 @@ namespace CodebarAg\DocuWare\Tests\Unit\DTO; -use CodebarAg\DocuWare\DTO\DocumentIndex\IndexDateDTO; -use CodebarAg\DocuWare\DTO\DocumentIndex\IndexTextDTO; -use CodebarAg\DocuWare\DTO\DocumentIndex\PrepareDTO; +use CodebarAg\DocuWare\DTO\Documents\DocumentIndex\IndexDateDTO; +use CodebarAg\DocuWare\DTO\Documents\DocumentIndex\IndexTextDTO; +use CodebarAg\DocuWare\DTO\Documents\DocumentIndex\PrepareDTO; it('create prepare index dto', function () { diff --git a/tests/Unit/DTO/DocumentIndex/PrepareTableDTOTest.php b/tests/Unit/DTO/DocumentIndex/PrepareTableDTOTest.php index 3b2ff45..454c630 100644 --- a/tests/Unit/DTO/DocumentIndex/PrepareTableDTOTest.php +++ b/tests/Unit/DTO/DocumentIndex/PrepareTableDTOTest.php @@ -2,8 +2,8 @@ namespace CodebarAg\DocuWare\Tests\Unit\DTO; -use CodebarAg\DocuWare\DTO\DocumentIndex\IndexDateDTO; -use CodebarAg\DocuWare\DTO\DocumentIndex\PrepareTableDTO; +use CodebarAg\DocuWare\DTO\Documents\DocumentIndex\IndexDateDTO; +use CodebarAg\DocuWare\DTO\Documents\DocumentIndex\PrepareTableDTO; it('create prepare index table dto', function () { From e955ff97ba66b880e7825e727e3dac147edfc486 Mon Sep 17 00:00:00 2001 From: Rhys Lees <43909932+RhysLees@users.noreply.github.com> Date: Mon, 29 Apr 2024 23:42:29 +0100 Subject: [PATCH 05/54] WIP --- .phpunit.cache/code-coverage/0623d6f77f3c0c8b7f13c97457270e45 | 1 + .phpunit.cache/code-coverage/08b4e2ced6b41f5fb646b63b4956aba0 | 1 + .phpunit.cache/code-coverage/0f3f7c76bbb10c6ccc1aa88792a05cb5 | 1 + .phpunit.cache/code-coverage/11e53502a603a5e65307fb6e1bd7720c | 1 + .phpunit.cache/code-coverage/196f12119adcc9655d0af7fcc309673a | 1 + .phpunit.cache/code-coverage/1ecb112a0d988c3cd13691be62c03c5f | 1 + .phpunit.cache/code-coverage/1f23bb35164c164da5676c9cdd12fe7c | 1 + .phpunit.cache/code-coverage/1ff0acb7d91faa28b5646b71e4f89eff | 1 + .phpunit.cache/code-coverage/2123aeaf856d025311b8526d10c0c5dc | 1 + .phpunit.cache/code-coverage/21dc1d0935c5d74b3ef799fb6b5c75c1 | 1 + .phpunit.cache/code-coverage/24c2a9e158220fb690df71e08e46573d | 1 + .phpunit.cache/code-coverage/24eb84df57fb58c4b9efd28e471f55e7 | 1 + .phpunit.cache/code-coverage/267d497f32fd854d458f0e5d46dfd791 | 1 + .phpunit.cache/code-coverage/2a2a3b5ed011d0da34ab1e9cec5ae58d | 1 + .phpunit.cache/code-coverage/2e2e50db88e9f883875983644dd8f627 | 1 + .phpunit.cache/code-coverage/2e6f548e9c3b0b5f65543102374f9739 | 1 + .phpunit.cache/code-coverage/2f1fb997cd9653f6c772ae2755bd707a | 1 + .phpunit.cache/code-coverage/30531288ae8e0cfb6dbb262c99ab3ca5 | 1 + .phpunit.cache/code-coverage/33586cf81088a32ee681b95fdd6fc991 | 1 + .phpunit.cache/code-coverage/34979cf460d918ad72b35ad714904ec8 | 1 + .phpunit.cache/code-coverage/3499c7f8b07def153579ba0a8f3f2dc8 | 1 + .phpunit.cache/code-coverage/34c05edf1b8e3fdb08b9533f58b8dc2a | 1 + .phpunit.cache/code-coverage/388e37a180df1b023733b48a428563ef | 1 + .phpunit.cache/code-coverage/3e8cb7bf4b55211156e9bc093d421ac3 | 1 + .phpunit.cache/code-coverage/4333f4811947fc614239db7bb718034e | 1 + .phpunit.cache/code-coverage/4681cf9c52384b870d8125f050729668 | 1 + .phpunit.cache/code-coverage/4a16bd724962cf349974cf88595df33b | 1 + .phpunit.cache/code-coverage/4d3b231bbdf14e33f2ab5b11f174cbbe | 1 + .phpunit.cache/code-coverage/4df0c7822d84dc5ec2915d4e61a5ef7d | 1 + .phpunit.cache/code-coverage/4e7293db2d8c3847288b4657b5fda72f | 1 + .phpunit.cache/code-coverage/4eff86aaa57c59f6c5943cd406f65c9f | 1 + .phpunit.cache/code-coverage/50c0c7805b3bb7226764283d71d40c9b | 1 + .phpunit.cache/code-coverage/5104a2cb0cd1d420eb4900e94a753c44 | 1 + .phpunit.cache/code-coverage/514660e297358b41075608c6c3049b11 | 1 + .phpunit.cache/code-coverage/52e5f8a1923c4902c36e78d701f57ca8 | 1 + .phpunit.cache/code-coverage/59ce378d5aeb3ddd308919b891dc2ece | 1 + .phpunit.cache/code-coverage/5d021a71c91ad28c4ef9f35793d08372 | 1 + .phpunit.cache/code-coverage/5e717aabd3b3da3617e2b5e667758131 | 1 + .phpunit.cache/code-coverage/6175ce3b3f1607d0a82a771788659a51 | 1 + .phpunit.cache/code-coverage/623b6a9264713fec39cb6ecf392a8391 | 1 + .phpunit.cache/code-coverage/64edb4975b341690f8d9a9e23774b5f1 | 1 + .phpunit.cache/code-coverage/6673ce8f4e1930fd0c44dca5b9a0a9ab | 1 + .phpunit.cache/code-coverage/68058e328dc77969de8e1d7021d4ce39 | 1 + .phpunit.cache/code-coverage/68aae4265b8a6436dfc01583259f0fbe | 1 + .phpunit.cache/code-coverage/697a399b0d0644c70898b3d42160c607 | 1 + .phpunit.cache/code-coverage/6db9f133c633b79d9f7157e86a5f4bea | 1 + .phpunit.cache/code-coverage/704848a76c3966df6487227684d1b713 | 1 + .phpunit.cache/code-coverage/728ef8ceaf422a2c0b5472a968da1a97 | 1 + .phpunit.cache/code-coverage/7452059d8b43eb32172482a980be1246 | 1 + .phpunit.cache/code-coverage/792112cad550b12c0027961e1d6eacec | 1 + .phpunit.cache/code-coverage/7e41f3446b1a03209c6ea8004a6baaab | 1 + .phpunit.cache/code-coverage/8207d7f799d6c56b917a08d66eb5da88 | 1 + .phpunit.cache/code-coverage/82e7e6127d61c8233fb9a479042803c0 | 1 + .phpunit.cache/code-coverage/8718c6e78f5f210bc30c06acec482ca5 | 1 + .phpunit.cache/code-coverage/879415eca58ba4f8bdb1d64313e1edd8 | 1 + .phpunit.cache/code-coverage/881b22a1060c5716383664394eef75b5 | 1 + .phpunit.cache/code-coverage/889d4d51d97149d175ad12bcae1846e6 | 1 + .phpunit.cache/code-coverage/8b1288dfaffdb2a49717dcf08608ddb9 | 1 + .phpunit.cache/code-coverage/8bc9fc771f649ff1cea550714b157d2d | 1 + .phpunit.cache/code-coverage/956d36622a37786f8f11120562d87df9 | 1 + .phpunit.cache/code-coverage/95de2d2cb5fc6145784ddeff708c16b2 | 1 + .phpunit.cache/code-coverage/9a444824bb7c3e7cfdce88cf44141643 | 1 + .phpunit.cache/code-coverage/9ab62ca885f00c6c9e52fe2a413a2cdd | 1 + .phpunit.cache/code-coverage/9de7d632e47a04e65054a329852e3cae | 1 + .phpunit.cache/code-coverage/9f674e47053b54d26c6596b486fa7bc6 | 1 + .phpunit.cache/code-coverage/a55b2e837b41045969ad1e8e9c9494eb | 1 + .phpunit.cache/code-coverage/a5efeaf0253082fae5ca9a1e574b8fd7 | 1 + .phpunit.cache/code-coverage/a8f71c6d966c45444d57d459d9bf83fd | 1 + .phpunit.cache/code-coverage/aa4b90b7bb79b44b2521396f7009319a | 1 + .phpunit.cache/code-coverage/aca78b0e2b63e04f1ece3a29bf2b619b | 1 + .phpunit.cache/code-coverage/af3972cfcd0a162321f7c040bccd3a51 | 1 + .phpunit.cache/code-coverage/b14d5a3ed2db091e9c5a1dcc0093bf4d | 1 + .phpunit.cache/code-coverage/bbf552d6c990090ca88882b61bc1afd4 | 1 + .phpunit.cache/code-coverage/bd5622b928db20476d7180e2ccd11898 | 1 + .phpunit.cache/code-coverage/c3afab96a8aa8a21aebcdaaf5e7c4580 | 1 + .phpunit.cache/code-coverage/c4c17990cd3bbdcb7914c5a59eea950e | 1 + .phpunit.cache/code-coverage/c8b1e8de305ff68ce19e0450d7d2f8cf | 1 + .phpunit.cache/code-coverage/cbe6005d23a731a492b3f467adaf3781 | 1 + .phpunit.cache/code-coverage/cd2423d8ee7803d36378f74272709861 | 1 + .phpunit.cache/code-coverage/ce8a494eb3c5ba04eee66548809402fa | 1 + .phpunit.cache/code-coverage/d17cf055f1a9f8b029c7df9acdbd03f7 | 1 + .phpunit.cache/code-coverage/d37b06530ad36c3971b206ba11b119a1 | 1 + .phpunit.cache/code-coverage/d5808ba217acd7683f5d95d7dc827574 | 1 + .phpunit.cache/code-coverage/d58aee6c199413a53747d02bbffc38e0 | 1 + .phpunit.cache/code-coverage/da4291fce8571591aad6986ba7c7852a | 1 + .phpunit.cache/code-coverage/da5c682d48442ac506323b07997e3a1f | 1 + .phpunit.cache/code-coverage/dc50c0f43b3cc1f8cd8e765cc45b2a4e | 1 + .phpunit.cache/code-coverage/e0e63254be8e20c8861542bcad454164 | 1 + .phpunit.cache/code-coverage/e3867d36ba27e57d61f32d31b4d9a411 | 1 + .phpunit.cache/code-coverage/e3969e7b7111608de85ade720bb966a2 | 1 + .phpunit.cache/code-coverage/e545846724a82071e4bf84d33aee92ae | 1 + .phpunit.cache/code-coverage/e57e9c0e48f077853a1c1ef638dde7ae | 1 + .phpunit.cache/code-coverage/e5f432d3bb173caa7e3a11ab8c4f5b4c | 1 + .phpunit.cache/code-coverage/e6597955ff58244287a0b69a613c8916 | 1 + .phpunit.cache/code-coverage/e677eb91f4ab61502a874bfd78843a34 | 1 + .phpunit.cache/code-coverage/e7d111d0c983404001f236c7ea3b945f | 1 + .phpunit.cache/code-coverage/ed6fa75212af5c6b05c5ff8577490b78 | 1 + .phpunit.cache/code-coverage/f3155792def8ca976ff0275567c5d100 | 1 + .phpunit.cache/code-coverage/f9e4fecac63b97356875ace8cc1b94c3 | 1 + .phpunit.cache/code-coverage/fdcc36c40ac93d1d78e6e5b01ea4705c | 1 + .phpunit.cache/code-coverage/ff6829f11ff301b138ca03da00426c41 | 1 + .phpunit.cache/code-coverage/fffe326c5aa70c4797b8a2b58055a5ec | 1 + .phpunit.cache/test-results | 1 + 103 files changed, 103 insertions(+) create mode 100644 .phpunit.cache/code-coverage/0623d6f77f3c0c8b7f13c97457270e45 create mode 100644 .phpunit.cache/code-coverage/08b4e2ced6b41f5fb646b63b4956aba0 create mode 100644 .phpunit.cache/code-coverage/0f3f7c76bbb10c6ccc1aa88792a05cb5 create mode 100644 .phpunit.cache/code-coverage/11e53502a603a5e65307fb6e1bd7720c create mode 100644 .phpunit.cache/code-coverage/196f12119adcc9655d0af7fcc309673a create mode 100644 .phpunit.cache/code-coverage/1ecb112a0d988c3cd13691be62c03c5f create mode 100644 .phpunit.cache/code-coverage/1f23bb35164c164da5676c9cdd12fe7c create mode 100644 .phpunit.cache/code-coverage/1ff0acb7d91faa28b5646b71e4f89eff create mode 100644 .phpunit.cache/code-coverage/2123aeaf856d025311b8526d10c0c5dc create mode 100644 .phpunit.cache/code-coverage/21dc1d0935c5d74b3ef799fb6b5c75c1 create mode 100644 .phpunit.cache/code-coverage/24c2a9e158220fb690df71e08e46573d create mode 100644 .phpunit.cache/code-coverage/24eb84df57fb58c4b9efd28e471f55e7 create mode 100644 .phpunit.cache/code-coverage/267d497f32fd854d458f0e5d46dfd791 create mode 100644 .phpunit.cache/code-coverage/2a2a3b5ed011d0da34ab1e9cec5ae58d create mode 100644 .phpunit.cache/code-coverage/2e2e50db88e9f883875983644dd8f627 create mode 100644 .phpunit.cache/code-coverage/2e6f548e9c3b0b5f65543102374f9739 create mode 100644 .phpunit.cache/code-coverage/2f1fb997cd9653f6c772ae2755bd707a create mode 100644 .phpunit.cache/code-coverage/30531288ae8e0cfb6dbb262c99ab3ca5 create mode 100644 .phpunit.cache/code-coverage/33586cf81088a32ee681b95fdd6fc991 create mode 100644 .phpunit.cache/code-coverage/34979cf460d918ad72b35ad714904ec8 create mode 100644 .phpunit.cache/code-coverage/3499c7f8b07def153579ba0a8f3f2dc8 create mode 100644 .phpunit.cache/code-coverage/34c05edf1b8e3fdb08b9533f58b8dc2a create mode 100644 .phpunit.cache/code-coverage/388e37a180df1b023733b48a428563ef create mode 100644 .phpunit.cache/code-coverage/3e8cb7bf4b55211156e9bc093d421ac3 create mode 100644 .phpunit.cache/code-coverage/4333f4811947fc614239db7bb718034e create mode 100644 .phpunit.cache/code-coverage/4681cf9c52384b870d8125f050729668 create mode 100644 .phpunit.cache/code-coverage/4a16bd724962cf349974cf88595df33b create mode 100644 .phpunit.cache/code-coverage/4d3b231bbdf14e33f2ab5b11f174cbbe create mode 100644 .phpunit.cache/code-coverage/4df0c7822d84dc5ec2915d4e61a5ef7d create mode 100644 .phpunit.cache/code-coverage/4e7293db2d8c3847288b4657b5fda72f create mode 100644 .phpunit.cache/code-coverage/4eff86aaa57c59f6c5943cd406f65c9f create mode 100644 .phpunit.cache/code-coverage/50c0c7805b3bb7226764283d71d40c9b create mode 100644 .phpunit.cache/code-coverage/5104a2cb0cd1d420eb4900e94a753c44 create mode 100644 .phpunit.cache/code-coverage/514660e297358b41075608c6c3049b11 create mode 100644 .phpunit.cache/code-coverage/52e5f8a1923c4902c36e78d701f57ca8 create mode 100644 .phpunit.cache/code-coverage/59ce378d5aeb3ddd308919b891dc2ece create mode 100644 .phpunit.cache/code-coverage/5d021a71c91ad28c4ef9f35793d08372 create mode 100644 .phpunit.cache/code-coverage/5e717aabd3b3da3617e2b5e667758131 create mode 100644 .phpunit.cache/code-coverage/6175ce3b3f1607d0a82a771788659a51 create mode 100644 .phpunit.cache/code-coverage/623b6a9264713fec39cb6ecf392a8391 create mode 100644 .phpunit.cache/code-coverage/64edb4975b341690f8d9a9e23774b5f1 create mode 100644 .phpunit.cache/code-coverage/6673ce8f4e1930fd0c44dca5b9a0a9ab create mode 100644 .phpunit.cache/code-coverage/68058e328dc77969de8e1d7021d4ce39 create mode 100644 .phpunit.cache/code-coverage/68aae4265b8a6436dfc01583259f0fbe create mode 100644 .phpunit.cache/code-coverage/697a399b0d0644c70898b3d42160c607 create mode 100644 .phpunit.cache/code-coverage/6db9f133c633b79d9f7157e86a5f4bea create mode 100644 .phpunit.cache/code-coverage/704848a76c3966df6487227684d1b713 create mode 100644 .phpunit.cache/code-coverage/728ef8ceaf422a2c0b5472a968da1a97 create mode 100644 .phpunit.cache/code-coverage/7452059d8b43eb32172482a980be1246 create mode 100644 .phpunit.cache/code-coverage/792112cad550b12c0027961e1d6eacec create mode 100644 .phpunit.cache/code-coverage/7e41f3446b1a03209c6ea8004a6baaab create mode 100644 .phpunit.cache/code-coverage/8207d7f799d6c56b917a08d66eb5da88 create mode 100644 .phpunit.cache/code-coverage/82e7e6127d61c8233fb9a479042803c0 create mode 100644 .phpunit.cache/code-coverage/8718c6e78f5f210bc30c06acec482ca5 create mode 100644 .phpunit.cache/code-coverage/879415eca58ba4f8bdb1d64313e1edd8 create mode 100644 .phpunit.cache/code-coverage/881b22a1060c5716383664394eef75b5 create mode 100644 .phpunit.cache/code-coverage/889d4d51d97149d175ad12bcae1846e6 create mode 100644 .phpunit.cache/code-coverage/8b1288dfaffdb2a49717dcf08608ddb9 create mode 100644 .phpunit.cache/code-coverage/8bc9fc771f649ff1cea550714b157d2d create mode 100644 .phpunit.cache/code-coverage/956d36622a37786f8f11120562d87df9 create mode 100644 .phpunit.cache/code-coverage/95de2d2cb5fc6145784ddeff708c16b2 create mode 100644 .phpunit.cache/code-coverage/9a444824bb7c3e7cfdce88cf44141643 create mode 100644 .phpunit.cache/code-coverage/9ab62ca885f00c6c9e52fe2a413a2cdd create mode 100644 .phpunit.cache/code-coverage/9de7d632e47a04e65054a329852e3cae create mode 100644 .phpunit.cache/code-coverage/9f674e47053b54d26c6596b486fa7bc6 create mode 100644 .phpunit.cache/code-coverage/a55b2e837b41045969ad1e8e9c9494eb create mode 100644 .phpunit.cache/code-coverage/a5efeaf0253082fae5ca9a1e574b8fd7 create mode 100644 .phpunit.cache/code-coverage/a8f71c6d966c45444d57d459d9bf83fd create mode 100644 .phpunit.cache/code-coverage/aa4b90b7bb79b44b2521396f7009319a create mode 100644 .phpunit.cache/code-coverage/aca78b0e2b63e04f1ece3a29bf2b619b create mode 100644 .phpunit.cache/code-coverage/af3972cfcd0a162321f7c040bccd3a51 create mode 100644 .phpunit.cache/code-coverage/b14d5a3ed2db091e9c5a1dcc0093bf4d create mode 100644 .phpunit.cache/code-coverage/bbf552d6c990090ca88882b61bc1afd4 create mode 100644 .phpunit.cache/code-coverage/bd5622b928db20476d7180e2ccd11898 create mode 100644 .phpunit.cache/code-coverage/c3afab96a8aa8a21aebcdaaf5e7c4580 create mode 100644 .phpunit.cache/code-coverage/c4c17990cd3bbdcb7914c5a59eea950e create mode 100644 .phpunit.cache/code-coverage/c8b1e8de305ff68ce19e0450d7d2f8cf create mode 100644 .phpunit.cache/code-coverage/cbe6005d23a731a492b3f467adaf3781 create mode 100644 .phpunit.cache/code-coverage/cd2423d8ee7803d36378f74272709861 create mode 100644 .phpunit.cache/code-coverage/ce8a494eb3c5ba04eee66548809402fa create mode 100644 .phpunit.cache/code-coverage/d17cf055f1a9f8b029c7df9acdbd03f7 create mode 100644 .phpunit.cache/code-coverage/d37b06530ad36c3971b206ba11b119a1 create mode 100644 .phpunit.cache/code-coverage/d5808ba217acd7683f5d95d7dc827574 create mode 100644 .phpunit.cache/code-coverage/d58aee6c199413a53747d02bbffc38e0 create mode 100644 .phpunit.cache/code-coverage/da4291fce8571591aad6986ba7c7852a create mode 100644 .phpunit.cache/code-coverage/da5c682d48442ac506323b07997e3a1f create mode 100644 .phpunit.cache/code-coverage/dc50c0f43b3cc1f8cd8e765cc45b2a4e create mode 100644 .phpunit.cache/code-coverage/e0e63254be8e20c8861542bcad454164 create mode 100644 .phpunit.cache/code-coverage/e3867d36ba27e57d61f32d31b4d9a411 create mode 100644 .phpunit.cache/code-coverage/e3969e7b7111608de85ade720bb966a2 create mode 100644 .phpunit.cache/code-coverage/e545846724a82071e4bf84d33aee92ae create mode 100644 .phpunit.cache/code-coverage/e57e9c0e48f077853a1c1ef638dde7ae create mode 100644 .phpunit.cache/code-coverage/e5f432d3bb173caa7e3a11ab8c4f5b4c create mode 100644 .phpunit.cache/code-coverage/e6597955ff58244287a0b69a613c8916 create mode 100644 .phpunit.cache/code-coverage/e677eb91f4ab61502a874bfd78843a34 create mode 100644 .phpunit.cache/code-coverage/e7d111d0c983404001f236c7ea3b945f create mode 100644 .phpunit.cache/code-coverage/ed6fa75212af5c6b05c5ff8577490b78 create mode 100644 .phpunit.cache/code-coverage/f3155792def8ca976ff0275567c5d100 create mode 100644 .phpunit.cache/code-coverage/f9e4fecac63b97356875ace8cc1b94c3 create mode 100644 .phpunit.cache/code-coverage/fdcc36c40ac93d1d78e6e5b01ea4705c create mode 100644 .phpunit.cache/code-coverage/ff6829f11ff301b138ca03da00426c41 create mode 100644 .phpunit.cache/code-coverage/fffe326c5aa70c4797b8a2b58055a5ec create mode 100644 .phpunit.cache/test-results diff --git a/.phpunit.cache/code-coverage/0623d6f77f3c0c8b7f13c97457270e45 b/.phpunit.cache/code-coverage/0623d6f77f3c0c8b7f13c97457270e45 new file mode 100644 index 0000000..dfa49bc --- /dev/null +++ b/.phpunit.cache/code-coverage/0623d6f77f3c0c8b7f13c97457270e45 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:76:"CodebarAg\DocuWare\Responses\FileCabinets\SelectLists\GetSelectListsResponse";a:6:{s:4:"name";s:22:"GetSelectListsResponse";s:14:"namespacedName";s:76:"CodebarAg\DocuWare\Responses\FileCabinets\SelectLists\GetSelectListsResponse";s:9:"namespace";s:53:"CodebarAg\DocuWare\Responses\FileCabinets\SelectLists";s:9:"startLine";i:9;s:7:"endLine";i:19;s:7:"methods";a:1:{s:12:"fromResponse";a:6:{s:10:"methodName";s:12:"fromResponse";s:9:"signature";s:51:"fromResponse(Saloon\Http\Response $response): mixed";s:10:"visibility";s:6:"public";s:9:"startLine";i:11;s:7:"endLine";i:18;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:20;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:20;}s:15:"ignoredLinesFor";a:1:{i:0;i:9;}s:17:"executableLinesIn";a:3:{i:13;i:1;i:15;i:2;i:17;i:3;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/08b4e2ced6b41f5fb646b63b4956aba0 b/.phpunit.cache/code-coverage/08b4e2ced6b41f5fb646b63b4956aba0 new file mode 100644 index 0000000..2ccf137 --- /dev/null +++ b/.phpunit.cache/code-coverage/08b4e2ced6b41f5fb646b63b4956aba0 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:53:"CodebarAg\DocuWare\Responses\Fields\GetFieldsResponse";a:6:{s:4:"name";s:17:"GetFieldsResponse";s:14:"namespacedName";s:53:"CodebarAg\DocuWare\Responses\Fields\GetFieldsResponse";s:9:"namespace";s:35:"CodebarAg\DocuWare\Responses\Fields";s:9:"startLine";i:12;s:7:"endLine";i:24;s:7:"methods";a:1:{s:12:"fromResponse";a:6:{s:10:"methodName";s:12:"fromResponse";s:9:"signature";s:107:"fromResponse(Saloon\Http\Response $response): \Illuminate\Support\Collection|\Illuminate\Support\Enumerable";s:10:"visibility";s:6:"public";s:9:"startLine";i:14;s:7:"endLine";i:23;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:25;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:25;}s:15:"ignoredLinesFor";a:1:{i:0;i:12;}s:17:"executableLinesIn";a:4:{i:16;i:1;i:18;i:2;i:20;i:3;i:22;i:4;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/0f3f7c76bbb10c6ccc1aa88792a05cb5 b/.phpunit.cache/code-coverage/0f3f7c76bbb10c6ccc1aa88792a05cb5 new file mode 100644 index 0000000..6f04bb4 --- /dev/null +++ b/.phpunit.cache/code-coverage/0f3f7c76bbb10c6ccc1aa88792a05cb5 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:52:"CodebarAg\DocuWare\Exceptions\UnableToProcessRequest";a:6:{s:4:"name";s:22:"UnableToProcessRequest";s:14:"namespacedName";s:52:"CodebarAg\DocuWare\Exceptions\UnableToProcessRequest";s:9:"namespace";s:29:"CodebarAg\DocuWare\Exceptions";s:9:"startLine";i:9;s:7:"endLine";i:15;s:7:"methods";a:1:{s:6:"create";a:6:{s:10:"methodName";s:6:"create";s:9:"signature";s:78:"create(\Illuminate\Http\Client\Response|\Saloon\Http\Response $response): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:11;s:7:"endLine";i:14;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:16;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:16;}s:15:"ignoredLinesFor";a:1:{i:0;i:9;}s:17:"executableLinesIn";a:1:{i:13;i:1;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/11e53502a603a5e65307fb6e1bd7720c b/.phpunit.cache/code-coverage/11e53502a603a5e65307fb6e1bd7720c new file mode 100644 index 0000000..761e122 --- /dev/null +++ b/.phpunit.cache/code-coverage/11e53502a603a5e65307fb6e1bd7720c @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:62:"CodebarAg\DocuWare\DTO\Documents\DocumentIndex\IndexNumericDTO";a:6:{s:4:"name";s:15:"IndexNumericDTO";s:14:"namespacedName";s:62:"CodebarAg\DocuWare\DTO\Documents\DocumentIndex\IndexNumericDTO";s:9:"namespace";s:46:"CodebarAg\DocuWare\DTO\Documents\DocumentIndex";s:9:"startLine";i:5;s:7:"endLine";i:29;s:7:"methods";a:3:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:38:"__construct(string $name, ?int $value)";s:10:"visibility";s:6:"public";s:9:"startLine";i:9;s:7:"endLine";i:14;s:3:"ccn";i:1;}s:4:"make";a:6:{s:10:"methodName";s:4:"make";s:9:"signature";s:37:"make(string $name, ?int $value): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:16;s:7:"endLine";i:19;s:3:"ccn";i:1;}s:6:"values";a:6:{s:10:"methodName";s:6:"values";s:9:"signature";s:15:"values(): array";s:10:"visibility";s:6:"public";s:9:"startLine";i:21;s:7:"endLine";i:28;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:30;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:30;}s:15:"ignoredLinesFor";a:1:{i:0;i:5;}s:17:"executableLinesIn";a:7:{i:14;i:2;i:18;i:3;i:23;i:4;i:24;i:4;i:25;i:4;i:26;i:4;i:27;i:4;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/196f12119adcc9655d0af7fcc309673a b/.phpunit.cache/code-coverage/196f12119adcc9655d0af7fcc309673a new file mode 100644 index 0000000..2b44e5b --- /dev/null +++ b/.phpunit.cache/code-coverage/196f12119adcc9655d0af7fcc309673a @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:50:"CodebarAg\DocuWare\DTO\Documents\DocumentPaginator";a:6:{s:4:"name";s:17:"DocumentPaginator";s:14:"namespacedName";s:50:"CodebarAg\DocuWare\DTO\Documents\DocumentPaginator";s:9:"namespace";s:32:"CodebarAg\DocuWare\DTO\Documents";s:9:"startLine";i:13;s:7:"endLine";i:108;s:7:"methods";a:8:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:176:"__construct(int $total, int $per_page, int $current_page, int $last_page, int $from, int $to, Illuminate\Support\Collection $documents, ?CodebarAg\DocuWare\DTO\ErrorBag $error)";s:10:"visibility";s:6:"public";s:9:"startLine";i:15;s:7:"endLine";i:25;s:3:"ccn";i:1;}s:8:"showPrev";a:6:{s:10:"methodName";s:8:"showPrev";s:9:"signature";s:16:"showPrev(): bool";s:10:"visibility";s:6:"public";s:9:"startLine";i:27;s:7:"endLine";i:30;s:3:"ccn";i:1;}s:8:"showNext";a:6:{s:10:"methodName";s:8:"showNext";s:9:"signature";s:16:"showNext(): bool";s:10:"visibility";s:6:"public";s:9:"startLine";i:32;s:7:"endLine";i:35;s:3:"ccn";i:1;}s:10:"successful";a:6:{s:10:"methodName";s:10:"successful";s:9:"signature";s:18:"successful(): bool";s:10:"visibility";s:6:"public";s:9:"startLine";i:37;s:7:"endLine";i:40;s:3:"ccn";i:1;}s:6:"failed";a:6:{s:10:"methodName";s:6:"failed";s:9:"signature";s:14:"failed(): bool";s:10:"visibility";s:6:"public";s:9:"startLine";i:42;s:7:"endLine";i:45;s:3:"ccn";i:1;}s:8:"fromJson";a:6:{s:10:"methodName";s:8:"fromJson";s:9:"signature";s:52:"fromJson(array $data, int $page, int $perPage): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:47;s:7:"endLine";i:73;s:3:"ccn";i:3;}s:10:"fromFailed";a:6:{s:10:"methodName";s:10:"fromFailed";s:9:"signature";s:30:"fromFailed(Exception $e): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:75;s:7:"endLine";i:87;s:3:"ccn";i:1;}s:4:"fake";a:6:{s:10:"methodName";s:4:"fake";s:9:"signature";s:141:"fake(?int $total, ?int $per_page, ?int $current_page, ?int $last_page, ?int $from, ?int $to, ?Illuminate\Support\Collection $documents): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:89;s:7:"endLine";i:107;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:109;s:18:"commentLinesOfCode";i:3;s:21:"nonCommentLinesOfCode";i:106;}s:15:"ignoredLinesFor";a:1:{i:0;i:13;}s:17:"executableLinesIn";a:40:{i:25;i:1;i:29;i:2;i:34;i:3;i:39;i:4;i:44;i:5;i:52;i:6;i:54;i:7;i:56;i:8;i:58;i:9;i:60;i:10;i:62;i:10;i:61;i:11;i:64;i:12;i:65;i:12;i:66;i:12;i:67;i:12;i:68;i:12;i:69;i:12;i:70;i:12;i:71;i:12;i:72;i:12;i:77;i:13;i:78;i:13;i:79;i:13;i:80;i:13;i:81;i:13;i:82;i:13;i:83;i:13;i:84;i:13;i:85;i:13;i:86;i:13;i:98;i:14;i:99;i:14;i:100;i:14;i:101;i:14;i:102;i:14;i:103;i:14;i:104;i:14;i:105;i:14;i:106;i:14;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/1ecb112a0d988c3cd13691be62c03c5f b/.phpunit.cache/code-coverage/1ecb112a0d988c3cd13691be62c03c5f new file mode 100644 index 0000000..371eeb2 --- /dev/null +++ b/.phpunit.cache/code-coverage/1ecb112a0d988c3cd13691be62c03c5f @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:67:"CodebarAg\DocuWare\Requests\FileCabinets\Dialogs\GetASpecificDialog";a:6:{s:4:"name";s:18:"GetASpecificDialog";s:14:"namespacedName";s:67:"CodebarAg\DocuWare\Requests\FileCabinets\Dialogs\GetASpecificDialog";s:9:"namespace";s:48:"CodebarAg\DocuWare\Requests\FileCabinets\Dialogs";s:9:"startLine";i:14;s:7:"endLine";i:45;s:7:"methods";a:5:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:52:"__construct(string $fileCabinetId, string $dialogId)";s:10:"visibility";s:6:"public";s:9:"startLine";i:20;s:7:"endLine";i:24;s:3:"ccn";i:1;}s:15:"resolveEndpoint";a:6:{s:10:"methodName";s:15:"resolveEndpoint";s:9:"signature";s:25:"resolveEndpoint(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:26;s:7:"endLine";i:29;s:3:"ccn";i:1;}s:18:"resolveCacheDriver";a:6:{s:10:"methodName";s:18:"resolveCacheDriver";s:9:"signature";s:67:"resolveCacheDriver(): Saloon\CachePlugin\Drivers\LaravelCacheDriver";s:10:"visibility";s:6:"public";s:9:"startLine";i:31;s:7:"endLine";i:34;s:3:"ccn";i:1;}s:20:"cacheExpiryInSeconds";a:6:{s:10:"methodName";s:20:"cacheExpiryInSeconds";s:9:"signature";s:27:"cacheExpiryInSeconds(): int";s:10:"visibility";s:6:"public";s:9:"startLine";i:36;s:7:"endLine";i:39;s:3:"ccn";i:1;}s:21:"createDtoFromResponse";a:6:{s:10:"methodName";s:21:"createDtoFromResponse";s:9:"signature";s:60:"createDtoFromResponse(Saloon\Http\Response $response): mixed";s:10:"visibility";s:6:"public";s:9:"startLine";i:41;s:7:"endLine";i:44;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:46;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:46;}s:15:"ignoredLinesFor";a:1:{i:0;i:14;}s:17:"executableLinesIn";a:5:{i:24;i:3;i:28;i:4;i:33;i:5;i:38;i:6;i:43;i:7;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/1f23bb35164c164da5676c9cdd12fe7c b/.phpunit.cache/code-coverage/1f23bb35164c164da5676c9cdd12fe7c new file mode 100644 index 0000000..66d2b8c --- /dev/null +++ b/.phpunit.cache/code-coverage/1f23bb35164c164da5676c9cdd12fe7c @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:63:"CodebarAg\DocuWare\Requests\Documents\Download\DownloadDocument";a:6:{s:4:"name";s:16:"DownloadDocument";s:14:"namespacedName";s:63:"CodebarAg\DocuWare\Requests\Documents\Download\DownloadDocument";s:9:"namespace";s:46:"CodebarAg\DocuWare\Requests\Documents\Download";s:9:"startLine";i:14;s:7:"endLine";i:53;s:7:"methods";a:6:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:51:"__construct(string $fileCabinetId, int $documentId)";s:10:"visibility";s:6:"public";s:9:"startLine";i:20;s:7:"endLine";i:24;s:3:"ccn";i:1;}s:15:"resolveEndpoint";a:6:{s:10:"methodName";s:15:"resolveEndpoint";s:9:"signature";s:25:"resolveEndpoint(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:26;s:7:"endLine";i:29;s:3:"ccn";i:1;}s:18:"resolveCacheDriver";a:6:{s:10:"methodName";s:18:"resolveCacheDriver";s:9:"signature";s:67:"resolveCacheDriver(): Saloon\CachePlugin\Drivers\LaravelCacheDriver";s:10:"visibility";s:6:"public";s:9:"startLine";i:31;s:7:"endLine";i:34;s:3:"ccn";i:1;}s:20:"cacheExpiryInSeconds";a:6:{s:10:"methodName";s:20:"cacheExpiryInSeconds";s:9:"signature";s:27:"cacheExpiryInSeconds(): int";s:10:"visibility";s:6:"public";s:9:"startLine";i:36;s:7:"endLine";i:39;s:3:"ccn";i:1;}s:12:"defaultQuery";a:6:{s:10:"methodName";s:12:"defaultQuery";s:9:"signature";s:21:"defaultQuery(): array";s:10:"visibility";s:6:"public";s:9:"startLine";i:41;s:7:"endLine";i:47;s:3:"ccn";i:1;}s:21:"createDtoFromResponse";a:6:{s:10:"methodName";s:21:"createDtoFromResponse";s:9:"signature";s:61:"createDtoFromResponse(Saloon\Http\Response $response): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:49;s:7:"endLine";i:52;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:54;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:54;}s:15:"ignoredLinesFor";a:1:{i:0;i:14;}s:17:"executableLinesIn";a:9:{i:24;i:3;i:28;i:4;i:33;i:5;i:38;i:6;i:43;i:7;i:44;i:7;i:45;i:7;i:46;i:7;i:51;i:8;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/1ff0acb7d91faa28b5646b71e4f89eff b/.phpunit.cache/code-coverage/1ff0acb7d91faa28b5646b71e4f89eff new file mode 100644 index 0000000..94ce663 --- /dev/null +++ b/.phpunit.cache/code-coverage/1ff0acb7d91faa28b5646b71e4f89eff @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:60:"CodebarAg\DocuWare\Exceptions\UnableToFindPasswordCredential";a:6:{s:4:"name";s:30:"UnableToFindPasswordCredential";s:14:"namespacedName";s:60:"CodebarAg\DocuWare\Exceptions\UnableToFindPasswordCredential";s:9:"namespace";s:29:"CodebarAg\DocuWare\Exceptions";s:9:"startLine";i:7;s:7:"endLine";i:13;s:7:"methods";a:1:{s:6:"create";a:6:{s:10:"methodName";s:6:"create";s:9:"signature";s:14:"create(): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:9;s:7:"endLine";i:12;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:14;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:14;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:1:{i:11;i:1;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/2123aeaf856d025311b8526d10c0c5dc b/.phpunit.cache/code-coverage/2123aeaf856d025311b8526d10c0c5dc new file mode 100644 index 0000000..a690cd8 --- /dev/null +++ b/.phpunit.cache/code-coverage/2123aeaf856d025311b8526d10c0c5dc @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:64:"CodebarAg\DocuWare\Requests\General\Organization\GetOrganization";a:6:{s:4:"name";s:15:"GetOrganization";s:14:"namespacedName";s:64:"CodebarAg\DocuWare\Requests\General\Organization\GetOrganization";s:9:"namespace";s:48:"CodebarAg\DocuWare\Requests\General\Organization";s:9:"startLine";i:16;s:7:"endLine";i:41;s:7:"methods";a:4:{s:15:"resolveEndpoint";a:6:{s:10:"methodName";s:15:"resolveEndpoint";s:9:"signature";s:25:"resolveEndpoint(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:22;s:7:"endLine";i:25;s:3:"ccn";i:1;}s:18:"resolveCacheDriver";a:6:{s:10:"methodName";s:18:"resolveCacheDriver";s:9:"signature";s:67:"resolveCacheDriver(): Saloon\CachePlugin\Drivers\LaravelCacheDriver";s:10:"visibility";s:6:"public";s:9:"startLine";i:27;s:7:"endLine";i:30;s:3:"ccn";i:1;}s:20:"cacheExpiryInSeconds";a:6:{s:10:"methodName";s:20:"cacheExpiryInSeconds";s:9:"signature";s:27:"cacheExpiryInSeconds(): int";s:10:"visibility";s:6:"public";s:9:"startLine";i:32;s:7:"endLine";i:35;s:3:"ccn";i:1;}s:21:"createDtoFromResponse";a:6:{s:10:"methodName";s:21:"createDtoFromResponse";s:9:"signature";s:116:"createDtoFromResponse(Saloon\Http\Response $response): \Illuminate\Support\Collection|\Illuminate\Support\Enumerable";s:10:"visibility";s:6:"public";s:9:"startLine";i:37;s:7:"endLine";i:40;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:42;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:42;}s:15:"ignoredLinesFor";a:1:{i:0;i:16;}s:17:"executableLinesIn";a:4:{i:24;i:3;i:29;i:4;i:34;i:5;i:39;i:6;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/21dc1d0935c5d74b3ef799fb6b5c75c1 b/.phpunit.cache/code-coverage/21dc1d0935c5d74b3ef799fb6b5c75c1 new file mode 100644 index 0000000..e92086b --- /dev/null +++ b/.phpunit.cache/code-coverage/21dc1d0935c5d74b3ef799fb6b5c75c1 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:62:"CodebarAg\DocuWare\DTO\Documents\DocumentIndex\PrepareTableDTO";a:6:{s:4:"name";s:15:"PrepareTableDTO";s:14:"namespacedName";s:62:"CodebarAg\DocuWare\DTO\Documents\DocumentIndex\PrepareTableDTO";s:9:"namespace";s:46:"CodebarAg\DocuWare\DTO\Documents\DocumentIndex";s:9:"startLine";i:5;s:7:"endLine";i:19;s:7:"methods";a:1:{s:4:"make";a:6:{s:10:"methodName";s:4:"make";s:9:"signature";s:39:"make(string $name, mixed $value): mixed";s:10:"visibility";s:6:"public";s:9:"startLine";i:7;s:7:"endLine";i:18;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:20;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:20;}s:15:"ignoredLinesFor";a:1:{i:0;i:5;}s:17:"executableLinesIn";a:8:{i:9;i:1;i:11;i:2;i:12;i:2;i:13;i:2;i:14;i:2;i:15;i:2;i:16;i:2;i:17;i:2;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/24c2a9e158220fb690df71e08e46573d b/.phpunit.cache/code-coverage/24c2a9e158220fb690df71e08e46573d new file mode 100644 index 0000000..c6ec283 --- /dev/null +++ b/.phpunit.cache/code-coverage/24c2a9e158220fb690df71e08e46573d @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:45:"CodebarAg\DocuWare\Events\DocuWareResponseLog";a:6:{s:4:"name";s:19:"DocuWareResponseLog";s:14:"namespacedName";s:45:"CodebarAg\DocuWare\Events\DocuWareResponseLog";s:9:"namespace";s:25:"CodebarAg\DocuWare\Events";s:9:"startLine";i:11;s:7:"endLine";i:21;s:7:"methods";a:1:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:77:"__construct(\Illuminate\Http\Client\Response|\Saloon\Http\Response $response)";s:10:"visibility";s:6:"public";s:9:"startLine";i:17;s:7:"endLine";i:20;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:22;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:22;}s:15:"ignoredLinesFor";a:1:{i:0;i:11;}s:17:"executableLinesIn";a:1:{i:20;i:4;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/24eb84df57fb58c4b9efd28e471f55e7 b/.phpunit.cache/code-coverage/24eb84df57fb58c4b9efd28e471f55e7 new file mode 100644 index 0000000..2c86074 --- /dev/null +++ b/.phpunit.cache/code-coverage/24eb84df57fb58c4b9efd28e471f55e7 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:76:"CodebarAg\DocuWare\Responses\FileCabinets\Dialogs\GetASpecificDialogResponse";a:6:{s:4:"name";s:26:"GetASpecificDialogResponse";s:14:"namespacedName";s:76:"CodebarAg\DocuWare\Responses\FileCabinets\Dialogs\GetASpecificDialogResponse";s:9:"namespace";s:49:"CodebarAg\DocuWare\Responses\FileCabinets\Dialogs";s:9:"startLine";i:10;s:7:"endLine";i:22;s:7:"methods";a:1:{s:12:"fromResponse";a:6:{s:10:"methodName";s:12:"fromResponse";s:9:"signature";s:88:"fromResponse(Saloon\Http\Response $response): CodebarAg\DocuWare\DTO\FileCabinets\Dialog";s:10:"visibility";s:6:"public";s:9:"startLine";i:12;s:7:"endLine";i:21;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:23;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:23;}s:15:"ignoredLinesFor";a:1:{i:0;i:10;}s:17:"executableLinesIn";a:4:{i:14;i:1;i:16;i:2;i:18;i:3;i:20;i:4;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/267d497f32fd854d458f0e5d46dfd791 b/.phpunit.cache/code-coverage/267d497f32fd854d458f0e5d46dfd791 new file mode 100644 index 0000000..cba46ec --- /dev/null +++ b/.phpunit.cache/code-coverage/267d497f32fd854d458f0e5d46dfd791 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:51:"CodebarAg\DocuWare\Requests\Search\GetSearchRequest";a:6:{s:4:"name";s:16:"GetSearchRequest";s:14:"namespacedName";s:51:"CodebarAg\DocuWare\Requests\Search\GetSearchRequest";s:9:"namespace";s:34:"CodebarAg\DocuWare\Requests\Search";s:9:"startLine";i:17;s:7:"endLine";i:87;s:7:"methods";a:7:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:195:"__construct(?string $fileCabinetId, ?string $dialogId, array $additionalFileCabinetIds, int $page, int $perPage, ?string $searchTerm, string $orderField, string $orderDirection, array $condition)";s:10:"visibility";s:6:"public";s:9:"startLine";i:24;s:7:"endLine";i:35;s:3:"ccn";i:1;}s:15:"resolveEndpoint";a:6:{s:10:"methodName";s:15:"resolveEndpoint";s:9:"signature";s:25:"resolveEndpoint(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:37;s:7:"endLine";i:40;s:3:"ccn";i:1;}s:18:"resolveCacheDriver";a:6:{s:10:"methodName";s:18:"resolveCacheDriver";s:9:"signature";s:67:"resolveCacheDriver(): Saloon\CachePlugin\Drivers\LaravelCacheDriver";s:10:"visibility";s:6:"public";s:9:"startLine";i:42;s:7:"endLine";i:45;s:3:"ccn";i:1;}s:20:"cacheExpiryInSeconds";a:6:{s:10:"methodName";s:20:"cacheExpiryInSeconds";s:9:"signature";s:27:"cacheExpiryInSeconds(): int";s:10:"visibility";s:6:"public";s:9:"startLine";i:47;s:7:"endLine";i:50;s:3:"ccn";i:1;}s:12:"defaultQuery";a:6:{s:10:"methodName";s:12:"defaultQuery";s:9:"signature";s:21:"defaultQuery(): array";s:10:"visibility";s:6:"public";s:9:"startLine";i:52;s:7:"endLine";i:61;s:3:"ccn";i:2;}s:11:"defaultBody";a:6:{s:10:"methodName";s:11:"defaultBody";s:9:"signature";s:20:"defaultBody(): array";s:10:"visibility";s:6:"public";s:9:"startLine";i:63;s:7:"endLine";i:81;s:3:"ccn";i:1;}s:21:"createDtoFromResponse";a:6:{s:10:"methodName";s:21:"createDtoFromResponse";s:9:"signature";s:105:"createDtoFromResponse(Saloon\Http\Response $response): CodebarAg\DocuWare\DTO\Documents\DocumentPaginator";s:10:"visibility";s:6:"public";s:9:"startLine";i:83;s:7:"endLine";i:86;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:88;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:88;}s:15:"ignoredLinesFor";a:1:{i:0;i:17;}s:17:"executableLinesIn";a:25:{i:35;i:4;i:39;i:7;i:44;i:8;i:49;i:9;i:54;i:10;i:56;i:11;i:57;i:12;i:60;i:13;i:65;i:14;i:66;i:14;i:67;i:14;i:68;i:14;i:69;i:14;i:70;i:14;i:71;i:14;i:72;i:14;i:73;i:14;i:74;i:14;i:75;i:14;i:76;i:14;i:77;i:14;i:78;i:14;i:79;i:14;i:80;i:14;i:85;i:15;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/2a2a3b5ed011d0da34ab1e9cec5ae58d b/.phpunit.cache/code-coverage/2a2a3b5ed011d0da34ab1e9cec5ae58d new file mode 100644 index 0000000..c23c38a --- /dev/null +++ b/.phpunit.cache/code-coverage/2a2a3b5ed011d0da34ab1e9cec5ae58d @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:52:"CodebarAg\DocuWare\Exceptions\UnableToLoginNoCookies";a:6:{s:4:"name";s:22:"UnableToLoginNoCookies";s:14:"namespacedName";s:52:"CodebarAg\DocuWare\Exceptions\UnableToLoginNoCookies";s:9:"namespace";s:29:"CodebarAg\DocuWare\Exceptions";s:9:"startLine";i:7;s:7:"endLine";i:13;s:7:"methods";a:1:{s:6:"create";a:6:{s:10:"methodName";s:6:"create";s:9:"signature";s:14:"create(): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:9;s:7:"endLine";i:12;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:14;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:14;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:1:{i:11;i:1;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/2e2e50db88e9f883875983644dd8f627 b/.phpunit.cache/code-coverage/2e2e50db88e9f883875983644dd8f627 new file mode 100644 index 0000000..45970fa --- /dev/null +++ b/.phpunit.cache/code-coverage/2e2e50db88e9f883875983644dd8f627 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:48:"CodebarAg\DocuWare\Support\EnsureValidPassphrase";a:6:{s:4:"name";s:21:"EnsureValidPassphrase";s:14:"namespacedName";s:48:"CodebarAg\DocuWare\Support\EnsureValidPassphrase";s:9:"namespace";s:26:"CodebarAg\DocuWare\Support";s:9:"startLine";i:7;s:7:"endLine";i:16;s:7:"methods";a:1:{s:5:"check";a:6:{s:10:"methodName";s:5:"check";s:9:"signature";s:13:"check(): void";s:10:"visibility";s:6:"public";s:9:"startLine";i:9;s:7:"endLine";i:15;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:17;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:17;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:4:{i:11;i:1;i:12;i:1;i:13;i:1;i:14;i:1;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/2e6f548e9c3b0b5f65543102374f9739 b/.phpunit.cache/code-coverage/2e6f548e9c3b0b5f65543102374f9739 new file mode 100644 index 0000000..5568ca6 --- /dev/null +++ b/.phpunit.cache/code-coverage/2e6f548e9c3b0b5f65543102374f9739 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:50:"CodebarAg\DocuWare\Events\DocuWareCookieCreatedLog";a:6:{s:4:"name";s:24:"DocuWareCookieCreatedLog";s:14:"namespacedName";s:50:"CodebarAg\DocuWare\Events\DocuWareCookieCreatedLog";s:9:"namespace";s:25:"CodebarAg\DocuWare\Events";s:9:"startLine";i:9;s:7:"endLine";i:19;s:7:"methods";a:1:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:28:"__construct(string $message)";s:10:"visibility";s:6:"public";s:9:"startLine";i:15;s:7:"endLine";i:18;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:20;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:20;}s:15:"ignoredLinesFor";a:1:{i:0;i:9;}s:17:"executableLinesIn";a:1:{i:18;i:4;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/2f1fb997cd9653f6c772ae2755bd707a b/.phpunit.cache/code-coverage/2f1fb997cd9653f6c772ae2755bd707a new file mode 100644 index 0000000..9e71a88 --- /dev/null +++ b/.phpunit.cache/code-coverage/2f1fb997cd9653f6c772ae2755bd707a @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:93:"CodebarAg\DocuWare\Responses\FileCabinets\Search\GetASpecificDocumentFromAFileCabinetResponse";a:6:{s:4:"name";s:44:"GetASpecificDocumentFromAFileCabinetResponse";s:14:"namespacedName";s:93:"CodebarAg\DocuWare\Responses\FileCabinets\Search\GetASpecificDocumentFromAFileCabinetResponse";s:9:"namespace";s:48:"CodebarAg\DocuWare\Responses\FileCabinets\Search";s:9:"startLine";i:10;s:7:"endLine";i:22;s:7:"methods";a:1:{s:12:"fromResponse";a:6:{s:10:"methodName";s:12:"fromResponse";s:9:"signature";s:87:"fromResponse(Saloon\Http\Response $response): CodebarAg\DocuWare\DTO\Documents\Document";s:10:"visibility";s:6:"public";s:9:"startLine";i:12;s:7:"endLine";i:21;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:23;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:23;}s:15:"ignoredLinesFor";a:1:{i:0;i:10;}s:17:"executableLinesIn";a:4:{i:14;i:1;i:16;i:2;i:18;i:3;i:20;i:4;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/30531288ae8e0cfb6dbb262c99ab3ca5 b/.phpunit.cache/code-coverage/30531288ae8e0cfb6dbb262c99ab3ca5 new file mode 100644 index 0000000..eec11c9 --- /dev/null +++ b/.phpunit.cache/code-coverage/30531288ae8e0cfb6dbb262c99ab3ca5 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:56:"CodebarAg\DocuWare\DTO\Authentication\OAuth\RequestToken";a:6:{s:4:"name";s:12:"RequestToken";s:14:"namespacedName";s:56:"CodebarAg\DocuWare\DTO\Authentication\OAuth\RequestToken";s:9:"namespace";s:43:"CodebarAg\DocuWare\DTO\Authentication\OAuth";s:9:"startLine";i:8;s:7:"endLine";i:29;s:7:"methods";a:2:{s:4:"make";a:6:{s:10:"methodName";s:4:"make";s:9:"signature";s:23:"make(array $data): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:10;s:7:"endLine";i:19;s:3:"ccn";i:1;}s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:120:"__construct(string $accessToken, string $tokenType, string $scope, int $expiresIn, Illuminate\Support\Carbon $expiresAt)";s:10:"visibility";s:6:"public";s:9:"startLine";i:21;s:7:"endLine";i:28;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:30;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:30;}s:15:"ignoredLinesFor";a:1:{i:0;i:8;}s:17:"executableLinesIn";a:8:{i:12;i:1;i:13;i:1;i:14;i:1;i:15;i:1;i:16;i:1;i:17;i:1;i:18;i:1;i:28;i:2;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/33586cf81088a32ee681b95fdd6fc991 b/.phpunit.cache/code-coverage/33586cf81088a32ee681b95fdd6fc991 new file mode 100644 index 0000000..b8b2c77 --- /dev/null +++ b/.phpunit.cache/code-coverage/33586cf81088a32ee681b95fdd6fc991 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:61:"CodebarAg\DocuWare\Requests\Authentication\OAuth\RequestToken";a:6:{s:4:"name";s:12:"RequestToken";s:14:"namespacedName";s:61:"CodebarAg\DocuWare\Requests\Authentication\OAuth\RequestToken";s:9:"namespace";s:48:"CodebarAg\DocuWare\Requests\Authentication\OAuth";s:9:"startLine";i:13;s:7:"endLine";i:55;s:7:"methods";a:5:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:108:"__construct(mixed $tokenEndpoint, ?string $username, ?string $password, string $grantType, string $clientId)";s:10:"visibility";s:6:"public";s:9:"startLine";i:19;s:7:"endLine";i:26;s:3:"ccn";i:1;}s:15:"resolveEndpoint";a:6:{s:10:"methodName";s:15:"resolveEndpoint";s:9:"signature";s:25:"resolveEndpoint(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:28;s:7:"endLine";i:31;s:3:"ccn";i:1;}s:14:"defaultHeaders";a:6:{s:10:"methodName";s:14:"defaultHeaders";s:9:"signature";s:23:"defaultHeaders(): array";s:10:"visibility";s:6:"public";s:9:"startLine";i:33;s:7:"endLine";i:38;s:3:"ccn";i:1;}s:11:"defaultBody";a:6:{s:10:"methodName";s:11:"defaultBody";s:9:"signature";s:20:"defaultBody(): array";s:10:"visibility";s:6:"public";s:9:"startLine";i:40;s:7:"endLine";i:49;s:3:"ccn";i:3;}s:21:"createDtoFromResponse";a:6:{s:10:"methodName";s:21:"createDtoFromResponse";s:9:"signature";s:111:"createDtoFromResponse(Saloon\Http\Response $response): CodebarAg\DocuWare\DTO\Authentication\OAuth\RequestToken";s:10:"visibility";s:6:"public";s:9:"startLine";i:51;s:7:"endLine";i:54;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:56;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:56;}s:15:"ignoredLinesFor";a:1:{i:0;i:13;}s:17:"executableLinesIn";a:13:{i:26;i:3;i:30;i:4;i:35;i:5;i:36;i:5;i:37;i:5;i:42;i:6;i:43;i:6;i:44;i:6;i:45;i:6;i:46;i:6;i:47;i:6;i:48;i:6;i:53;i:7;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/34979cf460d918ad72b35ad714904ec8 b/.phpunit.cache/code-coverage/34979cf460d918ad72b35ad714904ec8 new file mode 100644 index 0000000..a19f370 --- /dev/null +++ b/.phpunit.cache/code-coverage/34979cf460d918ad72b35ad714904ec8 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:59:"CodebarAg\DocuWare\DTO\Documents\DocumentIndex\IndexTextDTO";a:6:{s:4:"name";s:12:"IndexTextDTO";s:14:"namespacedName";s:59:"CodebarAg\DocuWare\DTO\Documents\DocumentIndex\IndexTextDTO";s:9:"namespace";s:46:"CodebarAg\DocuWare\DTO\Documents\DocumentIndex";s:9:"startLine";i:5;s:7:"endLine";i:27;s:7:"methods";a:3:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:41:"__construct(string $name, ?string $value)";s:10:"visibility";s:6:"public";s:9:"startLine";i:7;s:7:"endLine";i:12;s:3:"ccn";i:1;}s:4:"make";a:6:{s:10:"methodName";s:4:"make";s:9:"signature";s:40:"make(string $name, ?string $value): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:14;s:7:"endLine";i:17;s:3:"ccn";i:1;}s:6:"values";a:6:{s:10:"methodName";s:6:"values";s:9:"signature";s:15:"values(): array";s:10:"visibility";s:6:"public";s:9:"startLine";i:19;s:7:"endLine";i:26;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:28;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:28;}s:15:"ignoredLinesFor";a:1:{i:0;i:5;}s:17:"executableLinesIn";a:7:{i:12;i:1;i:16;i:2;i:21;i:3;i:22;i:3;i:23;i:3;i:24;i:3;i:25;i:3;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/3499c7f8b07def153579ba0a8f3f2dc8 b/.phpunit.cache/code-coverage/3499c7f8b07def153579ba0a8f3f2dc8 new file mode 100644 index 0000000..15237c6 --- /dev/null +++ b/.phpunit.cache/code-coverage/3499c7f8b07def153579ba0a8f3f2dc8 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:35:"CodebarAg\DocuWare\Facades\DocuWare";a:6:{s:4:"name";s:8:"DocuWare";s:14:"namespacedName";s:35:"CodebarAg\DocuWare\Facades\DocuWare";s:9:"namespace";s:26:"CodebarAg\DocuWare\Facades";s:9:"startLine";i:44;s:7:"endLine";i:50;s:7:"methods";a:1:{s:17:"getFacadeAccessor";a:6:{s:10:"methodName";s:17:"getFacadeAccessor";s:9:"signature";s:27:"getFacadeAccessor(): string";s:10:"visibility";s:9:"protected";s:9:"startLine";i:46;s:7:"endLine";i:49;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:51;s:18:"commentLinesOfCode";i:25;s:21:"nonCommentLinesOfCode";i:26;}s:15:"ignoredLinesFor";a:1:{i:0;i:44;}s:17:"executableLinesIn";a:1:{i:48;i:1;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/34c05edf1b8e3fdb08b9533f58b8dc2a b/.phpunit.cache/code-coverage/34c05edf1b8e3fdb08b9533f58b8dc2a new file mode 100644 index 0000000..679538c --- /dev/null +++ b/.phpunit.cache/code-coverage/34c05edf1b8e3fdb08b9533f58b8dc2a @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:73:"CodebarAg\DocuWare\Responses\Documents\Download\DownloadThumbnailResponse";a:6:{s:4:"name";s:25:"DownloadThumbnailResponse";s:14:"namespacedName";s:73:"CodebarAg\DocuWare\Responses\Documents\Download\DownloadThumbnailResponse";s:9:"namespace";s:47:"CodebarAg\DocuWare\Responses\Documents\Download";s:9:"startLine";i:10;s:7:"endLine";i:23;s:7:"methods";a:1:{s:12:"fromResponse";a:6:{s:10:"methodName";s:12:"fromResponse";s:9:"signature";s:96:"fromResponse(Saloon\Http\Response $response): CodebarAg\DocuWare\DTO\Documents\DocumentThumbnail";s:10:"visibility";s:6:"public";s:9:"startLine";i:12;s:7:"endLine";i:22;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:24;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:24;}s:15:"ignoredLinesFor";a:1:{i:0;i:10;}s:17:"executableLinesIn";a:6:{i:14;i:1;i:16;i:2;i:18;i:3;i:19;i:3;i:20;i:3;i:21;i:3;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/388e37a180df1b023733b48a428563ef b/.phpunit.cache/code-coverage/388e37a180df1b023733b48a428563ef new file mode 100644 index 0000000..b1e33a7 --- /dev/null +++ b/.phpunit.cache/code-coverage/388e37a180df1b023733b48a428563ef @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:80:"CodebarAg\DocuWare\Requests\Authentication\OAuth\GetIdentityServiceConfiguration";a:6:{s:4:"name";s:31:"GetIdentityServiceConfiguration";s:14:"namespacedName";s:80:"CodebarAg\DocuWare\Requests\Authentication\OAuth\GetIdentityServiceConfiguration";s:9:"namespace";s:48:"CodebarAg\DocuWare\Requests\Authentication\OAuth";s:9:"startLine";i:12;s:7:"endLine";i:41;s:7:"methods";a:4:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:39:"__construct(string $identityServiceUrl)";s:10:"visibility";s:6:"public";s:9:"startLine";i:16;s:7:"endLine";i:19;s:3:"ccn";i:1;}s:15:"resolveEndpoint";a:6:{s:10:"methodName";s:15:"resolveEndpoint";s:9:"signature";s:25:"resolveEndpoint(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:21;s:7:"endLine";i:24;s:3:"ccn";i:1;}s:14:"defaultHeaders";a:6:{s:10:"methodName";s:14:"defaultHeaders";s:9:"signature";s:23:"defaultHeaders(): array";s:10:"visibility";s:6:"public";s:9:"startLine";i:26;s:7:"endLine";i:31;s:3:"ccn";i:1;}s:21:"createDtoFromResponse";a:6:{s:10:"methodName";s:21:"createDtoFromResponse";s:9:"signature";s:127:"createDtoFromResponse(Saloon\Http\Response $response): CodebarAg\DocuWare\DTO\Authentication\OAuth\IdentityServiceConfiguration";s:10:"visibility";s:6:"public";s:9:"startLine";i:33;s:7:"endLine";i:40;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:42;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:42;}s:15:"ignoredLinesFor";a:1:{i:0;i:12;}s:17:"executableLinesIn";a:8:{i:19;i:2;i:23;i:3;i:28;i:4;i:29;i:4;i:30;i:4;i:35;i:5;i:37;i:6;i:39;i:7;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/3e8cb7bf4b55211156e9bc093d421ac3 b/.phpunit.cache/code-coverage/3e8cb7bf4b55211156e9bc093d421ac3 new file mode 100644 index 0000000..246f307 --- /dev/null +++ b/.phpunit.cache/code-coverage/3e8cb7bf4b55211156e9bc093d421ac3 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:38:"CodebarAg\DocuWare\DTO\SuggestionField";a:6:{s:4:"name";s:15:"SuggestionField";s:14:"namespacedName";s:38:"CodebarAg\DocuWare\DTO\SuggestionField";s:9:"namespace";s:22:"CodebarAg\DocuWare\DTO";s:9:"startLine";i:7;s:7:"endLine";i:40;s:7:"methods";a:3:{s:8:"fromJson";a:6:{s:10:"methodName";s:8:"fromJson";s:9:"signature";s:27:"fromJson(array $data): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:9;s:7:"endLine";i:17;s:3:"ccn";i:1;}s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:79:"__construct(array $value, ?string $name, ?string $db_name, ?string $confidence)";s:10:"visibility";s:6:"public";s:9:"startLine";i:19;s:7:"endLine";i:25;s:3:"ccn";i:1;}s:4:"fake";a:6:{s:10:"methodName";s:4:"fake";s:9:"signature";s:78:"fake(array $value, ?string $name, ?string $db_name, ?string $confidence): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:27;s:7:"endLine";i:39;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:41;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:41;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:13:{i:11;i:1;i:12;i:1;i:13;i:1;i:14;i:1;i:15;i:1;i:16;i:1;i:25;i:2;i:33;i:4;i:34;i:4;i:35;i:4;i:36;i:4;i:37;i:4;i:38;i:4;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/4333f4811947fc614239db7bb718034e b/.phpunit.cache/code-coverage/4333f4811947fc614239db7bb718034e new file mode 100644 index 0000000..e7883e1 --- /dev/null +++ b/.phpunit.cache/code-coverage/4333f4811947fc614239db7bb718034e @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:85:"CodebarAg\DocuWare\Responses\FileCabinets\Search\GetDocumentsFromAFileCabinetResponse";a:6:{s:4:"name";s:36:"GetDocumentsFromAFileCabinetResponse";s:14:"namespacedName";s:85:"CodebarAg\DocuWare\Responses\FileCabinets\Search\GetDocumentsFromAFileCabinetResponse";s:9:"namespace";s:48:"CodebarAg\DocuWare\Responses\FileCabinets\Search";s:9:"startLine";i:11;s:7:"endLine";i:31;s:7:"methods";a:1:{s:12:"fromResponse";a:6:{s:10:"methodName";s:12:"fromResponse";s:9:"signature";s:113:"fromResponse(Saloon\Http\Response $response, $page, $perPage): CodebarAg\DocuWare\DTO\Documents\DocumentPaginator";s:10:"visibility";s:6:"public";s:9:"startLine";i:13;s:7:"endLine";i:30;s:3:"ccn";i:2;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:32;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:32;}s:15:"ignoredLinesFor";a:1:{i:0;i:11;}s:17:"executableLinesIn";a:10:{i:15;i:1;i:18;i:2;i:20;i:3;i:21;i:4;i:22;i:5;i:25;i:6;i:26;i:6;i:27;i:6;i:28;i:6;i:29;i:6;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/4681cf9c52384b870d8125f050729668 b/.phpunit.cache/code-coverage/4681cf9c52384b870d8125f050729668 new file mode 100644 index 0000000..21d9519 --- /dev/null +++ b/.phpunit.cache/code-coverage/4681cf9c52384b870d8125f050729668 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:54:"CodebarAg\DocuWare\Exceptions\UnableToGetDocumentCount";a:6:{s:4:"name";s:24:"UnableToGetDocumentCount";s:14:"namespacedName";s:54:"CodebarAg\DocuWare\Exceptions\UnableToGetDocumentCount";s:9:"namespace";s:29:"CodebarAg\DocuWare\Exceptions";s:9:"startLine";i:7;s:7:"endLine";i:23;s:7:"methods";a:3:{s:10:"noGroupKey";a:6:{s:10:"methodName";s:10:"noGroupKey";s:9:"signature";s:18:"noGroupKey(): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:9;s:7:"endLine";i:12;s:3:"ccn";i:1;}s:19:"noGroupKeyIndexZero";a:6:{s:10:"methodName";s:19:"noGroupKeyIndexZero";s:9:"signature";s:27:"noGroupKeyIndexZero(): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:14;s:7:"endLine";i:17;s:3:"ccn";i:1;}s:7:"noCount";a:6:{s:10:"methodName";s:7:"noCount";s:9:"signature";s:15:"noCount(): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:19;s:7:"endLine";i:22;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:24;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:24;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:3:{i:11;i:1;i:16;i:2;i:21;i:3;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/4a16bd724962cf349974cf88595df33b b/.phpunit.cache/code-coverage/4a16bd724962cf349974cf88595df33b new file mode 100644 index 0000000..99c1ff2 --- /dev/null +++ b/.phpunit.cache/code-coverage/4a16bd724962cf349974cf88595df33b @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:46:"CodebarAg\DocuWare\DTO\Documents\DocumentField";a:6:{s:4:"name";s:13:"DocumentField";s:14:"namespacedName";s:46:"CodebarAg\DocuWare\DTO\Documents\DocumentField";s:9:"namespace";s:32:"CodebarAg\DocuWare\DTO\Documents";s:9:"startLine";i:10;s:7:"endLine";i:60;s:7:"methods";a:3:{s:8:"fromJson";a:6:{s:10:"methodName";s:8:"fromJson";s:9:"signature";s:27:"fromJson(array $data): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:12;s:7:"endLine";i:22;s:3:"ccn";i:1;}s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:163:"__construct(bool $systemField, string $name, string $label, bool $isNull, null|int|float|\Carbon\Carbon|string|\Illuminate\Support\Collection $value, string $type)";s:10:"visibility";s:6:"public";s:9:"startLine";i:24;s:7:"endLine";i:32;s:3:"ccn";i:1;}s:4:"fake";a:6:{s:10:"methodName";s:4:"fake";s:9:"signature";s:136:"fake(?bool $systemField, ?string $name, ?string $label, ?bool $isNull, int|float|\Carbon\Carbon|string|null $value, ?string $type): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:34;s:7:"endLine";i:59;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:61;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:61;}s:15:"ignoredLinesFor";a:1:{i:0;i:10;}s:17:"executableLinesIn";a:24:{i:14;i:1;i:15;i:1;i:16;i:1;i:17;i:1;i:18;i:1;i:19;i:1;i:20;i:1;i:21;i:1;i:32;i:2;i:42;i:3;i:44;i:4;i:45;i:4;i:46;i:4;i:47;i:4;i:48;i:4;i:49;i:4;i:51;i:5;i:52;i:5;i:53;i:5;i:54;i:5;i:55;i:5;i:56;i:5;i:57;i:5;i:58;i:5;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/4d3b231bbdf14e33f2ab5b11f174cbbe b/.phpunit.cache/code-coverage/4d3b231bbdf14e33f2ab5b11f174cbbe new file mode 100644 index 0000000..cf2d196 --- /dev/null +++ b/.phpunit.cache/code-coverage/4d3b231bbdf14e33f2ab5b11f174cbbe @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:53:"CodebarAg\DocuWare\Responses\Search\GetSearchResponse";a:6:{s:4:"name";s:17:"GetSearchResponse";s:14:"namespacedName";s:53:"CodebarAg\DocuWare\Responses\Search\GetSearchResponse";s:9:"namespace";s:35:"CodebarAg\DocuWare\Responses\Search";s:9:"startLine";i:11;s:7:"endLine";i:31;s:7:"methods";a:1:{s:12:"fromResponse";a:6:{s:10:"methodName";s:12:"fromResponse";s:9:"signature";s:113:"fromResponse(Saloon\Http\Response $response, $page, $perPage): CodebarAg\DocuWare\DTO\Documents\DocumentPaginator";s:10:"visibility";s:6:"public";s:9:"startLine";i:13;s:7:"endLine";i:30;s:3:"ccn";i:2;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:32;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:32;}s:15:"ignoredLinesFor";a:1:{i:0;i:11;}s:17:"executableLinesIn";a:10:{i:15;i:1;i:18;i:2;i:20;i:3;i:21;i:4;i:22;i:5;i:25;i:6;i:26;i:6;i:27;i:6;i:28;i:6;i:29;i:6;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/4df0c7822d84dc5ec2915d4e61a5ef7d b/.phpunit.cache/code-coverage/4df0c7822d84dc5ec2915d4e61a5ef7d new file mode 100644 index 0000000..5a6257b --- /dev/null +++ b/.phpunit.cache/code-coverage/4df0c7822d84dc5ec2915d4e61a5ef7d @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:27:"CodebarAg\DocuWare\DocuWare";a:6:{s:4:"name";s:8:"DocuWare";s:14:"namespacedName";s:27:"CodebarAg\DocuWare\DocuWare";s:9:"namespace";s:18:"CodebarAg\DocuWare";s:9:"startLine";i:10;s:7:"endLine";i:44;s:7:"methods";a:3:{s:30:"getNewAuthenticationOAuthToken";a:6:{s:10:"methodName";s:30:"getNewAuthenticationOAuthToken";s:9:"signature";s:165:"getNewAuthenticationOAuthToken(?string $username, ?string $password, ?string $grantType, ?string $clientId): CodebarAg\DocuWare\DTO\Authentication\OAuth\RequestToken";s:10:"visibility";s:6:"public";s:9:"startLine";i:12;s:7:"endLine";i:33;s:3:"ccn";i:1;}s:20:"searchRequestBuilder";a:6:{s:10:"methodName";s:20:"searchRequestBuilder";s:9:"signature";s:71:"searchRequestBuilder(): CodebarAg\DocuWare\DocuWareSearchRequestBuilder";s:10:"visibility";s:6:"public";s:9:"startLine";i:35;s:7:"endLine";i:38;s:3:"ccn";i:1;}s:3:"url";a:6:{s:10:"methodName";s:3:"url";s:9:"signature";s:37:"url(): CodebarAg\DocuWare\DocuWareUrl";s:10:"visibility";s:6:"public";s:9:"startLine";i:40;s:7:"endLine";i:43;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:45;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:45;}s:15:"ignoredLinesFor";a:1:{i:0;i:10;}s:17:"executableLinesIn";a:14:{i:18;i:1;i:20;i:2;i:21;i:2;i:22;i:2;i:24;i:3;i:25;i:3;i:26;i:3;i:27;i:3;i:28;i:3;i:29;i:3;i:30;i:3;i:32;i:4;i:37;i:5;i:42;i:6;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/4e7293db2d8c3847288b4657b5fda72f b/.phpunit.cache/code-coverage/4e7293db2d8c3847288b4657b5fda72f new file mode 100644 index 0000000..ceb7322 --- /dev/null +++ b/.phpunit.cache/code-coverage/4e7293db2d8c3847288b4657b5fda72f @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:59:"CodebarAg\DocuWare\DTO\Documents\DocumentIndex\IndexDateDTO";a:6:{s:4:"name";s:12:"IndexDateDTO";s:14:"namespacedName";s:59:"CodebarAg\DocuWare\DTO\Documents\DocumentIndex\IndexDateDTO";s:9:"namespace";s:46:"CodebarAg\DocuWare\DTO\Documents\DocumentIndex";s:9:"startLine";i:7;s:7:"endLine";i:37;s:7:"methods";a:4:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:80:"__construct(string $name, null|\Illuminate\Support\Carbon|\Carbon\Carbon $value)";s:10:"visibility";s:6:"public";s:9:"startLine";i:9;s:7:"endLine";i:14;s:3:"ccn";i:1;}s:4:"make";a:6:{s:10:"methodName";s:4:"make";s:9:"signature";s:79:"make(string $name, null|\Illuminate\Support\Carbon|\Carbon\Carbon $value): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:16;s:7:"endLine";i:19;s:3:"ccn";i:1;}s:16:"makeWithFallback";a:6:{s:10:"methodName";s:16:"makeWithFallback";s:9:"signature";s:45:"makeWithFallback($name, object $value): mixed";s:10:"visibility";s:6:"public";s:9:"startLine";i:21;s:7:"endLine";i:27;s:3:"ccn";i:1;}s:6:"values";a:6:{s:10:"methodName";s:6:"values";s:9:"signature";s:15:"values(): array";s:10:"visibility";s:6:"public";s:9:"startLine";i:29;s:7:"endLine";i:36;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:38;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:38;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:11:{i:14;i:1;i:18;i:2;i:23;i:3;i:24;i:3;i:25;i:3;i:26;i:3;i:31;i:4;i:32;i:4;i:33;i:4;i:34;i:4;i:35;i:4;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/4eff86aaa57c59f6c5943cd406f65c9f b/.phpunit.cache/code-coverage/4eff86aaa57c59f6c5943cd406f65c9f new file mode 100644 index 0000000..6337e65 --- /dev/null +++ b/.phpunit.cache/code-coverage/4eff86aaa57c59f6c5943cd406f65c9f @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:65:"CodebarAg\DocuWare\Responses\Documents\GetDocumentPreviewResponse";a:6:{s:4:"name";s:26:"GetDocumentPreviewResponse";s:14:"namespacedName";s:65:"CodebarAg\DocuWare\Responses\Documents\GetDocumentPreviewResponse";s:9:"namespace";s:38:"CodebarAg\DocuWare\Responses\Documents";s:9:"startLine";i:9;s:7:"endLine";i:19;s:7:"methods";a:1:{s:12:"fromResponse";a:6:{s:10:"methodName";s:12:"fromResponse";s:9:"signature";s:52:"fromResponse(Saloon\Http\Response $response): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:11;s:7:"endLine";i:18;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:20;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:20;}s:15:"ignoredLinesFor";a:1:{i:0;i:9;}s:17:"executableLinesIn";a:3:{i:13;i:1;i:15;i:2;i:17;i:3;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/50c0c7805b3bb7226764283d71d40c9b b/.phpunit.cache/code-coverage/50c0c7805b3bb7226764283d71d40c9b new file mode 100644 index 0000000..42f53cf --- /dev/null +++ b/.phpunit.cache/code-coverage/50c0c7805b3bb7226764283d71d40c9b @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:63:"CodebarAg\DocuWare\Requests\Documents\GetDocumentPreviewRequest";a:6:{s:4:"name";s:25:"GetDocumentPreviewRequest";s:14:"namespacedName";s:63:"CodebarAg\DocuWare\Requests\Documents\GetDocumentPreviewRequest";s:9:"namespace";s:37:"CodebarAg\DocuWare\Requests\Documents";s:9:"startLine";i:14;s:7:"endLine";i:45;s:7:"methods";a:5:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:54:"__construct(string $fileCabinetId, string $documentId)";s:10:"visibility";s:6:"public";s:9:"startLine";i:20;s:7:"endLine";i:24;s:3:"ccn";i:1;}s:15:"resolveEndpoint";a:6:{s:10:"methodName";s:15:"resolveEndpoint";s:9:"signature";s:25:"resolveEndpoint(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:26;s:7:"endLine";i:29;s:3:"ccn";i:1;}s:18:"resolveCacheDriver";a:6:{s:10:"methodName";s:18:"resolveCacheDriver";s:9:"signature";s:67:"resolveCacheDriver(): Saloon\CachePlugin\Drivers\LaravelCacheDriver";s:10:"visibility";s:6:"public";s:9:"startLine";i:31;s:7:"endLine";i:34;s:3:"ccn";i:1;}s:20:"cacheExpiryInSeconds";a:6:{s:10:"methodName";s:20:"cacheExpiryInSeconds";s:9:"signature";s:27:"cacheExpiryInSeconds(): int";s:10:"visibility";s:6:"public";s:9:"startLine";i:36;s:7:"endLine";i:39;s:3:"ccn";i:1;}s:21:"createDtoFromResponse";a:6:{s:10:"methodName";s:21:"createDtoFromResponse";s:9:"signature";s:61:"createDtoFromResponse(Saloon\Http\Response $response): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:41;s:7:"endLine";i:44;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:46;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:46;}s:15:"ignoredLinesFor";a:1:{i:0;i:14;}s:17:"executableLinesIn";a:5:{i:24;i:3;i:28;i:4;i:33;i:5;i:38;i:6;i:43;i:7;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/5104a2cb0cd1d420eb4900e94a753c44 b/.phpunit.cache/code-coverage/5104a2cb0cd1d420eb4900e94a753c44 new file mode 100644 index 0000000..7ea5324 --- /dev/null +++ b/.phpunit.cache/code-coverage/5104a2cb0cd1d420eb4900e94a753c44 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:79:"CodebarAg\DocuWare\Responses\Documents\ModifyDocuments\TransferDocumentResponse";a:6:{s:4:"name";s:24:"TransferDocumentResponse";s:14:"namespacedName";s:79:"CodebarAg\DocuWare\Responses\Documents\ModifyDocuments\TransferDocumentResponse";s:9:"namespace";s:54:"CodebarAg\DocuWare\Responses\Documents\ModifyDocuments";s:9:"startLine";i:9;s:7:"endLine";i:19;s:7:"methods";a:1:{s:12:"fromResponse";a:6:{s:10:"methodName";s:12:"fromResponse";s:9:"signature";s:50:"fromResponse(Saloon\Http\Response $response): bool";s:10:"visibility";s:6:"public";s:9:"startLine";i:11;s:7:"endLine";i:18;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:20;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:20;}s:15:"ignoredLinesFor";a:1:{i:0;i:9;}s:17:"executableLinesIn";a:3:{i:13;i:1;i:15;i:2;i:17;i:3;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/514660e297358b41075608c6c3049b11 b/.phpunit.cache/code-coverage/514660e297358b41075608c6c3049b11 new file mode 100644 index 0000000..5054f18 --- /dev/null +++ b/.phpunit.cache/code-coverage/514660e297358b41075608c6c3049b11 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:63:"CodebarAg\DocuWare\DTO\Documents\DocumentIndex\IndexDateTimeDTO";a:6:{s:4:"name";s:16:"IndexDateTimeDTO";s:14:"namespacedName";s:63:"CodebarAg\DocuWare\DTO\Documents\DocumentIndex\IndexDateTimeDTO";s:9:"namespace";s:46:"CodebarAg\DocuWare\DTO\Documents\DocumentIndex";s:9:"startLine";i:7;s:7:"endLine";i:37;s:7:"methods";a:4:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:80:"__construct(string $name, null|\Illuminate\Support\Carbon|\Carbon\Carbon $value)";s:10:"visibility";s:6:"public";s:9:"startLine";i:9;s:7:"endLine";i:14;s:3:"ccn";i:1;}s:4:"make";a:6:{s:10:"methodName";s:4:"make";s:9:"signature";s:79:"make(string $name, null|\Illuminate\Support\Carbon|\Carbon\Carbon $value): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:16;s:7:"endLine";i:19;s:3:"ccn";i:1;}s:16:"makeWithFallback";a:6:{s:10:"methodName";s:16:"makeWithFallback";s:9:"signature";s:45:"makeWithFallback($name, object $value): mixed";s:10:"visibility";s:6:"public";s:9:"startLine";i:21;s:7:"endLine";i:27;s:3:"ccn";i:1;}s:6:"values";a:6:{s:10:"methodName";s:6:"values";s:9:"signature";s:15:"values(): array";s:10:"visibility";s:6:"public";s:9:"startLine";i:29;s:7:"endLine";i:36;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:38;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:38;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:11:{i:14;i:1;i:18;i:2;i:23;i:3;i:24;i:3;i:25;i:3;i:26;i:3;i:31;i:4;i:32;i:4;i:33;i:4;i:34;i:4;i:35;i:4;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/52e5f8a1923c4902c36e78d701f57ca8 b/.phpunit.cache/code-coverage/52e5f8a1923c4902c36e78d701f57ca8 new file mode 100644 index 0000000..2eae0d8 --- /dev/null +++ b/.phpunit.cache/code-coverage/52e5f8a1923c4902c36e78d701f57ca8 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:57:"CodebarAg\DocuWare\DTO\Documents\DocumentIndex\PrepareDTO";a:6:{s:4:"name";s:10:"PrepareDTO";s:14:"namespacedName";s:57:"CodebarAg\DocuWare\DTO\Documents\DocumentIndex\PrepareDTO";s:9:"namespace";s:46:"CodebarAg\DocuWare\DTO\Documents\DocumentIndex";s:9:"startLine";i:7;s:7:"endLine";i:42;s:7:"methods";a:3:{s:5:"guess";a:6:{s:10:"methodName";s:5:"guess";s:9:"signature";s:40:"guess(string $name, mixed $value): mixed";s:10:"visibility";s:6:"public";s:9:"startLine";i:9;s:7:"endLine";i:20;s:3:"ccn";i:1;}s:10:"makeFields";a:6:{s:10:"methodName";s:10:"makeFields";s:9:"signature";s:57:"makeFields(Illuminate\Support\Collection $indexes): array";s:10:"visibility";s:6:"public";s:9:"startLine";i:22;s:7:"endLine";i:30;s:3:"ccn";i:1;}s:9:"makeField";a:6:{s:10:"methodName";s:9:"makeField";s:9:"signature";s:75:"makeField(Illuminate\Support\Collection $indexes, bool $forceUpdate): array";s:10:"visibility";s:6:"public";s:9:"startLine";i:32;s:7:"endLine";i:41;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:43;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:43;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:21:{i:11;i:1;i:13;i:2;i:14;i:2;i:15;i:2;i:16;i:2;i:17;i:2;i:18;i:2;i:19;i:2;i:24;i:3;i:25;i:3;i:26;i:3;i:27;i:3;i:28;i:3;i:29;i:3;i:34;i:4;i:35;i:4;i:36;i:4;i:37;i:4;i:38;i:4;i:39;i:4;i:40;i:4;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/59ce378d5aeb3ddd308919b891dc2ece b/.phpunit.cache/code-coverage/59ce378d5aeb3ddd308919b891dc2ece new file mode 100644 index 0000000..cc417f5 --- /dev/null +++ b/.phpunit.cache/code-coverage/59ce378d5aeb3ddd308919b891dc2ece @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:75:"CodebarAg\DocuWare\Responses\General\Organization\RequestLoginTokenResponse";a:6:{s:4:"name";s:25:"RequestLoginTokenResponse";s:14:"namespacedName";s:75:"CodebarAg\DocuWare\Responses\General\Organization\RequestLoginTokenResponse";s:9:"namespace";s:49:"CodebarAg\DocuWare\Responses\General\Organization";s:9:"startLine";i:9;s:7:"endLine";i:19;s:7:"methods";a:1:{s:12:"fromResponse";a:6:{s:10:"methodName";s:12:"fromResponse";s:9:"signature";s:52:"fromResponse(Saloon\Http\Response $response): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:11;s:7:"endLine";i:18;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:20;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:20;}s:15:"ignoredLinesFor";a:1:{i:0;i:9;}s:17:"executableLinesIn";a:3:{i:13;i:1;i:15;i:2;i:17;i:3;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/5d021a71c91ad28c4ef9f35793d08372 b/.phpunit.cache/code-coverage/5d021a71c91ad28c4ef9f35793d08372 new file mode 100644 index 0000000..2c190c5 --- /dev/null +++ b/.phpunit.cache/code-coverage/5d021a71c91ad28c4ef9f35793d08372 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:47:"CodebarAg\DocuWare\DocuWareSearchRequestBuilder";a:6:{s:4:"name";s:28:"DocuWareSearchRequestBuilder";s:14:"namespacedName";s:47:"CodebarAg\DocuWare\DocuWareSearchRequestBuilder";s:9:"namespace";s:18:"CodebarAg\DocuWare";s:9:"startLine";i:12;s:7:"endLine";i:260;s:7:"methods";a:17:{s:11:"fileCabinet";a:6:{s:10:"methodName";s:11:"fileCabinet";s:9:"signature";s:40:"fileCabinet(string $fileCabinetId): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:34;s:7:"endLine";i:39;s:3:"ccn";i:1;}s:12:"fileCabinets";a:6:{s:10:"methodName";s:12:"fileCabinets";s:9:"signature";s:41:"fileCabinets(array $fileCabinetIds): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:41;s:7:"endLine";i:48;s:3:"ccn";i:1;}s:6:"dialog";a:6:{s:10:"methodName";s:6:"dialog";s:9:"signature";s:30:"dialog(string $dialogId): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:50;s:7:"endLine";i:55;s:3:"ccn";i:1;}s:4:"page";a:6:{s:10:"methodName";s:4:"page";s:9:"signature";s:22:"page(?int $page): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:57;s:7:"endLine";i:66;s:3:"ccn";i:2;}s:7:"perPage";a:6:{s:10:"methodName";s:7:"perPage";s:9:"signature";s:28:"perPage(?int $perPage): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:68;s:7:"endLine";i:77;s:3:"ccn";i:2;}s:8:"fulltext";a:6:{s:10:"methodName";s:8:"fulltext";s:9:"signature";s:35:"fulltext(?string $searchTerm): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:79;s:7:"endLine";i:84;s:3:"ccn";i:1;}s:10:"filterDate";a:6:{s:10:"methodName";s:10:"filterDate";s:9:"signature";s:70:"filterDate(string $name, string $operator, ?Carbon\Carbon $date): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:86;s:7:"endLine";i:96;s:3:"ccn";i:1;}s:7:"orderBy";a:6:{s:10:"methodName";s:7:"orderBy";s:9:"signature";s:48:"orderBy(string $field, ?string $direction): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:98;s:7:"endLine";i:109;s:3:"ccn";i:2;}s:21:"prepareValueForFilter";a:6:{s:10:"methodName";s:21:"prepareValueForFilter";s:9:"signature";s:42:"prepareValueForFilter(mixed $value): mixed";s:10:"visibility";s:7:"private";s:9:"startLine";i:111;s:7:"endLine";i:118;s:3:"ccn";i:2;}s:6:"filter";a:6:{s:10:"methodName";s:6:"filter";s:9:"signature";s:40:"filter(string $name, mixed $value): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:120;s:7:"endLine";i:125;s:3:"ccn";i:1;}s:8:"filterIn";a:6:{s:10:"methodName";s:8:"filterIn";s:9:"signature";s:43:"filterIn(string $name, mixed $values): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:127;s:7:"endLine";i:140;s:3:"ccn";i:2;}s:3:"get";a:6:{s:10:"methodName";s:3:"get";s:9:"signature";s:58:"get(): CodebarAg\DocuWare\Requests\Search\GetSearchRequest";s:10:"visibility";s:6:"public";s:9:"startLine";i:147;s:7:"endLine";i:184;s:3:"ccn";i:4;}s:5:"guard";a:6:{s:10:"methodName";s:5:"guard";s:9:"signature";s:13:"guard(): void";s:10:"visibility";s:9:"protected";s:9:"startLine";i:186;s:7:"endLine";i:202;s:3:"ccn";i:1;}s:30:"checkDateFilterRangeDivergence";a:6:{s:10:"methodName";s:30:"checkDateFilterRangeDivergence";s:9:"signature";s:38:"checkDateFilterRangeDivergence(): void";s:10:"visibility";s:7:"private";s:9:"startLine";i:204;s:7:"endLine";i:217;s:3:"ccn";i:4;}s:30:"restructureMonoDateFilterRange";a:6:{s:10:"methodName";s:30:"restructureMonoDateFilterRange";s:9:"signature";s:38:"restructureMonoDateFilterRange(): void";s:10:"visibility";s:7:"private";s:9:"startLine";i:219;s:7:"endLine";i:230;s:3:"ccn";i:3;}s:32:"makeSureFilterDateRangeIsCorrect";a:6:{s:10:"methodName";s:32:"makeSureFilterDateRangeIsCorrect";s:9:"signature";s:56:"makeSureFilterDateRangeIsCorrect($name, $operator): void";s:10:"visibility";s:7:"private";s:9:"startLine";i:232;s:7:"endLine";i:250;s:3:"ccn";i:6;}s:13:"exactDateTime";a:6:{s:10:"methodName";s:13:"exactDateTime";s:9:"signature";s:46:"exactDateTime($date, $operator): Carbon\Carbon";s:10:"visibility";s:7:"private";s:9:"startLine";i:252;s:7:"endLine";i:259;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:261;s:18:"commentLinesOfCode";i:6;s:21:"nonCommentLinesOfCode";i:255;}s:15:"ignoredLinesFor";a:1:{i:0;i:12;}s:17:"executableLinesIn";a:108:{i:36;i:11;i:38;i:12;i:43;i:13;i:45;i:14;i:47;i:15;i:52;i:16;i:54;i:17;i:59;i:18;i:60;i:19;i:62;i:20;i:65;i:21;i:70;i:22;i:71;i:23;i:73;i:24;i:76;i:25;i:81;i:26;i:83;i:27;i:88;i:28;i:90;i:29;i:92;i:30;i:93;i:31;i:95;i:32;i:100;i:33;i:102;i:34;i:103;i:35;i:105;i:36;i:108;i:37;i:113;i:38;i:114;i:39;i:117;i:40;i:122;i:41;i:124;i:42;i:129;i:43;i:130;i:44;i:133;i:45;i:135;i:45;i:134;i:46;i:137;i:47;i:139;i:48;i:149;i:49;i:150;i:50;i:151;i:51;i:153;i:52;i:155;i:53;i:156;i:54;i:157;i:54;i:158;i:54;i:159;i:54;i:162;i:55;i:163;i:56;i:164;i:57;i:167;i:58;i:168;i:58;i:169;i:58;i:170;i:58;i:173;i:59;i:174;i:59;i:175;i:59;i:176;i:59;i:177;i:59;i:178;i:59;i:179;i:59;i:180;i:59;i:181;i:59;i:182;i:59;i:183;i:59;i:188;i:60;i:189;i:60;i:190;i:60;i:191;i:60;i:193;i:61;i:194;i:61;i:195;i:61;i:196;i:61;i:198;i:62;i:199;i:62;i:200;i:62;i:201;i:62;i:206;i:63;i:207;i:64;i:208;i:65;i:209;i:66;i:210;i:66;i:211;i:66;i:212;i:66;i:213;i:67;i:221;i:68;i:222;i:69;i:223;i:70;i:224;i:70;i:225;i:70;i:226;i:70;i:227;i:70;i:234;i:71;i:235;i:72;i:236;i:73;i:237;i:74;i:238;i:75;i:239;i:76;i:241;i:77;i:244;i:78;i:247;i:79;i:248;i:80;i:254;i:81;i:255;i:81;i:256;i:81;i:257;i:81;i:258;i:81;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/5e717aabd3b3da3617e2b5e667758131 b/.phpunit.cache/code-coverage/5e717aabd3b3da3617e2b5e667758131 new file mode 100644 index 0000000..9e99d6e --- /dev/null +++ b/.phpunit.cache/code-coverage/5e717aabd3b3da3617e2b5e667758131 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:30:"CodebarAg\DocuWare\DTO\Section";a:6:{s:4:"name";s:7:"Section";s:14:"namespacedName";s:30:"CodebarAg\DocuWare\DTO\Section";s:9:"namespace";s:22:"CodebarAg\DocuWare\DTO";s:9:"startLine";i:7;s:7:"endLine";i:36;s:7:"methods";a:2:{s:8:"fromJson";a:6:{s:10:"methodName";s:8:"fromJson";s:9:"signature";s:27:"fromJson(array $data): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:9;s:7:"endLine";i:22;s:3:"ccn";i:1;}s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:200:"__construct(string $id, string $contentType, bool $haveMorePages, int $pageCount, int $fileSize, string $originalFileName, string $contentModified, bool $annotationsPreview, ?bool $hasTextAnnotations)";s:10:"visibility";s:6:"public";s:9:"startLine";i:24;s:7:"endLine";i:35;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:37;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:37;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:12:{i:11;i:1;i:12;i:1;i:13;i:1;i:14;i:1;i:15;i:1;i:16;i:1;i:17;i:1;i:18;i:1;i:19;i:1;i:20;i:1;i:21;i:1;i:35;i:2;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/6175ce3b3f1607d0a82a771788659a51 b/.phpunit.cache/code-coverage/6175ce3b3f1607d0a82a771788659a51 new file mode 100644 index 0000000..5c74552 --- /dev/null +++ b/.phpunit.cache/code-coverage/6175ce3b3f1607d0a82a771788659a51 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:41:"CodebarAg\DocuWare\DTO\Documents\TableRow";a:6:{s:4:"name";s:8:"TableRow";s:14:"namespacedName";s:41:"CodebarAg\DocuWare\DTO\Documents\TableRow";s:9:"namespace";s:32:"CodebarAg\DocuWare\DTO\Documents";s:9:"startLine";i:7;s:7:"endLine";i:40;s:7:"methods";a:4:{s:8:"fromJson";a:6:{s:10:"methodName";s:8:"fromJson";s:9:"signature";s:27:"fromJson(array $data): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:9;s:7:"endLine";i:16;s:3:"ccn";i:1;}s:13:"convertFields";a:6:{s:10:"methodName";s:13:"convertFields";s:9:"signature";s:83:"convertFields(Illuminate\Support\Collection $fields): Illuminate\Support\Collection";s:10:"visibility";s:9:"protected";s:9:"startLine";i:18;s:7:"endLine";i:23;s:3:"ccn";i:1;}s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:50:"__construct(Illuminate\Support\Collection $fields)";s:10:"visibility";s:6:"public";s:9:"startLine";i:25;s:7:"endLine";i:28;s:3:"ccn";i:1;}s:4:"fake";a:6:{s:10:"methodName";s:4:"fake";s:9:"signature";s:50:"fake(?Illuminate\Support\Collection $fields): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:30;s:7:"endLine";i:39;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:41;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:41;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:14:{i:11;i:1;i:13;i:2;i:14;i:2;i:15;i:2;i:20;i:3;i:22;i:3;i:21;i:4;i:28;i:5;i:33;i:6;i:34;i:6;i:35;i:6;i:36;i:6;i:37;i:6;i:38;i:6;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/623b6a9264713fec39cb6ecf392a8391 b/.phpunit.cache/code-coverage/623b6a9264713fec39cb6ecf392a8391 new file mode 100644 index 0000000..c86b873 --- /dev/null +++ b/.phpunit.cache/code-coverage/623b6a9264713fec39cb6ecf392a8391 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:74:"CodebarAg\DocuWare\Requests\FileCabinets\General\GetFileCabinetInformation";a:6:{s:4:"name";s:25:"GetFileCabinetInformation";s:14:"namespacedName";s:74:"CodebarAg\DocuWare\Requests\FileCabinets\General\GetFileCabinetInformation";s:9:"namespace";s:48:"CodebarAg\DocuWare\Requests\FileCabinets\General";s:9:"startLine";i:15;s:7:"endLine";i:45;s:7:"methods";a:5:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:34:"__construct(string $fileCabinetId)";s:10:"visibility";s:6:"public";s:9:"startLine";i:21;s:7:"endLine";i:24;s:3:"ccn";i:1;}s:15:"resolveEndpoint";a:6:{s:10:"methodName";s:15:"resolveEndpoint";s:9:"signature";s:25:"resolveEndpoint(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:26;s:7:"endLine";i:29;s:3:"ccn";i:1;}s:18:"resolveCacheDriver";a:6:{s:10:"methodName";s:18:"resolveCacheDriver";s:9:"signature";s:67:"resolveCacheDriver(): Saloon\CachePlugin\Drivers\LaravelCacheDriver";s:10:"visibility";s:6:"public";s:9:"startLine";i:31;s:7:"endLine";i:34;s:3:"ccn";i:1;}s:20:"cacheExpiryInSeconds";a:6:{s:10:"methodName";s:20:"cacheExpiryInSeconds";s:9:"signature";s:27:"cacheExpiryInSeconds(): int";s:10:"visibility";s:6:"public";s:9:"startLine";i:36;s:7:"endLine";i:39;s:3:"ccn";i:1;}s:21:"createDtoFromResponse";a:6:{s:10:"methodName";s:21:"createDtoFromResponse";s:9:"signature";s:121:"createDtoFromResponse(Saloon\Http\Response $response): CodebarAg\DocuWare\DTO\FileCabinets\General\FileCabinetInformation";s:10:"visibility";s:6:"public";s:9:"startLine";i:41;s:7:"endLine";i:44;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:46;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:46;}s:15:"ignoredLinesFor";a:1:{i:0;i:15;}s:17:"executableLinesIn";a:5:{i:24;i:3;i:28;i:4;i:33;i:5;i:38;i:6;i:43;i:7;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/64edb4975b341690f8d9a9e23774b5f1 b/.phpunit.cache/code-coverage/64edb4975b341690f8d9a9e23774b5f1 new file mode 100644 index 0000000..32eb2a8 --- /dev/null +++ b/.phpunit.cache/code-coverage/64edb4975b341690f8d9a9e23774b5f1 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:78:"CodebarAg\DocuWare\Requests\Authentication\OAuth\GetResponsibleIdentityService";a:6:{s:4:"name";s:29:"GetResponsibleIdentityService";s:14:"namespacedName";s:78:"CodebarAg\DocuWare\Requests\Authentication\OAuth\GetResponsibleIdentityService";s:9:"namespace";s:48:"CodebarAg\DocuWare\Requests\Authentication\OAuth";s:9:"startLine";i:11;s:7:"endLine";i:33;s:7:"methods";a:3:{s:15:"resolveEndpoint";a:6:{s:10:"methodName";s:15:"resolveEndpoint";s:9:"signature";s:25:"resolveEndpoint(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:15;s:7:"endLine";i:20;s:3:"ccn";i:1;}s:14:"defaultHeaders";a:6:{s:10:"methodName";s:14:"defaultHeaders";s:9:"signature";s:23:"defaultHeaders(): array";s:10:"visibility";s:6:"public";s:9:"startLine";i:22;s:7:"endLine";i:27;s:3:"ccn";i:1;}s:21:"createDtoFromResponse";a:6:{s:10:"methodName";s:21:"createDtoFromResponse";s:9:"signature";s:125:"createDtoFromResponse(Saloon\Http\Response $response): CodebarAg\DocuWare\DTO\Authentication\OAuth\ResponsibleIdentityService";s:10:"visibility";s:6:"public";s:9:"startLine";i:29;s:7:"endLine";i:32;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:34;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:34;}s:15:"ignoredLinesFor";a:1:{i:0;i:11;}s:17:"executableLinesIn";a:6:{i:17;i:2;i:19;i:3;i:24;i:4;i:25;i:4;i:26;i:4;i:31;i:5;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/6673ce8f4e1930fd0c44dca5b9a0a9ab b/.phpunit.cache/code-coverage/6673ce8f4e1930fd0c44dca5b9a0a9ab new file mode 100644 index 0000000..934daea --- /dev/null +++ b/.phpunit.cache/code-coverage/6673ce8f4e1930fd0c44dca5b9a0a9ab @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:46:"CodebarAg\DocuWare\Exceptions\MethodNotAllowed";a:6:{s:4:"name";s:16:"MethodNotAllowed";s:14:"namespacedName";s:46:"CodebarAg\DocuWare\Exceptions\MethodNotAllowed";s:9:"namespace";s:29:"CodebarAg\DocuWare\Exceptions";s:9:"startLine";i:7;s:7:"endLine";i:13;s:7:"methods";a:1:{s:6:"create";a:6:{s:10:"methodName";s:6:"create";s:9:"signature";s:14:"create(): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:9;s:7:"endLine";i:12;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:14;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:14;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:1:{i:11;i:1;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/68058e328dc77969de8e1d7021d4ce39 b/.phpunit.cache/code-coverage/68058e328dc77969de8e1d7021d4ce39 new file mode 100644 index 0000000..1a3d965 --- /dev/null +++ b/.phpunit.cache/code-coverage/68058e328dc77969de8e1d7021d4ce39 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:44:"CodebarAg\DocuWare\Exceptions\UnableToLogout";a:6:{s:4:"name";s:14:"UnableToLogout";s:14:"namespacedName";s:44:"CodebarAg\DocuWare\Exceptions\UnableToLogout";s:9:"namespace";s:29:"CodebarAg\DocuWare\Exceptions";s:9:"startLine";i:7;s:7:"endLine";i:13;s:7:"methods";a:1:{s:6:"create";a:6:{s:10:"methodName";s:6:"create";s:9:"signature";s:14:"create(): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:9;s:7:"endLine";i:12;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:14;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:14;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:1:{i:11;i:1;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/68aae4265b8a6436dfc01583259f0fbe b/.phpunit.cache/code-coverage/68aae4265b8a6436dfc01583259f0fbe new file mode 100644 index 0000000..f613fb6 --- /dev/null +++ b/.phpunit.cache/code-coverage/68aae4265b8a6436dfc01583259f0fbe @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:77:"CodebarAg\DocuWare\Responses\Documents\ModifyDocuments\DeleteDocumentResponse";a:6:{s:4:"name";s:22:"DeleteDocumentResponse";s:14:"namespacedName";s:77:"CodebarAg\DocuWare\Responses\Documents\ModifyDocuments\DeleteDocumentResponse";s:9:"namespace";s:54:"CodebarAg\DocuWare\Responses\Documents\ModifyDocuments";s:9:"startLine";i:9;s:7:"endLine";i:19;s:7:"methods";a:1:{s:12:"fromResponse";a:6:{s:10:"methodName";s:12:"fromResponse";s:9:"signature";s:66:"fromResponse(Saloon\Http\Response $response): Saloon\Http\Response";s:10:"visibility";s:6:"public";s:9:"startLine";i:11;s:7:"endLine";i:18;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:20;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:20;}s:15:"ignoredLinesFor";a:1:{i:0;i:9;}s:17:"executableLinesIn";a:3:{i:13;i:1;i:15;i:2;i:17;i:3;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/697a399b0d0644c70898b3d42160c607 b/.phpunit.cache/code-coverage/697a399b0d0644c70898b3d42160c607 new file mode 100644 index 0000000..f6dd693 --- /dev/null +++ b/.phpunit.cache/code-coverage/697a399b0d0644c70898b3d42160c607 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:44:"CodebarAg\DocuWare\Support\EnsureValidCookie";a:6:{s:4:"name";s:17:"EnsureValidCookie";s:14:"namespacedName";s:44:"CodebarAg\DocuWare\Support\EnsureValidCookie";s:9:"namespace";s:26:"CodebarAg\DocuWare\Support";s:9:"startLine";i:13;s:7:"endLine";i:43;s:7:"methods";a:1:{s:5:"check";a:6:{s:10:"methodName";s:5:"check";s:9:"signature";s:13:"check(): void";s:10:"visibility";s:6:"public";s:9:"startLine";i:18;s:7:"endLine";i:42;s:3:"ccn";i:2;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:44;s:18:"commentLinesOfCode";i:3;s:21:"nonCommentLinesOfCode";i:41;}s:15:"ignoredLinesFor";a:1:{i:0;i:13;}s:17:"executableLinesIn";a:12:{i:20;i:1;i:21;i:2;i:24;i:3;i:26;i:4;i:28;i:5;i:30;i:6;i:32;i:7;i:34;i:8;i:36;i:9;i:38;i:10;i:39;i:11;i:41;i:12;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/6db9f133c633b79d9f7157e86a5f4bea b/.phpunit.cache/code-coverage/6db9f133c633b79d9f7157e86a5f4bea new file mode 100644 index 0000000..bd2655a --- /dev/null +++ b/.phpunit.cache/code-coverage/6db9f133c633b79d9f7157e86a5f4bea @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:41:"CodebarAg\DocuWare\DTO\Documents\Document";a:6:{s:4:"name";s:8:"Document";s:14:"namespacedName";s:41:"CodebarAg\DocuWare\DTO\Documents\Document";s:9:"namespace";s:32:"CodebarAg\DocuWare\DTO\Documents";s:9:"startLine";i:12;s:7:"endLine";i:140;s:7:"methods";a:11:{s:8:"fromJson";a:6:{s:10:"methodName";s:8:"fromJson";s:9:"signature";s:27:"fromJson(array $data): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:14;s:7:"endLine";i:38;s:3:"ccn";i:3;}s:13:"convertFields";a:6:{s:10:"methodName";s:13:"convertFields";s:9:"signature";s:83:"convertFields(Illuminate\Support\Collection $fields): Illuminate\Support\Collection";s:10:"visibility";s:9:"protected";s:9:"startLine";i:40;s:7:"endLine";i:45;s:3:"ccn";i:1;}s:18:"convertSuggestions";a:6:{s:10:"methodName";s:18:"convertSuggestions";s:9:"signature";s:94:"convertSuggestions(Illuminate\Support\Collection $suggestions): ?Illuminate\Support\Collection";s:10:"visibility";s:9:"protected";s:9:"startLine";i:47;s:7:"endLine";i:52;s:3:"ccn";i:1;}s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:299:"__construct(int $id, int $file_size, int $total_pages, string $title, ?string $extension, string $content_type, string $file_cabinet_id, ?string $intellixTrust, Carbon\Carbon $created_at, Carbon\Carbon $updated_at, ?Illuminate\Support\Collection $fields, ?Illuminate\Support\Collection $suggestions)";s:10:"visibility";s:6:"public";s:9:"startLine";i:54;s:7:"endLine";i:68;s:3:"ccn";i:1;}s:5:"isPdf";a:6:{s:10:"methodName";s:5:"isPdf";s:9:"signature";s:13:"isPdf(): bool";s:10:"visibility";s:6:"public";s:9:"startLine";i:70;s:7:"endLine";i:73;s:3:"ccn";i:1;}s:6:"isWord";a:6:{s:10:"methodName";s:6:"isWord";s:9:"signature";s:14:"isWord(): bool";s:10:"visibility";s:6:"public";s:9:"startLine";i:75;s:7:"endLine";i:81;s:3:"ccn";i:1;}s:7:"isExcel";a:6:{s:10:"methodName";s:7:"isExcel";s:9:"signature";s:15:"isExcel(): bool";s:10:"visibility";s:6:"public";s:9:"startLine";i:83;s:7:"endLine";i:86;s:3:"ccn";i:1;}s:7:"isImage";a:6:{s:10:"methodName";s:7:"isImage";s:9:"signature";s:15:"isImage(): bool";s:10:"visibility";s:6:"public";s:9:"startLine";i:88;s:7:"endLine";i:94;s:3:"ccn";i:1;}s:8:"isBinary";a:6:{s:10:"methodName";s:8:"isBinary";s:9:"signature";s:16:"isBinary(): bool";s:10:"visibility";s:6:"public";s:9:"startLine";i:96;s:7:"endLine";i:99;s:3:"ccn";i:1;}s:8:"fileName";a:6:{s:10:"methodName";s:8:"fileName";s:9:"signature";s:18:"fileName(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:101;s:7:"endLine";i:106;s:3:"ccn";i:1;}s:4:"fake";a:6:{s:10:"methodName";s:4:"fake";s:9:"signature";s:306:"fake(?int $id, ?int $file_size, ?int $total_pages, ?string $title, ?string $extension, ?string $content_type, ?string $file_cabinet_id, ?string $intellixTrust, ?Carbon\Carbon $created_at, ?Carbon\Carbon $updated_at, ?Illuminate\Support\Collection $fields, ?Illuminate\Support\Collection $suggestions): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:108;s:7:"endLine";i:139;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:141;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:141;}s:15:"ignoredLinesFor";a:1:{i:0;i:12;}s:17:"executableLinesIn";a:57:{i:16;i:1;i:17;i:2;i:18;i:3;i:20;i:4;i:21;i:5;i:22;i:6;i:24;i:7;i:25;i:7;i:26;i:7;i:27;i:7;i:28;i:7;i:29;i:7;i:30;i:7;i:31;i:7;i:32;i:7;i:33;i:7;i:34;i:7;i:35;i:7;i:36;i:7;i:37;i:7;i:42;i:8;i:44;i:8;i:43;i:9;i:49;i:10;i:51;i:10;i:50;i:11;i:68;i:12;i:72;i:13;i:77;i:14;i:78;i:14;i:79;i:14;i:80;i:14;i:85;i:15;i:90;i:16;i:91;i:16;i:92;i:16;i:93;i:16;i:98;i:17;i:103;i:18;i:105;i:19;i:122;i:20;i:123;i:20;i:124;i:20;i:125;i:20;i:126;i:20;i:127;i:20;i:128;i:20;i:129;i:20;i:130;i:20;i:131;i:20;i:132;i:20;i:133;i:20;i:134;i:20;i:135;i:20;i:136;i:20;i:137;i:20;i:138;i:20;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/704848a76c3966df6487227684d1b713 b/.phpunit.cache/code-coverage/704848a76c3966df6487227684d1b713 new file mode 100644 index 0000000..6af1722 --- /dev/null +++ b/.phpunit.cache/code-coverage/704848a76c3966df6487227684d1b713 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:0:{}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:11;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:11;}s:15:"ignoredLinesFor";a:0:{}s:17:"executableLinesIn";a:0:{}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/728ef8ceaf422a2c0b5472a968da1a97 b/.phpunit.cache/code-coverage/728ef8ceaf422a2c0b5472a968da1a97 new file mode 100644 index 0000000..f0e87ac --- /dev/null +++ b/.phpunit.cache/code-coverage/728ef8ceaf422a2c0b5472a968da1a97 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:84:"CodebarAg\DocuWare\Requests\FileCabinets\Search\GetASpecificDocumentFromAFileCabinet";a:6:{s:4:"name";s:36:"GetASpecificDocumentFromAFileCabinet";s:14:"namespacedName";s:84:"CodebarAg\DocuWare\Requests\FileCabinets\Search\GetASpecificDocumentFromAFileCabinet";s:9:"namespace";s:47:"CodebarAg\DocuWare\Requests\FileCabinets\Search";s:9:"startLine";i:15;s:7:"endLine";i:46;s:7:"methods";a:5:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:54:"__construct(string $fileCabinetId, string $documentId)";s:10:"visibility";s:6:"public";s:9:"startLine";i:21;s:7:"endLine";i:25;s:3:"ccn";i:1;}s:15:"resolveEndpoint";a:6:{s:10:"methodName";s:15:"resolveEndpoint";s:9:"signature";s:25:"resolveEndpoint(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:27;s:7:"endLine";i:30;s:3:"ccn";i:1;}s:18:"resolveCacheDriver";a:6:{s:10:"methodName";s:18:"resolveCacheDriver";s:9:"signature";s:67:"resolveCacheDriver(): Saloon\CachePlugin\Drivers\LaravelCacheDriver";s:10:"visibility";s:6:"public";s:9:"startLine";i:32;s:7:"endLine";i:35;s:3:"ccn";i:1;}s:20:"cacheExpiryInSeconds";a:6:{s:10:"methodName";s:20:"cacheExpiryInSeconds";s:9:"signature";s:27:"cacheExpiryInSeconds(): int";s:10:"visibility";s:6:"public";s:9:"startLine";i:37;s:7:"endLine";i:40;s:3:"ccn";i:1;}s:21:"createDtoFromResponse";a:6:{s:10:"methodName";s:21:"createDtoFromResponse";s:9:"signature";s:96:"createDtoFromResponse(Saloon\Http\Response $response): CodebarAg\DocuWare\DTO\Documents\Document";s:10:"visibility";s:6:"public";s:9:"startLine";i:42;s:7:"endLine";i:45;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:47;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:47;}s:15:"ignoredLinesFor";a:1:{i:0;i:15;}s:17:"executableLinesIn";a:5:{i:25;i:3;i:29;i:4;i:34;i:5;i:39;i:6;i:44;i:7;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/7452059d8b43eb32172482a980be1246 b/.phpunit.cache/code-coverage/7452059d8b43eb32172482a980be1246 new file mode 100644 index 0000000..7def15c --- /dev/null +++ b/.phpunit.cache/code-coverage/7452059d8b43eb32172482a980be1246 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:37:"CodebarAg\DocuWare\Support\ParseValue";a:6:{s:4:"name";s:10:"ParseValue";s:14:"namespacedName";s:37:"CodebarAg\DocuWare\Support\ParseValue";s:9:"namespace";s:26:"CodebarAg\DocuWare\Support";s:9:"startLine";i:11;s:7:"endLine";i:61;s:7:"methods";a:4:{s:5:"field";a:6:{s:10:"methodName";s:5:"field";s:9:"signature";s:167:"field(?array $field, int|float|\Carbon\Carbon|string|\Illuminate\Support\Collection|null $default): null|int|float|\Carbon\Carbon|string|\Illuminate\Support\Collection";s:10:"visibility";s:6:"public";s:9:"startLine";i:13;s:7:"endLine";i:33;s:3:"ccn";i:3;}s:4:"date";a:6:{s:10:"methodName";s:4:"date";s:9:"signature";s:33:"date(string $date): Carbon\Carbon";s:10:"visibility";s:6:"public";s:9:"startLine";i:35;s:7:"endLine";i:43;s:3:"ccn";i:1;}s:5:"table";a:6:{s:10:"methodName";s:5:"table";s:9:"signature";s:50:"table(array $Item): ?Illuminate\Support\Collection";s:10:"visibility";s:6:"public";s:9:"startLine";i:45;s:7:"endLine";i:51;s:3:"ccn";i:1;}s:23:"documentIndexFieldTable";a:6:{s:10:"methodName";s:23:"documentIndexFieldTable";s:9:"signature";s:67:"documentIndexFieldTable(array $Row): ?Illuminate\Support\Collection";s:10:"visibility";s:6:"public";s:9:"startLine";i:53;s:7:"endLine";i:60;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:62;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:62;}s:15:"ignoredLinesFor";a:1:{i:0;i:11;}s:17:"executableLinesIn";a:26:{i:17;i:1;i:18;i:2;i:21;i:3;i:22;i:4;i:24;i:5;i:25;i:5;i:26;i:5;i:27;i:5;i:28;i:5;i:29;i:5;i:30;i:5;i:31;i:5;i:32;i:5;i:37;i:6;i:38;i:6;i:39;i:6;i:40;i:6;i:42;i:7;i:47;i:8;i:48;i:8;i:49;i:8;i:50;i:8;i:55;i:9;i:57;i:10;i:59;i:10;i:58;i:11;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/792112cad550b12c0027961e1d6eacec b/.phpunit.cache/code-coverage/792112cad550b12c0027961e1d6eacec new file mode 100644 index 0000000..6c78659 --- /dev/null +++ b/.phpunit.cache/code-coverage/792112cad550b12c0027961e1d6eacec @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:83:"CodebarAg\DocuWare\Requests\General\Organization\GetAllFileCabinetsAndDocumentTrays";a:6:{s:4:"name";s:34:"GetAllFileCabinetsAndDocumentTrays";s:14:"namespacedName";s:83:"CodebarAg\DocuWare\Requests\General\Organization\GetAllFileCabinetsAndDocumentTrays";s:9:"namespace";s:48:"CodebarAg\DocuWare\Requests\General\Organization";s:9:"startLine";i:16;s:7:"endLine";i:56;s:7:"methods";a:6:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:36:"__construct(?string $organizationId)";s:10:"visibility";s:6:"public";s:9:"startLine";i:25;s:7:"endLine";i:28;s:3:"ccn";i:1;}s:15:"resolveEndpoint";a:6:{s:10:"methodName";s:15:"resolveEndpoint";s:9:"signature";s:25:"resolveEndpoint(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:30;s:7:"endLine";i:33;s:3:"ccn";i:1;}s:12:"defaultQuery";a:6:{s:10:"methodName";s:12:"defaultQuery";s:9:"signature";s:21:"defaultQuery(): array";s:10:"visibility";s:9:"protected";s:9:"startLine";i:35;s:7:"endLine";i:40;s:3:"ccn";i:1;}s:18:"resolveCacheDriver";a:6:{s:10:"methodName";s:18:"resolveCacheDriver";s:9:"signature";s:67:"resolveCacheDriver(): Saloon\CachePlugin\Drivers\LaravelCacheDriver";s:10:"visibility";s:6:"public";s:9:"startLine";i:42;s:7:"endLine";i:45;s:3:"ccn";i:1;}s:20:"cacheExpiryInSeconds";a:6:{s:10:"methodName";s:20:"cacheExpiryInSeconds";s:9:"signature";s:27:"cacheExpiryInSeconds(): int";s:10:"visibility";s:6:"public";s:9:"startLine";i:47;s:7:"endLine";i:50;s:3:"ccn";i:1;}s:21:"createDtoFromResponse";a:6:{s:10:"methodName";s:21:"createDtoFromResponse";s:9:"signature";s:116:"createDtoFromResponse(Saloon\Http\Response $response): \Illuminate\Support\Collection|\Illuminate\Support\Enumerable";s:10:"visibility";s:6:"public";s:9:"startLine";i:52;s:7:"endLine";i:55;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:57;s:18:"commentLinesOfCode";i:3;s:21:"nonCommentLinesOfCode";i:54;}s:15:"ignoredLinesFor";a:1:{i:0;i:16;}s:17:"executableLinesIn";a:8:{i:28;i:3;i:32;i:4;i:37;i:5;i:38;i:5;i:39;i:5;i:44;i:6;i:49;i:7;i:54;i:8;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/7e41f3446b1a03209c6ea8004a6baaab b/.phpunit.cache/code-coverage/7e41f3446b1a03209c6ea8004a6baaab new file mode 100644 index 0000000..cff0f7f --- /dev/null +++ b/.phpunit.cache/code-coverage/7e41f3446b1a03209c6ea8004a6baaab @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:55:"CodebarAg\DocuWare\Requests\Sections\GetSectionsRequest";a:6:{s:4:"name";s:18:"GetSectionsRequest";s:14:"namespacedName";s:55:"CodebarAg\DocuWare\Requests\Sections\GetSectionsRequest";s:9:"namespace";s:36:"CodebarAg\DocuWare\Requests\Sections";s:9:"startLine";i:16;s:7:"endLine";i:54;s:7:"methods";a:6:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:51:"__construct(string $fileCabinetId, int $documentId)";s:10:"visibility";s:6:"public";s:9:"startLine";i:22;s:7:"endLine";i:26;s:3:"ccn";i:1;}s:15:"resolveEndpoint";a:6:{s:10:"methodName";s:15:"resolveEndpoint";s:9:"signature";s:25:"resolveEndpoint(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:28;s:7:"endLine";i:31;s:3:"ccn";i:1;}s:12:"defaultQuery";a:6:{s:10:"methodName";s:12:"defaultQuery";s:9:"signature";s:21:"defaultQuery(): array";s:10:"visibility";s:6:"public";s:9:"startLine";i:33;s:7:"endLine";i:38;s:3:"ccn";i:1;}s:18:"resolveCacheDriver";a:6:{s:10:"methodName";s:18:"resolveCacheDriver";s:9:"signature";s:67:"resolveCacheDriver(): Saloon\CachePlugin\Drivers\LaravelCacheDriver";s:10:"visibility";s:6:"public";s:9:"startLine";i:40;s:7:"endLine";i:43;s:3:"ccn";i:1;}s:20:"cacheExpiryInSeconds";a:6:{s:10:"methodName";s:20:"cacheExpiryInSeconds";s:9:"signature";s:27:"cacheExpiryInSeconds(): int";s:10:"visibility";s:6:"public";s:9:"startLine";i:45;s:7:"endLine";i:48;s:3:"ccn";i:1;}s:21:"createDtoFromResponse";a:6:{s:10:"methodName";s:21:"createDtoFromResponse";s:9:"signature";s:116:"createDtoFromResponse(Saloon\Http\Response $response): \Illuminate\Support\Collection|\Illuminate\Support\Enumerable";s:10:"visibility";s:6:"public";s:9:"startLine";i:50;s:7:"endLine";i:53;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:55;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:55;}s:15:"ignoredLinesFor";a:1:{i:0;i:16;}s:17:"executableLinesIn";a:8:{i:26;i:3;i:30;i:4;i:35;i:5;i:36;i:5;i:37;i:5;i:42;i:6;i:47;i:7;i:52;i:8;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/8207d7f799d6c56b917a08d66eb5da88 b/.phpunit.cache/code-coverage/8207d7f799d6c56b917a08d66eb5da88 new file mode 100644 index 0000000..ec27ffd --- /dev/null +++ b/.phpunit.cache/code-coverage/8207d7f799d6c56b917a08d66eb5da88 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:68:"CodebarAg\DocuWare\Requests\Documents\ModifyDocuments\DeleteDocument";a:6:{s:4:"name";s:14:"DeleteDocument";s:14:"namespacedName";s:68:"CodebarAg\DocuWare\Requests\Documents\ModifyDocuments\DeleteDocument";s:9:"namespace";s:53:"CodebarAg\DocuWare\Requests\Documents\ModifyDocuments";s:9:"startLine";i:10;s:7:"endLine";i:29;s:7:"methods";a:3:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:54:"__construct(string $fileCabinetId, string $documentId)";s:10:"visibility";s:6:"public";s:9:"startLine";i:14;s:7:"endLine";i:18;s:3:"ccn";i:1;}s:15:"resolveEndpoint";a:6:{s:10:"methodName";s:15:"resolveEndpoint";s:9:"signature";s:25:"resolveEndpoint(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:20;s:7:"endLine";i:23;s:3:"ccn";i:1;}s:21:"createDtoFromResponse";a:6:{s:10:"methodName";s:21:"createDtoFromResponse";s:9:"signature";s:75:"createDtoFromResponse(Saloon\Http\Response $response): Saloon\Http\Response";s:10:"visibility";s:6:"public";s:9:"startLine";i:25;s:7:"endLine";i:28;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:30;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:30;}s:15:"ignoredLinesFor";a:1:{i:0;i:10;}s:17:"executableLinesIn";a:3:{i:18;i:2;i:22;i:3;i:27;i:4;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/82e7e6127d61c8233fb9a479042803c0 b/.phpunit.cache/code-coverage/82e7e6127d61c8233fb9a479042803c0 new file mode 100644 index 0000000..3c2038f --- /dev/null +++ b/.phpunit.cache/code-coverage/82e7e6127d61c8233fb9a479042803c0 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:42:"CodebarAg\DocuWare\DocuWareServiceProvider";a:6:{s:4:"name";s:23:"DocuWareServiceProvider";s:14:"namespacedName";s:42:"CodebarAg\DocuWare\DocuWareServiceProvider";s:9:"namespace";s:18:"CodebarAg\DocuWare";s:9:"startLine";i:9;s:7:"endLine";i:18;s:7:"methods";a:1:{s:16:"configurePackage";a:6:{s:10:"methodName";s:16:"configurePackage";s:9:"signature";s:67:"configurePackage(Spatie\LaravelPackageTools\Package $package): void";s:10:"visibility";s:6:"public";s:9:"startLine";i:11;s:7:"endLine";i:17;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:19;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:19;}s:15:"ignoredLinesFor";a:1:{i:0;i:9;}s:17:"executableLinesIn";a:4:{i:13;i:1;i:14;i:1;i:15;i:1;i:16;i:1;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/8718c6e78f5f210bc30c06acec482ca5 b/.phpunit.cache/code-coverage/8718c6e78f5f210bc30c06acec482ca5 new file mode 100644 index 0000000..3760597 --- /dev/null +++ b/.phpunit.cache/code-coverage/8718c6e78f5f210bc30c06acec482ca5 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:50:"CodebarAg\DocuWare\DTO\Documents\DocumentThumbnail";a:6:{s:4:"name";s:17:"DocumentThumbnail";s:14:"namespacedName";s:50:"CodebarAg\DocuWare\DTO\Documents\DocumentThumbnail";s:9:"namespace";s:32:"CodebarAg\DocuWare\DTO\Documents";s:9:"startLine";i:7;s:7:"endLine";i:27;s:7:"methods";a:2:{s:8:"fromData";a:6:{s:10:"methodName";s:8:"fromData";s:9:"signature";s:27:"fromData(array $data): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:9;s:7:"endLine";i:19;s:3:"ccn";i:1;}s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:55:"__construct(string $mime, string $data, string $base64)";s:10:"visibility";s:6:"public";s:9:"startLine";i:21;s:7:"endLine";i:26;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:28;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:28;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:8:{i:11;i:1;i:12;i:2;i:14;i:3;i:15;i:3;i:16;i:3;i:17;i:3;i:18;i:3;i:26;i:4;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/879415eca58ba4f8bdb1d64313e1edd8 b/.phpunit.cache/code-coverage/879415eca58ba4f8bdb1d64313e1edd8 new file mode 100644 index 0000000..5b015ea --- /dev/null +++ b/.phpunit.cache/code-coverage/879415eca58ba4f8bdb1d64313e1edd8 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:55:"CodebarAg\DocuWare\Exceptions\UnableToDownloadDocuments";a:6:{s:4:"name";s:25:"UnableToDownloadDocuments";s:14:"namespacedName";s:55:"CodebarAg\DocuWare\Exceptions\UnableToDownloadDocuments";s:9:"namespace";s:29:"CodebarAg\DocuWare\Exceptions";s:9:"startLine";i:7;s:7:"endLine";i:13;s:7:"methods";a:1:{s:25:"selectAtLeastTwoDocuments";a:6:{s:10:"methodName";s:25:"selectAtLeastTwoDocuments";s:9:"signature";s:33:"selectAtLeastTwoDocuments(): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:9;s:7:"endLine";i:12;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:14;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:14;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:1:{i:11;i:1;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/881b22a1060c5716383664394eef75b5 b/.phpunit.cache/code-coverage/881b22a1060c5716383664394eef75b5 new file mode 100644 index 0000000..8de17f9 --- /dev/null +++ b/.phpunit.cache/code-coverage/881b22a1060c5716383664394eef75b5 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:71:"CodebarAg\DocuWare\Responses\FileCabinets\Dialogs\GetAllDialogsResponse";a:6:{s:4:"name";s:21:"GetAllDialogsResponse";s:14:"namespacedName";s:71:"CodebarAg\DocuWare\Responses\FileCabinets\Dialogs\GetAllDialogsResponse";s:9:"namespace";s:49:"CodebarAg\DocuWare\Responses\FileCabinets\Dialogs";s:9:"startLine";i:12;s:7:"endLine";i:24;s:7:"methods";a:1:{s:12:"fromResponse";a:6:{s:10:"methodName";s:12:"fromResponse";s:9:"signature";s:107:"fromResponse(Saloon\Http\Response $response): \Illuminate\Support\Collection|\Illuminate\Support\Enumerable";s:10:"visibility";s:6:"public";s:9:"startLine";i:14;s:7:"endLine";i:23;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:25;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:25;}s:15:"ignoredLinesFor";a:1:{i:0;i:12;}s:17:"executableLinesIn";a:4:{i:16;i:1;i:18;i:2;i:20;i:3;i:22;i:4;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/889d4d51d97149d175ad12bcae1846e6 b/.phpunit.cache/code-coverage/889d4d51d97149d175ad12bcae1846e6 new file mode 100644 index 0000000..020e38b --- /dev/null +++ b/.phpunit.cache/code-coverage/889d4d51d97149d175ad12bcae1846e6 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:49:"CodebarAg\DocuWare\Exceptions\UnableToMakeRequest";a:6:{s:4:"name";s:19:"UnableToMakeRequest";s:14:"namespacedName";s:49:"CodebarAg\DocuWare\Exceptions\UnableToMakeRequest";s:9:"namespace";s:29:"CodebarAg\DocuWare\Exceptions";s:9:"startLine";i:7;s:7:"endLine";i:15;s:7:"methods";a:1:{s:6:"create";a:6:{s:10:"methodName";s:6:"create";s:9:"signature";s:14:"create(): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:9;s:7:"endLine";i:14;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:16;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:16;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:3:{i:11;i:1;i:12;i:1;i:13;i:1;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/8b1288dfaffdb2a49717dcf08608ddb9 b/.phpunit.cache/code-coverage/8b1288dfaffdb2a49717dcf08608ddb9 new file mode 100644 index 0000000..bbaeeb3 --- /dev/null +++ b/.phpunit.cache/code-coverage/8b1288dfaffdb2a49717dcf08608ddb9 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:49:"CodebarAg\DocuWare\Support\EnsureValidCredentials";a:6:{s:4:"name";s:22:"EnsureValidCredentials";s:14:"namespacedName";s:49:"CodebarAg\DocuWare\Support\EnsureValidCredentials";s:9:"namespace";s:26:"CodebarAg\DocuWare\Support";s:9:"startLine";i:9;s:7:"endLine";i:29;s:7:"methods";a:1:{s:5:"check";a:6:{s:10:"methodName";s:5:"check";s:9:"signature";s:13:"check(): void";s:10:"visibility";s:6:"public";s:9:"startLine";i:11;s:7:"endLine";i:28;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:30;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:30;}s:15:"ignoredLinesFor";a:1:{i:0;i:9;}s:17:"executableLinesIn";a:12:{i:13;i:1;i:14;i:1;i:15;i:1;i:16;i:1;i:18;i:2;i:19;i:2;i:20;i:2;i:21;i:2;i:23;i:3;i:24;i:3;i:25;i:3;i:26;i:3;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/8bc9fc771f649ff1cea550714b157d2d b/.phpunit.cache/code-coverage/8bc9fc771f649ff1cea550714b157d2d new file mode 100644 index 0000000..0d607aa --- /dev/null +++ b/.phpunit.cache/code-coverage/8bc9fc771f649ff1cea550714b157d2d @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:47:"CodebarAg\DocuWare\Connectors\DocuWareConnector";a:6:{s:4:"name";s:17:"DocuWareConnector";s:14:"namespacedName";s:47:"CodebarAg\DocuWare\Connectors\DocuWareConnector";s:9:"namespace";s:29:"CodebarAg\DocuWare\Connectors";s:9:"startLine";i:8;s:7:"endLine";i:34;s:7:"methods";a:4:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:27:"__construct(?string $token)";s:10:"visibility";s:6:"public";s:9:"startLine";i:10;s:7:"endLine";i:13;s:3:"ccn";i:1;}s:14:"resolveBaseUrl";a:6:{s:10:"methodName";s:14:"resolveBaseUrl";s:9:"signature";s:24:"resolveBaseUrl(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:18;s:7:"endLine";i:21;s:3:"ccn";i:1;}s:14:"defaultHeaders";a:6:{s:10:"methodName";s:14:"defaultHeaders";s:9:"signature";s:23:"defaultHeaders(): array";s:10:"visibility";s:6:"public";s:9:"startLine";i:23;s:7:"endLine";i:28;s:3:"ccn";i:1;}s:11:"defaultAuth";a:6:{s:10:"methodName";s:11:"defaultAuth";s:9:"signature";s:50:"defaultAuth(): Saloon\Http\Auth\TokenAuthenticator";s:10:"visibility";s:9:"protected";s:9:"startLine";i:30;s:7:"endLine";i:33;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:35;s:18:"commentLinesOfCode";i:3;s:21:"nonCommentLinesOfCode";i:32;}s:15:"ignoredLinesFor";a:1:{i:0;i:8;}s:17:"executableLinesIn";a:6:{i:13;i:1;i:20;i:2;i:25;i:3;i:26;i:3;i:27;i:3;i:32;i:4;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/956d36622a37786f8f11120562d87df9 b/.phpunit.cache/code-coverage/956d36622a37786f8f11120562d87df9 new file mode 100644 index 0000000..186ce72 --- /dev/null +++ b/.phpunit.cache/code-coverage/956d36622a37786f8f11120562d87df9 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:44:"CodebarAg\DocuWare\Exceptions\UnableToSearch";a:6:{s:4:"name";s:14:"UnableToSearch";s:14:"namespacedName";s:44:"CodebarAg\DocuWare\Exceptions\UnableToSearch";s:9:"namespace";s:29:"CodebarAg\DocuWare\Exceptions";s:9:"startLine";i:7;s:7:"endLine";i:48;s:7:"methods";a:5:{s:13:"cabinetNotSet";a:6:{s:10:"methodName";s:13:"cabinetNotSet";s:9:"signature";s:21:"cabinetNotSet(): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:9;s:7:"endLine";i:15;s:3:"ccn";i:1;}s:17:"invalidPageNumber";a:6:{s:10:"methodName";s:17:"invalidPageNumber";s:9:"signature";s:34:"invalidPageNumber(int $page): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:17;s:7:"endLine";i:23;s:3:"ccn";i:1;}s:20:"invalidPerPageNumber";a:6:{s:10:"methodName";s:20:"invalidPerPageNumber";s:9:"signature";s:40:"invalidPerPageNumber(int $perPage): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:25;s:7:"endLine";i:32;s:3:"ccn";i:1;}s:23:"InvalidDateFiltersCount";a:6:{s:10:"methodName";s:23:"InvalidDateFiltersCount";s:9:"signature";s:41:"InvalidDateFiltersCount(int $count): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:34;s:7:"endLine";i:40;s:3:"ccn";i:1;}s:23:"DivergedDateFilterRange";a:6:{s:10:"methodName";s:23:"DivergedDateFilterRange";s:9:"signature";s:31:"DivergedDateFilterRange(): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:42;s:7:"endLine";i:47;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:49;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:49;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:18:{i:11;i:1;i:12;i:1;i:13;i:1;i:14;i:1;i:19;i:2;i:20;i:2;i:21;i:2;i:22;i:2;i:27;i:3;i:28;i:3;i:29;i:3;i:31;i:3;i:36;i:4;i:37;i:4;i:39;i:4;i:44;i:5;i:45;i:5;i:46;i:5;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/95de2d2cb5fc6145784ddeff708c16b2 b/.phpunit.cache/code-coverage/95de2d2cb5fc6145784ddeff708c16b2 new file mode 100644 index 0000000..776eb9d --- /dev/null +++ b/.phpunit.cache/code-coverage/95de2d2cb5fc6145784ddeff708c16b2 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:61:"CodebarAg\DocuWare\DTO\General\Organization\OrganizationIndex";a:6:{s:4:"name";s:17:"OrganizationIndex";s:14:"namespacedName";s:61:"CodebarAg\DocuWare\DTO\General\Organization\OrganizationIndex";s:9:"namespace";s:43:"CodebarAg\DocuWare\DTO\General\Organization";s:9:"startLine";i:8;s:7:"endLine";i:37;s:7:"methods";a:3:{s:8:"fromJson";a:6:{s:10:"methodName";s:8:"fromJson";s:9:"signature";s:27:"fromJson(array $data): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:10;s:7:"endLine";i:17;s:3:"ccn";i:1;}s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:52:"__construct(string $id, string $name, ?string $guid)";s:10:"visibility";s:6:"public";s:9:"startLine";i:19;s:7:"endLine";i:24;s:3:"ccn";i:1;}s:4:"fake";a:6:{s:10:"methodName";s:4:"fake";s:9:"signature";s:53:"fake(?string $id, ?string $name, ?string $guid): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:26;s:7:"endLine";i:36;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:38;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:38;}s:15:"ignoredLinesFor";a:1:{i:0;i:8;}s:17:"executableLinesIn";a:11:{i:12;i:1;i:13;i:1;i:14;i:1;i:15;i:1;i:16;i:1;i:24;i:2;i:31;i:3;i:32;i:3;i:33;i:3;i:34;i:3;i:35;i:3;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/9a444824bb7c3e7cfdce88cf44141643 b/.phpunit.cache/code-coverage/9a444824bb7c3e7cfdce88cf44141643 new file mode 100644 index 0000000..49f4070 --- /dev/null +++ b/.phpunit.cache/code-coverage/9a444824bb7c3e7cfdce88cf44141643 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:46:"CodebarAg\DocuWare\Support\EnsureValidResponse";a:6:{s:4:"name";s:19:"EnsureValidResponse";s:14:"namespacedName";s:46:"CodebarAg\DocuWare\Support\EnsureValidResponse";s:9:"namespace";s:26:"CodebarAg\DocuWare\Support";s:9:"startLine";i:11;s:7:"endLine";i:37;s:7:"methods";a:1:{s:4:"from";a:6:{s:10:"methodName";s:4:"from";s:9:"signature";s:76:"from(\Illuminate\Http\Client\Response|\Saloon\Http\Response $response): void";s:10:"visibility";s:6:"public";s:9:"startLine";i:13;s:7:"endLine";i:36;s:3:"ccn";i:3;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:38;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:38;}s:15:"ignoredLinesFor";a:1:{i:0;i:11;}s:17:"executableLinesIn";a:16:{i:15;i:1;i:16;i:2;i:19;i:3;i:20;i:3;i:21;i:3;i:22;i:3;i:24;i:4;i:25;i:5;i:28;i:6;i:29;i:6;i:30;i:6;i:31;i:6;i:32;i:6;i:33;i:6;i:34;i:6;i:35;i:6;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/9ab62ca885f00c6c9e52fe2a413a2cdd b/.phpunit.cache/code-coverage/9ab62ca885f00c6c9e52fe2a413a2cdd new file mode 100644 index 0000000..c22b210 --- /dev/null +++ b/.phpunit.cache/code-coverage/9ab62ca885f00c6c9e52fe2a413a2cdd @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:72:"CodebarAg\DocuWare\Responses\Documents\Download\DownloadDocumentResponse";a:6:{s:4:"name";s:24:"DownloadDocumentResponse";s:14:"namespacedName";s:72:"CodebarAg\DocuWare\Responses\Documents\Download\DownloadDocumentResponse";s:9:"namespace";s:47:"CodebarAg\DocuWare\Responses\Documents\Download";s:9:"startLine";i:9;s:7:"endLine";i:19;s:7:"methods";a:1:{s:12:"fromResponse";a:6:{s:10:"methodName";s:12:"fromResponse";s:9:"signature";s:52:"fromResponse(Saloon\Http\Response $response): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:11;s:7:"endLine";i:18;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:20;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:20;}s:15:"ignoredLinesFor";a:1:{i:0;i:9;}s:17:"executableLinesIn";a:3:{i:13;i:1;i:15;i:2;i:17;i:3;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/9de7d632e47a04e65054a329852e3cae b/.phpunit.cache/code-coverage/9de7d632e47a04e65054a329852e3cae new file mode 100644 index 0000000..c0f651e --- /dev/null +++ b/.phpunit.cache/code-coverage/9de7d632e47a04e65054a329852e3cae @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:70:"CodebarAg\DocuWare\Responses\Authentication\OAuth\RequestTokenResponse";a:6:{s:4:"name";s:20:"RequestTokenResponse";s:14:"namespacedName";s:70:"CodebarAg\DocuWare\Responses\Authentication\OAuth\RequestTokenResponse";s:9:"namespace";s:49:"CodebarAg\DocuWare\Responses\Authentication\OAuth";s:9:"startLine";i:10;s:7:"endLine";i:20;s:7:"methods";a:1:{s:12:"fromResponse";a:6:{s:10:"methodName";s:12:"fromResponse";s:9:"signature";s:102:"fromResponse(Saloon\Http\Response $response): CodebarAg\DocuWare\DTO\Authentication\OAuth\RequestToken";s:10:"visibility";s:6:"public";s:9:"startLine";i:12;s:7:"endLine";i:19;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:21;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:21;}s:15:"ignoredLinesFor";a:1:{i:0;i:10;}s:17:"executableLinesIn";a:3:{i:14;i:1;i:16;i:2;i:18;i:3;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/9f674e47053b54d26c6596b486fa7bc6 b/.phpunit.cache/code-coverage/9f674e47053b54d26c6596b486fa7bc6 new file mode 100644 index 0000000..960560e --- /dev/null +++ b/.phpunit.cache/code-coverage/9f674e47053b54d26c6596b486fa7bc6 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:31:"CodebarAg\DocuWare\DTO\ErrorBag";a:6:{s:4:"name";s:8:"ErrorBag";s:14:"namespacedName";s:31:"CodebarAg\DocuWare\DTO\ErrorBag";s:9:"namespace";s:22:"CodebarAg\DocuWare\DTO";s:9:"startLine";i:7;s:7:"endLine";i:22;s:7:"methods";a:2:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:39:"__construct(int $code, string $message)";s:10:"visibility";s:6:"public";s:9:"startLine";i:9;s:7:"endLine";i:13;s:3:"ccn";i:1;}s:4:"make";a:6:{s:10:"methodName";s:4:"make";s:9:"signature";s:24:"make(Exception $e): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:15;s:7:"endLine";i:21;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:23;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:23;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:5:{i:13;i:1;i:17;i:2;i:18;i:2;i:19;i:2;i:20;i:2;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/a55b2e837b41045969ad1e8e9c9494eb b/.phpunit.cache/code-coverage/a55b2e837b41045969ad1e8e9c9494eb new file mode 100644 index 0000000..3ef5a53 --- /dev/null +++ b/.phpunit.cache/code-coverage/a55b2e837b41045969ad1e8e9c9494eb @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:55:"CodebarAg\DocuWare\Exceptions\UnableToFindUrlCredential";a:6:{s:4:"name";s:25:"UnableToFindUrlCredential";s:14:"namespacedName";s:55:"CodebarAg\DocuWare\Exceptions\UnableToFindUrlCredential";s:9:"namespace";s:29:"CodebarAg\DocuWare\Exceptions";s:9:"startLine";i:7;s:7:"endLine";i:13;s:7:"methods";a:1:{s:6:"create";a:6:{s:10:"methodName";s:6:"create";s:9:"signature";s:14:"create(): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:9;s:7:"endLine";i:12;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:14;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:14;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:1:{i:11;i:1;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/a5efeaf0253082fae5ca9a1e574b8fd7 b/.phpunit.cache/code-coverage/a5efeaf0253082fae5ca9a1e574b8fd7 new file mode 100644 index 0000000..624befd --- /dev/null +++ b/.phpunit.cache/code-coverage/a5efeaf0253082fae5ca9a1e574b8fd7 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:76:"CodebarAg\DocuWare\Requests\FileCabinets\Search\GetDocumentsFromAFileCabinet";a:6:{s:4:"name";s:28:"GetDocumentsFromAFileCabinet";s:14:"namespacedName";s:76:"CodebarAg\DocuWare\Requests\FileCabinets\Search\GetDocumentsFromAFileCabinet";s:9:"namespace";s:47:"CodebarAg\DocuWare\Requests\FileCabinets\Search";s:9:"startLine";i:15;s:7:"endLine";i:55;s:7:"methods";a:6:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:59:"__construct(string $fileCabinetId, int $page, int $perPage)";s:10:"visibility";s:6:"public";s:9:"startLine";i:21;s:7:"endLine";i:26;s:3:"ccn";i:1;}s:12:"defaultQuery";a:6:{s:10:"methodName";s:12:"defaultQuery";s:9:"signature";s:21:"defaultQuery(): array";s:10:"visibility";s:6:"public";s:9:"startLine";i:28;s:7:"endLine";i:34;s:3:"ccn";i:1;}s:15:"resolveEndpoint";a:6:{s:10:"methodName";s:15:"resolveEndpoint";s:9:"signature";s:25:"resolveEndpoint(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:36;s:7:"endLine";i:39;s:3:"ccn";i:1;}s:18:"resolveCacheDriver";a:6:{s:10:"methodName";s:18:"resolveCacheDriver";s:9:"signature";s:67:"resolveCacheDriver(): Saloon\CachePlugin\Drivers\LaravelCacheDriver";s:10:"visibility";s:6:"public";s:9:"startLine";i:41;s:7:"endLine";i:44;s:3:"ccn";i:1;}s:20:"cacheExpiryInSeconds";a:6:{s:10:"methodName";s:20:"cacheExpiryInSeconds";s:9:"signature";s:27:"cacheExpiryInSeconds(): int";s:10:"visibility";s:6:"public";s:9:"startLine";i:46;s:7:"endLine";i:49;s:3:"ccn";i:1;}s:21:"createDtoFromResponse";a:6:{s:10:"methodName";s:21:"createDtoFromResponse";s:9:"signature";s:105:"createDtoFromResponse(Saloon\Http\Response $response): CodebarAg\DocuWare\DTO\Documents\DocumentPaginator";s:10:"visibility";s:6:"public";s:9:"startLine";i:51;s:7:"endLine";i:54;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:56;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:56;}s:15:"ignoredLinesFor";a:1:{i:0;i:15;}s:17:"executableLinesIn";a:9:{i:26;i:3;i:30;i:4;i:31;i:4;i:32;i:4;i:33;i:4;i:38;i:5;i:43;i:6;i:48;i:7;i:53;i:8;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/a8f71c6d966c45444d57d459d9bf83fd b/.phpunit.cache/code-coverage/a8f71c6d966c45444d57d459d9bf83fd new file mode 100644 index 0000000..f959e00 --- /dev/null +++ b/.phpunit.cache/code-coverage/a8f71c6d966c45444d57d459d9bf83fd @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:45:"CodebarAg\DocuWare\Exceptions\UnableToMakeUrl";a:6:{s:4:"name";s:15:"UnableToMakeUrl";s:14:"namespacedName";s:45:"CodebarAg\DocuWare\Exceptions\UnableToMakeUrl";s:9:"namespace";s:29:"CodebarAg\DocuWare\Exceptions";s:9:"startLine";i:7;s:7:"endLine";i:24;s:7:"methods";a:2:{s:14:"documentNotSet";a:6:{s:10:"methodName";s:14:"documentNotSet";s:9:"signature";s:22:"documentNotSet(): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:9;s:7:"endLine";i:15;s:3:"ccn";i:1;}s:12:"sourceNotSet";a:6:{s:10:"methodName";s:12:"sourceNotSet";s:9:"signature";s:20:"sourceNotSet(): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:17;s:7:"endLine";i:23;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:25;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:25;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:8:{i:11;i:1;i:12;i:1;i:13;i:1;i:14;i:1;i:19;i:2;i:20;i:2;i:21;i:2;i:22;i:2;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/aa4b90b7bb79b44b2521396f7009319a b/.phpunit.cache/code-coverage/aa4b90b7bb79b44b2521396f7009319a new file mode 100644 index 0000000..71fd438 --- /dev/null +++ b/.phpunit.cache/code-coverage/aa4b90b7bb79b44b2521396f7009319a @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:62:"CodebarAg\DocuWare\DTO\Documents\DocumentIndex\IndexDecimalDTO";a:6:{s:4:"name";s:15:"IndexDecimalDTO";s:14:"namespacedName";s:62:"CodebarAg\DocuWare\DTO\Documents\DocumentIndex\IndexDecimalDTO";s:9:"namespace";s:46:"CodebarAg\DocuWare\DTO\Documents\DocumentIndex";s:9:"startLine";i:5;s:7:"endLine";i:27;s:7:"methods";a:3:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:48:"__construct(string $name, null|int|float $value)";s:10:"visibility";s:6:"public";s:9:"startLine";i:7;s:7:"endLine";i:12;s:3:"ccn";i:1;}s:4:"make";a:6:{s:10:"methodName";s:4:"make";s:9:"signature";s:47:"make(string $name, null|int|float $value): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:14;s:7:"endLine";i:17;s:3:"ccn";i:1;}s:6:"values";a:6:{s:10:"methodName";s:6:"values";s:9:"signature";s:15:"values(): array";s:10:"visibility";s:6:"public";s:9:"startLine";i:19;s:7:"endLine";i:26;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:28;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:28;}s:15:"ignoredLinesFor";a:1:{i:0;i:5;}s:17:"executableLinesIn";a:7:{i:12;i:1;i:16;i:2;i:21;i:3;i:22;i:3;i:23;i:3;i:24;i:3;i:25;i:3;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/aca78b0e2b63e04f1ece3a29bf2b619b b/.phpunit.cache/code-coverage/aca78b0e2b63e04f1ece3a29bf2b619b new file mode 100644 index 0000000..9faac25 --- /dev/null +++ b/.phpunit.cache/code-coverage/aca78b0e2b63e04f1ece3a29bf2b619b @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:92:"CodebarAg\DocuWare\Responses\General\Organization\GetAllFileCabinetsAndDocumentTraysResponse";a:6:{s:4:"name";s:42:"GetAllFileCabinetsAndDocumentTraysResponse";s:14:"namespacedName";s:92:"CodebarAg\DocuWare\Responses\General\Organization\GetAllFileCabinetsAndDocumentTraysResponse";s:9:"namespace";s:49:"CodebarAg\DocuWare\Responses\General\Organization";s:9:"startLine";i:12;s:7:"endLine";i:24;s:7:"methods";a:1:{s:12:"fromResponse";a:6:{s:10:"methodName";s:12:"fromResponse";s:9:"signature";s:107:"fromResponse(Saloon\Http\Response $response): \Illuminate\Support\Collection|\Illuminate\Support\Enumerable";s:10:"visibility";s:6:"public";s:9:"startLine";i:14;s:7:"endLine";i:23;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:25;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:25;}s:15:"ignoredLinesFor";a:1:{i:0;i:12;}s:17:"executableLinesIn";a:4:{i:16;i:1;i:18;i:2;i:20;i:3;i:22;i:4;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/af3972cfcd0a162321f7c040bccd3a51 b/.phpunit.cache/code-coverage/af3972cfcd0a162321f7c040bccd3a51 new file mode 100644 index 0000000..8c85620 --- /dev/null +++ b/.phpunit.cache/code-coverage/af3972cfcd0a162321f7c040bccd3a51 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:64:"CodebarAg\DocuWare\Requests\Documents\Download\DownloadThumbnail";a:6:{s:4:"name";s:17:"DownloadThumbnail";s:14:"namespacedName";s:64:"CodebarAg\DocuWare\Requests\Documents\Download\DownloadThumbnail";s:9:"namespace";s:46:"CodebarAg\DocuWare\Requests\Documents\Download";s:9:"startLine";i:14;s:7:"endLine";i:53;s:7:"methods";a:6:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:66:"__construct(string $fileCabinetId, string $thumbnailId, int $page)";s:10:"visibility";s:6:"public";s:9:"startLine";i:20;s:7:"endLine";i:25;s:3:"ccn";i:1;}s:15:"resolveEndpoint";a:6:{s:10:"methodName";s:15:"resolveEndpoint";s:9:"signature";s:25:"resolveEndpoint(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:27;s:7:"endLine";i:30;s:3:"ccn";i:1;}s:18:"resolveCacheDriver";a:6:{s:10:"methodName";s:18:"resolveCacheDriver";s:9:"signature";s:67:"resolveCacheDriver(): Saloon\CachePlugin\Drivers\LaravelCacheDriver";s:10:"visibility";s:6:"public";s:9:"startLine";i:32;s:7:"endLine";i:35;s:3:"ccn";i:1;}s:20:"cacheExpiryInSeconds";a:6:{s:10:"methodName";s:20:"cacheExpiryInSeconds";s:9:"signature";s:27:"cacheExpiryInSeconds(): int";s:10:"visibility";s:6:"public";s:9:"startLine";i:37;s:7:"endLine";i:40;s:3:"ccn";i:1;}s:12:"defaultQuery";a:6:{s:10:"methodName";s:12:"defaultQuery";s:9:"signature";s:21:"defaultQuery(): array";s:10:"visibility";s:6:"public";s:9:"startLine";i:42;s:7:"endLine";i:47;s:3:"ccn";i:1;}s:21:"createDtoFromResponse";a:6:{s:10:"methodName";s:21:"createDtoFromResponse";s:9:"signature";s:60:"createDtoFromResponse(Saloon\Http\Response $response): mixed";s:10:"visibility";s:6:"public";s:9:"startLine";i:49;s:7:"endLine";i:52;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:54;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:54;}s:15:"ignoredLinesFor";a:1:{i:0;i:14;}s:17:"executableLinesIn";a:8:{i:25;i:3;i:29;i:4;i:34;i:5;i:39;i:6;i:44;i:7;i:45;i:7;i:46;i:7;i:51;i:8;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/b14d5a3ed2db091e9c5a1dcc0093bf4d b/.phpunit.cache/code-coverage/b14d5a3ed2db091e9c5a1dcc0093bf4d new file mode 100644 index 0000000..1a291d7 --- /dev/null +++ b/.phpunit.cache/code-coverage/b14d5a3ed2db091e9c5a1dcc0093bf4d @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:87:"CodebarAg\DocuWare\Responses\Authentication\OAuth\GetResponsibleIdentityServiceResponse";a:6:{s:4:"name";s:37:"GetResponsibleIdentityServiceResponse";s:14:"namespacedName";s:87:"CodebarAg\DocuWare\Responses\Authentication\OAuth\GetResponsibleIdentityServiceResponse";s:9:"namespace";s:49:"CodebarAg\DocuWare\Responses\Authentication\OAuth";s:9:"startLine";i:10;s:7:"endLine";i:20;s:7:"methods";a:1:{s:12:"fromResponse";a:6:{s:10:"methodName";s:12:"fromResponse";s:9:"signature";s:116:"fromResponse(Saloon\Http\Response $response): CodebarAg\DocuWare\DTO\Authentication\OAuth\ResponsibleIdentityService";s:10:"visibility";s:6:"public";s:9:"startLine";i:12;s:7:"endLine";i:19;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:21;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:21;}s:15:"ignoredLinesFor";a:1:{i:0;i:10;}s:17:"executableLinesIn";a:3:{i:14;i:1;i:16;i:2;i:18;i:3;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/bbf552d6c990090ca88882b61bc1afd4 b/.phpunit.cache/code-coverage/bbf552d6c990090ca88882b61bc1afd4 new file mode 100644 index 0000000..b8c75ff --- /dev/null +++ b/.phpunit.cache/code-coverage/bbf552d6c990090ca88882b61bc1afd4 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:56:"CodebarAg\DocuWare\Exceptions\UnableToFindUserCredential";a:6:{s:4:"name";s:26:"UnableToFindUserCredential";s:14:"namespacedName";s:56:"CodebarAg\DocuWare\Exceptions\UnableToFindUserCredential";s:9:"namespace";s:29:"CodebarAg\DocuWare\Exceptions";s:9:"startLine";i:7;s:7:"endLine";i:13;s:7:"methods";a:1:{s:6:"create";a:6:{s:10:"methodName";s:6:"create";s:9:"signature";s:14:"create(): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:9;s:7:"endLine";i:12;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:14;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:14;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:1:{i:11;i:1;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/bd5622b928db20476d7180e2ccd11898 b/.phpunit.cache/code-coverage/bd5622b928db20476d7180e2ccd11898 new file mode 100644 index 0000000..31a632d --- /dev/null +++ b/.phpunit.cache/code-coverage/bd5622b928db20476d7180e2ccd11898 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:73:"CodebarAg\DocuWare\Requests\Documents\UpdateIndexValues\UpdateIndexValues";a:6:{s:4:"name";s:17:"UpdateIndexValues";s:14:"namespacedName";s:73:"CodebarAg\DocuWare\Requests\Documents\UpdateIndexValues\UpdateIndexValues";s:9:"namespace";s:55:"CodebarAg\DocuWare\Requests\Documents\UpdateIndexValues";s:9:"startLine";i:15;s:7:"endLine";i:55;s:7:"methods";a:4:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:114:"__construct(string $fileCabinetId, string $documentId, ?Illuminate\Support\Collection $indexes, bool $forceUpdate)";s:10:"visibility";s:6:"public";s:9:"startLine";i:24;s:7:"endLine";i:30;s:3:"ccn";i:1;}s:15:"resolveEndpoint";a:6:{s:10:"methodName";s:15:"resolveEndpoint";s:9:"signature";s:25:"resolveEndpoint(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:32;s:7:"endLine";i:35;s:3:"ccn";i:1;}s:11:"defaultBody";a:6:{s:10:"methodName";s:11:"defaultBody";s:9:"signature";s:20:"defaultBody(): array";s:10:"visibility";s:6:"public";s:9:"startLine";i:37;s:7:"endLine";i:49;s:3:"ccn";i:2;}s:21:"createDtoFromResponse";a:6:{s:10:"methodName";s:21:"createDtoFromResponse";s:9:"signature";s:84:"createDtoFromResponse(Saloon\Http\Response $response): Illuminate\Support\Collection";s:10:"visibility";s:6:"public";s:9:"startLine";i:51;s:7:"endLine";i:54;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:56;s:18:"commentLinesOfCode";i:3;s:21:"nonCommentLinesOfCode";i:53;}s:15:"ignoredLinesFor";a:1:{i:0;i:15;}s:17:"executableLinesIn";a:9:{i:30;i:3;i:34;i:4;i:39;i:5;i:41;i:6;i:42;i:7;i:43;i:8;i:44;i:9;i:47;i:10;i:53;i:11;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/c3afab96a8aa8a21aebcdaaf5e7c4580 b/.phpunit.cache/code-coverage/c3afab96a8aa8a21aebcdaaf5e7c4580 new file mode 100644 index 0000000..945ae98 --- /dev/null +++ b/.phpunit.cache/code-coverage/c3afab96a8aa8a21aebcdaaf5e7c4580 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:62:"CodebarAg\DocuWare\Requests\FileCabinets\Dialogs\GetAllDialogs";a:6:{s:4:"name";s:13:"GetAllDialogs";s:14:"namespacedName";s:62:"CodebarAg\DocuWare\Requests\FileCabinets\Dialogs\GetAllDialogs";s:9:"namespace";s:48:"CodebarAg\DocuWare\Requests\FileCabinets\Dialogs";s:9:"startLine";i:14;s:7:"endLine";i:44;s:7:"methods";a:5:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:34:"__construct(string $fileCabinetId)";s:10:"visibility";s:6:"public";s:9:"startLine";i:20;s:7:"endLine";i:23;s:3:"ccn";i:1;}s:15:"resolveEndpoint";a:6:{s:10:"methodName";s:15:"resolveEndpoint";s:9:"signature";s:25:"resolveEndpoint(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:25;s:7:"endLine";i:28;s:3:"ccn";i:1;}s:18:"resolveCacheDriver";a:6:{s:10:"methodName";s:18:"resolveCacheDriver";s:9:"signature";s:67:"resolveCacheDriver(): Saloon\CachePlugin\Drivers\LaravelCacheDriver";s:10:"visibility";s:6:"public";s:9:"startLine";i:30;s:7:"endLine";i:33;s:3:"ccn";i:1;}s:20:"cacheExpiryInSeconds";a:6:{s:10:"methodName";s:20:"cacheExpiryInSeconds";s:9:"signature";s:27:"cacheExpiryInSeconds(): int";s:10:"visibility";s:6:"public";s:9:"startLine";i:35;s:7:"endLine";i:38;s:3:"ccn";i:1;}s:21:"createDtoFromResponse";a:6:{s:10:"methodName";s:21:"createDtoFromResponse";s:9:"signature";s:60:"createDtoFromResponse(Saloon\Http\Response $response): mixed";s:10:"visibility";s:6:"public";s:9:"startLine";i:40;s:7:"endLine";i:43;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:45;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:45;}s:15:"ignoredLinesFor";a:1:{i:0;i:14;}s:17:"executableLinesIn";a:5:{i:23;i:3;i:27;i:4;i:32;i:5;i:37;i:6;i:42;i:7;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/c4c17990cd3bbdcb7914c5a59eea950e b/.phpunit.cache/code-coverage/c4c17990cd3bbdcb7914c5a59eea950e new file mode 100644 index 0000000..e8889c5 --- /dev/null +++ b/.phpunit.cache/code-coverage/c4c17990cd3bbdcb7914c5a59eea950e @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:43:"CodebarAg\DocuWare\Exceptions\UnableToLogin";a:6:{s:4:"name";s:13:"UnableToLogin";s:14:"namespacedName";s:43:"CodebarAg\DocuWare\Exceptions\UnableToLogin";s:9:"namespace";s:29:"CodebarAg\DocuWare\Exceptions";s:9:"startLine";i:7;s:7:"endLine";i:13;s:7:"methods";a:1:{s:6:"create";a:6:{s:10:"methodName";s:6:"create";s:9:"signature";s:14:"create(): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:9;s:7:"endLine";i:12;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:14;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:14;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:1:{i:11;i:1;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/c8b1e8de305ff68ce19e0450d7d2f8cf b/.phpunit.cache/code-coverage/c8b1e8de305ff68ce19e0450d7d2f8cf new file mode 100644 index 0000000..e464149 --- /dev/null +++ b/.phpunit.cache/code-coverage/c8b1e8de305ff68ce19e0450d7d2f8cf @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:51:"CodebarAg\DocuWare\Requests\Fields\GetFieldsRequest";a:6:{s:4:"name";s:16:"GetFieldsRequest";s:14:"namespacedName";s:51:"CodebarAg\DocuWare\Requests\Fields\GetFieldsRequest";s:9:"namespace";s:34:"CodebarAg\DocuWare\Requests\Fields";s:9:"startLine";i:16;s:7:"endLine";i:46;s:7:"methods";a:5:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:34:"__construct(string $fileCabinetId)";s:10:"visibility";s:6:"public";s:9:"startLine";i:22;s:7:"endLine";i:25;s:3:"ccn";i:1;}s:15:"resolveEndpoint";a:6:{s:10:"methodName";s:15:"resolveEndpoint";s:9:"signature";s:25:"resolveEndpoint(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:27;s:7:"endLine";i:30;s:3:"ccn";i:1;}s:18:"resolveCacheDriver";a:6:{s:10:"methodName";s:18:"resolveCacheDriver";s:9:"signature";s:67:"resolveCacheDriver(): Saloon\CachePlugin\Drivers\LaravelCacheDriver";s:10:"visibility";s:6:"public";s:9:"startLine";i:32;s:7:"endLine";i:35;s:3:"ccn";i:1;}s:20:"cacheExpiryInSeconds";a:6:{s:10:"methodName";s:20:"cacheExpiryInSeconds";s:9:"signature";s:27:"cacheExpiryInSeconds(): int";s:10:"visibility";s:6:"public";s:9:"startLine";i:37;s:7:"endLine";i:40;s:3:"ccn";i:1;}s:21:"createDtoFromResponse";a:6:{s:10:"methodName";s:21:"createDtoFromResponse";s:9:"signature";s:116:"createDtoFromResponse(Saloon\Http\Response $response): \Illuminate\Support\Collection|\Illuminate\Support\Enumerable";s:10:"visibility";s:6:"public";s:9:"startLine";i:42;s:7:"endLine";i:45;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:47;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:47;}s:15:"ignoredLinesFor";a:1:{i:0;i:16;}s:17:"executableLinesIn";a:5:{i:25;i:3;i:29;i:4;i:34;i:5;i:39;i:6;i:44;i:7;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/cbe6005d23a731a492b3f467adaf3781 b/.phpunit.cache/code-coverage/cbe6005d23a731a492b3f467adaf3781 new file mode 100644 index 0000000..54a33e7 --- /dev/null +++ b/.phpunit.cache/code-coverage/cbe6005d23a731a492b3f467adaf3781 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:42:"CodebarAg\DocuWare\DTO\FileCabinets\Dialog";a:6:{s:4:"name";s:6:"Dialog";s:14:"namespacedName";s:42:"CodebarAg\DocuWare\DTO\FileCabinets\Dialog";s:9:"namespace";s:35:"CodebarAg\DocuWare\DTO\FileCabinets";s:9:"startLine";i:8;s:7:"endLine";i:52;s:7:"methods";a:4:{s:8:"fromJson";a:6:{s:10:"methodName";s:8:"fromJson";s:9:"signature";s:27:"fromJson(array $data): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:10;s:7:"endLine";i:20;s:3:"ccn";i:1;}s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:108:"__construct(string $id, string $type, string $label, bool $isDefault, string $fileCabinetId, ?array $fields)";s:10:"visibility";s:6:"public";s:9:"startLine";i:22;s:7:"endLine";i:30;s:3:"ccn";i:1;}s:8:"isSearch";a:6:{s:10:"methodName";s:8:"isSearch";s:9:"signature";s:16:"isSearch(): bool";s:10:"visibility";s:6:"public";s:9:"startLine";i:32;s:7:"endLine";i:35;s:3:"ccn";i:1;}s:4:"fake";a:6:{s:10:"methodName";s:4:"fake";s:9:"signature";s:96:"fake(?string $id, ?string $type, ?string $label, ?bool $isDefault, ?string $fileCabinetId): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:37;s:7:"endLine";i:51;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:53;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:53;}s:15:"ignoredLinesFor";a:1:{i:0;i:8;}s:17:"executableLinesIn";a:17:{i:12;i:1;i:13;i:1;i:14;i:1;i:15;i:1;i:16;i:1;i:17;i:1;i:18;i:1;i:19;i:1;i:30;i:2;i:34;i:3;i:44;i:4;i:45;i:4;i:46;i:4;i:47;i:4;i:48;i:4;i:49;i:4;i:50;i:4;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/cd2423d8ee7803d36378f74272709861 b/.phpunit.cache/code-coverage/cd2423d8ee7803d36378f74272709861 new file mode 100644 index 0000000..e045b17 --- /dev/null +++ b/.phpunit.cache/code-coverage/cd2423d8ee7803d36378f74272709861 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:82:"CodebarAg\DocuWare\Responses\Documents\UpdateIndexValues\UpdateIndexValuesResponse";a:6:{s:4:"name";s:25:"UpdateIndexValuesResponse";s:14:"namespacedName";s:82:"CodebarAg\DocuWare\Responses\Documents\UpdateIndexValues\UpdateIndexValuesResponse";s:9:"namespace";s:56:"CodebarAg\DocuWare\Responses\Documents\UpdateIndexValues";s:9:"startLine";i:11;s:7:"endLine";i:27;s:7:"methods";a:1:{s:12:"fromResponse";a:6:{s:10:"methodName";s:12:"fromResponse";s:9:"signature";s:75:"fromResponse(Saloon\Http\Response $response): Illuminate\Support\Collection";s:10:"visibility";s:6:"public";s:9:"startLine";i:13;s:7:"endLine";i:26;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:28;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:28;}s:15:"ignoredLinesFor";a:1:{i:0;i:11;}s:17:"executableLinesIn";a:8:{i:15;i:1;i:17;i:2;i:19;i:3;i:21;i:4;i:25;i:4;i:22;i:5;i:23;i:5;i:24;i:5;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/ce8a494eb3c5ba04eee66548809402fa b/.phpunit.cache/code-coverage/ce8a494eb3c5ba04eee66548809402fa new file mode 100644 index 0000000..993c2b0 --- /dev/null +++ b/.phpunit.cache/code-coverage/ce8a494eb3c5ba04eee66548809402fa @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:73:"CodebarAg\DocuWare\Responses\General\Organization\GetOrganizationResponse";a:6:{s:4:"name";s:23:"GetOrganizationResponse";s:14:"namespacedName";s:73:"CodebarAg\DocuWare\Responses\General\Organization\GetOrganizationResponse";s:9:"namespace";s:49:"CodebarAg\DocuWare\Responses\General\Organization";s:9:"startLine";i:12;s:7:"endLine";i:24;s:7:"methods";a:1:{s:12:"fromResponse";a:6:{s:10:"methodName";s:12:"fromResponse";s:9:"signature";s:107:"fromResponse(Saloon\Http\Response $response): \Illuminate\Support\Collection|\Illuminate\Support\Enumerable";s:10:"visibility";s:6:"public";s:9:"startLine";i:14;s:7:"endLine";i:23;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:25;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:25;}s:15:"ignoredLinesFor";a:1:{i:0;i:12;}s:17:"executableLinesIn";a:4:{i:16;i:1;i:18;i:2;i:20;i:3;i:22;i:4;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/d17cf055f1a9f8b029c7df9acdbd03f7 b/.phpunit.cache/code-coverage/d17cf055f1a9f8b029c7df9acdbd03f7 new file mode 100644 index 0000000..735b0c2 --- /dev/null +++ b/.phpunit.cache/code-coverage/d17cf055f1a9f8b029c7df9acdbd03f7 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:30:"CodebarAg\DocuWare\DocuWareUrl";a:6:{s:4:"name";s:11:"DocuWareUrl";s:14:"namespacedName";s:30:"CodebarAg\DocuWare\DocuWareUrl";s:9:"namespace";s:18:"CodebarAg\DocuWare";s:9:"startLine";i:11;s:7:"endLine";i:117;s:7:"methods";a:6:{s:11:"fileCabinet";a:6:{s:10:"methodName";s:11:"fileCabinet";s:9:"signature";s:40:"fileCabinet(string $fileCabinetId): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:21;s:7:"endLine";i:26;s:3:"ccn";i:1;}s:6:"basket";a:6:{s:10:"methodName";s:6:"basket";s:9:"signature";s:30:"basket(string $basketId): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:28;s:7:"endLine";i:33;s:3:"ccn";i:1;}s:8:"document";a:6:{s:10:"methodName";s:8:"document";s:9:"signature";s:31:"document(int $documentId): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:35;s:7:"endLine";i:40;s:3:"ccn";i:1;}s:10:"validUntil";a:6:{s:10:"methodName";s:10:"validUntil";s:9:"signature";s:37:"validUntil(Carbon\Carbon $date): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:42;s:7:"endLine";i:47;s:3:"ccn";i:1;}s:4:"make";a:6:{s:10:"methodName";s:4:"make";s:9:"signature";s:14:"make(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:49;s:7:"endLine";i:99;s:3:"ccn";i:3;}s:5:"guard";a:6:{s:10:"methodName";s:5:"guard";s:9:"signature";s:13:"guard(): void";s:10:"visibility";s:9:"protected";s:9:"startLine";i:101;s:7:"endLine";i:116;s:3:"ccn";i:2;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:118;s:18:"commentLinesOfCode";i:1;s:21:"nonCommentLinesOfCode";i:117;}s:15:"ignoredLinesFor";a:1:{i:0;i:11;}s:17:"executableLinesIn";a:54:{i:23;i:5;i:25;i:6;i:30;i:7;i:32;i:8;i:37;i:9;i:39;i:10;i:44;i:11;i:46;i:12;i:51;i:13;i:53;i:14;i:54;i:14;i:55;i:14;i:56;i:14;i:57;i:14;i:59;i:15;i:61;i:16;i:62;i:17;i:64;i:18;i:67;i:19;i:68;i:19;i:69;i:19;i:70;i:19;i:71;i:19;i:72;i:19;i:74;i:20;i:75;i:21;i:76;i:21;i:77;i:21;i:78;i:21;i:82;i:22;i:83;i:23;i:84;i:24;i:85;i:25;i:87;i:26;i:88;i:26;i:89;i:26;i:90;i:26;i:91;i:26;i:92;i:26;i:94;i:27;i:95;i:27;i:96;i:27;i:97;i:27;i:98;i:27;i:103;i:28;i:105;i:29;i:107;i:30;i:108;i:30;i:109;i:30;i:110;i:30;i:112;i:31;i:113;i:31;i:114;i:31;i:115;i:31;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/d37b06530ad36c3971b206ba11b119a1 b/.phpunit.cache/code-coverage/d37b06530ad36c3971b206ba11b119a1 new file mode 100644 index 0000000..ec2413a --- /dev/null +++ b/.phpunit.cache/code-coverage/d37b06530ad36c3971b206ba11b119a1 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:66:"CodebarAg\DocuWare\DTO\FileCabinets\General\FileCabinetInformation";a:6:{s:4:"name";s:22:"FileCabinetInformation";s:14:"namespacedName";s:66:"CodebarAg\DocuWare\DTO\FileCabinets\General\FileCabinetInformation";s:9:"namespace";s:43:"CodebarAg\DocuWare\DTO\FileCabinets\General";s:9:"startLine";i:8;s:7:"endLine";i:73;s:7:"methods";a:3:{s:8:"fromJson";a:6:{s:10:"methodName";s:8:"fromJson";s:9:"signature";s:27:"fromJson(array $data): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:10;s:7:"endLine";i:26;s:3:"ccn";i:1;}s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:278:"__construct(string $color, string $name, string $id, bool $isBasket, bool $usable, bool $default, ?string $assignedCabinetId, string $versionManagement, bool $windowsExplorerClientAccess, bool $addIndexEntriesInUpperCase, bool $documentAuditingEnabled, bool $hasFullTextSupport)";s:10:"visibility";s:6:"public";s:9:"startLine";i:28;s:7:"endLine";i:42;s:3:"ccn";i:1;}s:4:"fake";a:6:{s:10:"methodName";s:4:"fake";s:9:"signature";s:288:"fake(?string $color, ?string $name, ?string $id, ?bool $isBasket, ?bool $usable, ?bool $default, ?string $assignedCabinetId, ?string $versionManagement, ?bool $windowsExplorerClientAccess, ?bool $addIndexEntriesInUpperCase, ?bool $documentAuditingEnabled, ?bool $hasFullTextSupport): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:44;s:7:"endLine";i:72;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:74;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:74;}s:15:"ignoredLinesFor";a:1:{i:0;i:8;}s:17:"executableLinesIn";a:29:{i:12;i:1;i:13;i:1;i:14;i:1;i:15;i:1;i:16;i:1;i:17;i:1;i:18;i:1;i:19;i:1;i:20;i:1;i:21;i:1;i:22;i:1;i:23;i:1;i:24;i:1;i:25;i:1;i:42;i:2;i:58;i:3;i:59;i:3;i:60;i:3;i:61;i:3;i:62;i:3;i:63;i:3;i:64;i:3;i:65;i:3;i:66;i:3;i:67;i:3;i:68;i:3;i:69;i:3;i:70;i:3;i:71;i:3;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/d5808ba217acd7683f5d95d7dc827574 b/.phpunit.cache/code-coverage/d5808ba217acd7683f5d95d7dc827574 new file mode 100644 index 0000000..d200acd --- /dev/null +++ b/.phpunit.cache/code-coverage/d5808ba217acd7683f5d95d7dc827574 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:83:"CodebarAg\DocuWare\Responses\FileCabinets\General\GetTotalNumberOfDocumentsResponse";a:6:{s:4:"name";s:33:"GetTotalNumberOfDocumentsResponse";s:14:"namespacedName";s:83:"CodebarAg\DocuWare\Responses\FileCabinets\General\GetTotalNumberOfDocumentsResponse";s:9:"namespace";s:49:"CodebarAg\DocuWare\Responses\FileCabinets\General";s:9:"startLine";i:11;s:7:"endLine";i:30;s:7:"methods";a:1:{s:12:"fromResponse";a:6:{s:10:"methodName";s:12:"fromResponse";s:9:"signature";s:49:"fromResponse(Saloon\Http\Response $response): int";s:10:"visibility";s:6:"public";s:9:"startLine";i:13;s:7:"endLine";i:29;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:31;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:31;}s:15:"ignoredLinesFor";a:1:{i:0;i:11;}s:17:"executableLinesIn";a:9:{i:15;i:1;i:17;i:2;i:19;i:3;i:20;i:4;i:22;i:5;i:23;i:6;i:24;i:7;i:26;i:8;i:28;i:9;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/d58aee6c199413a53747d02bbffc38e0 b/.phpunit.cache/code-coverage/d58aee6c199413a53747d02bbffc38e0 new file mode 100644 index 0000000..08e429f --- /dev/null +++ b/.phpunit.cache/code-coverage/d58aee6c199413a53747d02bbffc38e0 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:64:"CodebarAg\DocuWare\Requests\FileCabinets\Upload\CreateDataRecord";a:6:{s:4:"name";s:16:"CreateDataRecord";s:14:"namespacedName";s:64:"CodebarAg\DocuWare\Requests\FileCabinets\Upload\CreateDataRecord";s:9:"namespace";s:47:"CodebarAg\DocuWare\Requests\FileCabinets\Upload";s:9:"startLine";i:16;s:7:"endLine";i:55;s:7:"methods";a:4:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:116:"__construct(string $fileCabinetId, ?string $fileContent, ?string $fileName, ?Illuminate\Support\Collection $indexes)";s:10:"visibility";s:6:"public";s:9:"startLine";i:22;s:7:"endLine";i:28;s:3:"ccn";i:1;}s:15:"resolveEndpoint";a:6:{s:10:"methodName";s:15:"resolveEndpoint";s:9:"signature";s:25:"resolveEndpoint(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:30;s:7:"endLine";i:33;s:3:"ccn";i:1;}s:11:"defaultBody";a:6:{s:10:"methodName";s:11:"defaultBody";s:9:"signature";s:20:"defaultBody(): array";s:10:"visibility";s:9:"protected";s:9:"startLine";i:35;s:7:"endLine";i:49;s:3:"ccn";i:4;}s:21:"createDtoFromResponse";a:6:{s:10:"methodName";s:21:"createDtoFromResponse";s:9:"signature";s:96:"createDtoFromResponse(Saloon\Http\Response $response): CodebarAg\DocuWare\DTO\Documents\Document";s:10:"visibility";s:6:"public";s:9:"startLine";i:51;s:7:"endLine";i:54;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:56;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:56;}s:15:"ignoredLinesFor";a:1:{i:0;i:16;}s:17:"executableLinesIn";a:10:{i:28;i:3;i:32;i:4;i:37;i:5;i:39;i:6;i:40;i:7;i:41;i:8;i:44;i:9;i:45;i:10;i:48;i:11;i:53;i:12;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/da4291fce8571591aad6986ba7c7852a b/.phpunit.cache/code-coverage/da4291fce8571591aad6986ba7c7852a new file mode 100644 index 0000000..670f082 --- /dev/null +++ b/.phpunit.cache/code-coverage/da4291fce8571591aad6986ba7c7852a @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:31:"CodebarAg\DocuWare\Support\Auth";a:6:{s:4:"name";s:4:"Auth";s:14:"namespacedName";s:31:"CodebarAg\DocuWare\Support\Auth";s:9:"namespace";s:26:"CodebarAg\DocuWare\Support";s:9:"startLine";i:11;s:7:"endLine";i:82;s:7:"methods";a:8:{s:5:"store";a:6:{s:10:"methodName";s:5:"store";s:9:"signature";s:49:"store(GuzzleHttp\Cookie\CookieJar $cookies): void";s:10:"visibility";s:6:"public";s:9:"startLine";i:19;s:7:"endLine";i:34;s:3:"ccn";i:1;}s:7:"cookies";a:6:{s:10:"methodName";s:7:"cookies";s:9:"signature";s:17:"cookies(): ?array";s:10:"visibility";s:6:"public";s:9:"startLine";i:36;s:7:"endLine";i:39;s:3:"ccn";i:1;}s:9:"cookieJar";a:6:{s:10:"methodName";s:9:"cookieJar";s:9:"signature";s:41:"cookieJar(): ?GuzzleHttp\Cookie\CookieJar";s:10:"visibility";s:6:"public";s:9:"startLine";i:41;s:7:"endLine";i:48;s:3:"ccn";i:2;}s:10:"cookieDate";a:6:{s:10:"methodName";s:10:"cookieDate";s:9:"signature";s:20:"cookieDate(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:50;s:7:"endLine";i:53;s:3:"ccn";i:1;}s:6:"forget";a:6:{s:10:"methodName";s:6:"forget";s:9:"signature";s:14:"forget(): void";s:10:"visibility";s:6:"public";s:9:"startLine";i:55;s:7:"endLine";i:58;s:3:"ccn";i:1;}s:6:"domain";a:6:{s:10:"methodName";s:6:"domain";s:9:"signature";s:16:"domain(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:60;s:7:"endLine";i:71;s:3:"ccn";i:1;}s:5:"check";a:6:{s:10:"methodName";s:5:"check";s:9:"signature";s:13:"check(): bool";s:10:"visibility";s:6:"public";s:9:"startLine";i:73;s:7:"endLine";i:76;s:3:"ccn";i:1;}s:11:"cacheDriver";a:6:{s:10:"methodName";s:11:"cacheDriver";s:9:"signature";s:21:"cacheDriver(): string";s:10:"visibility";s:9:"protected";s:9:"startLine";i:78;s:7:"endLine";i:81;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:83;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:83;}s:15:"ignoredLinesFor";a:1:{i:0;i:11;}s:17:"executableLinesIn";a:28:{i:21;i:4;i:22;i:4;i:23;i:4;i:25;i:5;i:26;i:5;i:27;i:5;i:28;i:5;i:29;i:5;i:30;i:5;i:31;i:5;i:32;i:5;i:33;i:5;i:38;i:6;i:43;i:7;i:44;i:8;i:47;i:9;i:52;i:10;i:57;i:11;i:62;i:12;i:63;i:12;i:64;i:12;i:65;i:12;i:67;i:13;i:68;i:13;i:69;i:13;i:70;i:13;i:75;i:14;i:80;i:15;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/da5c682d48442ac506323b07997e3a1f b/.phpunit.cache/code-coverage/da5c682d48442ac506323b07997e3a1f new file mode 100644 index 0000000..3442987 --- /dev/null +++ b/.phpunit.cache/code-coverage/da5c682d48442ac506323b07997e3a1f @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:52:"CodebarAg\DocuWare\Exceptions\UnableToFindConnection";a:6:{s:4:"name";s:22:"UnableToFindConnection";s:14:"namespacedName";s:52:"CodebarAg\DocuWare\Exceptions\UnableToFindConnection";s:9:"namespace";s:29:"CodebarAg\DocuWare\Exceptions";s:9:"startLine";i:7;s:7:"endLine";i:13;s:7:"methods";a:1:{s:6:"create";a:6:{s:10:"methodName";s:6:"create";s:9:"signature";s:14:"create(): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:9;s:7:"endLine";i:12;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:14;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:14;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:1:{i:11;i:1;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/dc50c0f43b3cc1f8cd8e765cc45b2a4e b/.phpunit.cache/code-coverage/dc50c0f43b3cc1f8cd8e765cc45b2a4e new file mode 100644 index 0000000..ab2a37f --- /dev/null +++ b/.phpunit.cache/code-coverage/dc50c0f43b3cc1f8cd8e765cc45b2a4e @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:70:"CodebarAg\DocuWare\Requests\Documents\ModifyDocuments\TransferDocument";a:6:{s:4:"name";s:16:"TransferDocument";s:14:"namespacedName";s:70:"CodebarAg\DocuWare\Requests\Documents\ModifyDocuments\TransferDocument";s:9:"namespace";s:53:"CodebarAg\DocuWare\Requests\Documents\ModifyDocuments";s:9:"startLine";i:12;s:7:"endLine";i:61;s:7:"methods";a:5:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:126:"__construct(string $fileCabinetId, string $destinationFileCabinetId, string $storeDialogId, string $documentId, array $fields)";s:10:"visibility";s:6:"public";s:9:"startLine";i:18;s:7:"endLine";i:25;s:3:"ccn";i:1;}s:15:"resolveEndpoint";a:6:{s:10:"methodName";s:15:"resolveEndpoint";s:9:"signature";s:25:"resolveEndpoint(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:27;s:7:"endLine";i:30;s:3:"ccn";i:1;}s:14:"defaultHeaders";a:6:{s:10:"methodName";s:14:"defaultHeaders";s:9:"signature";s:23:"defaultHeaders(): array";s:10:"visibility";s:9:"protected";s:9:"startLine";i:32;s:7:"endLine";i:39;s:3:"ccn";i:1;}s:11:"defaultBody";a:6:{s:10:"methodName";s:11:"defaultBody";s:9:"signature";s:20:"defaultBody(): array";s:10:"visibility";s:9:"protected";s:9:"startLine";i:41;s:7:"endLine";i:55;s:3:"ccn";i:1;}s:21:"createDtoFromResponse";a:6:{s:10:"methodName";s:21:"createDtoFromResponse";s:9:"signature";s:59:"createDtoFromResponse(Saloon\Http\Response $response): bool";s:10:"visibility";s:6:"public";s:9:"startLine";i:57;s:7:"endLine";i:60;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:62;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:62;}s:15:"ignoredLinesFor";a:1:{i:0;i:12;}s:17:"executableLinesIn";a:20:{i:25;i:3;i:29;i:5;i:34;i:6;i:35;i:6;i:36;i:6;i:37;i:6;i:38;i:6;i:43;i:7;i:44;i:7;i:45;i:7;i:46;i:7;i:47;i:7;i:48;i:7;i:49;i:7;i:50;i:7;i:51;i:7;i:52;i:7;i:53;i:7;i:54;i:7;i:59;i:8;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/e0e63254be8e20c8861542bcad454164 b/.phpunit.cache/code-coverage/e0e63254be8e20c8861542bcad454164 new file mode 100644 index 0000000..932a7e2 --- /dev/null +++ b/.phpunit.cache/code-coverage/e0e63254be8e20c8861542bcad454164 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:57:"CodebarAg\DocuWare\Responses\Sections\GetSectionsResponse";a:6:{s:4:"name";s:19:"GetSectionsResponse";s:14:"namespacedName";s:57:"CodebarAg\DocuWare\Responses\Sections\GetSectionsResponse";s:9:"namespace";s:37:"CodebarAg\DocuWare\Responses\Sections";s:9:"startLine";i:12;s:7:"endLine";i:30;s:7:"methods";a:1:{s:12:"fromResponse";a:6:{s:10:"methodName";s:12:"fromResponse";s:9:"signature";s:107:"fromResponse(Saloon\Http\Response $response): \Illuminate\Support\Collection|\Illuminate\Support\Enumerable";s:10:"visibility";s:6:"public";s:9:"startLine";i:14;s:7:"endLine";i:29;s:3:"ccn";i:2;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:31;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:31;}s:15:"ignoredLinesFor";a:1:{i:0;i:12;}s:17:"executableLinesIn";a:7:{i:16;i:1;i:18;i:2;i:20;i:3;i:22;i:4;i:24;i:5;i:25;i:6;i:28;i:7;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/e3867d36ba27e57d61f32d31b4d9a411 b/.phpunit.cache/code-coverage/e3867d36ba27e57d61f32d31b4d9a411 new file mode 100644 index 0000000..24120e6 --- /dev/null +++ b/.phpunit.cache/code-coverage/e3867d36ba27e57d61f32d31b4d9a411 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:74:"CodebarAg\DocuWare\Requests\FileCabinets\General\GetTotalNumberOfDocuments";a:6:{s:4:"name";s:25:"GetTotalNumberOfDocuments";s:14:"namespacedName";s:74:"CodebarAg\DocuWare\Requests\FileCabinets\General\GetTotalNumberOfDocuments";s:9:"namespace";s:48:"CodebarAg\DocuWare\Requests\FileCabinets\General";s:9:"startLine";i:14;s:7:"endLine";i:52;s:7:"methods";a:6:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:58:"__construct(string $fileCabinetId, string $searchDialogId)";s:10:"visibility";s:6:"public";s:9:"startLine";i:20;s:7:"endLine";i:24;s:3:"ccn";i:1;}s:15:"resolveEndpoint";a:6:{s:10:"methodName";s:15:"resolveEndpoint";s:9:"signature";s:25:"resolveEndpoint(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:26;s:7:"endLine";i:29;s:3:"ccn";i:1;}s:12:"defaultQuery";a:6:{s:10:"methodName";s:12:"defaultQuery";s:9:"signature";s:21:"defaultQuery(): array";s:10:"visibility";s:6:"public";s:9:"startLine";i:31;s:7:"endLine";i:36;s:3:"ccn";i:1;}s:18:"resolveCacheDriver";a:6:{s:10:"methodName";s:18:"resolveCacheDriver";s:9:"signature";s:67:"resolveCacheDriver(): Saloon\CachePlugin\Drivers\LaravelCacheDriver";s:10:"visibility";s:6:"public";s:9:"startLine";i:38;s:7:"endLine";i:41;s:3:"ccn";i:1;}s:20:"cacheExpiryInSeconds";a:6:{s:10:"methodName";s:20:"cacheExpiryInSeconds";s:9:"signature";s:27:"cacheExpiryInSeconds(): int";s:10:"visibility";s:6:"public";s:9:"startLine";i:43;s:7:"endLine";i:46;s:3:"ccn";i:1;}s:21:"createDtoFromResponse";a:6:{s:10:"methodName";s:21:"createDtoFromResponse";s:9:"signature";s:58:"createDtoFromResponse(Saloon\Http\Response $response): int";s:10:"visibility";s:6:"public";s:9:"startLine";i:48;s:7:"endLine";i:51;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:53;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:53;}s:15:"ignoredLinesFor";a:1:{i:0;i:14;}s:17:"executableLinesIn";a:8:{i:24;i:3;i:28;i:4;i:33;i:5;i:34;i:5;i:35;i:5;i:40;i:6;i:45;i:7;i:50;i:8;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/e3969e7b7111608de85ade720bb966a2 b/.phpunit.cache/code-coverage/e3969e7b7111608de85ade720bb966a2 new file mode 100644 index 0000000..d639d34 --- /dev/null +++ b/.phpunit.cache/code-coverage/e3969e7b7111608de85ade720bb966a2 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:30:"CodebarAg\DocuWare\Support\URL";a:6:{s:4:"name";s:3:"URL";s:14:"namespacedName";s:30:"CodebarAg\DocuWare\Support\URL";s:9:"namespace";s:26:"CodebarAg\DocuWare\Support";s:9:"startLine";i:7;s:7:"endLine";i:33;s:7:"methods";a:2:{s:6:"format";a:6:{s:10:"methodName";s:6:"format";s:9:"signature";s:30:"format(string $string): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:17;s:7:"endLine";i:27;s:3:"ccn";i:1;}s:16:"formatWithBase64";a:6:{s:10:"methodName";s:16:"formatWithBase64";s:9:"signature";s:40:"formatWithBase64(string $string): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:29;s:7:"endLine";i:32;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:34;s:18:"commentLinesOfCode";i:8;s:21:"nonCommentLinesOfCode";i:26;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:8:{i:19;i:1;i:21;i:2;i:22;i:2;i:23;i:2;i:24;i:2;i:25;i:2;i:26;i:2;i:31;i:3;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/e545846724a82071e4bf84d33aee92ae b/.phpunit.cache/code-coverage/e545846724a82071e4bf84d33aee92ae new file mode 100644 index 0000000..d7ecd9e --- /dev/null +++ b/.phpunit.cache/code-coverage/e545846724a82071e4bf84d33aee92ae @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:60:"CodebarAg\DocuWare\DTO\Documents\DocumentIndex\IndexTableDTO";a:6:{s:4:"name";s:13:"IndexTableDTO";s:14:"namespacedName";s:60:"CodebarAg\DocuWare\DTO\Documents\DocumentIndex\IndexTableDTO";s:9:"namespace";s:46:"CodebarAg\DocuWare\DTO\Documents\DocumentIndex";s:9:"startLine";i:8;s:7:"endLine";i:76;s:7:"methods";a:5:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:74:"__construct(string $name, null|\Illuminate\Support\Collection|array $rows)";s:10:"visibility";s:6:"public";s:9:"startLine";i:10;s:7:"endLine";i:15;s:3:"ccn";i:1;}s:4:"make";a:6:{s:10:"methodName";s:4:"make";s:9:"signature";s:73:"make(string $name, null|\Illuminate\Support\Collection|array $rows): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:17;s:7:"endLine";i:20;s:3:"ccn";i:1;}s:6:"values";a:6:{s:10:"methodName";s:6:"values";s:9:"signature";s:15:"values(): array";s:10:"visibility";s:6:"public";s:9:"startLine";i:22;s:7:"endLine";i:32;s:3:"ccn";i:1;}s:14:"rowsCollection";a:6:{s:10:"methodName";s:14:"rowsCollection";s:9:"signature";s:23:"rowsCollection(): array";s:10:"visibility";s:9:"protected";s:9:"startLine";i:34;s:7:"endLine";i:64;s:3:"ccn";i:3;}s:14:"makeRowContent";a:6:{s:10:"methodName";s:14:"makeRowContent";s:9:"signature";s:61:"makeRowContent(Illuminate\Support\Collection $indexes): array";s:10:"visibility";s:6:"public";s:9:"startLine";i:66;s:7:"endLine";i:75;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:77;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:77;}s:15:"ignoredLinesFor";a:1:{i:0;i:8;}s:17:"executableLinesIn";a:34:{i:15;i:1;i:19;i:2;i:24;i:3;i:25;i:3;i:26;i:3;i:27;i:3;i:28;i:3;i:29;i:3;i:30;i:3;i:31;i:3;i:36;i:4;i:59;i:4;i:60;i:4;i:61;i:4;i:62;i:4;i:38;i:5;i:49;i:5;i:50;i:5;i:51;i:5;i:40;i:6;i:41;i:7;i:44;i:8;i:45;i:9;i:47;i:10;i:53;i:11;i:54;i:12;i:57;i:13;i:68;i:14;i:69;i:14;i:70;i:14;i:71;i:14;i:72;i:14;i:73;i:14;i:74;i:14;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/e57e9c0e48f077853a1c1ef638dde7ae b/.phpunit.cache/code-coverage/e57e9c0e48f077853a1c1ef638dde7ae new file mode 100644 index 0000000..db53e3c --- /dev/null +++ b/.phpunit.cache/code-coverage/e57e9c0e48f077853a1c1ef638dde7ae @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:52:"CodebarAg\DocuWare\Exceptions\UnableToFindPassphrase";a:6:{s:4:"name";s:22:"UnableToFindPassphrase";s:14:"namespacedName";s:52:"CodebarAg\DocuWare\Exceptions\UnableToFindPassphrase";s:9:"namespace";s:29:"CodebarAg\DocuWare\Exceptions";s:9:"startLine";i:7;s:7:"endLine";i:13;s:7:"methods";a:1:{s:6:"create";a:6:{s:10:"methodName";s:6:"create";s:9:"signature";s:14:"create(): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:9;s:7:"endLine";i:12;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:14;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:14;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:1:{i:11;i:1;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/e5f432d3bb173caa7e3a11ab8c4f5b4c b/.phpunit.cache/code-coverage/e5f432d3bb173caa7e3a11ab8c4f5b4c new file mode 100644 index 0000000..9406d72 --- /dev/null +++ b/.phpunit.cache/code-coverage/e5f432d3bb173caa7e3a11ab8c4f5b4c @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:70:"CodebarAg\DocuWare\DTO\Authentication\OAuth\ResponsibleIdentityService";a:6:{s:4:"name";s:26:"ResponsibleIdentityService";s:14:"namespacedName";s:70:"CodebarAg\DocuWare\DTO\Authentication\OAuth\ResponsibleIdentityService";s:9:"namespace";s:43:"CodebarAg\DocuWare\DTO\Authentication\OAuth";s:9:"startLine";i:7;s:7:"endLine";i:22;s:7:"methods";a:2:{s:4:"make";a:6:{s:10:"methodName";s:4:"make";s:9:"signature";s:23:"make(array $data): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:9;s:7:"endLine";i:15;s:3:"ccn";i:1;}s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:68:"__construct(string $identityServiceUrl, bool $refreshTokenSupported)";s:10:"visibility";s:6:"public";s:9:"startLine";i:17;s:7:"endLine";i:21;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:23;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:23;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:5:{i:11;i:1;i:12;i:1;i:13;i:1;i:14;i:1;i:21;i:2;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/e6597955ff58244287a0b69a613c8916 b/.phpunit.cache/code-coverage/e6597955ff58244287a0b69a613c8916 new file mode 100644 index 0000000..eeac891 --- /dev/null +++ b/.phpunit.cache/code-coverage/e6597955ff58244287a0b69a613c8916 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:38:"CodebarAg\DocuWare\DTO\Documents\Field";a:6:{s:4:"name";s:5:"Field";s:14:"namespacedName";s:38:"CodebarAg\DocuWare\DTO\Documents\Field";s:9:"namespace";s:32:"CodebarAg\DocuWare\DTO\Documents";s:9:"startLine";i:7;s:7:"endLine";i:50;s:7:"methods";a:5:{s:8:"fromJson";a:6:{s:10:"methodName";s:8:"fromJson";s:9:"signature";s:27:"fromJson(array $data): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:9;s:7:"endLine";i:17;s:3:"ccn";i:1;}s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:69:"__construct(string $name, string $label, string $type, string $scope)";s:10:"visibility";s:6:"public";s:9:"startLine";i:19;s:7:"endLine";i:25;s:3:"ccn";i:1;}s:8:"isSystem";a:6:{s:10:"methodName";s:8:"isSystem";s:9:"signature";s:16:"isSystem(): bool";s:10:"visibility";s:6:"public";s:9:"startLine";i:27;s:7:"endLine";i:30;s:3:"ccn";i:1;}s:6:"isUser";a:6:{s:10:"methodName";s:6:"isUser";s:9:"signature";s:14:"isUser(): bool";s:10:"visibility";s:6:"public";s:9:"startLine";i:32;s:7:"endLine";i:35;s:3:"ccn";i:1;}s:4:"fake";a:6:{s:10:"methodName";s:4:"fake";s:9:"signature";s:72:"fake(?string $name, ?string $label, ?string $type, ?string $scope): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:37;s:7:"endLine";i:49;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:51;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:51;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:15:{i:11;i:1;i:12;i:1;i:13;i:1;i:14;i:1;i:15;i:1;i:16;i:1;i:25;i:2;i:29;i:3;i:34;i:4;i:43;i:5;i:44;i:5;i:45;i:5;i:46;i:5;i:47;i:5;i:48;i:5;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/e677eb91f4ab61502a874bfd78843a34 b/.phpunit.cache/code-coverage/e677eb91f4ab61502a874bfd78843a34 new file mode 100644 index 0000000..04d69d4 --- /dev/null +++ b/.phpunit.cache/code-coverage/e677eb91f4ab61502a874bfd78843a34 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:62:"CodebarAg\DocuWare\Requests\General\Organization\GetLoginToken";a:6:{s:4:"name";s:13:"GetLoginToken";s:14:"namespacedName";s:62:"CodebarAg\DocuWare\Requests\General\Organization\GetLoginToken";s:9:"namespace";s:48:"CodebarAg\DocuWare\Requests\General\Organization";s:9:"startLine";i:16;s:7:"endLine";i:58;s:7:"methods";a:6:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:67:"__construct(array $targetProducts, string $usage, string $lifetime)";s:10:"visibility";s:6:"public";s:9:"startLine";i:23;s:7:"endLine";i:28;s:3:"ccn";i:1;}s:15:"resolveEndpoint";a:6:{s:10:"methodName";s:15:"resolveEndpoint";s:9:"signature";s:25:"resolveEndpoint(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:30;s:7:"endLine";i:33;s:3:"ccn";i:1;}s:11:"defaultBody";a:6:{s:10:"methodName";s:11:"defaultBody";s:9:"signature";s:20:"defaultBody(): array";s:10:"visibility";s:9:"protected";s:9:"startLine";i:35;s:7:"endLine";i:42;s:3:"ccn";i:1;}s:18:"resolveCacheDriver";a:6:{s:10:"methodName";s:18:"resolveCacheDriver";s:9:"signature";s:67:"resolveCacheDriver(): Saloon\CachePlugin\Drivers\LaravelCacheDriver";s:10:"visibility";s:6:"public";s:9:"startLine";i:44;s:7:"endLine";i:47;s:3:"ccn";i:1;}s:20:"cacheExpiryInSeconds";a:6:{s:10:"methodName";s:20:"cacheExpiryInSeconds";s:9:"signature";s:27:"cacheExpiryInSeconds(): int";s:10:"visibility";s:6:"public";s:9:"startLine";i:49;s:7:"endLine";i:52;s:3:"ccn";i:1;}s:21:"createDtoFromResponse";a:6:{s:10:"methodName";s:21:"createDtoFromResponse";s:9:"signature";s:61:"createDtoFromResponse(Saloon\Http\Response $response): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:54;s:7:"endLine";i:57;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:59;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:59;}s:15:"ignoredLinesFor";a:1:{i:0;i:16;}s:17:"executableLinesIn";a:10:{i:28;i:4;i:32;i:6;i:37;i:7;i:38;i:7;i:39;i:7;i:40;i:7;i:41;i:7;i:46;i:8;i:51;i:9;i:56;i:10;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/e7d111d0c983404001f236c7ea3b945f b/.phpunit.cache/code-coverage/e7d111d0c983404001f236c7ea3b945f new file mode 100644 index 0000000..5b731cd --- /dev/null +++ b/.phpunit.cache/code-coverage/e7d111d0c983404001f236c7ea3b945f @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:55:"CodebarAg\DocuWare\DTO\General\Organization\FileCabinet";a:6:{s:4:"name";s:11:"FileCabinet";s:14:"namespacedName";s:55:"CodebarAg\DocuWare\DTO\General\Organization\FileCabinet";s:9:"namespace";s:43:"CodebarAg\DocuWare\DTO\General\Organization";s:9:"startLine";i:8;s:7:"endLine";i:73;s:7:"methods";a:3:{s:8:"fromJson";a:6:{s:10:"methodName";s:8:"fromJson";s:9:"signature";s:27:"fromJson(array $data): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:10;s:7:"endLine";i:26;s:3:"ccn";i:1;}s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:278:"__construct(string $color, string $name, string $id, bool $isBasket, bool $usable, bool $default, ?string $assignedCabinetId, string $versionManagement, bool $windowsExplorerClientAccess, bool $addIndexEntriesInUpperCase, bool $documentAuditingEnabled, bool $hasFullTextSupport)";s:10:"visibility";s:6:"public";s:9:"startLine";i:28;s:7:"endLine";i:42;s:3:"ccn";i:1;}s:4:"fake";a:6:{s:10:"methodName";s:4:"fake";s:9:"signature";s:288:"fake(?string $color, ?string $name, ?string $id, ?bool $isBasket, ?bool $usable, ?bool $default, ?string $assignedCabinetId, ?string $versionManagement, ?bool $windowsExplorerClientAccess, ?bool $addIndexEntriesInUpperCase, ?bool $documentAuditingEnabled, ?bool $hasFullTextSupport): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:44;s:7:"endLine";i:72;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:74;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:74;}s:15:"ignoredLinesFor";a:1:{i:0;i:8;}s:17:"executableLinesIn";a:29:{i:12;i:1;i:13;i:1;i:14;i:1;i:15;i:1;i:16;i:1;i:17;i:1;i:18;i:1;i:19;i:1;i:20;i:1;i:21;i:1;i:22;i:1;i:23;i:1;i:24;i:1;i:25;i:1;i:42;i:2;i:58;i:3;i:59;i:3;i:60;i:3;i:61;i:3;i:62;i:3;i:63;i:3;i:64;i:3;i:65;i:3;i:66;i:3;i:67;i:3;i:68;i:3;i:69;i:3;i:70;i:3;i:71;i:3;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/ed6fa75212af5c6b05c5ff8577490b78 b/.phpunit.cache/code-coverage/ed6fa75212af5c6b05c5ff8577490b78 new file mode 100644 index 0000000..6c66a37 --- /dev/null +++ b/.phpunit.cache/code-coverage/ed6fa75212af5c6b05c5ff8577490b78 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:72:"CodebarAg\DocuWare\DTO\Authentication\OAuth\IdentityServiceConfiguration";a:6:{s:4:"name";s:28:"IdentityServiceConfiguration";s:14:"namespacedName";s:72:"CodebarAg\DocuWare\DTO\Authentication\OAuth\IdentityServiceConfiguration";s:9:"namespace";s:43:"CodebarAg\DocuWare\DTO\Authentication\OAuth";s:9:"startLine";i:7;s:7:"endLine";i:86;s:7:"methods";a:2:{s:4:"make";a:6:{s:10:"methodName";s:4:"make";s:9:"signature";s:23:"make(array $data): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:9;s:7:"endLine";i:47;s:3:"ccn";i:1;}s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:1165:"__construct(string $issuer, string $jwksUri, string $authorizationEndpoint, string $tokenEndpoint, string $userinfoEndpoint, string $endSessionEndpoint, string $checkSessionIframe, string $revocationEndpoint, string $introspectionEndpoint, string $deviceAuthorizationEndpoint, string $backchannelAuthenticationEndpoint, string $pushedAuthorizationRequestEndpoint, bool $requirePushedAuthorizationRequests, bool $frontchannelLogoutSupported, bool $frontchannelLogoutSessionSupported, bool $backchannelLogoutSupported, bool $backchannelLogoutSessionSupported, array $scopesSupported, array $claimsSupported, array $grantTypesSupported, array $responseTypesSupported, array $responseModesSupported, array $tokenEndpointAuthMethodsSupported, array $idTokenSigningAlgValuesSupported, array $subjectTypesSupported, array $codeChallengeMethodsSupported, bool $requestParameterSupported, array $requestObjectSigningAlgValuesSupported, array $promptValuesSupported, bool $authorizationResponseIssParameterSupported, array $backchannelTokenDeliveryModesSupported, bool $backchannelUserCodeParameterSupported, array $dpopSigningAlgValuesSupported, string $windowsAuthEndpoint)";s:10:"visibility";s:6:"public";s:9:"startLine";i:49;s:7:"endLine";i:85;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:87;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:87;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:37:{i:11;i:1;i:12;i:1;i:13;i:1;i:14;i:1;i:15;i:1;i:16;i:1;i:17;i:1;i:18;i:1;i:19;i:1;i:20;i:1;i:21;i:1;i:22;i:1;i:23;i:1;i:24;i:1;i:25;i:1;i:26;i:1;i:27;i:1;i:28;i:1;i:29;i:1;i:30;i:1;i:31;i:1;i:32;i:1;i:33;i:1;i:34;i:1;i:35;i:1;i:36;i:1;i:37;i:1;i:38;i:1;i:39;i:1;i:40;i:1;i:41;i:1;i:42;i:1;i:43;i:1;i:44;i:1;i:45;i:1;i:46;i:1;i:85;i:2;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/f3155792def8ca976ff0275567c5d100 b/.phpunit.cache/code-coverage/f3155792def8ca976ff0275567c5d100 new file mode 100644 index 0000000..942f658 --- /dev/null +++ b/.phpunit.cache/code-coverage/f3155792def8ca976ff0275567c5d100 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:83:"CodebarAg\DocuWare\Responses\FileCabinets\General\GetFileCabinetInformationResponse";a:6:{s:4:"name";s:33:"GetFileCabinetInformationResponse";s:14:"namespacedName";s:83:"CodebarAg\DocuWare\Responses\FileCabinets\General\GetFileCabinetInformationResponse";s:9:"namespace";s:49:"CodebarAg\DocuWare\Responses\FileCabinets\General";s:9:"startLine";i:10;s:7:"endLine";i:22;s:7:"methods";a:1:{s:12:"fromResponse";a:6:{s:10:"methodName";s:12:"fromResponse";s:9:"signature";s:112:"fromResponse(Saloon\Http\Response $response): CodebarAg\DocuWare\DTO\FileCabinets\General\FileCabinetInformation";s:10:"visibility";s:6:"public";s:9:"startLine";i:12;s:7:"endLine";i:21;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:23;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:23;}s:15:"ignoredLinesFor";a:1:{i:0;i:10;}s:17:"executableLinesIn";a:4:{i:14;i:1;i:16;i:2;i:18;i:3;i:20;i:4;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/f9e4fecac63b97356875ace8cc1b94c3 b/.phpunit.cache/code-coverage/f9e4fecac63b97356875ace8cc1b94c3 new file mode 100644 index 0000000..2e5952d --- /dev/null +++ b/.phpunit.cache/code-coverage/f9e4fecac63b97356875ace8cc1b94c3 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:67:"CodebarAg\DocuWare\Requests\FileCabinets\SelectLists\GetSelectLists";a:6:{s:4:"name";s:14:"GetSelectLists";s:14:"namespacedName";s:67:"CodebarAg\DocuWare\Requests\FileCabinets\SelectLists\GetSelectLists";s:9:"namespace";s:52:"CodebarAg\DocuWare\Requests\FileCabinets\SelectLists";s:9:"startLine";i:14;s:7:"endLine";i:54;s:7:"methods";a:6:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:71:"__construct(string $fileCabinetId, string $dialogId, string $fieldName)";s:10:"visibility";s:6:"public";s:9:"startLine";i:20;s:7:"endLine";i:25;s:3:"ccn";i:1;}s:15:"resolveEndpoint";a:6:{s:10:"methodName";s:15:"resolveEndpoint";s:9:"signature";s:25:"resolveEndpoint(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:27;s:7:"endLine";i:30;s:3:"ccn";i:1;}s:18:"resolveCacheDriver";a:6:{s:10:"methodName";s:18:"resolveCacheDriver";s:9:"signature";s:67:"resolveCacheDriver(): Saloon\CachePlugin\Drivers\LaravelCacheDriver";s:10:"visibility";s:6:"public";s:9:"startLine";i:32;s:7:"endLine";i:35;s:3:"ccn";i:1;}s:20:"cacheExpiryInSeconds";a:6:{s:10:"methodName";s:20:"cacheExpiryInSeconds";s:9:"signature";s:27:"cacheExpiryInSeconds(): int";s:10:"visibility";s:6:"public";s:9:"startLine";i:37;s:7:"endLine";i:40;s:3:"ccn";i:1;}s:12:"defaultQuery";a:6:{s:10:"methodName";s:12:"defaultQuery";s:9:"signature";s:21:"defaultQuery(): array";s:10:"visibility";s:6:"public";s:9:"startLine";i:42;s:7:"endLine";i:48;s:3:"ccn";i:1;}s:21:"createDtoFromResponse";a:6:{s:10:"methodName";s:21:"createDtoFromResponse";s:9:"signature";s:60:"createDtoFromResponse(Saloon\Http\Response $response): mixed";s:10:"visibility";s:6:"public";s:9:"startLine";i:50;s:7:"endLine";i:53;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:55;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:55;}s:15:"ignoredLinesFor";a:1:{i:0;i:14;}s:17:"executableLinesIn";a:9:{i:25;i:3;i:29;i:4;i:34;i:5;i:39;i:6;i:44;i:7;i:45;i:7;i:46;i:7;i:47;i:7;i:52;i:8;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/fdcc36c40ac93d1d78e6e5b01ea4705c b/.phpunit.cache/code-coverage/fdcc36c40ac93d1d78e6e5b01ea4705c new file mode 100644 index 0000000..c3d742b --- /dev/null +++ b/.phpunit.cache/code-coverage/fdcc36c40ac93d1d78e6e5b01ea4705c @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:50:"CodebarAg\DocuWare\Exceptions\UnableToUpdateFields";a:6:{s:4:"name";s:20:"UnableToUpdateFields";s:14:"namespacedName";s:50:"CodebarAg\DocuWare\Exceptions\UnableToUpdateFields";s:9:"namespace";s:29:"CodebarAg\DocuWare\Exceptions";s:9:"startLine";i:7;s:7:"endLine";i:18;s:7:"methods";a:2:{s:16:"noValuesProvided";a:6:{s:10:"methodName";s:16:"noValuesProvided";s:9:"signature";s:24:"noValuesProvided(): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:9;s:7:"endLine";i:12;s:3:"ccn";i:1;}s:24:"noValuesProvidedForField";a:6:{s:10:"methodName";s:24:"noValuesProvidedForField";s:9:"signature";s:45:"noValuesProvidedForField(string $field): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:14;s:7:"endLine";i:17;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:19;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:19;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:2:{i:11;i:1;i:16;i:2;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/ff6829f11ff301b138ca03da00426c41 b/.phpunit.cache/code-coverage/ff6829f11ff301b138ca03da00426c41 new file mode 100644 index 0000000..226dabd --- /dev/null +++ b/.phpunit.cache/code-coverage/ff6829f11ff301b138ca03da00426c41 @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:56:"CodebarAg\DocuWare\DTO\General\Organization\Organization";a:6:{s:4:"name";s:12:"Organization";s:14:"namespacedName";s:56:"CodebarAg\DocuWare\DTO\General\Organization\Organization";s:9:"namespace";s:43:"CodebarAg\DocuWare\DTO\General\Organization";s:9:"startLine";i:8;s:7:"endLine";i:45;s:7:"methods";a:3:{s:8:"fromJson";a:6:{s:10:"methodName";s:8:"fromJson";s:9:"signature";s:27:"fromJson(array $data): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:10;s:7:"endLine";i:19;s:3:"ccn";i:1;}s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:103:"__construct(string $id, string $name, ?string $guid, array $additionalInfo, array $configurationRights)";s:10:"visibility";s:6:"public";s:9:"startLine";i:21;s:7:"endLine";i:28;s:3:"ccn";i:1;}s:4:"fake";a:6:{s:10:"methodName";s:4:"fake";s:9:"signature";s:104:"fake(?string $id, ?string $name, ?string $guid, array $additionalInfo, array $configurationRights): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:30;s:7:"endLine";i:44;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:46;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:46;}s:15:"ignoredLinesFor";a:1:{i:0;i:8;}s:17:"executableLinesIn";a:15:{i:12;i:1;i:13;i:1;i:14;i:1;i:15;i:1;i:16;i:1;i:17;i:1;i:18;i:1;i:28;i:2;i:37;i:7;i:38;i:7;i:39;i:7;i:40;i:7;i:41;i:7;i:42;i:7;i:43;i:7;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/fffe326c5aa70c4797b8a2b58055a5ec b/.phpunit.cache/code-coverage/fffe326c5aa70c4797b8a2b58055a5ec new file mode 100644 index 0000000..ad4f961 --- /dev/null +++ b/.phpunit.cache/code-coverage/fffe326c5aa70c4797b8a2b58055a5ec @@ -0,0 +1 @@ +a:6:{s:9:"classesIn";a:1:{s:73:"CodebarAg\DocuWare\Responses\FileCabinets\Upload\CreateDataRecordResponse";a:6:{s:4:"name";s:24:"CreateDataRecordResponse";s:14:"namespacedName";s:73:"CodebarAg\DocuWare\Responses\FileCabinets\Upload\CreateDataRecordResponse";s:9:"namespace";s:48:"CodebarAg\DocuWare\Responses\FileCabinets\Upload";s:9:"startLine";i:10;s:7:"endLine";i:22;s:7:"methods";a:1:{s:12:"fromResponse";a:6:{s:10:"methodName";s:12:"fromResponse";s:9:"signature";s:87:"fromResponse(Saloon\Http\Response $response): CodebarAg\DocuWare\DTO\Documents\Document";s:10:"visibility";s:6:"public";s:9:"startLine";i:12;s:7:"endLine";i:21;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:23;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:23;}s:15:"ignoredLinesFor";a:1:{i:0;i:10;}s:17:"executableLinesIn";a:4:{i:14;i:1;i:16;i:2;i:18;i:3;i:20;i:4;}} \ No newline at end of file diff --git a/.phpunit.cache/test-results b/.phpunit.cache/test-results new file mode 100644 index 0000000..5940aec --- /dev/null +++ b/.phpunit.cache/test-results @@ -0,0 +1 @@ +{"version":"pest_2.34.7","defects":[],"times":{"P\\Tests\\Feature\\DocuWareAuthenticationTest::__pest_evaluable_it_can_authenticate_with_DocuWare":0.833,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_file_cabinet":0.062,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_table_row":0.006,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_document_field":0.009,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_document_paginator":0.015,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_dialog":0.014,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_organization_index":0.013,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_suggestion_field":0.013,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_document":0.01,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_field":0.013,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_organization":0.012,"P\\Tests\\Feature\\Requests\\Document\\GetDocumentDownloadRequestTest::__pest_evaluable_it_can_download_a_document":0.692,"P\\Tests\\Feature\\Requests\\Fields\\GetFieldsRequestTest::__pest_evaluable_it_can_list_fields_for_a_file_cabinet":0.184,"P\\Tests\\Feature\\DocuWareTest::__pest_evaluable_it_can_create_encrypted_url_for_a_document_in_a_basket":0.036,"P\\Tests\\Feature\\DocuWareTest::__pest_evaluable_it_can_create_encrypted_url_for_a_document_in_a_file_cabinet":0.014,"P\\Tests\\Feature\\Requests\\Document\\PutDocumentFieldsRequestTest::__pest_evaluable_it_can_update_a_document_value":0.682,"P\\Tests\\Feature\\Requests\\Document\\PutDocumentFieldsRequestTest::__pest_evaluable_it_can_update_multiple_document_values":0.585,"P\\Tests\\Feature\\Requests\\Dialogs\\GetDialogRequestTest::__pest_evaluable_it_can_get_a_dialog":0.323,"P\\Tests\\Unit\\DTO\\DocumentIndex\\PrepareDTOTest::__pest_evaluable_it_create_prepare_makeContent_dto":0.011,"P\\Tests\\Unit\\DTO\\DocumentIndex\\PrepareDTOTest::__pest_evaluable_it_create_prepare_index_dto":0.003,"P\\Tests\\Unit\\DTO\\DocumentIndex\\IndexTextDTOTest::__pest_evaluable_it_create_prepare_index_text_dto":0.004,"P\\Tests\\Unit\\DTO\\DocumentIndex\\IndexNumericDTOTest::__pest_evaluable_it_create_index_numeric_dto":0.003,"P\\Tests\\Feature\\Requests\\Organization\\GetOrganizationsRequestTest::__pest_evaluable_it_can_list_organizations":0.119,"P\\Tests\\Unit\\DTO\\DocumentIndex\\IndexDateDTOTest::__pest_evaluable_it_create_index_date_dto":0.005,"P\\Tests\\Feature\\Requests\\Document\\GetDocumentRequestTest::__pest_evaluable_it_can_show_a_document":0.355,"P\\Tests\\Feature\\Requests\\Document\\Thumbnail\\GetDocumentDownloadThumbnailRequestTest::__pest_evaluable_it_can_download_a_document_thumbnail":0.484,"P\\Tests\\Unit\\DTO\\DocumentIndex\\IndexDateTimeDTOTest::__pest_evaluable_it_create_index_date_time_dto":0.005,"P\\Tests\\Feature\\Requests\\Document\\PostDocumentRequestTest::__pest_evaluable_it_can_upload_document_with_index_values_and_delete_it":0.279,"P\\Tests\\Feature\\Requests\\Document\\PostDocumentRequestTest::__pest_evaluable_it_can_upload_document_without_file_name_and_file_content_and_delete_it":0.177,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_search_documents":0.243,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_search_documents_with_null_values":0.135,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_t_search_documents_by_diverged_date_range":0.011,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_override_search_documents_dates_filter_by_using_equal_operator":0.216,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_search_documents_dates_filter_in_future":0.157,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_search_documents_dates_filter_in_past":0.188,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_search_documents_with_multiple_values":0.732,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_t_search_documents_by_more_than_two_dates":0.011,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_override_search_documents_dates_filter_by_using_same_operator":0.192,"P\\Tests\\Feature\\Requests\\Document\\GetDocumentsRequestTest::__pest_evaluable_it_can_get_all_documents":0.543,"P\\Tests\\Feature\\Requests\\Document\\GetDocumentCountRequestTest::__pest_evaluable_it_can_get_a_total_count_of_documents":0.364,"P\\Tests\\Unit\\DTO\\DocumentIndex\\PrepareTableDTOTest::__pest_evaluable_it_create_prepare_index_table_dto":0.005,"P\\Tests\\Unit\\DTO\\DocumentIndex\\IndexTableDTOTest::__pest_evaluable_it_create_prepare_index_text_dto":0.006,"P\\Tests\\Unit\\DTO\\DocumentIndex\\IndexDecimalDTOTest::__pest_evaluable_it_create_index_numeric_dto":0.003,"P\\Tests\\Feature\\DocuWareAuthenticationTest::__pest_evaluable_it_can_get_oath_request_token":0.67,"P\\Tests\\Feature\\DocuWareAuthenticationTest::__pest_evaluable_it_can_get_oath_responsible_identity_service":0.162,"P\\Tests\\Feature\\DocuWareAuthenticationTest::__pest_evaluable_it_can_get_oath_identity_service_configuration":0.352,"P\\Tests\\Feature\\Requests\\Document\\GetDocumentPreviewRequestTest::__pest_evaluable_it_can_preview_a_document_image":0.902,"P\\Tests\\Core\\ArchTest::__pest_evaluable_it_will_not_use_any_debug_function":0.457,"P\\Tests\\Feature\\Requests\\Dialogs\\GetDialogsRequestTest::__pest_evaluable_it_can_list_dialogs_for_a_file_cabinet":0.174,"P\\Tests\\Feature\\Requests\\FileCabinets\\GetFileCabinetInformationTest::__pest_evaluable_it_can_get_file_cabinet_information":0.153}} \ No newline at end of file From 86b6e62541d04cd136de62c9945a6d8191e8bcff Mon Sep 17 00:00:00 2001 From: Rhys Lees <43909932+RhysLees@users.noreply.github.com> Date: Mon, 29 Apr 2024 23:42:56 +0100 Subject: [PATCH 06/54] WIP --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 83c9b9f..8054c8d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ .idea .phpunit.result.cache +.phpunit.cache build composer.lock coverage From 8510dc40581f5619c5bdf3668790d3ccc2d4a751 Mon Sep 17 00:00:00 2001 From: Rhys Lees <43909932+RhysLees@users.noreply.github.com> Date: Mon, 29 Apr 2024 23:43:37 +0100 Subject: [PATCH 07/54] WIP --- .phpunit.cache/code-coverage/0623d6f77f3c0c8b7f13c97457270e45 | 1 - .phpunit.cache/code-coverage/08b4e2ced6b41f5fb646b63b4956aba0 | 1 - .phpunit.cache/code-coverage/0f3f7c76bbb10c6ccc1aa88792a05cb5 | 1 - .phpunit.cache/code-coverage/11e53502a603a5e65307fb6e1bd7720c | 1 - .phpunit.cache/code-coverage/196f12119adcc9655d0af7fcc309673a | 1 - .phpunit.cache/code-coverage/1ecb112a0d988c3cd13691be62c03c5f | 1 - .phpunit.cache/code-coverage/1f23bb35164c164da5676c9cdd12fe7c | 1 - .phpunit.cache/code-coverage/1ff0acb7d91faa28b5646b71e4f89eff | 1 - .phpunit.cache/code-coverage/2123aeaf856d025311b8526d10c0c5dc | 1 - .phpunit.cache/code-coverage/21dc1d0935c5d74b3ef799fb6b5c75c1 | 1 - .phpunit.cache/code-coverage/24c2a9e158220fb690df71e08e46573d | 1 - .phpunit.cache/code-coverage/24eb84df57fb58c4b9efd28e471f55e7 | 1 - .phpunit.cache/code-coverage/267d497f32fd854d458f0e5d46dfd791 | 1 - .phpunit.cache/code-coverage/2a2a3b5ed011d0da34ab1e9cec5ae58d | 1 - .phpunit.cache/code-coverage/2e2e50db88e9f883875983644dd8f627 | 1 - .phpunit.cache/code-coverage/2e6f548e9c3b0b5f65543102374f9739 | 1 - .phpunit.cache/code-coverage/2f1fb997cd9653f6c772ae2755bd707a | 1 - .phpunit.cache/code-coverage/30531288ae8e0cfb6dbb262c99ab3ca5 | 1 - .phpunit.cache/code-coverage/33586cf81088a32ee681b95fdd6fc991 | 1 - .phpunit.cache/code-coverage/34979cf460d918ad72b35ad714904ec8 | 1 - .phpunit.cache/code-coverage/3499c7f8b07def153579ba0a8f3f2dc8 | 1 - .phpunit.cache/code-coverage/34c05edf1b8e3fdb08b9533f58b8dc2a | 1 - .phpunit.cache/code-coverage/388e37a180df1b023733b48a428563ef | 1 - .phpunit.cache/code-coverage/3e8cb7bf4b55211156e9bc093d421ac3 | 1 - .phpunit.cache/code-coverage/4333f4811947fc614239db7bb718034e | 1 - .phpunit.cache/code-coverage/4681cf9c52384b870d8125f050729668 | 1 - .phpunit.cache/code-coverage/4a16bd724962cf349974cf88595df33b | 1 - .phpunit.cache/code-coverage/4d3b231bbdf14e33f2ab5b11f174cbbe | 1 - .phpunit.cache/code-coverage/4df0c7822d84dc5ec2915d4e61a5ef7d | 1 - .phpunit.cache/code-coverage/4e7293db2d8c3847288b4657b5fda72f | 1 - .phpunit.cache/code-coverage/4eff86aaa57c59f6c5943cd406f65c9f | 1 - .phpunit.cache/code-coverage/50c0c7805b3bb7226764283d71d40c9b | 1 - .phpunit.cache/code-coverage/5104a2cb0cd1d420eb4900e94a753c44 | 1 - .phpunit.cache/code-coverage/514660e297358b41075608c6c3049b11 | 1 - .phpunit.cache/code-coverage/52e5f8a1923c4902c36e78d701f57ca8 | 1 - .phpunit.cache/code-coverage/59ce378d5aeb3ddd308919b891dc2ece | 1 - .phpunit.cache/code-coverage/5d021a71c91ad28c4ef9f35793d08372 | 1 - .phpunit.cache/code-coverage/5e717aabd3b3da3617e2b5e667758131 | 1 - .phpunit.cache/code-coverage/6175ce3b3f1607d0a82a771788659a51 | 1 - .phpunit.cache/code-coverage/623b6a9264713fec39cb6ecf392a8391 | 1 - .phpunit.cache/code-coverage/64edb4975b341690f8d9a9e23774b5f1 | 1 - .phpunit.cache/code-coverage/6673ce8f4e1930fd0c44dca5b9a0a9ab | 1 - .phpunit.cache/code-coverage/68058e328dc77969de8e1d7021d4ce39 | 1 - .phpunit.cache/code-coverage/68aae4265b8a6436dfc01583259f0fbe | 1 - .phpunit.cache/code-coverage/697a399b0d0644c70898b3d42160c607 | 1 - .phpunit.cache/code-coverage/6db9f133c633b79d9f7157e86a5f4bea | 1 - .phpunit.cache/code-coverage/704848a76c3966df6487227684d1b713 | 1 - .phpunit.cache/code-coverage/728ef8ceaf422a2c0b5472a968da1a97 | 1 - .phpunit.cache/code-coverage/7452059d8b43eb32172482a980be1246 | 1 - .phpunit.cache/code-coverage/792112cad550b12c0027961e1d6eacec | 1 - .phpunit.cache/code-coverage/7e41f3446b1a03209c6ea8004a6baaab | 1 - .phpunit.cache/code-coverage/8207d7f799d6c56b917a08d66eb5da88 | 1 - .phpunit.cache/code-coverage/82e7e6127d61c8233fb9a479042803c0 | 1 - .phpunit.cache/code-coverage/8718c6e78f5f210bc30c06acec482ca5 | 1 - .phpunit.cache/code-coverage/879415eca58ba4f8bdb1d64313e1edd8 | 1 - .phpunit.cache/code-coverage/881b22a1060c5716383664394eef75b5 | 1 - .phpunit.cache/code-coverage/889d4d51d97149d175ad12bcae1846e6 | 1 - .phpunit.cache/code-coverage/8b1288dfaffdb2a49717dcf08608ddb9 | 1 - .phpunit.cache/code-coverage/8bc9fc771f649ff1cea550714b157d2d | 1 - .phpunit.cache/code-coverage/956d36622a37786f8f11120562d87df9 | 1 - .phpunit.cache/code-coverage/95de2d2cb5fc6145784ddeff708c16b2 | 1 - .phpunit.cache/code-coverage/9a444824bb7c3e7cfdce88cf44141643 | 1 - .phpunit.cache/code-coverage/9ab62ca885f00c6c9e52fe2a413a2cdd | 1 - .phpunit.cache/code-coverage/9de7d632e47a04e65054a329852e3cae | 1 - .phpunit.cache/code-coverage/9f674e47053b54d26c6596b486fa7bc6 | 1 - .phpunit.cache/code-coverage/a55b2e837b41045969ad1e8e9c9494eb | 1 - .phpunit.cache/code-coverage/a5efeaf0253082fae5ca9a1e574b8fd7 | 1 - .phpunit.cache/code-coverage/a8f71c6d966c45444d57d459d9bf83fd | 1 - .phpunit.cache/code-coverage/aa4b90b7bb79b44b2521396f7009319a | 1 - .phpunit.cache/code-coverage/aca78b0e2b63e04f1ece3a29bf2b619b | 1 - .phpunit.cache/code-coverage/af3972cfcd0a162321f7c040bccd3a51 | 1 - .phpunit.cache/code-coverage/b14d5a3ed2db091e9c5a1dcc0093bf4d | 1 - .phpunit.cache/code-coverage/bbf552d6c990090ca88882b61bc1afd4 | 1 - .phpunit.cache/code-coverage/bd5622b928db20476d7180e2ccd11898 | 1 - .phpunit.cache/code-coverage/c3afab96a8aa8a21aebcdaaf5e7c4580 | 1 - .phpunit.cache/code-coverage/c4c17990cd3bbdcb7914c5a59eea950e | 1 - .phpunit.cache/code-coverage/c8b1e8de305ff68ce19e0450d7d2f8cf | 1 - .phpunit.cache/code-coverage/cbe6005d23a731a492b3f467adaf3781 | 1 - .phpunit.cache/code-coverage/cd2423d8ee7803d36378f74272709861 | 1 - .phpunit.cache/code-coverage/ce8a494eb3c5ba04eee66548809402fa | 1 - .phpunit.cache/code-coverage/d17cf055f1a9f8b029c7df9acdbd03f7 | 1 - .phpunit.cache/code-coverage/d37b06530ad36c3971b206ba11b119a1 | 1 - .phpunit.cache/code-coverage/d5808ba217acd7683f5d95d7dc827574 | 1 - .phpunit.cache/code-coverage/d58aee6c199413a53747d02bbffc38e0 | 1 - .phpunit.cache/code-coverage/da4291fce8571591aad6986ba7c7852a | 1 - .phpunit.cache/code-coverage/da5c682d48442ac506323b07997e3a1f | 1 - .phpunit.cache/code-coverage/dc50c0f43b3cc1f8cd8e765cc45b2a4e | 1 - .phpunit.cache/code-coverage/e0e63254be8e20c8861542bcad454164 | 1 - .phpunit.cache/code-coverage/e3867d36ba27e57d61f32d31b4d9a411 | 1 - .phpunit.cache/code-coverage/e3969e7b7111608de85ade720bb966a2 | 1 - .phpunit.cache/code-coverage/e545846724a82071e4bf84d33aee92ae | 1 - .phpunit.cache/code-coverage/e57e9c0e48f077853a1c1ef638dde7ae | 1 - .phpunit.cache/code-coverage/e5f432d3bb173caa7e3a11ab8c4f5b4c | 1 - .phpunit.cache/code-coverage/e6597955ff58244287a0b69a613c8916 | 1 - .phpunit.cache/code-coverage/e677eb91f4ab61502a874bfd78843a34 | 1 - .phpunit.cache/code-coverage/e7d111d0c983404001f236c7ea3b945f | 1 - .phpunit.cache/code-coverage/ed6fa75212af5c6b05c5ff8577490b78 | 1 - .phpunit.cache/code-coverage/f3155792def8ca976ff0275567c5d100 | 1 - .phpunit.cache/code-coverage/f9e4fecac63b97356875ace8cc1b94c3 | 1 - .phpunit.cache/code-coverage/fdcc36c40ac93d1d78e6e5b01ea4705c | 1 - .phpunit.cache/code-coverage/ff6829f11ff301b138ca03da00426c41 | 1 - .phpunit.cache/code-coverage/fffe326c5aa70c4797b8a2b58055a5ec | 1 - .phpunit.cache/test-results | 1 - 103 files changed, 103 deletions(-) delete mode 100644 .phpunit.cache/code-coverage/0623d6f77f3c0c8b7f13c97457270e45 delete mode 100644 .phpunit.cache/code-coverage/08b4e2ced6b41f5fb646b63b4956aba0 delete mode 100644 .phpunit.cache/code-coverage/0f3f7c76bbb10c6ccc1aa88792a05cb5 delete mode 100644 .phpunit.cache/code-coverage/11e53502a603a5e65307fb6e1bd7720c delete mode 100644 .phpunit.cache/code-coverage/196f12119adcc9655d0af7fcc309673a delete mode 100644 .phpunit.cache/code-coverage/1ecb112a0d988c3cd13691be62c03c5f delete mode 100644 .phpunit.cache/code-coverage/1f23bb35164c164da5676c9cdd12fe7c delete mode 100644 .phpunit.cache/code-coverage/1ff0acb7d91faa28b5646b71e4f89eff delete mode 100644 .phpunit.cache/code-coverage/2123aeaf856d025311b8526d10c0c5dc delete mode 100644 .phpunit.cache/code-coverage/21dc1d0935c5d74b3ef799fb6b5c75c1 delete mode 100644 .phpunit.cache/code-coverage/24c2a9e158220fb690df71e08e46573d delete mode 100644 .phpunit.cache/code-coverage/24eb84df57fb58c4b9efd28e471f55e7 delete mode 100644 .phpunit.cache/code-coverage/267d497f32fd854d458f0e5d46dfd791 delete mode 100644 .phpunit.cache/code-coverage/2a2a3b5ed011d0da34ab1e9cec5ae58d delete mode 100644 .phpunit.cache/code-coverage/2e2e50db88e9f883875983644dd8f627 delete mode 100644 .phpunit.cache/code-coverage/2e6f548e9c3b0b5f65543102374f9739 delete mode 100644 .phpunit.cache/code-coverage/2f1fb997cd9653f6c772ae2755bd707a delete mode 100644 .phpunit.cache/code-coverage/30531288ae8e0cfb6dbb262c99ab3ca5 delete mode 100644 .phpunit.cache/code-coverage/33586cf81088a32ee681b95fdd6fc991 delete mode 100644 .phpunit.cache/code-coverage/34979cf460d918ad72b35ad714904ec8 delete mode 100644 .phpunit.cache/code-coverage/3499c7f8b07def153579ba0a8f3f2dc8 delete mode 100644 .phpunit.cache/code-coverage/34c05edf1b8e3fdb08b9533f58b8dc2a delete mode 100644 .phpunit.cache/code-coverage/388e37a180df1b023733b48a428563ef delete mode 100644 .phpunit.cache/code-coverage/3e8cb7bf4b55211156e9bc093d421ac3 delete mode 100644 .phpunit.cache/code-coverage/4333f4811947fc614239db7bb718034e delete mode 100644 .phpunit.cache/code-coverage/4681cf9c52384b870d8125f050729668 delete mode 100644 .phpunit.cache/code-coverage/4a16bd724962cf349974cf88595df33b delete mode 100644 .phpunit.cache/code-coverage/4d3b231bbdf14e33f2ab5b11f174cbbe delete mode 100644 .phpunit.cache/code-coverage/4df0c7822d84dc5ec2915d4e61a5ef7d delete mode 100644 .phpunit.cache/code-coverage/4e7293db2d8c3847288b4657b5fda72f delete mode 100644 .phpunit.cache/code-coverage/4eff86aaa57c59f6c5943cd406f65c9f delete mode 100644 .phpunit.cache/code-coverage/50c0c7805b3bb7226764283d71d40c9b delete mode 100644 .phpunit.cache/code-coverage/5104a2cb0cd1d420eb4900e94a753c44 delete mode 100644 .phpunit.cache/code-coverage/514660e297358b41075608c6c3049b11 delete mode 100644 .phpunit.cache/code-coverage/52e5f8a1923c4902c36e78d701f57ca8 delete mode 100644 .phpunit.cache/code-coverage/59ce378d5aeb3ddd308919b891dc2ece delete mode 100644 .phpunit.cache/code-coverage/5d021a71c91ad28c4ef9f35793d08372 delete mode 100644 .phpunit.cache/code-coverage/5e717aabd3b3da3617e2b5e667758131 delete mode 100644 .phpunit.cache/code-coverage/6175ce3b3f1607d0a82a771788659a51 delete mode 100644 .phpunit.cache/code-coverage/623b6a9264713fec39cb6ecf392a8391 delete mode 100644 .phpunit.cache/code-coverage/64edb4975b341690f8d9a9e23774b5f1 delete mode 100644 .phpunit.cache/code-coverage/6673ce8f4e1930fd0c44dca5b9a0a9ab delete mode 100644 .phpunit.cache/code-coverage/68058e328dc77969de8e1d7021d4ce39 delete mode 100644 .phpunit.cache/code-coverage/68aae4265b8a6436dfc01583259f0fbe delete mode 100644 .phpunit.cache/code-coverage/697a399b0d0644c70898b3d42160c607 delete mode 100644 .phpunit.cache/code-coverage/6db9f133c633b79d9f7157e86a5f4bea delete mode 100644 .phpunit.cache/code-coverage/704848a76c3966df6487227684d1b713 delete mode 100644 .phpunit.cache/code-coverage/728ef8ceaf422a2c0b5472a968da1a97 delete mode 100644 .phpunit.cache/code-coverage/7452059d8b43eb32172482a980be1246 delete mode 100644 .phpunit.cache/code-coverage/792112cad550b12c0027961e1d6eacec delete mode 100644 .phpunit.cache/code-coverage/7e41f3446b1a03209c6ea8004a6baaab delete mode 100644 .phpunit.cache/code-coverage/8207d7f799d6c56b917a08d66eb5da88 delete mode 100644 .phpunit.cache/code-coverage/82e7e6127d61c8233fb9a479042803c0 delete mode 100644 .phpunit.cache/code-coverage/8718c6e78f5f210bc30c06acec482ca5 delete mode 100644 .phpunit.cache/code-coverage/879415eca58ba4f8bdb1d64313e1edd8 delete mode 100644 .phpunit.cache/code-coverage/881b22a1060c5716383664394eef75b5 delete mode 100644 .phpunit.cache/code-coverage/889d4d51d97149d175ad12bcae1846e6 delete mode 100644 .phpunit.cache/code-coverage/8b1288dfaffdb2a49717dcf08608ddb9 delete mode 100644 .phpunit.cache/code-coverage/8bc9fc771f649ff1cea550714b157d2d delete mode 100644 .phpunit.cache/code-coverage/956d36622a37786f8f11120562d87df9 delete mode 100644 .phpunit.cache/code-coverage/95de2d2cb5fc6145784ddeff708c16b2 delete mode 100644 .phpunit.cache/code-coverage/9a444824bb7c3e7cfdce88cf44141643 delete mode 100644 .phpunit.cache/code-coverage/9ab62ca885f00c6c9e52fe2a413a2cdd delete mode 100644 .phpunit.cache/code-coverage/9de7d632e47a04e65054a329852e3cae delete mode 100644 .phpunit.cache/code-coverage/9f674e47053b54d26c6596b486fa7bc6 delete mode 100644 .phpunit.cache/code-coverage/a55b2e837b41045969ad1e8e9c9494eb delete mode 100644 .phpunit.cache/code-coverage/a5efeaf0253082fae5ca9a1e574b8fd7 delete mode 100644 .phpunit.cache/code-coverage/a8f71c6d966c45444d57d459d9bf83fd delete mode 100644 .phpunit.cache/code-coverage/aa4b90b7bb79b44b2521396f7009319a delete mode 100644 .phpunit.cache/code-coverage/aca78b0e2b63e04f1ece3a29bf2b619b delete mode 100644 .phpunit.cache/code-coverage/af3972cfcd0a162321f7c040bccd3a51 delete mode 100644 .phpunit.cache/code-coverage/b14d5a3ed2db091e9c5a1dcc0093bf4d delete mode 100644 .phpunit.cache/code-coverage/bbf552d6c990090ca88882b61bc1afd4 delete mode 100644 .phpunit.cache/code-coverage/bd5622b928db20476d7180e2ccd11898 delete mode 100644 .phpunit.cache/code-coverage/c3afab96a8aa8a21aebcdaaf5e7c4580 delete mode 100644 .phpunit.cache/code-coverage/c4c17990cd3bbdcb7914c5a59eea950e delete mode 100644 .phpunit.cache/code-coverage/c8b1e8de305ff68ce19e0450d7d2f8cf delete mode 100644 .phpunit.cache/code-coverage/cbe6005d23a731a492b3f467adaf3781 delete mode 100644 .phpunit.cache/code-coverage/cd2423d8ee7803d36378f74272709861 delete mode 100644 .phpunit.cache/code-coverage/ce8a494eb3c5ba04eee66548809402fa delete mode 100644 .phpunit.cache/code-coverage/d17cf055f1a9f8b029c7df9acdbd03f7 delete mode 100644 .phpunit.cache/code-coverage/d37b06530ad36c3971b206ba11b119a1 delete mode 100644 .phpunit.cache/code-coverage/d5808ba217acd7683f5d95d7dc827574 delete mode 100644 .phpunit.cache/code-coverage/d58aee6c199413a53747d02bbffc38e0 delete mode 100644 .phpunit.cache/code-coverage/da4291fce8571591aad6986ba7c7852a delete mode 100644 .phpunit.cache/code-coverage/da5c682d48442ac506323b07997e3a1f delete mode 100644 .phpunit.cache/code-coverage/dc50c0f43b3cc1f8cd8e765cc45b2a4e delete mode 100644 .phpunit.cache/code-coverage/e0e63254be8e20c8861542bcad454164 delete mode 100644 .phpunit.cache/code-coverage/e3867d36ba27e57d61f32d31b4d9a411 delete mode 100644 .phpunit.cache/code-coverage/e3969e7b7111608de85ade720bb966a2 delete mode 100644 .phpunit.cache/code-coverage/e545846724a82071e4bf84d33aee92ae delete mode 100644 .phpunit.cache/code-coverage/e57e9c0e48f077853a1c1ef638dde7ae delete mode 100644 .phpunit.cache/code-coverage/e5f432d3bb173caa7e3a11ab8c4f5b4c delete mode 100644 .phpunit.cache/code-coverage/e6597955ff58244287a0b69a613c8916 delete mode 100644 .phpunit.cache/code-coverage/e677eb91f4ab61502a874bfd78843a34 delete mode 100644 .phpunit.cache/code-coverage/e7d111d0c983404001f236c7ea3b945f delete mode 100644 .phpunit.cache/code-coverage/ed6fa75212af5c6b05c5ff8577490b78 delete mode 100644 .phpunit.cache/code-coverage/f3155792def8ca976ff0275567c5d100 delete mode 100644 .phpunit.cache/code-coverage/f9e4fecac63b97356875ace8cc1b94c3 delete mode 100644 .phpunit.cache/code-coverage/fdcc36c40ac93d1d78e6e5b01ea4705c delete mode 100644 .phpunit.cache/code-coverage/ff6829f11ff301b138ca03da00426c41 delete mode 100644 .phpunit.cache/code-coverage/fffe326c5aa70c4797b8a2b58055a5ec delete mode 100644 .phpunit.cache/test-results diff --git a/.phpunit.cache/code-coverage/0623d6f77f3c0c8b7f13c97457270e45 b/.phpunit.cache/code-coverage/0623d6f77f3c0c8b7f13c97457270e45 deleted file mode 100644 index dfa49bc..0000000 --- a/.phpunit.cache/code-coverage/0623d6f77f3c0c8b7f13c97457270e45 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:76:"CodebarAg\DocuWare\Responses\FileCabinets\SelectLists\GetSelectListsResponse";a:6:{s:4:"name";s:22:"GetSelectListsResponse";s:14:"namespacedName";s:76:"CodebarAg\DocuWare\Responses\FileCabinets\SelectLists\GetSelectListsResponse";s:9:"namespace";s:53:"CodebarAg\DocuWare\Responses\FileCabinets\SelectLists";s:9:"startLine";i:9;s:7:"endLine";i:19;s:7:"methods";a:1:{s:12:"fromResponse";a:6:{s:10:"methodName";s:12:"fromResponse";s:9:"signature";s:51:"fromResponse(Saloon\Http\Response $response): mixed";s:10:"visibility";s:6:"public";s:9:"startLine";i:11;s:7:"endLine";i:18;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:20;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:20;}s:15:"ignoredLinesFor";a:1:{i:0;i:9;}s:17:"executableLinesIn";a:3:{i:13;i:1;i:15;i:2;i:17;i:3;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/08b4e2ced6b41f5fb646b63b4956aba0 b/.phpunit.cache/code-coverage/08b4e2ced6b41f5fb646b63b4956aba0 deleted file mode 100644 index 2ccf137..0000000 --- a/.phpunit.cache/code-coverage/08b4e2ced6b41f5fb646b63b4956aba0 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:53:"CodebarAg\DocuWare\Responses\Fields\GetFieldsResponse";a:6:{s:4:"name";s:17:"GetFieldsResponse";s:14:"namespacedName";s:53:"CodebarAg\DocuWare\Responses\Fields\GetFieldsResponse";s:9:"namespace";s:35:"CodebarAg\DocuWare\Responses\Fields";s:9:"startLine";i:12;s:7:"endLine";i:24;s:7:"methods";a:1:{s:12:"fromResponse";a:6:{s:10:"methodName";s:12:"fromResponse";s:9:"signature";s:107:"fromResponse(Saloon\Http\Response $response): \Illuminate\Support\Collection|\Illuminate\Support\Enumerable";s:10:"visibility";s:6:"public";s:9:"startLine";i:14;s:7:"endLine";i:23;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:25;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:25;}s:15:"ignoredLinesFor";a:1:{i:0;i:12;}s:17:"executableLinesIn";a:4:{i:16;i:1;i:18;i:2;i:20;i:3;i:22;i:4;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/0f3f7c76bbb10c6ccc1aa88792a05cb5 b/.phpunit.cache/code-coverage/0f3f7c76bbb10c6ccc1aa88792a05cb5 deleted file mode 100644 index 6f04bb4..0000000 --- a/.phpunit.cache/code-coverage/0f3f7c76bbb10c6ccc1aa88792a05cb5 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:52:"CodebarAg\DocuWare\Exceptions\UnableToProcessRequest";a:6:{s:4:"name";s:22:"UnableToProcessRequest";s:14:"namespacedName";s:52:"CodebarAg\DocuWare\Exceptions\UnableToProcessRequest";s:9:"namespace";s:29:"CodebarAg\DocuWare\Exceptions";s:9:"startLine";i:9;s:7:"endLine";i:15;s:7:"methods";a:1:{s:6:"create";a:6:{s:10:"methodName";s:6:"create";s:9:"signature";s:78:"create(\Illuminate\Http\Client\Response|\Saloon\Http\Response $response): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:11;s:7:"endLine";i:14;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:16;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:16;}s:15:"ignoredLinesFor";a:1:{i:0;i:9;}s:17:"executableLinesIn";a:1:{i:13;i:1;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/11e53502a603a5e65307fb6e1bd7720c b/.phpunit.cache/code-coverage/11e53502a603a5e65307fb6e1bd7720c deleted file mode 100644 index 761e122..0000000 --- a/.phpunit.cache/code-coverage/11e53502a603a5e65307fb6e1bd7720c +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:62:"CodebarAg\DocuWare\DTO\Documents\DocumentIndex\IndexNumericDTO";a:6:{s:4:"name";s:15:"IndexNumericDTO";s:14:"namespacedName";s:62:"CodebarAg\DocuWare\DTO\Documents\DocumentIndex\IndexNumericDTO";s:9:"namespace";s:46:"CodebarAg\DocuWare\DTO\Documents\DocumentIndex";s:9:"startLine";i:5;s:7:"endLine";i:29;s:7:"methods";a:3:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:38:"__construct(string $name, ?int $value)";s:10:"visibility";s:6:"public";s:9:"startLine";i:9;s:7:"endLine";i:14;s:3:"ccn";i:1;}s:4:"make";a:6:{s:10:"methodName";s:4:"make";s:9:"signature";s:37:"make(string $name, ?int $value): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:16;s:7:"endLine";i:19;s:3:"ccn";i:1;}s:6:"values";a:6:{s:10:"methodName";s:6:"values";s:9:"signature";s:15:"values(): array";s:10:"visibility";s:6:"public";s:9:"startLine";i:21;s:7:"endLine";i:28;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:30;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:30;}s:15:"ignoredLinesFor";a:1:{i:0;i:5;}s:17:"executableLinesIn";a:7:{i:14;i:2;i:18;i:3;i:23;i:4;i:24;i:4;i:25;i:4;i:26;i:4;i:27;i:4;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/196f12119adcc9655d0af7fcc309673a b/.phpunit.cache/code-coverage/196f12119adcc9655d0af7fcc309673a deleted file mode 100644 index 2b44e5b..0000000 --- a/.phpunit.cache/code-coverage/196f12119adcc9655d0af7fcc309673a +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:50:"CodebarAg\DocuWare\DTO\Documents\DocumentPaginator";a:6:{s:4:"name";s:17:"DocumentPaginator";s:14:"namespacedName";s:50:"CodebarAg\DocuWare\DTO\Documents\DocumentPaginator";s:9:"namespace";s:32:"CodebarAg\DocuWare\DTO\Documents";s:9:"startLine";i:13;s:7:"endLine";i:108;s:7:"methods";a:8:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:176:"__construct(int $total, int $per_page, int $current_page, int $last_page, int $from, int $to, Illuminate\Support\Collection $documents, ?CodebarAg\DocuWare\DTO\ErrorBag $error)";s:10:"visibility";s:6:"public";s:9:"startLine";i:15;s:7:"endLine";i:25;s:3:"ccn";i:1;}s:8:"showPrev";a:6:{s:10:"methodName";s:8:"showPrev";s:9:"signature";s:16:"showPrev(): bool";s:10:"visibility";s:6:"public";s:9:"startLine";i:27;s:7:"endLine";i:30;s:3:"ccn";i:1;}s:8:"showNext";a:6:{s:10:"methodName";s:8:"showNext";s:9:"signature";s:16:"showNext(): bool";s:10:"visibility";s:6:"public";s:9:"startLine";i:32;s:7:"endLine";i:35;s:3:"ccn";i:1;}s:10:"successful";a:6:{s:10:"methodName";s:10:"successful";s:9:"signature";s:18:"successful(): bool";s:10:"visibility";s:6:"public";s:9:"startLine";i:37;s:7:"endLine";i:40;s:3:"ccn";i:1;}s:6:"failed";a:6:{s:10:"methodName";s:6:"failed";s:9:"signature";s:14:"failed(): bool";s:10:"visibility";s:6:"public";s:9:"startLine";i:42;s:7:"endLine";i:45;s:3:"ccn";i:1;}s:8:"fromJson";a:6:{s:10:"methodName";s:8:"fromJson";s:9:"signature";s:52:"fromJson(array $data, int $page, int $perPage): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:47;s:7:"endLine";i:73;s:3:"ccn";i:3;}s:10:"fromFailed";a:6:{s:10:"methodName";s:10:"fromFailed";s:9:"signature";s:30:"fromFailed(Exception $e): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:75;s:7:"endLine";i:87;s:3:"ccn";i:1;}s:4:"fake";a:6:{s:10:"methodName";s:4:"fake";s:9:"signature";s:141:"fake(?int $total, ?int $per_page, ?int $current_page, ?int $last_page, ?int $from, ?int $to, ?Illuminate\Support\Collection $documents): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:89;s:7:"endLine";i:107;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:109;s:18:"commentLinesOfCode";i:3;s:21:"nonCommentLinesOfCode";i:106;}s:15:"ignoredLinesFor";a:1:{i:0;i:13;}s:17:"executableLinesIn";a:40:{i:25;i:1;i:29;i:2;i:34;i:3;i:39;i:4;i:44;i:5;i:52;i:6;i:54;i:7;i:56;i:8;i:58;i:9;i:60;i:10;i:62;i:10;i:61;i:11;i:64;i:12;i:65;i:12;i:66;i:12;i:67;i:12;i:68;i:12;i:69;i:12;i:70;i:12;i:71;i:12;i:72;i:12;i:77;i:13;i:78;i:13;i:79;i:13;i:80;i:13;i:81;i:13;i:82;i:13;i:83;i:13;i:84;i:13;i:85;i:13;i:86;i:13;i:98;i:14;i:99;i:14;i:100;i:14;i:101;i:14;i:102;i:14;i:103;i:14;i:104;i:14;i:105;i:14;i:106;i:14;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/1ecb112a0d988c3cd13691be62c03c5f b/.phpunit.cache/code-coverage/1ecb112a0d988c3cd13691be62c03c5f deleted file mode 100644 index 371eeb2..0000000 --- a/.phpunit.cache/code-coverage/1ecb112a0d988c3cd13691be62c03c5f +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:67:"CodebarAg\DocuWare\Requests\FileCabinets\Dialogs\GetASpecificDialog";a:6:{s:4:"name";s:18:"GetASpecificDialog";s:14:"namespacedName";s:67:"CodebarAg\DocuWare\Requests\FileCabinets\Dialogs\GetASpecificDialog";s:9:"namespace";s:48:"CodebarAg\DocuWare\Requests\FileCabinets\Dialogs";s:9:"startLine";i:14;s:7:"endLine";i:45;s:7:"methods";a:5:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:52:"__construct(string $fileCabinetId, string $dialogId)";s:10:"visibility";s:6:"public";s:9:"startLine";i:20;s:7:"endLine";i:24;s:3:"ccn";i:1;}s:15:"resolveEndpoint";a:6:{s:10:"methodName";s:15:"resolveEndpoint";s:9:"signature";s:25:"resolveEndpoint(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:26;s:7:"endLine";i:29;s:3:"ccn";i:1;}s:18:"resolveCacheDriver";a:6:{s:10:"methodName";s:18:"resolveCacheDriver";s:9:"signature";s:67:"resolveCacheDriver(): Saloon\CachePlugin\Drivers\LaravelCacheDriver";s:10:"visibility";s:6:"public";s:9:"startLine";i:31;s:7:"endLine";i:34;s:3:"ccn";i:1;}s:20:"cacheExpiryInSeconds";a:6:{s:10:"methodName";s:20:"cacheExpiryInSeconds";s:9:"signature";s:27:"cacheExpiryInSeconds(): int";s:10:"visibility";s:6:"public";s:9:"startLine";i:36;s:7:"endLine";i:39;s:3:"ccn";i:1;}s:21:"createDtoFromResponse";a:6:{s:10:"methodName";s:21:"createDtoFromResponse";s:9:"signature";s:60:"createDtoFromResponse(Saloon\Http\Response $response): mixed";s:10:"visibility";s:6:"public";s:9:"startLine";i:41;s:7:"endLine";i:44;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:46;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:46;}s:15:"ignoredLinesFor";a:1:{i:0;i:14;}s:17:"executableLinesIn";a:5:{i:24;i:3;i:28;i:4;i:33;i:5;i:38;i:6;i:43;i:7;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/1f23bb35164c164da5676c9cdd12fe7c b/.phpunit.cache/code-coverage/1f23bb35164c164da5676c9cdd12fe7c deleted file mode 100644 index 66d2b8c..0000000 --- a/.phpunit.cache/code-coverage/1f23bb35164c164da5676c9cdd12fe7c +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:63:"CodebarAg\DocuWare\Requests\Documents\Download\DownloadDocument";a:6:{s:4:"name";s:16:"DownloadDocument";s:14:"namespacedName";s:63:"CodebarAg\DocuWare\Requests\Documents\Download\DownloadDocument";s:9:"namespace";s:46:"CodebarAg\DocuWare\Requests\Documents\Download";s:9:"startLine";i:14;s:7:"endLine";i:53;s:7:"methods";a:6:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:51:"__construct(string $fileCabinetId, int $documentId)";s:10:"visibility";s:6:"public";s:9:"startLine";i:20;s:7:"endLine";i:24;s:3:"ccn";i:1;}s:15:"resolveEndpoint";a:6:{s:10:"methodName";s:15:"resolveEndpoint";s:9:"signature";s:25:"resolveEndpoint(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:26;s:7:"endLine";i:29;s:3:"ccn";i:1;}s:18:"resolveCacheDriver";a:6:{s:10:"methodName";s:18:"resolveCacheDriver";s:9:"signature";s:67:"resolveCacheDriver(): Saloon\CachePlugin\Drivers\LaravelCacheDriver";s:10:"visibility";s:6:"public";s:9:"startLine";i:31;s:7:"endLine";i:34;s:3:"ccn";i:1;}s:20:"cacheExpiryInSeconds";a:6:{s:10:"methodName";s:20:"cacheExpiryInSeconds";s:9:"signature";s:27:"cacheExpiryInSeconds(): int";s:10:"visibility";s:6:"public";s:9:"startLine";i:36;s:7:"endLine";i:39;s:3:"ccn";i:1;}s:12:"defaultQuery";a:6:{s:10:"methodName";s:12:"defaultQuery";s:9:"signature";s:21:"defaultQuery(): array";s:10:"visibility";s:6:"public";s:9:"startLine";i:41;s:7:"endLine";i:47;s:3:"ccn";i:1;}s:21:"createDtoFromResponse";a:6:{s:10:"methodName";s:21:"createDtoFromResponse";s:9:"signature";s:61:"createDtoFromResponse(Saloon\Http\Response $response): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:49;s:7:"endLine";i:52;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:54;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:54;}s:15:"ignoredLinesFor";a:1:{i:0;i:14;}s:17:"executableLinesIn";a:9:{i:24;i:3;i:28;i:4;i:33;i:5;i:38;i:6;i:43;i:7;i:44;i:7;i:45;i:7;i:46;i:7;i:51;i:8;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/1ff0acb7d91faa28b5646b71e4f89eff b/.phpunit.cache/code-coverage/1ff0acb7d91faa28b5646b71e4f89eff deleted file mode 100644 index 94ce663..0000000 --- a/.phpunit.cache/code-coverage/1ff0acb7d91faa28b5646b71e4f89eff +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:60:"CodebarAg\DocuWare\Exceptions\UnableToFindPasswordCredential";a:6:{s:4:"name";s:30:"UnableToFindPasswordCredential";s:14:"namespacedName";s:60:"CodebarAg\DocuWare\Exceptions\UnableToFindPasswordCredential";s:9:"namespace";s:29:"CodebarAg\DocuWare\Exceptions";s:9:"startLine";i:7;s:7:"endLine";i:13;s:7:"methods";a:1:{s:6:"create";a:6:{s:10:"methodName";s:6:"create";s:9:"signature";s:14:"create(): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:9;s:7:"endLine";i:12;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:14;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:14;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:1:{i:11;i:1;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/2123aeaf856d025311b8526d10c0c5dc b/.phpunit.cache/code-coverage/2123aeaf856d025311b8526d10c0c5dc deleted file mode 100644 index a690cd8..0000000 --- a/.phpunit.cache/code-coverage/2123aeaf856d025311b8526d10c0c5dc +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:64:"CodebarAg\DocuWare\Requests\General\Organization\GetOrganization";a:6:{s:4:"name";s:15:"GetOrganization";s:14:"namespacedName";s:64:"CodebarAg\DocuWare\Requests\General\Organization\GetOrganization";s:9:"namespace";s:48:"CodebarAg\DocuWare\Requests\General\Organization";s:9:"startLine";i:16;s:7:"endLine";i:41;s:7:"methods";a:4:{s:15:"resolveEndpoint";a:6:{s:10:"methodName";s:15:"resolveEndpoint";s:9:"signature";s:25:"resolveEndpoint(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:22;s:7:"endLine";i:25;s:3:"ccn";i:1;}s:18:"resolveCacheDriver";a:6:{s:10:"methodName";s:18:"resolveCacheDriver";s:9:"signature";s:67:"resolveCacheDriver(): Saloon\CachePlugin\Drivers\LaravelCacheDriver";s:10:"visibility";s:6:"public";s:9:"startLine";i:27;s:7:"endLine";i:30;s:3:"ccn";i:1;}s:20:"cacheExpiryInSeconds";a:6:{s:10:"methodName";s:20:"cacheExpiryInSeconds";s:9:"signature";s:27:"cacheExpiryInSeconds(): int";s:10:"visibility";s:6:"public";s:9:"startLine";i:32;s:7:"endLine";i:35;s:3:"ccn";i:1;}s:21:"createDtoFromResponse";a:6:{s:10:"methodName";s:21:"createDtoFromResponse";s:9:"signature";s:116:"createDtoFromResponse(Saloon\Http\Response $response): \Illuminate\Support\Collection|\Illuminate\Support\Enumerable";s:10:"visibility";s:6:"public";s:9:"startLine";i:37;s:7:"endLine";i:40;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:42;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:42;}s:15:"ignoredLinesFor";a:1:{i:0;i:16;}s:17:"executableLinesIn";a:4:{i:24;i:3;i:29;i:4;i:34;i:5;i:39;i:6;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/21dc1d0935c5d74b3ef799fb6b5c75c1 b/.phpunit.cache/code-coverage/21dc1d0935c5d74b3ef799fb6b5c75c1 deleted file mode 100644 index e92086b..0000000 --- a/.phpunit.cache/code-coverage/21dc1d0935c5d74b3ef799fb6b5c75c1 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:62:"CodebarAg\DocuWare\DTO\Documents\DocumentIndex\PrepareTableDTO";a:6:{s:4:"name";s:15:"PrepareTableDTO";s:14:"namespacedName";s:62:"CodebarAg\DocuWare\DTO\Documents\DocumentIndex\PrepareTableDTO";s:9:"namespace";s:46:"CodebarAg\DocuWare\DTO\Documents\DocumentIndex";s:9:"startLine";i:5;s:7:"endLine";i:19;s:7:"methods";a:1:{s:4:"make";a:6:{s:10:"methodName";s:4:"make";s:9:"signature";s:39:"make(string $name, mixed $value): mixed";s:10:"visibility";s:6:"public";s:9:"startLine";i:7;s:7:"endLine";i:18;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:20;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:20;}s:15:"ignoredLinesFor";a:1:{i:0;i:5;}s:17:"executableLinesIn";a:8:{i:9;i:1;i:11;i:2;i:12;i:2;i:13;i:2;i:14;i:2;i:15;i:2;i:16;i:2;i:17;i:2;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/24c2a9e158220fb690df71e08e46573d b/.phpunit.cache/code-coverage/24c2a9e158220fb690df71e08e46573d deleted file mode 100644 index c6ec283..0000000 --- a/.phpunit.cache/code-coverage/24c2a9e158220fb690df71e08e46573d +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:45:"CodebarAg\DocuWare\Events\DocuWareResponseLog";a:6:{s:4:"name";s:19:"DocuWareResponseLog";s:14:"namespacedName";s:45:"CodebarAg\DocuWare\Events\DocuWareResponseLog";s:9:"namespace";s:25:"CodebarAg\DocuWare\Events";s:9:"startLine";i:11;s:7:"endLine";i:21;s:7:"methods";a:1:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:77:"__construct(\Illuminate\Http\Client\Response|\Saloon\Http\Response $response)";s:10:"visibility";s:6:"public";s:9:"startLine";i:17;s:7:"endLine";i:20;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:22;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:22;}s:15:"ignoredLinesFor";a:1:{i:0;i:11;}s:17:"executableLinesIn";a:1:{i:20;i:4;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/24eb84df57fb58c4b9efd28e471f55e7 b/.phpunit.cache/code-coverage/24eb84df57fb58c4b9efd28e471f55e7 deleted file mode 100644 index 2c86074..0000000 --- a/.phpunit.cache/code-coverage/24eb84df57fb58c4b9efd28e471f55e7 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:76:"CodebarAg\DocuWare\Responses\FileCabinets\Dialogs\GetASpecificDialogResponse";a:6:{s:4:"name";s:26:"GetASpecificDialogResponse";s:14:"namespacedName";s:76:"CodebarAg\DocuWare\Responses\FileCabinets\Dialogs\GetASpecificDialogResponse";s:9:"namespace";s:49:"CodebarAg\DocuWare\Responses\FileCabinets\Dialogs";s:9:"startLine";i:10;s:7:"endLine";i:22;s:7:"methods";a:1:{s:12:"fromResponse";a:6:{s:10:"methodName";s:12:"fromResponse";s:9:"signature";s:88:"fromResponse(Saloon\Http\Response $response): CodebarAg\DocuWare\DTO\FileCabinets\Dialog";s:10:"visibility";s:6:"public";s:9:"startLine";i:12;s:7:"endLine";i:21;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:23;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:23;}s:15:"ignoredLinesFor";a:1:{i:0;i:10;}s:17:"executableLinesIn";a:4:{i:14;i:1;i:16;i:2;i:18;i:3;i:20;i:4;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/267d497f32fd854d458f0e5d46dfd791 b/.phpunit.cache/code-coverage/267d497f32fd854d458f0e5d46dfd791 deleted file mode 100644 index cba46ec..0000000 --- a/.phpunit.cache/code-coverage/267d497f32fd854d458f0e5d46dfd791 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:51:"CodebarAg\DocuWare\Requests\Search\GetSearchRequest";a:6:{s:4:"name";s:16:"GetSearchRequest";s:14:"namespacedName";s:51:"CodebarAg\DocuWare\Requests\Search\GetSearchRequest";s:9:"namespace";s:34:"CodebarAg\DocuWare\Requests\Search";s:9:"startLine";i:17;s:7:"endLine";i:87;s:7:"methods";a:7:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:195:"__construct(?string $fileCabinetId, ?string $dialogId, array $additionalFileCabinetIds, int $page, int $perPage, ?string $searchTerm, string $orderField, string $orderDirection, array $condition)";s:10:"visibility";s:6:"public";s:9:"startLine";i:24;s:7:"endLine";i:35;s:3:"ccn";i:1;}s:15:"resolveEndpoint";a:6:{s:10:"methodName";s:15:"resolveEndpoint";s:9:"signature";s:25:"resolveEndpoint(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:37;s:7:"endLine";i:40;s:3:"ccn";i:1;}s:18:"resolveCacheDriver";a:6:{s:10:"methodName";s:18:"resolveCacheDriver";s:9:"signature";s:67:"resolveCacheDriver(): Saloon\CachePlugin\Drivers\LaravelCacheDriver";s:10:"visibility";s:6:"public";s:9:"startLine";i:42;s:7:"endLine";i:45;s:3:"ccn";i:1;}s:20:"cacheExpiryInSeconds";a:6:{s:10:"methodName";s:20:"cacheExpiryInSeconds";s:9:"signature";s:27:"cacheExpiryInSeconds(): int";s:10:"visibility";s:6:"public";s:9:"startLine";i:47;s:7:"endLine";i:50;s:3:"ccn";i:1;}s:12:"defaultQuery";a:6:{s:10:"methodName";s:12:"defaultQuery";s:9:"signature";s:21:"defaultQuery(): array";s:10:"visibility";s:6:"public";s:9:"startLine";i:52;s:7:"endLine";i:61;s:3:"ccn";i:2;}s:11:"defaultBody";a:6:{s:10:"methodName";s:11:"defaultBody";s:9:"signature";s:20:"defaultBody(): array";s:10:"visibility";s:6:"public";s:9:"startLine";i:63;s:7:"endLine";i:81;s:3:"ccn";i:1;}s:21:"createDtoFromResponse";a:6:{s:10:"methodName";s:21:"createDtoFromResponse";s:9:"signature";s:105:"createDtoFromResponse(Saloon\Http\Response $response): CodebarAg\DocuWare\DTO\Documents\DocumentPaginator";s:10:"visibility";s:6:"public";s:9:"startLine";i:83;s:7:"endLine";i:86;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:88;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:88;}s:15:"ignoredLinesFor";a:1:{i:0;i:17;}s:17:"executableLinesIn";a:25:{i:35;i:4;i:39;i:7;i:44;i:8;i:49;i:9;i:54;i:10;i:56;i:11;i:57;i:12;i:60;i:13;i:65;i:14;i:66;i:14;i:67;i:14;i:68;i:14;i:69;i:14;i:70;i:14;i:71;i:14;i:72;i:14;i:73;i:14;i:74;i:14;i:75;i:14;i:76;i:14;i:77;i:14;i:78;i:14;i:79;i:14;i:80;i:14;i:85;i:15;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/2a2a3b5ed011d0da34ab1e9cec5ae58d b/.phpunit.cache/code-coverage/2a2a3b5ed011d0da34ab1e9cec5ae58d deleted file mode 100644 index c23c38a..0000000 --- a/.phpunit.cache/code-coverage/2a2a3b5ed011d0da34ab1e9cec5ae58d +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:52:"CodebarAg\DocuWare\Exceptions\UnableToLoginNoCookies";a:6:{s:4:"name";s:22:"UnableToLoginNoCookies";s:14:"namespacedName";s:52:"CodebarAg\DocuWare\Exceptions\UnableToLoginNoCookies";s:9:"namespace";s:29:"CodebarAg\DocuWare\Exceptions";s:9:"startLine";i:7;s:7:"endLine";i:13;s:7:"methods";a:1:{s:6:"create";a:6:{s:10:"methodName";s:6:"create";s:9:"signature";s:14:"create(): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:9;s:7:"endLine";i:12;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:14;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:14;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:1:{i:11;i:1;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/2e2e50db88e9f883875983644dd8f627 b/.phpunit.cache/code-coverage/2e2e50db88e9f883875983644dd8f627 deleted file mode 100644 index 45970fa..0000000 --- a/.phpunit.cache/code-coverage/2e2e50db88e9f883875983644dd8f627 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:48:"CodebarAg\DocuWare\Support\EnsureValidPassphrase";a:6:{s:4:"name";s:21:"EnsureValidPassphrase";s:14:"namespacedName";s:48:"CodebarAg\DocuWare\Support\EnsureValidPassphrase";s:9:"namespace";s:26:"CodebarAg\DocuWare\Support";s:9:"startLine";i:7;s:7:"endLine";i:16;s:7:"methods";a:1:{s:5:"check";a:6:{s:10:"methodName";s:5:"check";s:9:"signature";s:13:"check(): void";s:10:"visibility";s:6:"public";s:9:"startLine";i:9;s:7:"endLine";i:15;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:17;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:17;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:4:{i:11;i:1;i:12;i:1;i:13;i:1;i:14;i:1;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/2e6f548e9c3b0b5f65543102374f9739 b/.phpunit.cache/code-coverage/2e6f548e9c3b0b5f65543102374f9739 deleted file mode 100644 index 5568ca6..0000000 --- a/.phpunit.cache/code-coverage/2e6f548e9c3b0b5f65543102374f9739 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:50:"CodebarAg\DocuWare\Events\DocuWareCookieCreatedLog";a:6:{s:4:"name";s:24:"DocuWareCookieCreatedLog";s:14:"namespacedName";s:50:"CodebarAg\DocuWare\Events\DocuWareCookieCreatedLog";s:9:"namespace";s:25:"CodebarAg\DocuWare\Events";s:9:"startLine";i:9;s:7:"endLine";i:19;s:7:"methods";a:1:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:28:"__construct(string $message)";s:10:"visibility";s:6:"public";s:9:"startLine";i:15;s:7:"endLine";i:18;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:20;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:20;}s:15:"ignoredLinesFor";a:1:{i:0;i:9;}s:17:"executableLinesIn";a:1:{i:18;i:4;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/2f1fb997cd9653f6c772ae2755bd707a b/.phpunit.cache/code-coverage/2f1fb997cd9653f6c772ae2755bd707a deleted file mode 100644 index 9e71a88..0000000 --- a/.phpunit.cache/code-coverage/2f1fb997cd9653f6c772ae2755bd707a +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:93:"CodebarAg\DocuWare\Responses\FileCabinets\Search\GetASpecificDocumentFromAFileCabinetResponse";a:6:{s:4:"name";s:44:"GetASpecificDocumentFromAFileCabinetResponse";s:14:"namespacedName";s:93:"CodebarAg\DocuWare\Responses\FileCabinets\Search\GetASpecificDocumentFromAFileCabinetResponse";s:9:"namespace";s:48:"CodebarAg\DocuWare\Responses\FileCabinets\Search";s:9:"startLine";i:10;s:7:"endLine";i:22;s:7:"methods";a:1:{s:12:"fromResponse";a:6:{s:10:"methodName";s:12:"fromResponse";s:9:"signature";s:87:"fromResponse(Saloon\Http\Response $response): CodebarAg\DocuWare\DTO\Documents\Document";s:10:"visibility";s:6:"public";s:9:"startLine";i:12;s:7:"endLine";i:21;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:23;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:23;}s:15:"ignoredLinesFor";a:1:{i:0;i:10;}s:17:"executableLinesIn";a:4:{i:14;i:1;i:16;i:2;i:18;i:3;i:20;i:4;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/30531288ae8e0cfb6dbb262c99ab3ca5 b/.phpunit.cache/code-coverage/30531288ae8e0cfb6dbb262c99ab3ca5 deleted file mode 100644 index eec11c9..0000000 --- a/.phpunit.cache/code-coverage/30531288ae8e0cfb6dbb262c99ab3ca5 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:56:"CodebarAg\DocuWare\DTO\Authentication\OAuth\RequestToken";a:6:{s:4:"name";s:12:"RequestToken";s:14:"namespacedName";s:56:"CodebarAg\DocuWare\DTO\Authentication\OAuth\RequestToken";s:9:"namespace";s:43:"CodebarAg\DocuWare\DTO\Authentication\OAuth";s:9:"startLine";i:8;s:7:"endLine";i:29;s:7:"methods";a:2:{s:4:"make";a:6:{s:10:"methodName";s:4:"make";s:9:"signature";s:23:"make(array $data): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:10;s:7:"endLine";i:19;s:3:"ccn";i:1;}s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:120:"__construct(string $accessToken, string $tokenType, string $scope, int $expiresIn, Illuminate\Support\Carbon $expiresAt)";s:10:"visibility";s:6:"public";s:9:"startLine";i:21;s:7:"endLine";i:28;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:30;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:30;}s:15:"ignoredLinesFor";a:1:{i:0;i:8;}s:17:"executableLinesIn";a:8:{i:12;i:1;i:13;i:1;i:14;i:1;i:15;i:1;i:16;i:1;i:17;i:1;i:18;i:1;i:28;i:2;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/33586cf81088a32ee681b95fdd6fc991 b/.phpunit.cache/code-coverage/33586cf81088a32ee681b95fdd6fc991 deleted file mode 100644 index b8b2c77..0000000 --- a/.phpunit.cache/code-coverage/33586cf81088a32ee681b95fdd6fc991 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:61:"CodebarAg\DocuWare\Requests\Authentication\OAuth\RequestToken";a:6:{s:4:"name";s:12:"RequestToken";s:14:"namespacedName";s:61:"CodebarAg\DocuWare\Requests\Authentication\OAuth\RequestToken";s:9:"namespace";s:48:"CodebarAg\DocuWare\Requests\Authentication\OAuth";s:9:"startLine";i:13;s:7:"endLine";i:55;s:7:"methods";a:5:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:108:"__construct(mixed $tokenEndpoint, ?string $username, ?string $password, string $grantType, string $clientId)";s:10:"visibility";s:6:"public";s:9:"startLine";i:19;s:7:"endLine";i:26;s:3:"ccn";i:1;}s:15:"resolveEndpoint";a:6:{s:10:"methodName";s:15:"resolveEndpoint";s:9:"signature";s:25:"resolveEndpoint(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:28;s:7:"endLine";i:31;s:3:"ccn";i:1;}s:14:"defaultHeaders";a:6:{s:10:"methodName";s:14:"defaultHeaders";s:9:"signature";s:23:"defaultHeaders(): array";s:10:"visibility";s:6:"public";s:9:"startLine";i:33;s:7:"endLine";i:38;s:3:"ccn";i:1;}s:11:"defaultBody";a:6:{s:10:"methodName";s:11:"defaultBody";s:9:"signature";s:20:"defaultBody(): array";s:10:"visibility";s:6:"public";s:9:"startLine";i:40;s:7:"endLine";i:49;s:3:"ccn";i:3;}s:21:"createDtoFromResponse";a:6:{s:10:"methodName";s:21:"createDtoFromResponse";s:9:"signature";s:111:"createDtoFromResponse(Saloon\Http\Response $response): CodebarAg\DocuWare\DTO\Authentication\OAuth\RequestToken";s:10:"visibility";s:6:"public";s:9:"startLine";i:51;s:7:"endLine";i:54;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:56;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:56;}s:15:"ignoredLinesFor";a:1:{i:0;i:13;}s:17:"executableLinesIn";a:13:{i:26;i:3;i:30;i:4;i:35;i:5;i:36;i:5;i:37;i:5;i:42;i:6;i:43;i:6;i:44;i:6;i:45;i:6;i:46;i:6;i:47;i:6;i:48;i:6;i:53;i:7;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/34979cf460d918ad72b35ad714904ec8 b/.phpunit.cache/code-coverage/34979cf460d918ad72b35ad714904ec8 deleted file mode 100644 index a19f370..0000000 --- a/.phpunit.cache/code-coverage/34979cf460d918ad72b35ad714904ec8 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:59:"CodebarAg\DocuWare\DTO\Documents\DocumentIndex\IndexTextDTO";a:6:{s:4:"name";s:12:"IndexTextDTO";s:14:"namespacedName";s:59:"CodebarAg\DocuWare\DTO\Documents\DocumentIndex\IndexTextDTO";s:9:"namespace";s:46:"CodebarAg\DocuWare\DTO\Documents\DocumentIndex";s:9:"startLine";i:5;s:7:"endLine";i:27;s:7:"methods";a:3:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:41:"__construct(string $name, ?string $value)";s:10:"visibility";s:6:"public";s:9:"startLine";i:7;s:7:"endLine";i:12;s:3:"ccn";i:1;}s:4:"make";a:6:{s:10:"methodName";s:4:"make";s:9:"signature";s:40:"make(string $name, ?string $value): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:14;s:7:"endLine";i:17;s:3:"ccn";i:1;}s:6:"values";a:6:{s:10:"methodName";s:6:"values";s:9:"signature";s:15:"values(): array";s:10:"visibility";s:6:"public";s:9:"startLine";i:19;s:7:"endLine";i:26;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:28;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:28;}s:15:"ignoredLinesFor";a:1:{i:0;i:5;}s:17:"executableLinesIn";a:7:{i:12;i:1;i:16;i:2;i:21;i:3;i:22;i:3;i:23;i:3;i:24;i:3;i:25;i:3;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/3499c7f8b07def153579ba0a8f3f2dc8 b/.phpunit.cache/code-coverage/3499c7f8b07def153579ba0a8f3f2dc8 deleted file mode 100644 index 15237c6..0000000 --- a/.phpunit.cache/code-coverage/3499c7f8b07def153579ba0a8f3f2dc8 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:35:"CodebarAg\DocuWare\Facades\DocuWare";a:6:{s:4:"name";s:8:"DocuWare";s:14:"namespacedName";s:35:"CodebarAg\DocuWare\Facades\DocuWare";s:9:"namespace";s:26:"CodebarAg\DocuWare\Facades";s:9:"startLine";i:44;s:7:"endLine";i:50;s:7:"methods";a:1:{s:17:"getFacadeAccessor";a:6:{s:10:"methodName";s:17:"getFacadeAccessor";s:9:"signature";s:27:"getFacadeAccessor(): string";s:10:"visibility";s:9:"protected";s:9:"startLine";i:46;s:7:"endLine";i:49;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:51;s:18:"commentLinesOfCode";i:25;s:21:"nonCommentLinesOfCode";i:26;}s:15:"ignoredLinesFor";a:1:{i:0;i:44;}s:17:"executableLinesIn";a:1:{i:48;i:1;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/34c05edf1b8e3fdb08b9533f58b8dc2a b/.phpunit.cache/code-coverage/34c05edf1b8e3fdb08b9533f58b8dc2a deleted file mode 100644 index 679538c..0000000 --- a/.phpunit.cache/code-coverage/34c05edf1b8e3fdb08b9533f58b8dc2a +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:73:"CodebarAg\DocuWare\Responses\Documents\Download\DownloadThumbnailResponse";a:6:{s:4:"name";s:25:"DownloadThumbnailResponse";s:14:"namespacedName";s:73:"CodebarAg\DocuWare\Responses\Documents\Download\DownloadThumbnailResponse";s:9:"namespace";s:47:"CodebarAg\DocuWare\Responses\Documents\Download";s:9:"startLine";i:10;s:7:"endLine";i:23;s:7:"methods";a:1:{s:12:"fromResponse";a:6:{s:10:"methodName";s:12:"fromResponse";s:9:"signature";s:96:"fromResponse(Saloon\Http\Response $response): CodebarAg\DocuWare\DTO\Documents\DocumentThumbnail";s:10:"visibility";s:6:"public";s:9:"startLine";i:12;s:7:"endLine";i:22;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:24;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:24;}s:15:"ignoredLinesFor";a:1:{i:0;i:10;}s:17:"executableLinesIn";a:6:{i:14;i:1;i:16;i:2;i:18;i:3;i:19;i:3;i:20;i:3;i:21;i:3;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/388e37a180df1b023733b48a428563ef b/.phpunit.cache/code-coverage/388e37a180df1b023733b48a428563ef deleted file mode 100644 index b1e33a7..0000000 --- a/.phpunit.cache/code-coverage/388e37a180df1b023733b48a428563ef +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:80:"CodebarAg\DocuWare\Requests\Authentication\OAuth\GetIdentityServiceConfiguration";a:6:{s:4:"name";s:31:"GetIdentityServiceConfiguration";s:14:"namespacedName";s:80:"CodebarAg\DocuWare\Requests\Authentication\OAuth\GetIdentityServiceConfiguration";s:9:"namespace";s:48:"CodebarAg\DocuWare\Requests\Authentication\OAuth";s:9:"startLine";i:12;s:7:"endLine";i:41;s:7:"methods";a:4:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:39:"__construct(string $identityServiceUrl)";s:10:"visibility";s:6:"public";s:9:"startLine";i:16;s:7:"endLine";i:19;s:3:"ccn";i:1;}s:15:"resolveEndpoint";a:6:{s:10:"methodName";s:15:"resolveEndpoint";s:9:"signature";s:25:"resolveEndpoint(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:21;s:7:"endLine";i:24;s:3:"ccn";i:1;}s:14:"defaultHeaders";a:6:{s:10:"methodName";s:14:"defaultHeaders";s:9:"signature";s:23:"defaultHeaders(): array";s:10:"visibility";s:6:"public";s:9:"startLine";i:26;s:7:"endLine";i:31;s:3:"ccn";i:1;}s:21:"createDtoFromResponse";a:6:{s:10:"methodName";s:21:"createDtoFromResponse";s:9:"signature";s:127:"createDtoFromResponse(Saloon\Http\Response $response): CodebarAg\DocuWare\DTO\Authentication\OAuth\IdentityServiceConfiguration";s:10:"visibility";s:6:"public";s:9:"startLine";i:33;s:7:"endLine";i:40;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:42;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:42;}s:15:"ignoredLinesFor";a:1:{i:0;i:12;}s:17:"executableLinesIn";a:8:{i:19;i:2;i:23;i:3;i:28;i:4;i:29;i:4;i:30;i:4;i:35;i:5;i:37;i:6;i:39;i:7;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/3e8cb7bf4b55211156e9bc093d421ac3 b/.phpunit.cache/code-coverage/3e8cb7bf4b55211156e9bc093d421ac3 deleted file mode 100644 index 246f307..0000000 --- a/.phpunit.cache/code-coverage/3e8cb7bf4b55211156e9bc093d421ac3 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:38:"CodebarAg\DocuWare\DTO\SuggestionField";a:6:{s:4:"name";s:15:"SuggestionField";s:14:"namespacedName";s:38:"CodebarAg\DocuWare\DTO\SuggestionField";s:9:"namespace";s:22:"CodebarAg\DocuWare\DTO";s:9:"startLine";i:7;s:7:"endLine";i:40;s:7:"methods";a:3:{s:8:"fromJson";a:6:{s:10:"methodName";s:8:"fromJson";s:9:"signature";s:27:"fromJson(array $data): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:9;s:7:"endLine";i:17;s:3:"ccn";i:1;}s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:79:"__construct(array $value, ?string $name, ?string $db_name, ?string $confidence)";s:10:"visibility";s:6:"public";s:9:"startLine";i:19;s:7:"endLine";i:25;s:3:"ccn";i:1;}s:4:"fake";a:6:{s:10:"methodName";s:4:"fake";s:9:"signature";s:78:"fake(array $value, ?string $name, ?string $db_name, ?string $confidence): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:27;s:7:"endLine";i:39;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:41;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:41;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:13:{i:11;i:1;i:12;i:1;i:13;i:1;i:14;i:1;i:15;i:1;i:16;i:1;i:25;i:2;i:33;i:4;i:34;i:4;i:35;i:4;i:36;i:4;i:37;i:4;i:38;i:4;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/4333f4811947fc614239db7bb718034e b/.phpunit.cache/code-coverage/4333f4811947fc614239db7bb718034e deleted file mode 100644 index e7883e1..0000000 --- a/.phpunit.cache/code-coverage/4333f4811947fc614239db7bb718034e +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:85:"CodebarAg\DocuWare\Responses\FileCabinets\Search\GetDocumentsFromAFileCabinetResponse";a:6:{s:4:"name";s:36:"GetDocumentsFromAFileCabinetResponse";s:14:"namespacedName";s:85:"CodebarAg\DocuWare\Responses\FileCabinets\Search\GetDocumentsFromAFileCabinetResponse";s:9:"namespace";s:48:"CodebarAg\DocuWare\Responses\FileCabinets\Search";s:9:"startLine";i:11;s:7:"endLine";i:31;s:7:"methods";a:1:{s:12:"fromResponse";a:6:{s:10:"methodName";s:12:"fromResponse";s:9:"signature";s:113:"fromResponse(Saloon\Http\Response $response, $page, $perPage): CodebarAg\DocuWare\DTO\Documents\DocumentPaginator";s:10:"visibility";s:6:"public";s:9:"startLine";i:13;s:7:"endLine";i:30;s:3:"ccn";i:2;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:32;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:32;}s:15:"ignoredLinesFor";a:1:{i:0;i:11;}s:17:"executableLinesIn";a:10:{i:15;i:1;i:18;i:2;i:20;i:3;i:21;i:4;i:22;i:5;i:25;i:6;i:26;i:6;i:27;i:6;i:28;i:6;i:29;i:6;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/4681cf9c52384b870d8125f050729668 b/.phpunit.cache/code-coverage/4681cf9c52384b870d8125f050729668 deleted file mode 100644 index 21d9519..0000000 --- a/.phpunit.cache/code-coverage/4681cf9c52384b870d8125f050729668 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:54:"CodebarAg\DocuWare\Exceptions\UnableToGetDocumentCount";a:6:{s:4:"name";s:24:"UnableToGetDocumentCount";s:14:"namespacedName";s:54:"CodebarAg\DocuWare\Exceptions\UnableToGetDocumentCount";s:9:"namespace";s:29:"CodebarAg\DocuWare\Exceptions";s:9:"startLine";i:7;s:7:"endLine";i:23;s:7:"methods";a:3:{s:10:"noGroupKey";a:6:{s:10:"methodName";s:10:"noGroupKey";s:9:"signature";s:18:"noGroupKey(): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:9;s:7:"endLine";i:12;s:3:"ccn";i:1;}s:19:"noGroupKeyIndexZero";a:6:{s:10:"methodName";s:19:"noGroupKeyIndexZero";s:9:"signature";s:27:"noGroupKeyIndexZero(): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:14;s:7:"endLine";i:17;s:3:"ccn";i:1;}s:7:"noCount";a:6:{s:10:"methodName";s:7:"noCount";s:9:"signature";s:15:"noCount(): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:19;s:7:"endLine";i:22;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:24;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:24;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:3:{i:11;i:1;i:16;i:2;i:21;i:3;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/4a16bd724962cf349974cf88595df33b b/.phpunit.cache/code-coverage/4a16bd724962cf349974cf88595df33b deleted file mode 100644 index 99c1ff2..0000000 --- a/.phpunit.cache/code-coverage/4a16bd724962cf349974cf88595df33b +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:46:"CodebarAg\DocuWare\DTO\Documents\DocumentField";a:6:{s:4:"name";s:13:"DocumentField";s:14:"namespacedName";s:46:"CodebarAg\DocuWare\DTO\Documents\DocumentField";s:9:"namespace";s:32:"CodebarAg\DocuWare\DTO\Documents";s:9:"startLine";i:10;s:7:"endLine";i:60;s:7:"methods";a:3:{s:8:"fromJson";a:6:{s:10:"methodName";s:8:"fromJson";s:9:"signature";s:27:"fromJson(array $data): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:12;s:7:"endLine";i:22;s:3:"ccn";i:1;}s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:163:"__construct(bool $systemField, string $name, string $label, bool $isNull, null|int|float|\Carbon\Carbon|string|\Illuminate\Support\Collection $value, string $type)";s:10:"visibility";s:6:"public";s:9:"startLine";i:24;s:7:"endLine";i:32;s:3:"ccn";i:1;}s:4:"fake";a:6:{s:10:"methodName";s:4:"fake";s:9:"signature";s:136:"fake(?bool $systemField, ?string $name, ?string $label, ?bool $isNull, int|float|\Carbon\Carbon|string|null $value, ?string $type): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:34;s:7:"endLine";i:59;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:61;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:61;}s:15:"ignoredLinesFor";a:1:{i:0;i:10;}s:17:"executableLinesIn";a:24:{i:14;i:1;i:15;i:1;i:16;i:1;i:17;i:1;i:18;i:1;i:19;i:1;i:20;i:1;i:21;i:1;i:32;i:2;i:42;i:3;i:44;i:4;i:45;i:4;i:46;i:4;i:47;i:4;i:48;i:4;i:49;i:4;i:51;i:5;i:52;i:5;i:53;i:5;i:54;i:5;i:55;i:5;i:56;i:5;i:57;i:5;i:58;i:5;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/4d3b231bbdf14e33f2ab5b11f174cbbe b/.phpunit.cache/code-coverage/4d3b231bbdf14e33f2ab5b11f174cbbe deleted file mode 100644 index cf2d196..0000000 --- a/.phpunit.cache/code-coverage/4d3b231bbdf14e33f2ab5b11f174cbbe +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:53:"CodebarAg\DocuWare\Responses\Search\GetSearchResponse";a:6:{s:4:"name";s:17:"GetSearchResponse";s:14:"namespacedName";s:53:"CodebarAg\DocuWare\Responses\Search\GetSearchResponse";s:9:"namespace";s:35:"CodebarAg\DocuWare\Responses\Search";s:9:"startLine";i:11;s:7:"endLine";i:31;s:7:"methods";a:1:{s:12:"fromResponse";a:6:{s:10:"methodName";s:12:"fromResponse";s:9:"signature";s:113:"fromResponse(Saloon\Http\Response $response, $page, $perPage): CodebarAg\DocuWare\DTO\Documents\DocumentPaginator";s:10:"visibility";s:6:"public";s:9:"startLine";i:13;s:7:"endLine";i:30;s:3:"ccn";i:2;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:32;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:32;}s:15:"ignoredLinesFor";a:1:{i:0;i:11;}s:17:"executableLinesIn";a:10:{i:15;i:1;i:18;i:2;i:20;i:3;i:21;i:4;i:22;i:5;i:25;i:6;i:26;i:6;i:27;i:6;i:28;i:6;i:29;i:6;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/4df0c7822d84dc5ec2915d4e61a5ef7d b/.phpunit.cache/code-coverage/4df0c7822d84dc5ec2915d4e61a5ef7d deleted file mode 100644 index 5a6257b..0000000 --- a/.phpunit.cache/code-coverage/4df0c7822d84dc5ec2915d4e61a5ef7d +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:27:"CodebarAg\DocuWare\DocuWare";a:6:{s:4:"name";s:8:"DocuWare";s:14:"namespacedName";s:27:"CodebarAg\DocuWare\DocuWare";s:9:"namespace";s:18:"CodebarAg\DocuWare";s:9:"startLine";i:10;s:7:"endLine";i:44;s:7:"methods";a:3:{s:30:"getNewAuthenticationOAuthToken";a:6:{s:10:"methodName";s:30:"getNewAuthenticationOAuthToken";s:9:"signature";s:165:"getNewAuthenticationOAuthToken(?string $username, ?string $password, ?string $grantType, ?string $clientId): CodebarAg\DocuWare\DTO\Authentication\OAuth\RequestToken";s:10:"visibility";s:6:"public";s:9:"startLine";i:12;s:7:"endLine";i:33;s:3:"ccn";i:1;}s:20:"searchRequestBuilder";a:6:{s:10:"methodName";s:20:"searchRequestBuilder";s:9:"signature";s:71:"searchRequestBuilder(): CodebarAg\DocuWare\DocuWareSearchRequestBuilder";s:10:"visibility";s:6:"public";s:9:"startLine";i:35;s:7:"endLine";i:38;s:3:"ccn";i:1;}s:3:"url";a:6:{s:10:"methodName";s:3:"url";s:9:"signature";s:37:"url(): CodebarAg\DocuWare\DocuWareUrl";s:10:"visibility";s:6:"public";s:9:"startLine";i:40;s:7:"endLine";i:43;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:45;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:45;}s:15:"ignoredLinesFor";a:1:{i:0;i:10;}s:17:"executableLinesIn";a:14:{i:18;i:1;i:20;i:2;i:21;i:2;i:22;i:2;i:24;i:3;i:25;i:3;i:26;i:3;i:27;i:3;i:28;i:3;i:29;i:3;i:30;i:3;i:32;i:4;i:37;i:5;i:42;i:6;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/4e7293db2d8c3847288b4657b5fda72f b/.phpunit.cache/code-coverage/4e7293db2d8c3847288b4657b5fda72f deleted file mode 100644 index ceb7322..0000000 --- a/.phpunit.cache/code-coverage/4e7293db2d8c3847288b4657b5fda72f +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:59:"CodebarAg\DocuWare\DTO\Documents\DocumentIndex\IndexDateDTO";a:6:{s:4:"name";s:12:"IndexDateDTO";s:14:"namespacedName";s:59:"CodebarAg\DocuWare\DTO\Documents\DocumentIndex\IndexDateDTO";s:9:"namespace";s:46:"CodebarAg\DocuWare\DTO\Documents\DocumentIndex";s:9:"startLine";i:7;s:7:"endLine";i:37;s:7:"methods";a:4:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:80:"__construct(string $name, null|\Illuminate\Support\Carbon|\Carbon\Carbon $value)";s:10:"visibility";s:6:"public";s:9:"startLine";i:9;s:7:"endLine";i:14;s:3:"ccn";i:1;}s:4:"make";a:6:{s:10:"methodName";s:4:"make";s:9:"signature";s:79:"make(string $name, null|\Illuminate\Support\Carbon|\Carbon\Carbon $value): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:16;s:7:"endLine";i:19;s:3:"ccn";i:1;}s:16:"makeWithFallback";a:6:{s:10:"methodName";s:16:"makeWithFallback";s:9:"signature";s:45:"makeWithFallback($name, object $value): mixed";s:10:"visibility";s:6:"public";s:9:"startLine";i:21;s:7:"endLine";i:27;s:3:"ccn";i:1;}s:6:"values";a:6:{s:10:"methodName";s:6:"values";s:9:"signature";s:15:"values(): array";s:10:"visibility";s:6:"public";s:9:"startLine";i:29;s:7:"endLine";i:36;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:38;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:38;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:11:{i:14;i:1;i:18;i:2;i:23;i:3;i:24;i:3;i:25;i:3;i:26;i:3;i:31;i:4;i:32;i:4;i:33;i:4;i:34;i:4;i:35;i:4;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/4eff86aaa57c59f6c5943cd406f65c9f b/.phpunit.cache/code-coverage/4eff86aaa57c59f6c5943cd406f65c9f deleted file mode 100644 index 6337e65..0000000 --- a/.phpunit.cache/code-coverage/4eff86aaa57c59f6c5943cd406f65c9f +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:65:"CodebarAg\DocuWare\Responses\Documents\GetDocumentPreviewResponse";a:6:{s:4:"name";s:26:"GetDocumentPreviewResponse";s:14:"namespacedName";s:65:"CodebarAg\DocuWare\Responses\Documents\GetDocumentPreviewResponse";s:9:"namespace";s:38:"CodebarAg\DocuWare\Responses\Documents";s:9:"startLine";i:9;s:7:"endLine";i:19;s:7:"methods";a:1:{s:12:"fromResponse";a:6:{s:10:"methodName";s:12:"fromResponse";s:9:"signature";s:52:"fromResponse(Saloon\Http\Response $response): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:11;s:7:"endLine";i:18;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:20;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:20;}s:15:"ignoredLinesFor";a:1:{i:0;i:9;}s:17:"executableLinesIn";a:3:{i:13;i:1;i:15;i:2;i:17;i:3;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/50c0c7805b3bb7226764283d71d40c9b b/.phpunit.cache/code-coverage/50c0c7805b3bb7226764283d71d40c9b deleted file mode 100644 index 42f53cf..0000000 --- a/.phpunit.cache/code-coverage/50c0c7805b3bb7226764283d71d40c9b +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:63:"CodebarAg\DocuWare\Requests\Documents\GetDocumentPreviewRequest";a:6:{s:4:"name";s:25:"GetDocumentPreviewRequest";s:14:"namespacedName";s:63:"CodebarAg\DocuWare\Requests\Documents\GetDocumentPreviewRequest";s:9:"namespace";s:37:"CodebarAg\DocuWare\Requests\Documents";s:9:"startLine";i:14;s:7:"endLine";i:45;s:7:"methods";a:5:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:54:"__construct(string $fileCabinetId, string $documentId)";s:10:"visibility";s:6:"public";s:9:"startLine";i:20;s:7:"endLine";i:24;s:3:"ccn";i:1;}s:15:"resolveEndpoint";a:6:{s:10:"methodName";s:15:"resolveEndpoint";s:9:"signature";s:25:"resolveEndpoint(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:26;s:7:"endLine";i:29;s:3:"ccn";i:1;}s:18:"resolveCacheDriver";a:6:{s:10:"methodName";s:18:"resolveCacheDriver";s:9:"signature";s:67:"resolveCacheDriver(): Saloon\CachePlugin\Drivers\LaravelCacheDriver";s:10:"visibility";s:6:"public";s:9:"startLine";i:31;s:7:"endLine";i:34;s:3:"ccn";i:1;}s:20:"cacheExpiryInSeconds";a:6:{s:10:"methodName";s:20:"cacheExpiryInSeconds";s:9:"signature";s:27:"cacheExpiryInSeconds(): int";s:10:"visibility";s:6:"public";s:9:"startLine";i:36;s:7:"endLine";i:39;s:3:"ccn";i:1;}s:21:"createDtoFromResponse";a:6:{s:10:"methodName";s:21:"createDtoFromResponse";s:9:"signature";s:61:"createDtoFromResponse(Saloon\Http\Response $response): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:41;s:7:"endLine";i:44;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:46;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:46;}s:15:"ignoredLinesFor";a:1:{i:0;i:14;}s:17:"executableLinesIn";a:5:{i:24;i:3;i:28;i:4;i:33;i:5;i:38;i:6;i:43;i:7;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/5104a2cb0cd1d420eb4900e94a753c44 b/.phpunit.cache/code-coverage/5104a2cb0cd1d420eb4900e94a753c44 deleted file mode 100644 index 7ea5324..0000000 --- a/.phpunit.cache/code-coverage/5104a2cb0cd1d420eb4900e94a753c44 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:79:"CodebarAg\DocuWare\Responses\Documents\ModifyDocuments\TransferDocumentResponse";a:6:{s:4:"name";s:24:"TransferDocumentResponse";s:14:"namespacedName";s:79:"CodebarAg\DocuWare\Responses\Documents\ModifyDocuments\TransferDocumentResponse";s:9:"namespace";s:54:"CodebarAg\DocuWare\Responses\Documents\ModifyDocuments";s:9:"startLine";i:9;s:7:"endLine";i:19;s:7:"methods";a:1:{s:12:"fromResponse";a:6:{s:10:"methodName";s:12:"fromResponse";s:9:"signature";s:50:"fromResponse(Saloon\Http\Response $response): bool";s:10:"visibility";s:6:"public";s:9:"startLine";i:11;s:7:"endLine";i:18;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:20;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:20;}s:15:"ignoredLinesFor";a:1:{i:0;i:9;}s:17:"executableLinesIn";a:3:{i:13;i:1;i:15;i:2;i:17;i:3;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/514660e297358b41075608c6c3049b11 b/.phpunit.cache/code-coverage/514660e297358b41075608c6c3049b11 deleted file mode 100644 index 5054f18..0000000 --- a/.phpunit.cache/code-coverage/514660e297358b41075608c6c3049b11 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:63:"CodebarAg\DocuWare\DTO\Documents\DocumentIndex\IndexDateTimeDTO";a:6:{s:4:"name";s:16:"IndexDateTimeDTO";s:14:"namespacedName";s:63:"CodebarAg\DocuWare\DTO\Documents\DocumentIndex\IndexDateTimeDTO";s:9:"namespace";s:46:"CodebarAg\DocuWare\DTO\Documents\DocumentIndex";s:9:"startLine";i:7;s:7:"endLine";i:37;s:7:"methods";a:4:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:80:"__construct(string $name, null|\Illuminate\Support\Carbon|\Carbon\Carbon $value)";s:10:"visibility";s:6:"public";s:9:"startLine";i:9;s:7:"endLine";i:14;s:3:"ccn";i:1;}s:4:"make";a:6:{s:10:"methodName";s:4:"make";s:9:"signature";s:79:"make(string $name, null|\Illuminate\Support\Carbon|\Carbon\Carbon $value): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:16;s:7:"endLine";i:19;s:3:"ccn";i:1;}s:16:"makeWithFallback";a:6:{s:10:"methodName";s:16:"makeWithFallback";s:9:"signature";s:45:"makeWithFallback($name, object $value): mixed";s:10:"visibility";s:6:"public";s:9:"startLine";i:21;s:7:"endLine";i:27;s:3:"ccn";i:1;}s:6:"values";a:6:{s:10:"methodName";s:6:"values";s:9:"signature";s:15:"values(): array";s:10:"visibility";s:6:"public";s:9:"startLine";i:29;s:7:"endLine";i:36;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:38;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:38;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:11:{i:14;i:1;i:18;i:2;i:23;i:3;i:24;i:3;i:25;i:3;i:26;i:3;i:31;i:4;i:32;i:4;i:33;i:4;i:34;i:4;i:35;i:4;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/52e5f8a1923c4902c36e78d701f57ca8 b/.phpunit.cache/code-coverage/52e5f8a1923c4902c36e78d701f57ca8 deleted file mode 100644 index 2eae0d8..0000000 --- a/.phpunit.cache/code-coverage/52e5f8a1923c4902c36e78d701f57ca8 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:57:"CodebarAg\DocuWare\DTO\Documents\DocumentIndex\PrepareDTO";a:6:{s:4:"name";s:10:"PrepareDTO";s:14:"namespacedName";s:57:"CodebarAg\DocuWare\DTO\Documents\DocumentIndex\PrepareDTO";s:9:"namespace";s:46:"CodebarAg\DocuWare\DTO\Documents\DocumentIndex";s:9:"startLine";i:7;s:7:"endLine";i:42;s:7:"methods";a:3:{s:5:"guess";a:6:{s:10:"methodName";s:5:"guess";s:9:"signature";s:40:"guess(string $name, mixed $value): mixed";s:10:"visibility";s:6:"public";s:9:"startLine";i:9;s:7:"endLine";i:20;s:3:"ccn";i:1;}s:10:"makeFields";a:6:{s:10:"methodName";s:10:"makeFields";s:9:"signature";s:57:"makeFields(Illuminate\Support\Collection $indexes): array";s:10:"visibility";s:6:"public";s:9:"startLine";i:22;s:7:"endLine";i:30;s:3:"ccn";i:1;}s:9:"makeField";a:6:{s:10:"methodName";s:9:"makeField";s:9:"signature";s:75:"makeField(Illuminate\Support\Collection $indexes, bool $forceUpdate): array";s:10:"visibility";s:6:"public";s:9:"startLine";i:32;s:7:"endLine";i:41;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:43;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:43;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:21:{i:11;i:1;i:13;i:2;i:14;i:2;i:15;i:2;i:16;i:2;i:17;i:2;i:18;i:2;i:19;i:2;i:24;i:3;i:25;i:3;i:26;i:3;i:27;i:3;i:28;i:3;i:29;i:3;i:34;i:4;i:35;i:4;i:36;i:4;i:37;i:4;i:38;i:4;i:39;i:4;i:40;i:4;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/59ce378d5aeb3ddd308919b891dc2ece b/.phpunit.cache/code-coverage/59ce378d5aeb3ddd308919b891dc2ece deleted file mode 100644 index cc417f5..0000000 --- a/.phpunit.cache/code-coverage/59ce378d5aeb3ddd308919b891dc2ece +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:75:"CodebarAg\DocuWare\Responses\General\Organization\RequestLoginTokenResponse";a:6:{s:4:"name";s:25:"RequestLoginTokenResponse";s:14:"namespacedName";s:75:"CodebarAg\DocuWare\Responses\General\Organization\RequestLoginTokenResponse";s:9:"namespace";s:49:"CodebarAg\DocuWare\Responses\General\Organization";s:9:"startLine";i:9;s:7:"endLine";i:19;s:7:"methods";a:1:{s:12:"fromResponse";a:6:{s:10:"methodName";s:12:"fromResponse";s:9:"signature";s:52:"fromResponse(Saloon\Http\Response $response): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:11;s:7:"endLine";i:18;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:20;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:20;}s:15:"ignoredLinesFor";a:1:{i:0;i:9;}s:17:"executableLinesIn";a:3:{i:13;i:1;i:15;i:2;i:17;i:3;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/5d021a71c91ad28c4ef9f35793d08372 b/.phpunit.cache/code-coverage/5d021a71c91ad28c4ef9f35793d08372 deleted file mode 100644 index 2c190c5..0000000 --- a/.phpunit.cache/code-coverage/5d021a71c91ad28c4ef9f35793d08372 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:47:"CodebarAg\DocuWare\DocuWareSearchRequestBuilder";a:6:{s:4:"name";s:28:"DocuWareSearchRequestBuilder";s:14:"namespacedName";s:47:"CodebarAg\DocuWare\DocuWareSearchRequestBuilder";s:9:"namespace";s:18:"CodebarAg\DocuWare";s:9:"startLine";i:12;s:7:"endLine";i:260;s:7:"methods";a:17:{s:11:"fileCabinet";a:6:{s:10:"methodName";s:11:"fileCabinet";s:9:"signature";s:40:"fileCabinet(string $fileCabinetId): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:34;s:7:"endLine";i:39;s:3:"ccn";i:1;}s:12:"fileCabinets";a:6:{s:10:"methodName";s:12:"fileCabinets";s:9:"signature";s:41:"fileCabinets(array $fileCabinetIds): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:41;s:7:"endLine";i:48;s:3:"ccn";i:1;}s:6:"dialog";a:6:{s:10:"methodName";s:6:"dialog";s:9:"signature";s:30:"dialog(string $dialogId): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:50;s:7:"endLine";i:55;s:3:"ccn";i:1;}s:4:"page";a:6:{s:10:"methodName";s:4:"page";s:9:"signature";s:22:"page(?int $page): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:57;s:7:"endLine";i:66;s:3:"ccn";i:2;}s:7:"perPage";a:6:{s:10:"methodName";s:7:"perPage";s:9:"signature";s:28:"perPage(?int $perPage): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:68;s:7:"endLine";i:77;s:3:"ccn";i:2;}s:8:"fulltext";a:6:{s:10:"methodName";s:8:"fulltext";s:9:"signature";s:35:"fulltext(?string $searchTerm): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:79;s:7:"endLine";i:84;s:3:"ccn";i:1;}s:10:"filterDate";a:6:{s:10:"methodName";s:10:"filterDate";s:9:"signature";s:70:"filterDate(string $name, string $operator, ?Carbon\Carbon $date): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:86;s:7:"endLine";i:96;s:3:"ccn";i:1;}s:7:"orderBy";a:6:{s:10:"methodName";s:7:"orderBy";s:9:"signature";s:48:"orderBy(string $field, ?string $direction): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:98;s:7:"endLine";i:109;s:3:"ccn";i:2;}s:21:"prepareValueForFilter";a:6:{s:10:"methodName";s:21:"prepareValueForFilter";s:9:"signature";s:42:"prepareValueForFilter(mixed $value): mixed";s:10:"visibility";s:7:"private";s:9:"startLine";i:111;s:7:"endLine";i:118;s:3:"ccn";i:2;}s:6:"filter";a:6:{s:10:"methodName";s:6:"filter";s:9:"signature";s:40:"filter(string $name, mixed $value): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:120;s:7:"endLine";i:125;s:3:"ccn";i:1;}s:8:"filterIn";a:6:{s:10:"methodName";s:8:"filterIn";s:9:"signature";s:43:"filterIn(string $name, mixed $values): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:127;s:7:"endLine";i:140;s:3:"ccn";i:2;}s:3:"get";a:6:{s:10:"methodName";s:3:"get";s:9:"signature";s:58:"get(): CodebarAg\DocuWare\Requests\Search\GetSearchRequest";s:10:"visibility";s:6:"public";s:9:"startLine";i:147;s:7:"endLine";i:184;s:3:"ccn";i:4;}s:5:"guard";a:6:{s:10:"methodName";s:5:"guard";s:9:"signature";s:13:"guard(): void";s:10:"visibility";s:9:"protected";s:9:"startLine";i:186;s:7:"endLine";i:202;s:3:"ccn";i:1;}s:30:"checkDateFilterRangeDivergence";a:6:{s:10:"methodName";s:30:"checkDateFilterRangeDivergence";s:9:"signature";s:38:"checkDateFilterRangeDivergence(): void";s:10:"visibility";s:7:"private";s:9:"startLine";i:204;s:7:"endLine";i:217;s:3:"ccn";i:4;}s:30:"restructureMonoDateFilterRange";a:6:{s:10:"methodName";s:30:"restructureMonoDateFilterRange";s:9:"signature";s:38:"restructureMonoDateFilterRange(): void";s:10:"visibility";s:7:"private";s:9:"startLine";i:219;s:7:"endLine";i:230;s:3:"ccn";i:3;}s:32:"makeSureFilterDateRangeIsCorrect";a:6:{s:10:"methodName";s:32:"makeSureFilterDateRangeIsCorrect";s:9:"signature";s:56:"makeSureFilterDateRangeIsCorrect($name, $operator): void";s:10:"visibility";s:7:"private";s:9:"startLine";i:232;s:7:"endLine";i:250;s:3:"ccn";i:6;}s:13:"exactDateTime";a:6:{s:10:"methodName";s:13:"exactDateTime";s:9:"signature";s:46:"exactDateTime($date, $operator): Carbon\Carbon";s:10:"visibility";s:7:"private";s:9:"startLine";i:252;s:7:"endLine";i:259;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:261;s:18:"commentLinesOfCode";i:6;s:21:"nonCommentLinesOfCode";i:255;}s:15:"ignoredLinesFor";a:1:{i:0;i:12;}s:17:"executableLinesIn";a:108:{i:36;i:11;i:38;i:12;i:43;i:13;i:45;i:14;i:47;i:15;i:52;i:16;i:54;i:17;i:59;i:18;i:60;i:19;i:62;i:20;i:65;i:21;i:70;i:22;i:71;i:23;i:73;i:24;i:76;i:25;i:81;i:26;i:83;i:27;i:88;i:28;i:90;i:29;i:92;i:30;i:93;i:31;i:95;i:32;i:100;i:33;i:102;i:34;i:103;i:35;i:105;i:36;i:108;i:37;i:113;i:38;i:114;i:39;i:117;i:40;i:122;i:41;i:124;i:42;i:129;i:43;i:130;i:44;i:133;i:45;i:135;i:45;i:134;i:46;i:137;i:47;i:139;i:48;i:149;i:49;i:150;i:50;i:151;i:51;i:153;i:52;i:155;i:53;i:156;i:54;i:157;i:54;i:158;i:54;i:159;i:54;i:162;i:55;i:163;i:56;i:164;i:57;i:167;i:58;i:168;i:58;i:169;i:58;i:170;i:58;i:173;i:59;i:174;i:59;i:175;i:59;i:176;i:59;i:177;i:59;i:178;i:59;i:179;i:59;i:180;i:59;i:181;i:59;i:182;i:59;i:183;i:59;i:188;i:60;i:189;i:60;i:190;i:60;i:191;i:60;i:193;i:61;i:194;i:61;i:195;i:61;i:196;i:61;i:198;i:62;i:199;i:62;i:200;i:62;i:201;i:62;i:206;i:63;i:207;i:64;i:208;i:65;i:209;i:66;i:210;i:66;i:211;i:66;i:212;i:66;i:213;i:67;i:221;i:68;i:222;i:69;i:223;i:70;i:224;i:70;i:225;i:70;i:226;i:70;i:227;i:70;i:234;i:71;i:235;i:72;i:236;i:73;i:237;i:74;i:238;i:75;i:239;i:76;i:241;i:77;i:244;i:78;i:247;i:79;i:248;i:80;i:254;i:81;i:255;i:81;i:256;i:81;i:257;i:81;i:258;i:81;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/5e717aabd3b3da3617e2b5e667758131 b/.phpunit.cache/code-coverage/5e717aabd3b3da3617e2b5e667758131 deleted file mode 100644 index 9e99d6e..0000000 --- a/.phpunit.cache/code-coverage/5e717aabd3b3da3617e2b5e667758131 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:30:"CodebarAg\DocuWare\DTO\Section";a:6:{s:4:"name";s:7:"Section";s:14:"namespacedName";s:30:"CodebarAg\DocuWare\DTO\Section";s:9:"namespace";s:22:"CodebarAg\DocuWare\DTO";s:9:"startLine";i:7;s:7:"endLine";i:36;s:7:"methods";a:2:{s:8:"fromJson";a:6:{s:10:"methodName";s:8:"fromJson";s:9:"signature";s:27:"fromJson(array $data): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:9;s:7:"endLine";i:22;s:3:"ccn";i:1;}s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:200:"__construct(string $id, string $contentType, bool $haveMorePages, int $pageCount, int $fileSize, string $originalFileName, string $contentModified, bool $annotationsPreview, ?bool $hasTextAnnotations)";s:10:"visibility";s:6:"public";s:9:"startLine";i:24;s:7:"endLine";i:35;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:37;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:37;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:12:{i:11;i:1;i:12;i:1;i:13;i:1;i:14;i:1;i:15;i:1;i:16;i:1;i:17;i:1;i:18;i:1;i:19;i:1;i:20;i:1;i:21;i:1;i:35;i:2;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/6175ce3b3f1607d0a82a771788659a51 b/.phpunit.cache/code-coverage/6175ce3b3f1607d0a82a771788659a51 deleted file mode 100644 index 5c74552..0000000 --- a/.phpunit.cache/code-coverage/6175ce3b3f1607d0a82a771788659a51 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:41:"CodebarAg\DocuWare\DTO\Documents\TableRow";a:6:{s:4:"name";s:8:"TableRow";s:14:"namespacedName";s:41:"CodebarAg\DocuWare\DTO\Documents\TableRow";s:9:"namespace";s:32:"CodebarAg\DocuWare\DTO\Documents";s:9:"startLine";i:7;s:7:"endLine";i:40;s:7:"methods";a:4:{s:8:"fromJson";a:6:{s:10:"methodName";s:8:"fromJson";s:9:"signature";s:27:"fromJson(array $data): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:9;s:7:"endLine";i:16;s:3:"ccn";i:1;}s:13:"convertFields";a:6:{s:10:"methodName";s:13:"convertFields";s:9:"signature";s:83:"convertFields(Illuminate\Support\Collection $fields): Illuminate\Support\Collection";s:10:"visibility";s:9:"protected";s:9:"startLine";i:18;s:7:"endLine";i:23;s:3:"ccn";i:1;}s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:50:"__construct(Illuminate\Support\Collection $fields)";s:10:"visibility";s:6:"public";s:9:"startLine";i:25;s:7:"endLine";i:28;s:3:"ccn";i:1;}s:4:"fake";a:6:{s:10:"methodName";s:4:"fake";s:9:"signature";s:50:"fake(?Illuminate\Support\Collection $fields): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:30;s:7:"endLine";i:39;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:41;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:41;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:14:{i:11;i:1;i:13;i:2;i:14;i:2;i:15;i:2;i:20;i:3;i:22;i:3;i:21;i:4;i:28;i:5;i:33;i:6;i:34;i:6;i:35;i:6;i:36;i:6;i:37;i:6;i:38;i:6;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/623b6a9264713fec39cb6ecf392a8391 b/.phpunit.cache/code-coverage/623b6a9264713fec39cb6ecf392a8391 deleted file mode 100644 index c86b873..0000000 --- a/.phpunit.cache/code-coverage/623b6a9264713fec39cb6ecf392a8391 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:74:"CodebarAg\DocuWare\Requests\FileCabinets\General\GetFileCabinetInformation";a:6:{s:4:"name";s:25:"GetFileCabinetInformation";s:14:"namespacedName";s:74:"CodebarAg\DocuWare\Requests\FileCabinets\General\GetFileCabinetInformation";s:9:"namespace";s:48:"CodebarAg\DocuWare\Requests\FileCabinets\General";s:9:"startLine";i:15;s:7:"endLine";i:45;s:7:"methods";a:5:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:34:"__construct(string $fileCabinetId)";s:10:"visibility";s:6:"public";s:9:"startLine";i:21;s:7:"endLine";i:24;s:3:"ccn";i:1;}s:15:"resolveEndpoint";a:6:{s:10:"methodName";s:15:"resolveEndpoint";s:9:"signature";s:25:"resolveEndpoint(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:26;s:7:"endLine";i:29;s:3:"ccn";i:1;}s:18:"resolveCacheDriver";a:6:{s:10:"methodName";s:18:"resolveCacheDriver";s:9:"signature";s:67:"resolveCacheDriver(): Saloon\CachePlugin\Drivers\LaravelCacheDriver";s:10:"visibility";s:6:"public";s:9:"startLine";i:31;s:7:"endLine";i:34;s:3:"ccn";i:1;}s:20:"cacheExpiryInSeconds";a:6:{s:10:"methodName";s:20:"cacheExpiryInSeconds";s:9:"signature";s:27:"cacheExpiryInSeconds(): int";s:10:"visibility";s:6:"public";s:9:"startLine";i:36;s:7:"endLine";i:39;s:3:"ccn";i:1;}s:21:"createDtoFromResponse";a:6:{s:10:"methodName";s:21:"createDtoFromResponse";s:9:"signature";s:121:"createDtoFromResponse(Saloon\Http\Response $response): CodebarAg\DocuWare\DTO\FileCabinets\General\FileCabinetInformation";s:10:"visibility";s:6:"public";s:9:"startLine";i:41;s:7:"endLine";i:44;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:46;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:46;}s:15:"ignoredLinesFor";a:1:{i:0;i:15;}s:17:"executableLinesIn";a:5:{i:24;i:3;i:28;i:4;i:33;i:5;i:38;i:6;i:43;i:7;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/64edb4975b341690f8d9a9e23774b5f1 b/.phpunit.cache/code-coverage/64edb4975b341690f8d9a9e23774b5f1 deleted file mode 100644 index 32eb2a8..0000000 --- a/.phpunit.cache/code-coverage/64edb4975b341690f8d9a9e23774b5f1 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:78:"CodebarAg\DocuWare\Requests\Authentication\OAuth\GetResponsibleIdentityService";a:6:{s:4:"name";s:29:"GetResponsibleIdentityService";s:14:"namespacedName";s:78:"CodebarAg\DocuWare\Requests\Authentication\OAuth\GetResponsibleIdentityService";s:9:"namespace";s:48:"CodebarAg\DocuWare\Requests\Authentication\OAuth";s:9:"startLine";i:11;s:7:"endLine";i:33;s:7:"methods";a:3:{s:15:"resolveEndpoint";a:6:{s:10:"methodName";s:15:"resolveEndpoint";s:9:"signature";s:25:"resolveEndpoint(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:15;s:7:"endLine";i:20;s:3:"ccn";i:1;}s:14:"defaultHeaders";a:6:{s:10:"methodName";s:14:"defaultHeaders";s:9:"signature";s:23:"defaultHeaders(): array";s:10:"visibility";s:6:"public";s:9:"startLine";i:22;s:7:"endLine";i:27;s:3:"ccn";i:1;}s:21:"createDtoFromResponse";a:6:{s:10:"methodName";s:21:"createDtoFromResponse";s:9:"signature";s:125:"createDtoFromResponse(Saloon\Http\Response $response): CodebarAg\DocuWare\DTO\Authentication\OAuth\ResponsibleIdentityService";s:10:"visibility";s:6:"public";s:9:"startLine";i:29;s:7:"endLine";i:32;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:34;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:34;}s:15:"ignoredLinesFor";a:1:{i:0;i:11;}s:17:"executableLinesIn";a:6:{i:17;i:2;i:19;i:3;i:24;i:4;i:25;i:4;i:26;i:4;i:31;i:5;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/6673ce8f4e1930fd0c44dca5b9a0a9ab b/.phpunit.cache/code-coverage/6673ce8f4e1930fd0c44dca5b9a0a9ab deleted file mode 100644 index 934daea..0000000 --- a/.phpunit.cache/code-coverage/6673ce8f4e1930fd0c44dca5b9a0a9ab +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:46:"CodebarAg\DocuWare\Exceptions\MethodNotAllowed";a:6:{s:4:"name";s:16:"MethodNotAllowed";s:14:"namespacedName";s:46:"CodebarAg\DocuWare\Exceptions\MethodNotAllowed";s:9:"namespace";s:29:"CodebarAg\DocuWare\Exceptions";s:9:"startLine";i:7;s:7:"endLine";i:13;s:7:"methods";a:1:{s:6:"create";a:6:{s:10:"methodName";s:6:"create";s:9:"signature";s:14:"create(): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:9;s:7:"endLine";i:12;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:14;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:14;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:1:{i:11;i:1;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/68058e328dc77969de8e1d7021d4ce39 b/.phpunit.cache/code-coverage/68058e328dc77969de8e1d7021d4ce39 deleted file mode 100644 index 1a3d965..0000000 --- a/.phpunit.cache/code-coverage/68058e328dc77969de8e1d7021d4ce39 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:44:"CodebarAg\DocuWare\Exceptions\UnableToLogout";a:6:{s:4:"name";s:14:"UnableToLogout";s:14:"namespacedName";s:44:"CodebarAg\DocuWare\Exceptions\UnableToLogout";s:9:"namespace";s:29:"CodebarAg\DocuWare\Exceptions";s:9:"startLine";i:7;s:7:"endLine";i:13;s:7:"methods";a:1:{s:6:"create";a:6:{s:10:"methodName";s:6:"create";s:9:"signature";s:14:"create(): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:9;s:7:"endLine";i:12;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:14;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:14;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:1:{i:11;i:1;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/68aae4265b8a6436dfc01583259f0fbe b/.phpunit.cache/code-coverage/68aae4265b8a6436dfc01583259f0fbe deleted file mode 100644 index f613fb6..0000000 --- a/.phpunit.cache/code-coverage/68aae4265b8a6436dfc01583259f0fbe +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:77:"CodebarAg\DocuWare\Responses\Documents\ModifyDocuments\DeleteDocumentResponse";a:6:{s:4:"name";s:22:"DeleteDocumentResponse";s:14:"namespacedName";s:77:"CodebarAg\DocuWare\Responses\Documents\ModifyDocuments\DeleteDocumentResponse";s:9:"namespace";s:54:"CodebarAg\DocuWare\Responses\Documents\ModifyDocuments";s:9:"startLine";i:9;s:7:"endLine";i:19;s:7:"methods";a:1:{s:12:"fromResponse";a:6:{s:10:"methodName";s:12:"fromResponse";s:9:"signature";s:66:"fromResponse(Saloon\Http\Response $response): Saloon\Http\Response";s:10:"visibility";s:6:"public";s:9:"startLine";i:11;s:7:"endLine";i:18;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:20;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:20;}s:15:"ignoredLinesFor";a:1:{i:0;i:9;}s:17:"executableLinesIn";a:3:{i:13;i:1;i:15;i:2;i:17;i:3;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/697a399b0d0644c70898b3d42160c607 b/.phpunit.cache/code-coverage/697a399b0d0644c70898b3d42160c607 deleted file mode 100644 index f6dd693..0000000 --- a/.phpunit.cache/code-coverage/697a399b0d0644c70898b3d42160c607 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:44:"CodebarAg\DocuWare\Support\EnsureValidCookie";a:6:{s:4:"name";s:17:"EnsureValidCookie";s:14:"namespacedName";s:44:"CodebarAg\DocuWare\Support\EnsureValidCookie";s:9:"namespace";s:26:"CodebarAg\DocuWare\Support";s:9:"startLine";i:13;s:7:"endLine";i:43;s:7:"methods";a:1:{s:5:"check";a:6:{s:10:"methodName";s:5:"check";s:9:"signature";s:13:"check(): void";s:10:"visibility";s:6:"public";s:9:"startLine";i:18;s:7:"endLine";i:42;s:3:"ccn";i:2;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:44;s:18:"commentLinesOfCode";i:3;s:21:"nonCommentLinesOfCode";i:41;}s:15:"ignoredLinesFor";a:1:{i:0;i:13;}s:17:"executableLinesIn";a:12:{i:20;i:1;i:21;i:2;i:24;i:3;i:26;i:4;i:28;i:5;i:30;i:6;i:32;i:7;i:34;i:8;i:36;i:9;i:38;i:10;i:39;i:11;i:41;i:12;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/6db9f133c633b79d9f7157e86a5f4bea b/.phpunit.cache/code-coverage/6db9f133c633b79d9f7157e86a5f4bea deleted file mode 100644 index bd2655a..0000000 --- a/.phpunit.cache/code-coverage/6db9f133c633b79d9f7157e86a5f4bea +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:41:"CodebarAg\DocuWare\DTO\Documents\Document";a:6:{s:4:"name";s:8:"Document";s:14:"namespacedName";s:41:"CodebarAg\DocuWare\DTO\Documents\Document";s:9:"namespace";s:32:"CodebarAg\DocuWare\DTO\Documents";s:9:"startLine";i:12;s:7:"endLine";i:140;s:7:"methods";a:11:{s:8:"fromJson";a:6:{s:10:"methodName";s:8:"fromJson";s:9:"signature";s:27:"fromJson(array $data): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:14;s:7:"endLine";i:38;s:3:"ccn";i:3;}s:13:"convertFields";a:6:{s:10:"methodName";s:13:"convertFields";s:9:"signature";s:83:"convertFields(Illuminate\Support\Collection $fields): Illuminate\Support\Collection";s:10:"visibility";s:9:"protected";s:9:"startLine";i:40;s:7:"endLine";i:45;s:3:"ccn";i:1;}s:18:"convertSuggestions";a:6:{s:10:"methodName";s:18:"convertSuggestions";s:9:"signature";s:94:"convertSuggestions(Illuminate\Support\Collection $suggestions): ?Illuminate\Support\Collection";s:10:"visibility";s:9:"protected";s:9:"startLine";i:47;s:7:"endLine";i:52;s:3:"ccn";i:1;}s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:299:"__construct(int $id, int $file_size, int $total_pages, string $title, ?string $extension, string $content_type, string $file_cabinet_id, ?string $intellixTrust, Carbon\Carbon $created_at, Carbon\Carbon $updated_at, ?Illuminate\Support\Collection $fields, ?Illuminate\Support\Collection $suggestions)";s:10:"visibility";s:6:"public";s:9:"startLine";i:54;s:7:"endLine";i:68;s:3:"ccn";i:1;}s:5:"isPdf";a:6:{s:10:"methodName";s:5:"isPdf";s:9:"signature";s:13:"isPdf(): bool";s:10:"visibility";s:6:"public";s:9:"startLine";i:70;s:7:"endLine";i:73;s:3:"ccn";i:1;}s:6:"isWord";a:6:{s:10:"methodName";s:6:"isWord";s:9:"signature";s:14:"isWord(): bool";s:10:"visibility";s:6:"public";s:9:"startLine";i:75;s:7:"endLine";i:81;s:3:"ccn";i:1;}s:7:"isExcel";a:6:{s:10:"methodName";s:7:"isExcel";s:9:"signature";s:15:"isExcel(): bool";s:10:"visibility";s:6:"public";s:9:"startLine";i:83;s:7:"endLine";i:86;s:3:"ccn";i:1;}s:7:"isImage";a:6:{s:10:"methodName";s:7:"isImage";s:9:"signature";s:15:"isImage(): bool";s:10:"visibility";s:6:"public";s:9:"startLine";i:88;s:7:"endLine";i:94;s:3:"ccn";i:1;}s:8:"isBinary";a:6:{s:10:"methodName";s:8:"isBinary";s:9:"signature";s:16:"isBinary(): bool";s:10:"visibility";s:6:"public";s:9:"startLine";i:96;s:7:"endLine";i:99;s:3:"ccn";i:1;}s:8:"fileName";a:6:{s:10:"methodName";s:8:"fileName";s:9:"signature";s:18:"fileName(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:101;s:7:"endLine";i:106;s:3:"ccn";i:1;}s:4:"fake";a:6:{s:10:"methodName";s:4:"fake";s:9:"signature";s:306:"fake(?int $id, ?int $file_size, ?int $total_pages, ?string $title, ?string $extension, ?string $content_type, ?string $file_cabinet_id, ?string $intellixTrust, ?Carbon\Carbon $created_at, ?Carbon\Carbon $updated_at, ?Illuminate\Support\Collection $fields, ?Illuminate\Support\Collection $suggestions): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:108;s:7:"endLine";i:139;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:141;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:141;}s:15:"ignoredLinesFor";a:1:{i:0;i:12;}s:17:"executableLinesIn";a:57:{i:16;i:1;i:17;i:2;i:18;i:3;i:20;i:4;i:21;i:5;i:22;i:6;i:24;i:7;i:25;i:7;i:26;i:7;i:27;i:7;i:28;i:7;i:29;i:7;i:30;i:7;i:31;i:7;i:32;i:7;i:33;i:7;i:34;i:7;i:35;i:7;i:36;i:7;i:37;i:7;i:42;i:8;i:44;i:8;i:43;i:9;i:49;i:10;i:51;i:10;i:50;i:11;i:68;i:12;i:72;i:13;i:77;i:14;i:78;i:14;i:79;i:14;i:80;i:14;i:85;i:15;i:90;i:16;i:91;i:16;i:92;i:16;i:93;i:16;i:98;i:17;i:103;i:18;i:105;i:19;i:122;i:20;i:123;i:20;i:124;i:20;i:125;i:20;i:126;i:20;i:127;i:20;i:128;i:20;i:129;i:20;i:130;i:20;i:131;i:20;i:132;i:20;i:133;i:20;i:134;i:20;i:135;i:20;i:136;i:20;i:137;i:20;i:138;i:20;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/704848a76c3966df6487227684d1b713 b/.phpunit.cache/code-coverage/704848a76c3966df6487227684d1b713 deleted file mode 100644 index 6af1722..0000000 --- a/.phpunit.cache/code-coverage/704848a76c3966df6487227684d1b713 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:0:{}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:11;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:11;}s:15:"ignoredLinesFor";a:0:{}s:17:"executableLinesIn";a:0:{}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/728ef8ceaf422a2c0b5472a968da1a97 b/.phpunit.cache/code-coverage/728ef8ceaf422a2c0b5472a968da1a97 deleted file mode 100644 index f0e87ac..0000000 --- a/.phpunit.cache/code-coverage/728ef8ceaf422a2c0b5472a968da1a97 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:84:"CodebarAg\DocuWare\Requests\FileCabinets\Search\GetASpecificDocumentFromAFileCabinet";a:6:{s:4:"name";s:36:"GetASpecificDocumentFromAFileCabinet";s:14:"namespacedName";s:84:"CodebarAg\DocuWare\Requests\FileCabinets\Search\GetASpecificDocumentFromAFileCabinet";s:9:"namespace";s:47:"CodebarAg\DocuWare\Requests\FileCabinets\Search";s:9:"startLine";i:15;s:7:"endLine";i:46;s:7:"methods";a:5:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:54:"__construct(string $fileCabinetId, string $documentId)";s:10:"visibility";s:6:"public";s:9:"startLine";i:21;s:7:"endLine";i:25;s:3:"ccn";i:1;}s:15:"resolveEndpoint";a:6:{s:10:"methodName";s:15:"resolveEndpoint";s:9:"signature";s:25:"resolveEndpoint(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:27;s:7:"endLine";i:30;s:3:"ccn";i:1;}s:18:"resolveCacheDriver";a:6:{s:10:"methodName";s:18:"resolveCacheDriver";s:9:"signature";s:67:"resolveCacheDriver(): Saloon\CachePlugin\Drivers\LaravelCacheDriver";s:10:"visibility";s:6:"public";s:9:"startLine";i:32;s:7:"endLine";i:35;s:3:"ccn";i:1;}s:20:"cacheExpiryInSeconds";a:6:{s:10:"methodName";s:20:"cacheExpiryInSeconds";s:9:"signature";s:27:"cacheExpiryInSeconds(): int";s:10:"visibility";s:6:"public";s:9:"startLine";i:37;s:7:"endLine";i:40;s:3:"ccn";i:1;}s:21:"createDtoFromResponse";a:6:{s:10:"methodName";s:21:"createDtoFromResponse";s:9:"signature";s:96:"createDtoFromResponse(Saloon\Http\Response $response): CodebarAg\DocuWare\DTO\Documents\Document";s:10:"visibility";s:6:"public";s:9:"startLine";i:42;s:7:"endLine";i:45;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:47;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:47;}s:15:"ignoredLinesFor";a:1:{i:0;i:15;}s:17:"executableLinesIn";a:5:{i:25;i:3;i:29;i:4;i:34;i:5;i:39;i:6;i:44;i:7;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/7452059d8b43eb32172482a980be1246 b/.phpunit.cache/code-coverage/7452059d8b43eb32172482a980be1246 deleted file mode 100644 index 7def15c..0000000 --- a/.phpunit.cache/code-coverage/7452059d8b43eb32172482a980be1246 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:37:"CodebarAg\DocuWare\Support\ParseValue";a:6:{s:4:"name";s:10:"ParseValue";s:14:"namespacedName";s:37:"CodebarAg\DocuWare\Support\ParseValue";s:9:"namespace";s:26:"CodebarAg\DocuWare\Support";s:9:"startLine";i:11;s:7:"endLine";i:61;s:7:"methods";a:4:{s:5:"field";a:6:{s:10:"methodName";s:5:"field";s:9:"signature";s:167:"field(?array $field, int|float|\Carbon\Carbon|string|\Illuminate\Support\Collection|null $default): null|int|float|\Carbon\Carbon|string|\Illuminate\Support\Collection";s:10:"visibility";s:6:"public";s:9:"startLine";i:13;s:7:"endLine";i:33;s:3:"ccn";i:3;}s:4:"date";a:6:{s:10:"methodName";s:4:"date";s:9:"signature";s:33:"date(string $date): Carbon\Carbon";s:10:"visibility";s:6:"public";s:9:"startLine";i:35;s:7:"endLine";i:43;s:3:"ccn";i:1;}s:5:"table";a:6:{s:10:"methodName";s:5:"table";s:9:"signature";s:50:"table(array $Item): ?Illuminate\Support\Collection";s:10:"visibility";s:6:"public";s:9:"startLine";i:45;s:7:"endLine";i:51;s:3:"ccn";i:1;}s:23:"documentIndexFieldTable";a:6:{s:10:"methodName";s:23:"documentIndexFieldTable";s:9:"signature";s:67:"documentIndexFieldTable(array $Row): ?Illuminate\Support\Collection";s:10:"visibility";s:6:"public";s:9:"startLine";i:53;s:7:"endLine";i:60;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:62;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:62;}s:15:"ignoredLinesFor";a:1:{i:0;i:11;}s:17:"executableLinesIn";a:26:{i:17;i:1;i:18;i:2;i:21;i:3;i:22;i:4;i:24;i:5;i:25;i:5;i:26;i:5;i:27;i:5;i:28;i:5;i:29;i:5;i:30;i:5;i:31;i:5;i:32;i:5;i:37;i:6;i:38;i:6;i:39;i:6;i:40;i:6;i:42;i:7;i:47;i:8;i:48;i:8;i:49;i:8;i:50;i:8;i:55;i:9;i:57;i:10;i:59;i:10;i:58;i:11;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/792112cad550b12c0027961e1d6eacec b/.phpunit.cache/code-coverage/792112cad550b12c0027961e1d6eacec deleted file mode 100644 index 6c78659..0000000 --- a/.phpunit.cache/code-coverage/792112cad550b12c0027961e1d6eacec +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:83:"CodebarAg\DocuWare\Requests\General\Organization\GetAllFileCabinetsAndDocumentTrays";a:6:{s:4:"name";s:34:"GetAllFileCabinetsAndDocumentTrays";s:14:"namespacedName";s:83:"CodebarAg\DocuWare\Requests\General\Organization\GetAllFileCabinetsAndDocumentTrays";s:9:"namespace";s:48:"CodebarAg\DocuWare\Requests\General\Organization";s:9:"startLine";i:16;s:7:"endLine";i:56;s:7:"methods";a:6:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:36:"__construct(?string $organizationId)";s:10:"visibility";s:6:"public";s:9:"startLine";i:25;s:7:"endLine";i:28;s:3:"ccn";i:1;}s:15:"resolveEndpoint";a:6:{s:10:"methodName";s:15:"resolveEndpoint";s:9:"signature";s:25:"resolveEndpoint(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:30;s:7:"endLine";i:33;s:3:"ccn";i:1;}s:12:"defaultQuery";a:6:{s:10:"methodName";s:12:"defaultQuery";s:9:"signature";s:21:"defaultQuery(): array";s:10:"visibility";s:9:"protected";s:9:"startLine";i:35;s:7:"endLine";i:40;s:3:"ccn";i:1;}s:18:"resolveCacheDriver";a:6:{s:10:"methodName";s:18:"resolveCacheDriver";s:9:"signature";s:67:"resolveCacheDriver(): Saloon\CachePlugin\Drivers\LaravelCacheDriver";s:10:"visibility";s:6:"public";s:9:"startLine";i:42;s:7:"endLine";i:45;s:3:"ccn";i:1;}s:20:"cacheExpiryInSeconds";a:6:{s:10:"methodName";s:20:"cacheExpiryInSeconds";s:9:"signature";s:27:"cacheExpiryInSeconds(): int";s:10:"visibility";s:6:"public";s:9:"startLine";i:47;s:7:"endLine";i:50;s:3:"ccn";i:1;}s:21:"createDtoFromResponse";a:6:{s:10:"methodName";s:21:"createDtoFromResponse";s:9:"signature";s:116:"createDtoFromResponse(Saloon\Http\Response $response): \Illuminate\Support\Collection|\Illuminate\Support\Enumerable";s:10:"visibility";s:6:"public";s:9:"startLine";i:52;s:7:"endLine";i:55;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:57;s:18:"commentLinesOfCode";i:3;s:21:"nonCommentLinesOfCode";i:54;}s:15:"ignoredLinesFor";a:1:{i:0;i:16;}s:17:"executableLinesIn";a:8:{i:28;i:3;i:32;i:4;i:37;i:5;i:38;i:5;i:39;i:5;i:44;i:6;i:49;i:7;i:54;i:8;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/7e41f3446b1a03209c6ea8004a6baaab b/.phpunit.cache/code-coverage/7e41f3446b1a03209c6ea8004a6baaab deleted file mode 100644 index cff0f7f..0000000 --- a/.phpunit.cache/code-coverage/7e41f3446b1a03209c6ea8004a6baaab +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:55:"CodebarAg\DocuWare\Requests\Sections\GetSectionsRequest";a:6:{s:4:"name";s:18:"GetSectionsRequest";s:14:"namespacedName";s:55:"CodebarAg\DocuWare\Requests\Sections\GetSectionsRequest";s:9:"namespace";s:36:"CodebarAg\DocuWare\Requests\Sections";s:9:"startLine";i:16;s:7:"endLine";i:54;s:7:"methods";a:6:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:51:"__construct(string $fileCabinetId, int $documentId)";s:10:"visibility";s:6:"public";s:9:"startLine";i:22;s:7:"endLine";i:26;s:3:"ccn";i:1;}s:15:"resolveEndpoint";a:6:{s:10:"methodName";s:15:"resolveEndpoint";s:9:"signature";s:25:"resolveEndpoint(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:28;s:7:"endLine";i:31;s:3:"ccn";i:1;}s:12:"defaultQuery";a:6:{s:10:"methodName";s:12:"defaultQuery";s:9:"signature";s:21:"defaultQuery(): array";s:10:"visibility";s:6:"public";s:9:"startLine";i:33;s:7:"endLine";i:38;s:3:"ccn";i:1;}s:18:"resolveCacheDriver";a:6:{s:10:"methodName";s:18:"resolveCacheDriver";s:9:"signature";s:67:"resolveCacheDriver(): Saloon\CachePlugin\Drivers\LaravelCacheDriver";s:10:"visibility";s:6:"public";s:9:"startLine";i:40;s:7:"endLine";i:43;s:3:"ccn";i:1;}s:20:"cacheExpiryInSeconds";a:6:{s:10:"methodName";s:20:"cacheExpiryInSeconds";s:9:"signature";s:27:"cacheExpiryInSeconds(): int";s:10:"visibility";s:6:"public";s:9:"startLine";i:45;s:7:"endLine";i:48;s:3:"ccn";i:1;}s:21:"createDtoFromResponse";a:6:{s:10:"methodName";s:21:"createDtoFromResponse";s:9:"signature";s:116:"createDtoFromResponse(Saloon\Http\Response $response): \Illuminate\Support\Collection|\Illuminate\Support\Enumerable";s:10:"visibility";s:6:"public";s:9:"startLine";i:50;s:7:"endLine";i:53;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:55;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:55;}s:15:"ignoredLinesFor";a:1:{i:0;i:16;}s:17:"executableLinesIn";a:8:{i:26;i:3;i:30;i:4;i:35;i:5;i:36;i:5;i:37;i:5;i:42;i:6;i:47;i:7;i:52;i:8;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/8207d7f799d6c56b917a08d66eb5da88 b/.phpunit.cache/code-coverage/8207d7f799d6c56b917a08d66eb5da88 deleted file mode 100644 index ec27ffd..0000000 --- a/.phpunit.cache/code-coverage/8207d7f799d6c56b917a08d66eb5da88 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:68:"CodebarAg\DocuWare\Requests\Documents\ModifyDocuments\DeleteDocument";a:6:{s:4:"name";s:14:"DeleteDocument";s:14:"namespacedName";s:68:"CodebarAg\DocuWare\Requests\Documents\ModifyDocuments\DeleteDocument";s:9:"namespace";s:53:"CodebarAg\DocuWare\Requests\Documents\ModifyDocuments";s:9:"startLine";i:10;s:7:"endLine";i:29;s:7:"methods";a:3:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:54:"__construct(string $fileCabinetId, string $documentId)";s:10:"visibility";s:6:"public";s:9:"startLine";i:14;s:7:"endLine";i:18;s:3:"ccn";i:1;}s:15:"resolveEndpoint";a:6:{s:10:"methodName";s:15:"resolveEndpoint";s:9:"signature";s:25:"resolveEndpoint(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:20;s:7:"endLine";i:23;s:3:"ccn";i:1;}s:21:"createDtoFromResponse";a:6:{s:10:"methodName";s:21:"createDtoFromResponse";s:9:"signature";s:75:"createDtoFromResponse(Saloon\Http\Response $response): Saloon\Http\Response";s:10:"visibility";s:6:"public";s:9:"startLine";i:25;s:7:"endLine";i:28;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:30;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:30;}s:15:"ignoredLinesFor";a:1:{i:0;i:10;}s:17:"executableLinesIn";a:3:{i:18;i:2;i:22;i:3;i:27;i:4;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/82e7e6127d61c8233fb9a479042803c0 b/.phpunit.cache/code-coverage/82e7e6127d61c8233fb9a479042803c0 deleted file mode 100644 index 3c2038f..0000000 --- a/.phpunit.cache/code-coverage/82e7e6127d61c8233fb9a479042803c0 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:42:"CodebarAg\DocuWare\DocuWareServiceProvider";a:6:{s:4:"name";s:23:"DocuWareServiceProvider";s:14:"namespacedName";s:42:"CodebarAg\DocuWare\DocuWareServiceProvider";s:9:"namespace";s:18:"CodebarAg\DocuWare";s:9:"startLine";i:9;s:7:"endLine";i:18;s:7:"methods";a:1:{s:16:"configurePackage";a:6:{s:10:"methodName";s:16:"configurePackage";s:9:"signature";s:67:"configurePackage(Spatie\LaravelPackageTools\Package $package): void";s:10:"visibility";s:6:"public";s:9:"startLine";i:11;s:7:"endLine";i:17;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:19;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:19;}s:15:"ignoredLinesFor";a:1:{i:0;i:9;}s:17:"executableLinesIn";a:4:{i:13;i:1;i:14;i:1;i:15;i:1;i:16;i:1;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/8718c6e78f5f210bc30c06acec482ca5 b/.phpunit.cache/code-coverage/8718c6e78f5f210bc30c06acec482ca5 deleted file mode 100644 index 3760597..0000000 --- a/.phpunit.cache/code-coverage/8718c6e78f5f210bc30c06acec482ca5 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:50:"CodebarAg\DocuWare\DTO\Documents\DocumentThumbnail";a:6:{s:4:"name";s:17:"DocumentThumbnail";s:14:"namespacedName";s:50:"CodebarAg\DocuWare\DTO\Documents\DocumentThumbnail";s:9:"namespace";s:32:"CodebarAg\DocuWare\DTO\Documents";s:9:"startLine";i:7;s:7:"endLine";i:27;s:7:"methods";a:2:{s:8:"fromData";a:6:{s:10:"methodName";s:8:"fromData";s:9:"signature";s:27:"fromData(array $data): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:9;s:7:"endLine";i:19;s:3:"ccn";i:1;}s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:55:"__construct(string $mime, string $data, string $base64)";s:10:"visibility";s:6:"public";s:9:"startLine";i:21;s:7:"endLine";i:26;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:28;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:28;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:8:{i:11;i:1;i:12;i:2;i:14;i:3;i:15;i:3;i:16;i:3;i:17;i:3;i:18;i:3;i:26;i:4;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/879415eca58ba4f8bdb1d64313e1edd8 b/.phpunit.cache/code-coverage/879415eca58ba4f8bdb1d64313e1edd8 deleted file mode 100644 index 5b015ea..0000000 --- a/.phpunit.cache/code-coverage/879415eca58ba4f8bdb1d64313e1edd8 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:55:"CodebarAg\DocuWare\Exceptions\UnableToDownloadDocuments";a:6:{s:4:"name";s:25:"UnableToDownloadDocuments";s:14:"namespacedName";s:55:"CodebarAg\DocuWare\Exceptions\UnableToDownloadDocuments";s:9:"namespace";s:29:"CodebarAg\DocuWare\Exceptions";s:9:"startLine";i:7;s:7:"endLine";i:13;s:7:"methods";a:1:{s:25:"selectAtLeastTwoDocuments";a:6:{s:10:"methodName";s:25:"selectAtLeastTwoDocuments";s:9:"signature";s:33:"selectAtLeastTwoDocuments(): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:9;s:7:"endLine";i:12;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:14;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:14;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:1:{i:11;i:1;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/881b22a1060c5716383664394eef75b5 b/.phpunit.cache/code-coverage/881b22a1060c5716383664394eef75b5 deleted file mode 100644 index 8de17f9..0000000 --- a/.phpunit.cache/code-coverage/881b22a1060c5716383664394eef75b5 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:71:"CodebarAg\DocuWare\Responses\FileCabinets\Dialogs\GetAllDialogsResponse";a:6:{s:4:"name";s:21:"GetAllDialogsResponse";s:14:"namespacedName";s:71:"CodebarAg\DocuWare\Responses\FileCabinets\Dialogs\GetAllDialogsResponse";s:9:"namespace";s:49:"CodebarAg\DocuWare\Responses\FileCabinets\Dialogs";s:9:"startLine";i:12;s:7:"endLine";i:24;s:7:"methods";a:1:{s:12:"fromResponse";a:6:{s:10:"methodName";s:12:"fromResponse";s:9:"signature";s:107:"fromResponse(Saloon\Http\Response $response): \Illuminate\Support\Collection|\Illuminate\Support\Enumerable";s:10:"visibility";s:6:"public";s:9:"startLine";i:14;s:7:"endLine";i:23;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:25;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:25;}s:15:"ignoredLinesFor";a:1:{i:0;i:12;}s:17:"executableLinesIn";a:4:{i:16;i:1;i:18;i:2;i:20;i:3;i:22;i:4;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/889d4d51d97149d175ad12bcae1846e6 b/.phpunit.cache/code-coverage/889d4d51d97149d175ad12bcae1846e6 deleted file mode 100644 index 020e38b..0000000 --- a/.phpunit.cache/code-coverage/889d4d51d97149d175ad12bcae1846e6 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:49:"CodebarAg\DocuWare\Exceptions\UnableToMakeRequest";a:6:{s:4:"name";s:19:"UnableToMakeRequest";s:14:"namespacedName";s:49:"CodebarAg\DocuWare\Exceptions\UnableToMakeRequest";s:9:"namespace";s:29:"CodebarAg\DocuWare\Exceptions";s:9:"startLine";i:7;s:7:"endLine";i:15;s:7:"methods";a:1:{s:6:"create";a:6:{s:10:"methodName";s:6:"create";s:9:"signature";s:14:"create(): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:9;s:7:"endLine";i:14;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:16;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:16;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:3:{i:11;i:1;i:12;i:1;i:13;i:1;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/8b1288dfaffdb2a49717dcf08608ddb9 b/.phpunit.cache/code-coverage/8b1288dfaffdb2a49717dcf08608ddb9 deleted file mode 100644 index bbaeeb3..0000000 --- a/.phpunit.cache/code-coverage/8b1288dfaffdb2a49717dcf08608ddb9 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:49:"CodebarAg\DocuWare\Support\EnsureValidCredentials";a:6:{s:4:"name";s:22:"EnsureValidCredentials";s:14:"namespacedName";s:49:"CodebarAg\DocuWare\Support\EnsureValidCredentials";s:9:"namespace";s:26:"CodebarAg\DocuWare\Support";s:9:"startLine";i:9;s:7:"endLine";i:29;s:7:"methods";a:1:{s:5:"check";a:6:{s:10:"methodName";s:5:"check";s:9:"signature";s:13:"check(): void";s:10:"visibility";s:6:"public";s:9:"startLine";i:11;s:7:"endLine";i:28;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:30;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:30;}s:15:"ignoredLinesFor";a:1:{i:0;i:9;}s:17:"executableLinesIn";a:12:{i:13;i:1;i:14;i:1;i:15;i:1;i:16;i:1;i:18;i:2;i:19;i:2;i:20;i:2;i:21;i:2;i:23;i:3;i:24;i:3;i:25;i:3;i:26;i:3;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/8bc9fc771f649ff1cea550714b157d2d b/.phpunit.cache/code-coverage/8bc9fc771f649ff1cea550714b157d2d deleted file mode 100644 index 0d607aa..0000000 --- a/.phpunit.cache/code-coverage/8bc9fc771f649ff1cea550714b157d2d +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:47:"CodebarAg\DocuWare\Connectors\DocuWareConnector";a:6:{s:4:"name";s:17:"DocuWareConnector";s:14:"namespacedName";s:47:"CodebarAg\DocuWare\Connectors\DocuWareConnector";s:9:"namespace";s:29:"CodebarAg\DocuWare\Connectors";s:9:"startLine";i:8;s:7:"endLine";i:34;s:7:"methods";a:4:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:27:"__construct(?string $token)";s:10:"visibility";s:6:"public";s:9:"startLine";i:10;s:7:"endLine";i:13;s:3:"ccn";i:1;}s:14:"resolveBaseUrl";a:6:{s:10:"methodName";s:14:"resolveBaseUrl";s:9:"signature";s:24:"resolveBaseUrl(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:18;s:7:"endLine";i:21;s:3:"ccn";i:1;}s:14:"defaultHeaders";a:6:{s:10:"methodName";s:14:"defaultHeaders";s:9:"signature";s:23:"defaultHeaders(): array";s:10:"visibility";s:6:"public";s:9:"startLine";i:23;s:7:"endLine";i:28;s:3:"ccn";i:1;}s:11:"defaultAuth";a:6:{s:10:"methodName";s:11:"defaultAuth";s:9:"signature";s:50:"defaultAuth(): Saloon\Http\Auth\TokenAuthenticator";s:10:"visibility";s:9:"protected";s:9:"startLine";i:30;s:7:"endLine";i:33;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:35;s:18:"commentLinesOfCode";i:3;s:21:"nonCommentLinesOfCode";i:32;}s:15:"ignoredLinesFor";a:1:{i:0;i:8;}s:17:"executableLinesIn";a:6:{i:13;i:1;i:20;i:2;i:25;i:3;i:26;i:3;i:27;i:3;i:32;i:4;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/956d36622a37786f8f11120562d87df9 b/.phpunit.cache/code-coverage/956d36622a37786f8f11120562d87df9 deleted file mode 100644 index 186ce72..0000000 --- a/.phpunit.cache/code-coverage/956d36622a37786f8f11120562d87df9 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:44:"CodebarAg\DocuWare\Exceptions\UnableToSearch";a:6:{s:4:"name";s:14:"UnableToSearch";s:14:"namespacedName";s:44:"CodebarAg\DocuWare\Exceptions\UnableToSearch";s:9:"namespace";s:29:"CodebarAg\DocuWare\Exceptions";s:9:"startLine";i:7;s:7:"endLine";i:48;s:7:"methods";a:5:{s:13:"cabinetNotSet";a:6:{s:10:"methodName";s:13:"cabinetNotSet";s:9:"signature";s:21:"cabinetNotSet(): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:9;s:7:"endLine";i:15;s:3:"ccn";i:1;}s:17:"invalidPageNumber";a:6:{s:10:"methodName";s:17:"invalidPageNumber";s:9:"signature";s:34:"invalidPageNumber(int $page): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:17;s:7:"endLine";i:23;s:3:"ccn";i:1;}s:20:"invalidPerPageNumber";a:6:{s:10:"methodName";s:20:"invalidPerPageNumber";s:9:"signature";s:40:"invalidPerPageNumber(int $perPage): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:25;s:7:"endLine";i:32;s:3:"ccn";i:1;}s:23:"InvalidDateFiltersCount";a:6:{s:10:"methodName";s:23:"InvalidDateFiltersCount";s:9:"signature";s:41:"InvalidDateFiltersCount(int $count): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:34;s:7:"endLine";i:40;s:3:"ccn";i:1;}s:23:"DivergedDateFilterRange";a:6:{s:10:"methodName";s:23:"DivergedDateFilterRange";s:9:"signature";s:31:"DivergedDateFilterRange(): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:42;s:7:"endLine";i:47;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:49;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:49;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:18:{i:11;i:1;i:12;i:1;i:13;i:1;i:14;i:1;i:19;i:2;i:20;i:2;i:21;i:2;i:22;i:2;i:27;i:3;i:28;i:3;i:29;i:3;i:31;i:3;i:36;i:4;i:37;i:4;i:39;i:4;i:44;i:5;i:45;i:5;i:46;i:5;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/95de2d2cb5fc6145784ddeff708c16b2 b/.phpunit.cache/code-coverage/95de2d2cb5fc6145784ddeff708c16b2 deleted file mode 100644 index 776eb9d..0000000 --- a/.phpunit.cache/code-coverage/95de2d2cb5fc6145784ddeff708c16b2 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:61:"CodebarAg\DocuWare\DTO\General\Organization\OrganizationIndex";a:6:{s:4:"name";s:17:"OrganizationIndex";s:14:"namespacedName";s:61:"CodebarAg\DocuWare\DTO\General\Organization\OrganizationIndex";s:9:"namespace";s:43:"CodebarAg\DocuWare\DTO\General\Organization";s:9:"startLine";i:8;s:7:"endLine";i:37;s:7:"methods";a:3:{s:8:"fromJson";a:6:{s:10:"methodName";s:8:"fromJson";s:9:"signature";s:27:"fromJson(array $data): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:10;s:7:"endLine";i:17;s:3:"ccn";i:1;}s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:52:"__construct(string $id, string $name, ?string $guid)";s:10:"visibility";s:6:"public";s:9:"startLine";i:19;s:7:"endLine";i:24;s:3:"ccn";i:1;}s:4:"fake";a:6:{s:10:"methodName";s:4:"fake";s:9:"signature";s:53:"fake(?string $id, ?string $name, ?string $guid): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:26;s:7:"endLine";i:36;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:38;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:38;}s:15:"ignoredLinesFor";a:1:{i:0;i:8;}s:17:"executableLinesIn";a:11:{i:12;i:1;i:13;i:1;i:14;i:1;i:15;i:1;i:16;i:1;i:24;i:2;i:31;i:3;i:32;i:3;i:33;i:3;i:34;i:3;i:35;i:3;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/9a444824bb7c3e7cfdce88cf44141643 b/.phpunit.cache/code-coverage/9a444824bb7c3e7cfdce88cf44141643 deleted file mode 100644 index 49f4070..0000000 --- a/.phpunit.cache/code-coverage/9a444824bb7c3e7cfdce88cf44141643 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:46:"CodebarAg\DocuWare\Support\EnsureValidResponse";a:6:{s:4:"name";s:19:"EnsureValidResponse";s:14:"namespacedName";s:46:"CodebarAg\DocuWare\Support\EnsureValidResponse";s:9:"namespace";s:26:"CodebarAg\DocuWare\Support";s:9:"startLine";i:11;s:7:"endLine";i:37;s:7:"methods";a:1:{s:4:"from";a:6:{s:10:"methodName";s:4:"from";s:9:"signature";s:76:"from(\Illuminate\Http\Client\Response|\Saloon\Http\Response $response): void";s:10:"visibility";s:6:"public";s:9:"startLine";i:13;s:7:"endLine";i:36;s:3:"ccn";i:3;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:38;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:38;}s:15:"ignoredLinesFor";a:1:{i:0;i:11;}s:17:"executableLinesIn";a:16:{i:15;i:1;i:16;i:2;i:19;i:3;i:20;i:3;i:21;i:3;i:22;i:3;i:24;i:4;i:25;i:5;i:28;i:6;i:29;i:6;i:30;i:6;i:31;i:6;i:32;i:6;i:33;i:6;i:34;i:6;i:35;i:6;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/9ab62ca885f00c6c9e52fe2a413a2cdd b/.phpunit.cache/code-coverage/9ab62ca885f00c6c9e52fe2a413a2cdd deleted file mode 100644 index c22b210..0000000 --- a/.phpunit.cache/code-coverage/9ab62ca885f00c6c9e52fe2a413a2cdd +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:72:"CodebarAg\DocuWare\Responses\Documents\Download\DownloadDocumentResponse";a:6:{s:4:"name";s:24:"DownloadDocumentResponse";s:14:"namespacedName";s:72:"CodebarAg\DocuWare\Responses\Documents\Download\DownloadDocumentResponse";s:9:"namespace";s:47:"CodebarAg\DocuWare\Responses\Documents\Download";s:9:"startLine";i:9;s:7:"endLine";i:19;s:7:"methods";a:1:{s:12:"fromResponse";a:6:{s:10:"methodName";s:12:"fromResponse";s:9:"signature";s:52:"fromResponse(Saloon\Http\Response $response): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:11;s:7:"endLine";i:18;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:20;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:20;}s:15:"ignoredLinesFor";a:1:{i:0;i:9;}s:17:"executableLinesIn";a:3:{i:13;i:1;i:15;i:2;i:17;i:3;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/9de7d632e47a04e65054a329852e3cae b/.phpunit.cache/code-coverage/9de7d632e47a04e65054a329852e3cae deleted file mode 100644 index c0f651e..0000000 --- a/.phpunit.cache/code-coverage/9de7d632e47a04e65054a329852e3cae +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:70:"CodebarAg\DocuWare\Responses\Authentication\OAuth\RequestTokenResponse";a:6:{s:4:"name";s:20:"RequestTokenResponse";s:14:"namespacedName";s:70:"CodebarAg\DocuWare\Responses\Authentication\OAuth\RequestTokenResponse";s:9:"namespace";s:49:"CodebarAg\DocuWare\Responses\Authentication\OAuth";s:9:"startLine";i:10;s:7:"endLine";i:20;s:7:"methods";a:1:{s:12:"fromResponse";a:6:{s:10:"methodName";s:12:"fromResponse";s:9:"signature";s:102:"fromResponse(Saloon\Http\Response $response): CodebarAg\DocuWare\DTO\Authentication\OAuth\RequestToken";s:10:"visibility";s:6:"public";s:9:"startLine";i:12;s:7:"endLine";i:19;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:21;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:21;}s:15:"ignoredLinesFor";a:1:{i:0;i:10;}s:17:"executableLinesIn";a:3:{i:14;i:1;i:16;i:2;i:18;i:3;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/9f674e47053b54d26c6596b486fa7bc6 b/.phpunit.cache/code-coverage/9f674e47053b54d26c6596b486fa7bc6 deleted file mode 100644 index 960560e..0000000 --- a/.phpunit.cache/code-coverage/9f674e47053b54d26c6596b486fa7bc6 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:31:"CodebarAg\DocuWare\DTO\ErrorBag";a:6:{s:4:"name";s:8:"ErrorBag";s:14:"namespacedName";s:31:"CodebarAg\DocuWare\DTO\ErrorBag";s:9:"namespace";s:22:"CodebarAg\DocuWare\DTO";s:9:"startLine";i:7;s:7:"endLine";i:22;s:7:"methods";a:2:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:39:"__construct(int $code, string $message)";s:10:"visibility";s:6:"public";s:9:"startLine";i:9;s:7:"endLine";i:13;s:3:"ccn";i:1;}s:4:"make";a:6:{s:10:"methodName";s:4:"make";s:9:"signature";s:24:"make(Exception $e): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:15;s:7:"endLine";i:21;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:23;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:23;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:5:{i:13;i:1;i:17;i:2;i:18;i:2;i:19;i:2;i:20;i:2;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/a55b2e837b41045969ad1e8e9c9494eb b/.phpunit.cache/code-coverage/a55b2e837b41045969ad1e8e9c9494eb deleted file mode 100644 index 3ef5a53..0000000 --- a/.phpunit.cache/code-coverage/a55b2e837b41045969ad1e8e9c9494eb +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:55:"CodebarAg\DocuWare\Exceptions\UnableToFindUrlCredential";a:6:{s:4:"name";s:25:"UnableToFindUrlCredential";s:14:"namespacedName";s:55:"CodebarAg\DocuWare\Exceptions\UnableToFindUrlCredential";s:9:"namespace";s:29:"CodebarAg\DocuWare\Exceptions";s:9:"startLine";i:7;s:7:"endLine";i:13;s:7:"methods";a:1:{s:6:"create";a:6:{s:10:"methodName";s:6:"create";s:9:"signature";s:14:"create(): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:9;s:7:"endLine";i:12;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:14;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:14;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:1:{i:11;i:1;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/a5efeaf0253082fae5ca9a1e574b8fd7 b/.phpunit.cache/code-coverage/a5efeaf0253082fae5ca9a1e574b8fd7 deleted file mode 100644 index 624befd..0000000 --- a/.phpunit.cache/code-coverage/a5efeaf0253082fae5ca9a1e574b8fd7 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:76:"CodebarAg\DocuWare\Requests\FileCabinets\Search\GetDocumentsFromAFileCabinet";a:6:{s:4:"name";s:28:"GetDocumentsFromAFileCabinet";s:14:"namespacedName";s:76:"CodebarAg\DocuWare\Requests\FileCabinets\Search\GetDocumentsFromAFileCabinet";s:9:"namespace";s:47:"CodebarAg\DocuWare\Requests\FileCabinets\Search";s:9:"startLine";i:15;s:7:"endLine";i:55;s:7:"methods";a:6:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:59:"__construct(string $fileCabinetId, int $page, int $perPage)";s:10:"visibility";s:6:"public";s:9:"startLine";i:21;s:7:"endLine";i:26;s:3:"ccn";i:1;}s:12:"defaultQuery";a:6:{s:10:"methodName";s:12:"defaultQuery";s:9:"signature";s:21:"defaultQuery(): array";s:10:"visibility";s:6:"public";s:9:"startLine";i:28;s:7:"endLine";i:34;s:3:"ccn";i:1;}s:15:"resolveEndpoint";a:6:{s:10:"methodName";s:15:"resolveEndpoint";s:9:"signature";s:25:"resolveEndpoint(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:36;s:7:"endLine";i:39;s:3:"ccn";i:1;}s:18:"resolveCacheDriver";a:6:{s:10:"methodName";s:18:"resolveCacheDriver";s:9:"signature";s:67:"resolveCacheDriver(): Saloon\CachePlugin\Drivers\LaravelCacheDriver";s:10:"visibility";s:6:"public";s:9:"startLine";i:41;s:7:"endLine";i:44;s:3:"ccn";i:1;}s:20:"cacheExpiryInSeconds";a:6:{s:10:"methodName";s:20:"cacheExpiryInSeconds";s:9:"signature";s:27:"cacheExpiryInSeconds(): int";s:10:"visibility";s:6:"public";s:9:"startLine";i:46;s:7:"endLine";i:49;s:3:"ccn";i:1;}s:21:"createDtoFromResponse";a:6:{s:10:"methodName";s:21:"createDtoFromResponse";s:9:"signature";s:105:"createDtoFromResponse(Saloon\Http\Response $response): CodebarAg\DocuWare\DTO\Documents\DocumentPaginator";s:10:"visibility";s:6:"public";s:9:"startLine";i:51;s:7:"endLine";i:54;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:56;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:56;}s:15:"ignoredLinesFor";a:1:{i:0;i:15;}s:17:"executableLinesIn";a:9:{i:26;i:3;i:30;i:4;i:31;i:4;i:32;i:4;i:33;i:4;i:38;i:5;i:43;i:6;i:48;i:7;i:53;i:8;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/a8f71c6d966c45444d57d459d9bf83fd b/.phpunit.cache/code-coverage/a8f71c6d966c45444d57d459d9bf83fd deleted file mode 100644 index f959e00..0000000 --- a/.phpunit.cache/code-coverage/a8f71c6d966c45444d57d459d9bf83fd +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:45:"CodebarAg\DocuWare\Exceptions\UnableToMakeUrl";a:6:{s:4:"name";s:15:"UnableToMakeUrl";s:14:"namespacedName";s:45:"CodebarAg\DocuWare\Exceptions\UnableToMakeUrl";s:9:"namespace";s:29:"CodebarAg\DocuWare\Exceptions";s:9:"startLine";i:7;s:7:"endLine";i:24;s:7:"methods";a:2:{s:14:"documentNotSet";a:6:{s:10:"methodName";s:14:"documentNotSet";s:9:"signature";s:22:"documentNotSet(): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:9;s:7:"endLine";i:15;s:3:"ccn";i:1;}s:12:"sourceNotSet";a:6:{s:10:"methodName";s:12:"sourceNotSet";s:9:"signature";s:20:"sourceNotSet(): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:17;s:7:"endLine";i:23;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:25;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:25;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:8:{i:11;i:1;i:12;i:1;i:13;i:1;i:14;i:1;i:19;i:2;i:20;i:2;i:21;i:2;i:22;i:2;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/aa4b90b7bb79b44b2521396f7009319a b/.phpunit.cache/code-coverage/aa4b90b7bb79b44b2521396f7009319a deleted file mode 100644 index 71fd438..0000000 --- a/.phpunit.cache/code-coverage/aa4b90b7bb79b44b2521396f7009319a +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:62:"CodebarAg\DocuWare\DTO\Documents\DocumentIndex\IndexDecimalDTO";a:6:{s:4:"name";s:15:"IndexDecimalDTO";s:14:"namespacedName";s:62:"CodebarAg\DocuWare\DTO\Documents\DocumentIndex\IndexDecimalDTO";s:9:"namespace";s:46:"CodebarAg\DocuWare\DTO\Documents\DocumentIndex";s:9:"startLine";i:5;s:7:"endLine";i:27;s:7:"methods";a:3:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:48:"__construct(string $name, null|int|float $value)";s:10:"visibility";s:6:"public";s:9:"startLine";i:7;s:7:"endLine";i:12;s:3:"ccn";i:1;}s:4:"make";a:6:{s:10:"methodName";s:4:"make";s:9:"signature";s:47:"make(string $name, null|int|float $value): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:14;s:7:"endLine";i:17;s:3:"ccn";i:1;}s:6:"values";a:6:{s:10:"methodName";s:6:"values";s:9:"signature";s:15:"values(): array";s:10:"visibility";s:6:"public";s:9:"startLine";i:19;s:7:"endLine";i:26;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:28;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:28;}s:15:"ignoredLinesFor";a:1:{i:0;i:5;}s:17:"executableLinesIn";a:7:{i:12;i:1;i:16;i:2;i:21;i:3;i:22;i:3;i:23;i:3;i:24;i:3;i:25;i:3;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/aca78b0e2b63e04f1ece3a29bf2b619b b/.phpunit.cache/code-coverage/aca78b0e2b63e04f1ece3a29bf2b619b deleted file mode 100644 index 9faac25..0000000 --- a/.phpunit.cache/code-coverage/aca78b0e2b63e04f1ece3a29bf2b619b +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:92:"CodebarAg\DocuWare\Responses\General\Organization\GetAllFileCabinetsAndDocumentTraysResponse";a:6:{s:4:"name";s:42:"GetAllFileCabinetsAndDocumentTraysResponse";s:14:"namespacedName";s:92:"CodebarAg\DocuWare\Responses\General\Organization\GetAllFileCabinetsAndDocumentTraysResponse";s:9:"namespace";s:49:"CodebarAg\DocuWare\Responses\General\Organization";s:9:"startLine";i:12;s:7:"endLine";i:24;s:7:"methods";a:1:{s:12:"fromResponse";a:6:{s:10:"methodName";s:12:"fromResponse";s:9:"signature";s:107:"fromResponse(Saloon\Http\Response $response): \Illuminate\Support\Collection|\Illuminate\Support\Enumerable";s:10:"visibility";s:6:"public";s:9:"startLine";i:14;s:7:"endLine";i:23;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:25;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:25;}s:15:"ignoredLinesFor";a:1:{i:0;i:12;}s:17:"executableLinesIn";a:4:{i:16;i:1;i:18;i:2;i:20;i:3;i:22;i:4;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/af3972cfcd0a162321f7c040bccd3a51 b/.phpunit.cache/code-coverage/af3972cfcd0a162321f7c040bccd3a51 deleted file mode 100644 index 8c85620..0000000 --- a/.phpunit.cache/code-coverage/af3972cfcd0a162321f7c040bccd3a51 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:64:"CodebarAg\DocuWare\Requests\Documents\Download\DownloadThumbnail";a:6:{s:4:"name";s:17:"DownloadThumbnail";s:14:"namespacedName";s:64:"CodebarAg\DocuWare\Requests\Documents\Download\DownloadThumbnail";s:9:"namespace";s:46:"CodebarAg\DocuWare\Requests\Documents\Download";s:9:"startLine";i:14;s:7:"endLine";i:53;s:7:"methods";a:6:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:66:"__construct(string $fileCabinetId, string $thumbnailId, int $page)";s:10:"visibility";s:6:"public";s:9:"startLine";i:20;s:7:"endLine";i:25;s:3:"ccn";i:1;}s:15:"resolveEndpoint";a:6:{s:10:"methodName";s:15:"resolveEndpoint";s:9:"signature";s:25:"resolveEndpoint(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:27;s:7:"endLine";i:30;s:3:"ccn";i:1;}s:18:"resolveCacheDriver";a:6:{s:10:"methodName";s:18:"resolveCacheDriver";s:9:"signature";s:67:"resolveCacheDriver(): Saloon\CachePlugin\Drivers\LaravelCacheDriver";s:10:"visibility";s:6:"public";s:9:"startLine";i:32;s:7:"endLine";i:35;s:3:"ccn";i:1;}s:20:"cacheExpiryInSeconds";a:6:{s:10:"methodName";s:20:"cacheExpiryInSeconds";s:9:"signature";s:27:"cacheExpiryInSeconds(): int";s:10:"visibility";s:6:"public";s:9:"startLine";i:37;s:7:"endLine";i:40;s:3:"ccn";i:1;}s:12:"defaultQuery";a:6:{s:10:"methodName";s:12:"defaultQuery";s:9:"signature";s:21:"defaultQuery(): array";s:10:"visibility";s:6:"public";s:9:"startLine";i:42;s:7:"endLine";i:47;s:3:"ccn";i:1;}s:21:"createDtoFromResponse";a:6:{s:10:"methodName";s:21:"createDtoFromResponse";s:9:"signature";s:60:"createDtoFromResponse(Saloon\Http\Response $response): mixed";s:10:"visibility";s:6:"public";s:9:"startLine";i:49;s:7:"endLine";i:52;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:54;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:54;}s:15:"ignoredLinesFor";a:1:{i:0;i:14;}s:17:"executableLinesIn";a:8:{i:25;i:3;i:29;i:4;i:34;i:5;i:39;i:6;i:44;i:7;i:45;i:7;i:46;i:7;i:51;i:8;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/b14d5a3ed2db091e9c5a1dcc0093bf4d b/.phpunit.cache/code-coverage/b14d5a3ed2db091e9c5a1dcc0093bf4d deleted file mode 100644 index 1a291d7..0000000 --- a/.phpunit.cache/code-coverage/b14d5a3ed2db091e9c5a1dcc0093bf4d +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:87:"CodebarAg\DocuWare\Responses\Authentication\OAuth\GetResponsibleIdentityServiceResponse";a:6:{s:4:"name";s:37:"GetResponsibleIdentityServiceResponse";s:14:"namespacedName";s:87:"CodebarAg\DocuWare\Responses\Authentication\OAuth\GetResponsibleIdentityServiceResponse";s:9:"namespace";s:49:"CodebarAg\DocuWare\Responses\Authentication\OAuth";s:9:"startLine";i:10;s:7:"endLine";i:20;s:7:"methods";a:1:{s:12:"fromResponse";a:6:{s:10:"methodName";s:12:"fromResponse";s:9:"signature";s:116:"fromResponse(Saloon\Http\Response $response): CodebarAg\DocuWare\DTO\Authentication\OAuth\ResponsibleIdentityService";s:10:"visibility";s:6:"public";s:9:"startLine";i:12;s:7:"endLine";i:19;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:21;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:21;}s:15:"ignoredLinesFor";a:1:{i:0;i:10;}s:17:"executableLinesIn";a:3:{i:14;i:1;i:16;i:2;i:18;i:3;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/bbf552d6c990090ca88882b61bc1afd4 b/.phpunit.cache/code-coverage/bbf552d6c990090ca88882b61bc1afd4 deleted file mode 100644 index b8c75ff..0000000 --- a/.phpunit.cache/code-coverage/bbf552d6c990090ca88882b61bc1afd4 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:56:"CodebarAg\DocuWare\Exceptions\UnableToFindUserCredential";a:6:{s:4:"name";s:26:"UnableToFindUserCredential";s:14:"namespacedName";s:56:"CodebarAg\DocuWare\Exceptions\UnableToFindUserCredential";s:9:"namespace";s:29:"CodebarAg\DocuWare\Exceptions";s:9:"startLine";i:7;s:7:"endLine";i:13;s:7:"methods";a:1:{s:6:"create";a:6:{s:10:"methodName";s:6:"create";s:9:"signature";s:14:"create(): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:9;s:7:"endLine";i:12;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:14;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:14;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:1:{i:11;i:1;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/bd5622b928db20476d7180e2ccd11898 b/.phpunit.cache/code-coverage/bd5622b928db20476d7180e2ccd11898 deleted file mode 100644 index 31a632d..0000000 --- a/.phpunit.cache/code-coverage/bd5622b928db20476d7180e2ccd11898 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:73:"CodebarAg\DocuWare\Requests\Documents\UpdateIndexValues\UpdateIndexValues";a:6:{s:4:"name";s:17:"UpdateIndexValues";s:14:"namespacedName";s:73:"CodebarAg\DocuWare\Requests\Documents\UpdateIndexValues\UpdateIndexValues";s:9:"namespace";s:55:"CodebarAg\DocuWare\Requests\Documents\UpdateIndexValues";s:9:"startLine";i:15;s:7:"endLine";i:55;s:7:"methods";a:4:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:114:"__construct(string $fileCabinetId, string $documentId, ?Illuminate\Support\Collection $indexes, bool $forceUpdate)";s:10:"visibility";s:6:"public";s:9:"startLine";i:24;s:7:"endLine";i:30;s:3:"ccn";i:1;}s:15:"resolveEndpoint";a:6:{s:10:"methodName";s:15:"resolveEndpoint";s:9:"signature";s:25:"resolveEndpoint(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:32;s:7:"endLine";i:35;s:3:"ccn";i:1;}s:11:"defaultBody";a:6:{s:10:"methodName";s:11:"defaultBody";s:9:"signature";s:20:"defaultBody(): array";s:10:"visibility";s:6:"public";s:9:"startLine";i:37;s:7:"endLine";i:49;s:3:"ccn";i:2;}s:21:"createDtoFromResponse";a:6:{s:10:"methodName";s:21:"createDtoFromResponse";s:9:"signature";s:84:"createDtoFromResponse(Saloon\Http\Response $response): Illuminate\Support\Collection";s:10:"visibility";s:6:"public";s:9:"startLine";i:51;s:7:"endLine";i:54;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:56;s:18:"commentLinesOfCode";i:3;s:21:"nonCommentLinesOfCode";i:53;}s:15:"ignoredLinesFor";a:1:{i:0;i:15;}s:17:"executableLinesIn";a:9:{i:30;i:3;i:34;i:4;i:39;i:5;i:41;i:6;i:42;i:7;i:43;i:8;i:44;i:9;i:47;i:10;i:53;i:11;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/c3afab96a8aa8a21aebcdaaf5e7c4580 b/.phpunit.cache/code-coverage/c3afab96a8aa8a21aebcdaaf5e7c4580 deleted file mode 100644 index 945ae98..0000000 --- a/.phpunit.cache/code-coverage/c3afab96a8aa8a21aebcdaaf5e7c4580 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:62:"CodebarAg\DocuWare\Requests\FileCabinets\Dialogs\GetAllDialogs";a:6:{s:4:"name";s:13:"GetAllDialogs";s:14:"namespacedName";s:62:"CodebarAg\DocuWare\Requests\FileCabinets\Dialogs\GetAllDialogs";s:9:"namespace";s:48:"CodebarAg\DocuWare\Requests\FileCabinets\Dialogs";s:9:"startLine";i:14;s:7:"endLine";i:44;s:7:"methods";a:5:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:34:"__construct(string $fileCabinetId)";s:10:"visibility";s:6:"public";s:9:"startLine";i:20;s:7:"endLine";i:23;s:3:"ccn";i:1;}s:15:"resolveEndpoint";a:6:{s:10:"methodName";s:15:"resolveEndpoint";s:9:"signature";s:25:"resolveEndpoint(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:25;s:7:"endLine";i:28;s:3:"ccn";i:1;}s:18:"resolveCacheDriver";a:6:{s:10:"methodName";s:18:"resolveCacheDriver";s:9:"signature";s:67:"resolveCacheDriver(): Saloon\CachePlugin\Drivers\LaravelCacheDriver";s:10:"visibility";s:6:"public";s:9:"startLine";i:30;s:7:"endLine";i:33;s:3:"ccn";i:1;}s:20:"cacheExpiryInSeconds";a:6:{s:10:"methodName";s:20:"cacheExpiryInSeconds";s:9:"signature";s:27:"cacheExpiryInSeconds(): int";s:10:"visibility";s:6:"public";s:9:"startLine";i:35;s:7:"endLine";i:38;s:3:"ccn";i:1;}s:21:"createDtoFromResponse";a:6:{s:10:"methodName";s:21:"createDtoFromResponse";s:9:"signature";s:60:"createDtoFromResponse(Saloon\Http\Response $response): mixed";s:10:"visibility";s:6:"public";s:9:"startLine";i:40;s:7:"endLine";i:43;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:45;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:45;}s:15:"ignoredLinesFor";a:1:{i:0;i:14;}s:17:"executableLinesIn";a:5:{i:23;i:3;i:27;i:4;i:32;i:5;i:37;i:6;i:42;i:7;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/c4c17990cd3bbdcb7914c5a59eea950e b/.phpunit.cache/code-coverage/c4c17990cd3bbdcb7914c5a59eea950e deleted file mode 100644 index e8889c5..0000000 --- a/.phpunit.cache/code-coverage/c4c17990cd3bbdcb7914c5a59eea950e +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:43:"CodebarAg\DocuWare\Exceptions\UnableToLogin";a:6:{s:4:"name";s:13:"UnableToLogin";s:14:"namespacedName";s:43:"CodebarAg\DocuWare\Exceptions\UnableToLogin";s:9:"namespace";s:29:"CodebarAg\DocuWare\Exceptions";s:9:"startLine";i:7;s:7:"endLine";i:13;s:7:"methods";a:1:{s:6:"create";a:6:{s:10:"methodName";s:6:"create";s:9:"signature";s:14:"create(): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:9;s:7:"endLine";i:12;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:14;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:14;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:1:{i:11;i:1;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/c8b1e8de305ff68ce19e0450d7d2f8cf b/.phpunit.cache/code-coverage/c8b1e8de305ff68ce19e0450d7d2f8cf deleted file mode 100644 index e464149..0000000 --- a/.phpunit.cache/code-coverage/c8b1e8de305ff68ce19e0450d7d2f8cf +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:51:"CodebarAg\DocuWare\Requests\Fields\GetFieldsRequest";a:6:{s:4:"name";s:16:"GetFieldsRequest";s:14:"namespacedName";s:51:"CodebarAg\DocuWare\Requests\Fields\GetFieldsRequest";s:9:"namespace";s:34:"CodebarAg\DocuWare\Requests\Fields";s:9:"startLine";i:16;s:7:"endLine";i:46;s:7:"methods";a:5:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:34:"__construct(string $fileCabinetId)";s:10:"visibility";s:6:"public";s:9:"startLine";i:22;s:7:"endLine";i:25;s:3:"ccn";i:1;}s:15:"resolveEndpoint";a:6:{s:10:"methodName";s:15:"resolveEndpoint";s:9:"signature";s:25:"resolveEndpoint(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:27;s:7:"endLine";i:30;s:3:"ccn";i:1;}s:18:"resolveCacheDriver";a:6:{s:10:"methodName";s:18:"resolveCacheDriver";s:9:"signature";s:67:"resolveCacheDriver(): Saloon\CachePlugin\Drivers\LaravelCacheDriver";s:10:"visibility";s:6:"public";s:9:"startLine";i:32;s:7:"endLine";i:35;s:3:"ccn";i:1;}s:20:"cacheExpiryInSeconds";a:6:{s:10:"methodName";s:20:"cacheExpiryInSeconds";s:9:"signature";s:27:"cacheExpiryInSeconds(): int";s:10:"visibility";s:6:"public";s:9:"startLine";i:37;s:7:"endLine";i:40;s:3:"ccn";i:1;}s:21:"createDtoFromResponse";a:6:{s:10:"methodName";s:21:"createDtoFromResponse";s:9:"signature";s:116:"createDtoFromResponse(Saloon\Http\Response $response): \Illuminate\Support\Collection|\Illuminate\Support\Enumerable";s:10:"visibility";s:6:"public";s:9:"startLine";i:42;s:7:"endLine";i:45;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:47;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:47;}s:15:"ignoredLinesFor";a:1:{i:0;i:16;}s:17:"executableLinesIn";a:5:{i:25;i:3;i:29;i:4;i:34;i:5;i:39;i:6;i:44;i:7;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/cbe6005d23a731a492b3f467adaf3781 b/.phpunit.cache/code-coverage/cbe6005d23a731a492b3f467adaf3781 deleted file mode 100644 index 54a33e7..0000000 --- a/.phpunit.cache/code-coverage/cbe6005d23a731a492b3f467adaf3781 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:42:"CodebarAg\DocuWare\DTO\FileCabinets\Dialog";a:6:{s:4:"name";s:6:"Dialog";s:14:"namespacedName";s:42:"CodebarAg\DocuWare\DTO\FileCabinets\Dialog";s:9:"namespace";s:35:"CodebarAg\DocuWare\DTO\FileCabinets";s:9:"startLine";i:8;s:7:"endLine";i:52;s:7:"methods";a:4:{s:8:"fromJson";a:6:{s:10:"methodName";s:8:"fromJson";s:9:"signature";s:27:"fromJson(array $data): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:10;s:7:"endLine";i:20;s:3:"ccn";i:1;}s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:108:"__construct(string $id, string $type, string $label, bool $isDefault, string $fileCabinetId, ?array $fields)";s:10:"visibility";s:6:"public";s:9:"startLine";i:22;s:7:"endLine";i:30;s:3:"ccn";i:1;}s:8:"isSearch";a:6:{s:10:"methodName";s:8:"isSearch";s:9:"signature";s:16:"isSearch(): bool";s:10:"visibility";s:6:"public";s:9:"startLine";i:32;s:7:"endLine";i:35;s:3:"ccn";i:1;}s:4:"fake";a:6:{s:10:"methodName";s:4:"fake";s:9:"signature";s:96:"fake(?string $id, ?string $type, ?string $label, ?bool $isDefault, ?string $fileCabinetId): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:37;s:7:"endLine";i:51;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:53;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:53;}s:15:"ignoredLinesFor";a:1:{i:0;i:8;}s:17:"executableLinesIn";a:17:{i:12;i:1;i:13;i:1;i:14;i:1;i:15;i:1;i:16;i:1;i:17;i:1;i:18;i:1;i:19;i:1;i:30;i:2;i:34;i:3;i:44;i:4;i:45;i:4;i:46;i:4;i:47;i:4;i:48;i:4;i:49;i:4;i:50;i:4;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/cd2423d8ee7803d36378f74272709861 b/.phpunit.cache/code-coverage/cd2423d8ee7803d36378f74272709861 deleted file mode 100644 index e045b17..0000000 --- a/.phpunit.cache/code-coverage/cd2423d8ee7803d36378f74272709861 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:82:"CodebarAg\DocuWare\Responses\Documents\UpdateIndexValues\UpdateIndexValuesResponse";a:6:{s:4:"name";s:25:"UpdateIndexValuesResponse";s:14:"namespacedName";s:82:"CodebarAg\DocuWare\Responses\Documents\UpdateIndexValues\UpdateIndexValuesResponse";s:9:"namespace";s:56:"CodebarAg\DocuWare\Responses\Documents\UpdateIndexValues";s:9:"startLine";i:11;s:7:"endLine";i:27;s:7:"methods";a:1:{s:12:"fromResponse";a:6:{s:10:"methodName";s:12:"fromResponse";s:9:"signature";s:75:"fromResponse(Saloon\Http\Response $response): Illuminate\Support\Collection";s:10:"visibility";s:6:"public";s:9:"startLine";i:13;s:7:"endLine";i:26;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:28;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:28;}s:15:"ignoredLinesFor";a:1:{i:0;i:11;}s:17:"executableLinesIn";a:8:{i:15;i:1;i:17;i:2;i:19;i:3;i:21;i:4;i:25;i:4;i:22;i:5;i:23;i:5;i:24;i:5;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/ce8a494eb3c5ba04eee66548809402fa b/.phpunit.cache/code-coverage/ce8a494eb3c5ba04eee66548809402fa deleted file mode 100644 index 993c2b0..0000000 --- a/.phpunit.cache/code-coverage/ce8a494eb3c5ba04eee66548809402fa +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:73:"CodebarAg\DocuWare\Responses\General\Organization\GetOrganizationResponse";a:6:{s:4:"name";s:23:"GetOrganizationResponse";s:14:"namespacedName";s:73:"CodebarAg\DocuWare\Responses\General\Organization\GetOrganizationResponse";s:9:"namespace";s:49:"CodebarAg\DocuWare\Responses\General\Organization";s:9:"startLine";i:12;s:7:"endLine";i:24;s:7:"methods";a:1:{s:12:"fromResponse";a:6:{s:10:"methodName";s:12:"fromResponse";s:9:"signature";s:107:"fromResponse(Saloon\Http\Response $response): \Illuminate\Support\Collection|\Illuminate\Support\Enumerable";s:10:"visibility";s:6:"public";s:9:"startLine";i:14;s:7:"endLine";i:23;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:25;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:25;}s:15:"ignoredLinesFor";a:1:{i:0;i:12;}s:17:"executableLinesIn";a:4:{i:16;i:1;i:18;i:2;i:20;i:3;i:22;i:4;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/d17cf055f1a9f8b029c7df9acdbd03f7 b/.phpunit.cache/code-coverage/d17cf055f1a9f8b029c7df9acdbd03f7 deleted file mode 100644 index 735b0c2..0000000 --- a/.phpunit.cache/code-coverage/d17cf055f1a9f8b029c7df9acdbd03f7 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:30:"CodebarAg\DocuWare\DocuWareUrl";a:6:{s:4:"name";s:11:"DocuWareUrl";s:14:"namespacedName";s:30:"CodebarAg\DocuWare\DocuWareUrl";s:9:"namespace";s:18:"CodebarAg\DocuWare";s:9:"startLine";i:11;s:7:"endLine";i:117;s:7:"methods";a:6:{s:11:"fileCabinet";a:6:{s:10:"methodName";s:11:"fileCabinet";s:9:"signature";s:40:"fileCabinet(string $fileCabinetId): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:21;s:7:"endLine";i:26;s:3:"ccn";i:1;}s:6:"basket";a:6:{s:10:"methodName";s:6:"basket";s:9:"signature";s:30:"basket(string $basketId): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:28;s:7:"endLine";i:33;s:3:"ccn";i:1;}s:8:"document";a:6:{s:10:"methodName";s:8:"document";s:9:"signature";s:31:"document(int $documentId): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:35;s:7:"endLine";i:40;s:3:"ccn";i:1;}s:10:"validUntil";a:6:{s:10:"methodName";s:10:"validUntil";s:9:"signature";s:37:"validUntil(Carbon\Carbon $date): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:42;s:7:"endLine";i:47;s:3:"ccn";i:1;}s:4:"make";a:6:{s:10:"methodName";s:4:"make";s:9:"signature";s:14:"make(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:49;s:7:"endLine";i:99;s:3:"ccn";i:3;}s:5:"guard";a:6:{s:10:"methodName";s:5:"guard";s:9:"signature";s:13:"guard(): void";s:10:"visibility";s:9:"protected";s:9:"startLine";i:101;s:7:"endLine";i:116;s:3:"ccn";i:2;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:118;s:18:"commentLinesOfCode";i:1;s:21:"nonCommentLinesOfCode";i:117;}s:15:"ignoredLinesFor";a:1:{i:0;i:11;}s:17:"executableLinesIn";a:54:{i:23;i:5;i:25;i:6;i:30;i:7;i:32;i:8;i:37;i:9;i:39;i:10;i:44;i:11;i:46;i:12;i:51;i:13;i:53;i:14;i:54;i:14;i:55;i:14;i:56;i:14;i:57;i:14;i:59;i:15;i:61;i:16;i:62;i:17;i:64;i:18;i:67;i:19;i:68;i:19;i:69;i:19;i:70;i:19;i:71;i:19;i:72;i:19;i:74;i:20;i:75;i:21;i:76;i:21;i:77;i:21;i:78;i:21;i:82;i:22;i:83;i:23;i:84;i:24;i:85;i:25;i:87;i:26;i:88;i:26;i:89;i:26;i:90;i:26;i:91;i:26;i:92;i:26;i:94;i:27;i:95;i:27;i:96;i:27;i:97;i:27;i:98;i:27;i:103;i:28;i:105;i:29;i:107;i:30;i:108;i:30;i:109;i:30;i:110;i:30;i:112;i:31;i:113;i:31;i:114;i:31;i:115;i:31;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/d37b06530ad36c3971b206ba11b119a1 b/.phpunit.cache/code-coverage/d37b06530ad36c3971b206ba11b119a1 deleted file mode 100644 index ec2413a..0000000 --- a/.phpunit.cache/code-coverage/d37b06530ad36c3971b206ba11b119a1 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:66:"CodebarAg\DocuWare\DTO\FileCabinets\General\FileCabinetInformation";a:6:{s:4:"name";s:22:"FileCabinetInformation";s:14:"namespacedName";s:66:"CodebarAg\DocuWare\DTO\FileCabinets\General\FileCabinetInformation";s:9:"namespace";s:43:"CodebarAg\DocuWare\DTO\FileCabinets\General";s:9:"startLine";i:8;s:7:"endLine";i:73;s:7:"methods";a:3:{s:8:"fromJson";a:6:{s:10:"methodName";s:8:"fromJson";s:9:"signature";s:27:"fromJson(array $data): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:10;s:7:"endLine";i:26;s:3:"ccn";i:1;}s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:278:"__construct(string $color, string $name, string $id, bool $isBasket, bool $usable, bool $default, ?string $assignedCabinetId, string $versionManagement, bool $windowsExplorerClientAccess, bool $addIndexEntriesInUpperCase, bool $documentAuditingEnabled, bool $hasFullTextSupport)";s:10:"visibility";s:6:"public";s:9:"startLine";i:28;s:7:"endLine";i:42;s:3:"ccn";i:1;}s:4:"fake";a:6:{s:10:"methodName";s:4:"fake";s:9:"signature";s:288:"fake(?string $color, ?string $name, ?string $id, ?bool $isBasket, ?bool $usable, ?bool $default, ?string $assignedCabinetId, ?string $versionManagement, ?bool $windowsExplorerClientAccess, ?bool $addIndexEntriesInUpperCase, ?bool $documentAuditingEnabled, ?bool $hasFullTextSupport): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:44;s:7:"endLine";i:72;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:74;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:74;}s:15:"ignoredLinesFor";a:1:{i:0;i:8;}s:17:"executableLinesIn";a:29:{i:12;i:1;i:13;i:1;i:14;i:1;i:15;i:1;i:16;i:1;i:17;i:1;i:18;i:1;i:19;i:1;i:20;i:1;i:21;i:1;i:22;i:1;i:23;i:1;i:24;i:1;i:25;i:1;i:42;i:2;i:58;i:3;i:59;i:3;i:60;i:3;i:61;i:3;i:62;i:3;i:63;i:3;i:64;i:3;i:65;i:3;i:66;i:3;i:67;i:3;i:68;i:3;i:69;i:3;i:70;i:3;i:71;i:3;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/d5808ba217acd7683f5d95d7dc827574 b/.phpunit.cache/code-coverage/d5808ba217acd7683f5d95d7dc827574 deleted file mode 100644 index d200acd..0000000 --- a/.phpunit.cache/code-coverage/d5808ba217acd7683f5d95d7dc827574 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:83:"CodebarAg\DocuWare\Responses\FileCabinets\General\GetTotalNumberOfDocumentsResponse";a:6:{s:4:"name";s:33:"GetTotalNumberOfDocumentsResponse";s:14:"namespacedName";s:83:"CodebarAg\DocuWare\Responses\FileCabinets\General\GetTotalNumberOfDocumentsResponse";s:9:"namespace";s:49:"CodebarAg\DocuWare\Responses\FileCabinets\General";s:9:"startLine";i:11;s:7:"endLine";i:30;s:7:"methods";a:1:{s:12:"fromResponse";a:6:{s:10:"methodName";s:12:"fromResponse";s:9:"signature";s:49:"fromResponse(Saloon\Http\Response $response): int";s:10:"visibility";s:6:"public";s:9:"startLine";i:13;s:7:"endLine";i:29;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:31;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:31;}s:15:"ignoredLinesFor";a:1:{i:0;i:11;}s:17:"executableLinesIn";a:9:{i:15;i:1;i:17;i:2;i:19;i:3;i:20;i:4;i:22;i:5;i:23;i:6;i:24;i:7;i:26;i:8;i:28;i:9;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/d58aee6c199413a53747d02bbffc38e0 b/.phpunit.cache/code-coverage/d58aee6c199413a53747d02bbffc38e0 deleted file mode 100644 index 08e429f..0000000 --- a/.phpunit.cache/code-coverage/d58aee6c199413a53747d02bbffc38e0 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:64:"CodebarAg\DocuWare\Requests\FileCabinets\Upload\CreateDataRecord";a:6:{s:4:"name";s:16:"CreateDataRecord";s:14:"namespacedName";s:64:"CodebarAg\DocuWare\Requests\FileCabinets\Upload\CreateDataRecord";s:9:"namespace";s:47:"CodebarAg\DocuWare\Requests\FileCabinets\Upload";s:9:"startLine";i:16;s:7:"endLine";i:55;s:7:"methods";a:4:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:116:"__construct(string $fileCabinetId, ?string $fileContent, ?string $fileName, ?Illuminate\Support\Collection $indexes)";s:10:"visibility";s:6:"public";s:9:"startLine";i:22;s:7:"endLine";i:28;s:3:"ccn";i:1;}s:15:"resolveEndpoint";a:6:{s:10:"methodName";s:15:"resolveEndpoint";s:9:"signature";s:25:"resolveEndpoint(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:30;s:7:"endLine";i:33;s:3:"ccn";i:1;}s:11:"defaultBody";a:6:{s:10:"methodName";s:11:"defaultBody";s:9:"signature";s:20:"defaultBody(): array";s:10:"visibility";s:9:"protected";s:9:"startLine";i:35;s:7:"endLine";i:49;s:3:"ccn";i:4;}s:21:"createDtoFromResponse";a:6:{s:10:"methodName";s:21:"createDtoFromResponse";s:9:"signature";s:96:"createDtoFromResponse(Saloon\Http\Response $response): CodebarAg\DocuWare\DTO\Documents\Document";s:10:"visibility";s:6:"public";s:9:"startLine";i:51;s:7:"endLine";i:54;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:56;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:56;}s:15:"ignoredLinesFor";a:1:{i:0;i:16;}s:17:"executableLinesIn";a:10:{i:28;i:3;i:32;i:4;i:37;i:5;i:39;i:6;i:40;i:7;i:41;i:8;i:44;i:9;i:45;i:10;i:48;i:11;i:53;i:12;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/da4291fce8571591aad6986ba7c7852a b/.phpunit.cache/code-coverage/da4291fce8571591aad6986ba7c7852a deleted file mode 100644 index 670f082..0000000 --- a/.phpunit.cache/code-coverage/da4291fce8571591aad6986ba7c7852a +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:31:"CodebarAg\DocuWare\Support\Auth";a:6:{s:4:"name";s:4:"Auth";s:14:"namespacedName";s:31:"CodebarAg\DocuWare\Support\Auth";s:9:"namespace";s:26:"CodebarAg\DocuWare\Support";s:9:"startLine";i:11;s:7:"endLine";i:82;s:7:"methods";a:8:{s:5:"store";a:6:{s:10:"methodName";s:5:"store";s:9:"signature";s:49:"store(GuzzleHttp\Cookie\CookieJar $cookies): void";s:10:"visibility";s:6:"public";s:9:"startLine";i:19;s:7:"endLine";i:34;s:3:"ccn";i:1;}s:7:"cookies";a:6:{s:10:"methodName";s:7:"cookies";s:9:"signature";s:17:"cookies(): ?array";s:10:"visibility";s:6:"public";s:9:"startLine";i:36;s:7:"endLine";i:39;s:3:"ccn";i:1;}s:9:"cookieJar";a:6:{s:10:"methodName";s:9:"cookieJar";s:9:"signature";s:41:"cookieJar(): ?GuzzleHttp\Cookie\CookieJar";s:10:"visibility";s:6:"public";s:9:"startLine";i:41;s:7:"endLine";i:48;s:3:"ccn";i:2;}s:10:"cookieDate";a:6:{s:10:"methodName";s:10:"cookieDate";s:9:"signature";s:20:"cookieDate(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:50;s:7:"endLine";i:53;s:3:"ccn";i:1;}s:6:"forget";a:6:{s:10:"methodName";s:6:"forget";s:9:"signature";s:14:"forget(): void";s:10:"visibility";s:6:"public";s:9:"startLine";i:55;s:7:"endLine";i:58;s:3:"ccn";i:1;}s:6:"domain";a:6:{s:10:"methodName";s:6:"domain";s:9:"signature";s:16:"domain(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:60;s:7:"endLine";i:71;s:3:"ccn";i:1;}s:5:"check";a:6:{s:10:"methodName";s:5:"check";s:9:"signature";s:13:"check(): bool";s:10:"visibility";s:6:"public";s:9:"startLine";i:73;s:7:"endLine";i:76;s:3:"ccn";i:1;}s:11:"cacheDriver";a:6:{s:10:"methodName";s:11:"cacheDriver";s:9:"signature";s:21:"cacheDriver(): string";s:10:"visibility";s:9:"protected";s:9:"startLine";i:78;s:7:"endLine";i:81;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:83;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:83;}s:15:"ignoredLinesFor";a:1:{i:0;i:11;}s:17:"executableLinesIn";a:28:{i:21;i:4;i:22;i:4;i:23;i:4;i:25;i:5;i:26;i:5;i:27;i:5;i:28;i:5;i:29;i:5;i:30;i:5;i:31;i:5;i:32;i:5;i:33;i:5;i:38;i:6;i:43;i:7;i:44;i:8;i:47;i:9;i:52;i:10;i:57;i:11;i:62;i:12;i:63;i:12;i:64;i:12;i:65;i:12;i:67;i:13;i:68;i:13;i:69;i:13;i:70;i:13;i:75;i:14;i:80;i:15;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/da5c682d48442ac506323b07997e3a1f b/.phpunit.cache/code-coverage/da5c682d48442ac506323b07997e3a1f deleted file mode 100644 index 3442987..0000000 --- a/.phpunit.cache/code-coverage/da5c682d48442ac506323b07997e3a1f +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:52:"CodebarAg\DocuWare\Exceptions\UnableToFindConnection";a:6:{s:4:"name";s:22:"UnableToFindConnection";s:14:"namespacedName";s:52:"CodebarAg\DocuWare\Exceptions\UnableToFindConnection";s:9:"namespace";s:29:"CodebarAg\DocuWare\Exceptions";s:9:"startLine";i:7;s:7:"endLine";i:13;s:7:"methods";a:1:{s:6:"create";a:6:{s:10:"methodName";s:6:"create";s:9:"signature";s:14:"create(): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:9;s:7:"endLine";i:12;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:14;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:14;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:1:{i:11;i:1;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/dc50c0f43b3cc1f8cd8e765cc45b2a4e b/.phpunit.cache/code-coverage/dc50c0f43b3cc1f8cd8e765cc45b2a4e deleted file mode 100644 index ab2a37f..0000000 --- a/.phpunit.cache/code-coverage/dc50c0f43b3cc1f8cd8e765cc45b2a4e +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:70:"CodebarAg\DocuWare\Requests\Documents\ModifyDocuments\TransferDocument";a:6:{s:4:"name";s:16:"TransferDocument";s:14:"namespacedName";s:70:"CodebarAg\DocuWare\Requests\Documents\ModifyDocuments\TransferDocument";s:9:"namespace";s:53:"CodebarAg\DocuWare\Requests\Documents\ModifyDocuments";s:9:"startLine";i:12;s:7:"endLine";i:61;s:7:"methods";a:5:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:126:"__construct(string $fileCabinetId, string $destinationFileCabinetId, string $storeDialogId, string $documentId, array $fields)";s:10:"visibility";s:6:"public";s:9:"startLine";i:18;s:7:"endLine";i:25;s:3:"ccn";i:1;}s:15:"resolveEndpoint";a:6:{s:10:"methodName";s:15:"resolveEndpoint";s:9:"signature";s:25:"resolveEndpoint(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:27;s:7:"endLine";i:30;s:3:"ccn";i:1;}s:14:"defaultHeaders";a:6:{s:10:"methodName";s:14:"defaultHeaders";s:9:"signature";s:23:"defaultHeaders(): array";s:10:"visibility";s:9:"protected";s:9:"startLine";i:32;s:7:"endLine";i:39;s:3:"ccn";i:1;}s:11:"defaultBody";a:6:{s:10:"methodName";s:11:"defaultBody";s:9:"signature";s:20:"defaultBody(): array";s:10:"visibility";s:9:"protected";s:9:"startLine";i:41;s:7:"endLine";i:55;s:3:"ccn";i:1;}s:21:"createDtoFromResponse";a:6:{s:10:"methodName";s:21:"createDtoFromResponse";s:9:"signature";s:59:"createDtoFromResponse(Saloon\Http\Response $response): bool";s:10:"visibility";s:6:"public";s:9:"startLine";i:57;s:7:"endLine";i:60;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:62;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:62;}s:15:"ignoredLinesFor";a:1:{i:0;i:12;}s:17:"executableLinesIn";a:20:{i:25;i:3;i:29;i:5;i:34;i:6;i:35;i:6;i:36;i:6;i:37;i:6;i:38;i:6;i:43;i:7;i:44;i:7;i:45;i:7;i:46;i:7;i:47;i:7;i:48;i:7;i:49;i:7;i:50;i:7;i:51;i:7;i:52;i:7;i:53;i:7;i:54;i:7;i:59;i:8;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/e0e63254be8e20c8861542bcad454164 b/.phpunit.cache/code-coverage/e0e63254be8e20c8861542bcad454164 deleted file mode 100644 index 932a7e2..0000000 --- a/.phpunit.cache/code-coverage/e0e63254be8e20c8861542bcad454164 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:57:"CodebarAg\DocuWare\Responses\Sections\GetSectionsResponse";a:6:{s:4:"name";s:19:"GetSectionsResponse";s:14:"namespacedName";s:57:"CodebarAg\DocuWare\Responses\Sections\GetSectionsResponse";s:9:"namespace";s:37:"CodebarAg\DocuWare\Responses\Sections";s:9:"startLine";i:12;s:7:"endLine";i:30;s:7:"methods";a:1:{s:12:"fromResponse";a:6:{s:10:"methodName";s:12:"fromResponse";s:9:"signature";s:107:"fromResponse(Saloon\Http\Response $response): \Illuminate\Support\Collection|\Illuminate\Support\Enumerable";s:10:"visibility";s:6:"public";s:9:"startLine";i:14;s:7:"endLine";i:29;s:3:"ccn";i:2;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:31;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:31;}s:15:"ignoredLinesFor";a:1:{i:0;i:12;}s:17:"executableLinesIn";a:7:{i:16;i:1;i:18;i:2;i:20;i:3;i:22;i:4;i:24;i:5;i:25;i:6;i:28;i:7;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/e3867d36ba27e57d61f32d31b4d9a411 b/.phpunit.cache/code-coverage/e3867d36ba27e57d61f32d31b4d9a411 deleted file mode 100644 index 24120e6..0000000 --- a/.phpunit.cache/code-coverage/e3867d36ba27e57d61f32d31b4d9a411 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:74:"CodebarAg\DocuWare\Requests\FileCabinets\General\GetTotalNumberOfDocuments";a:6:{s:4:"name";s:25:"GetTotalNumberOfDocuments";s:14:"namespacedName";s:74:"CodebarAg\DocuWare\Requests\FileCabinets\General\GetTotalNumberOfDocuments";s:9:"namespace";s:48:"CodebarAg\DocuWare\Requests\FileCabinets\General";s:9:"startLine";i:14;s:7:"endLine";i:52;s:7:"methods";a:6:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:58:"__construct(string $fileCabinetId, string $searchDialogId)";s:10:"visibility";s:6:"public";s:9:"startLine";i:20;s:7:"endLine";i:24;s:3:"ccn";i:1;}s:15:"resolveEndpoint";a:6:{s:10:"methodName";s:15:"resolveEndpoint";s:9:"signature";s:25:"resolveEndpoint(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:26;s:7:"endLine";i:29;s:3:"ccn";i:1;}s:12:"defaultQuery";a:6:{s:10:"methodName";s:12:"defaultQuery";s:9:"signature";s:21:"defaultQuery(): array";s:10:"visibility";s:6:"public";s:9:"startLine";i:31;s:7:"endLine";i:36;s:3:"ccn";i:1;}s:18:"resolveCacheDriver";a:6:{s:10:"methodName";s:18:"resolveCacheDriver";s:9:"signature";s:67:"resolveCacheDriver(): Saloon\CachePlugin\Drivers\LaravelCacheDriver";s:10:"visibility";s:6:"public";s:9:"startLine";i:38;s:7:"endLine";i:41;s:3:"ccn";i:1;}s:20:"cacheExpiryInSeconds";a:6:{s:10:"methodName";s:20:"cacheExpiryInSeconds";s:9:"signature";s:27:"cacheExpiryInSeconds(): int";s:10:"visibility";s:6:"public";s:9:"startLine";i:43;s:7:"endLine";i:46;s:3:"ccn";i:1;}s:21:"createDtoFromResponse";a:6:{s:10:"methodName";s:21:"createDtoFromResponse";s:9:"signature";s:58:"createDtoFromResponse(Saloon\Http\Response $response): int";s:10:"visibility";s:6:"public";s:9:"startLine";i:48;s:7:"endLine";i:51;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:53;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:53;}s:15:"ignoredLinesFor";a:1:{i:0;i:14;}s:17:"executableLinesIn";a:8:{i:24;i:3;i:28;i:4;i:33;i:5;i:34;i:5;i:35;i:5;i:40;i:6;i:45;i:7;i:50;i:8;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/e3969e7b7111608de85ade720bb966a2 b/.phpunit.cache/code-coverage/e3969e7b7111608de85ade720bb966a2 deleted file mode 100644 index d639d34..0000000 --- a/.phpunit.cache/code-coverage/e3969e7b7111608de85ade720bb966a2 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:30:"CodebarAg\DocuWare\Support\URL";a:6:{s:4:"name";s:3:"URL";s:14:"namespacedName";s:30:"CodebarAg\DocuWare\Support\URL";s:9:"namespace";s:26:"CodebarAg\DocuWare\Support";s:9:"startLine";i:7;s:7:"endLine";i:33;s:7:"methods";a:2:{s:6:"format";a:6:{s:10:"methodName";s:6:"format";s:9:"signature";s:30:"format(string $string): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:17;s:7:"endLine";i:27;s:3:"ccn";i:1;}s:16:"formatWithBase64";a:6:{s:10:"methodName";s:16:"formatWithBase64";s:9:"signature";s:40:"formatWithBase64(string $string): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:29;s:7:"endLine";i:32;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:34;s:18:"commentLinesOfCode";i:8;s:21:"nonCommentLinesOfCode";i:26;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:8:{i:19;i:1;i:21;i:2;i:22;i:2;i:23;i:2;i:24;i:2;i:25;i:2;i:26;i:2;i:31;i:3;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/e545846724a82071e4bf84d33aee92ae b/.phpunit.cache/code-coverage/e545846724a82071e4bf84d33aee92ae deleted file mode 100644 index d7ecd9e..0000000 --- a/.phpunit.cache/code-coverage/e545846724a82071e4bf84d33aee92ae +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:60:"CodebarAg\DocuWare\DTO\Documents\DocumentIndex\IndexTableDTO";a:6:{s:4:"name";s:13:"IndexTableDTO";s:14:"namespacedName";s:60:"CodebarAg\DocuWare\DTO\Documents\DocumentIndex\IndexTableDTO";s:9:"namespace";s:46:"CodebarAg\DocuWare\DTO\Documents\DocumentIndex";s:9:"startLine";i:8;s:7:"endLine";i:76;s:7:"methods";a:5:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:74:"__construct(string $name, null|\Illuminate\Support\Collection|array $rows)";s:10:"visibility";s:6:"public";s:9:"startLine";i:10;s:7:"endLine";i:15;s:3:"ccn";i:1;}s:4:"make";a:6:{s:10:"methodName";s:4:"make";s:9:"signature";s:73:"make(string $name, null|\Illuminate\Support\Collection|array $rows): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:17;s:7:"endLine";i:20;s:3:"ccn";i:1;}s:6:"values";a:6:{s:10:"methodName";s:6:"values";s:9:"signature";s:15:"values(): array";s:10:"visibility";s:6:"public";s:9:"startLine";i:22;s:7:"endLine";i:32;s:3:"ccn";i:1;}s:14:"rowsCollection";a:6:{s:10:"methodName";s:14:"rowsCollection";s:9:"signature";s:23:"rowsCollection(): array";s:10:"visibility";s:9:"protected";s:9:"startLine";i:34;s:7:"endLine";i:64;s:3:"ccn";i:3;}s:14:"makeRowContent";a:6:{s:10:"methodName";s:14:"makeRowContent";s:9:"signature";s:61:"makeRowContent(Illuminate\Support\Collection $indexes): array";s:10:"visibility";s:6:"public";s:9:"startLine";i:66;s:7:"endLine";i:75;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:77;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:77;}s:15:"ignoredLinesFor";a:1:{i:0;i:8;}s:17:"executableLinesIn";a:34:{i:15;i:1;i:19;i:2;i:24;i:3;i:25;i:3;i:26;i:3;i:27;i:3;i:28;i:3;i:29;i:3;i:30;i:3;i:31;i:3;i:36;i:4;i:59;i:4;i:60;i:4;i:61;i:4;i:62;i:4;i:38;i:5;i:49;i:5;i:50;i:5;i:51;i:5;i:40;i:6;i:41;i:7;i:44;i:8;i:45;i:9;i:47;i:10;i:53;i:11;i:54;i:12;i:57;i:13;i:68;i:14;i:69;i:14;i:70;i:14;i:71;i:14;i:72;i:14;i:73;i:14;i:74;i:14;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/e57e9c0e48f077853a1c1ef638dde7ae b/.phpunit.cache/code-coverage/e57e9c0e48f077853a1c1ef638dde7ae deleted file mode 100644 index db53e3c..0000000 --- a/.phpunit.cache/code-coverage/e57e9c0e48f077853a1c1ef638dde7ae +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:52:"CodebarAg\DocuWare\Exceptions\UnableToFindPassphrase";a:6:{s:4:"name";s:22:"UnableToFindPassphrase";s:14:"namespacedName";s:52:"CodebarAg\DocuWare\Exceptions\UnableToFindPassphrase";s:9:"namespace";s:29:"CodebarAg\DocuWare\Exceptions";s:9:"startLine";i:7;s:7:"endLine";i:13;s:7:"methods";a:1:{s:6:"create";a:6:{s:10:"methodName";s:6:"create";s:9:"signature";s:14:"create(): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:9;s:7:"endLine";i:12;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:14;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:14;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:1:{i:11;i:1;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/e5f432d3bb173caa7e3a11ab8c4f5b4c b/.phpunit.cache/code-coverage/e5f432d3bb173caa7e3a11ab8c4f5b4c deleted file mode 100644 index 9406d72..0000000 --- a/.phpunit.cache/code-coverage/e5f432d3bb173caa7e3a11ab8c4f5b4c +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:70:"CodebarAg\DocuWare\DTO\Authentication\OAuth\ResponsibleIdentityService";a:6:{s:4:"name";s:26:"ResponsibleIdentityService";s:14:"namespacedName";s:70:"CodebarAg\DocuWare\DTO\Authentication\OAuth\ResponsibleIdentityService";s:9:"namespace";s:43:"CodebarAg\DocuWare\DTO\Authentication\OAuth";s:9:"startLine";i:7;s:7:"endLine";i:22;s:7:"methods";a:2:{s:4:"make";a:6:{s:10:"methodName";s:4:"make";s:9:"signature";s:23:"make(array $data): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:9;s:7:"endLine";i:15;s:3:"ccn";i:1;}s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:68:"__construct(string $identityServiceUrl, bool $refreshTokenSupported)";s:10:"visibility";s:6:"public";s:9:"startLine";i:17;s:7:"endLine";i:21;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:23;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:23;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:5:{i:11;i:1;i:12;i:1;i:13;i:1;i:14;i:1;i:21;i:2;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/e6597955ff58244287a0b69a613c8916 b/.phpunit.cache/code-coverage/e6597955ff58244287a0b69a613c8916 deleted file mode 100644 index eeac891..0000000 --- a/.phpunit.cache/code-coverage/e6597955ff58244287a0b69a613c8916 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:38:"CodebarAg\DocuWare\DTO\Documents\Field";a:6:{s:4:"name";s:5:"Field";s:14:"namespacedName";s:38:"CodebarAg\DocuWare\DTO\Documents\Field";s:9:"namespace";s:32:"CodebarAg\DocuWare\DTO\Documents";s:9:"startLine";i:7;s:7:"endLine";i:50;s:7:"methods";a:5:{s:8:"fromJson";a:6:{s:10:"methodName";s:8:"fromJson";s:9:"signature";s:27:"fromJson(array $data): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:9;s:7:"endLine";i:17;s:3:"ccn";i:1;}s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:69:"__construct(string $name, string $label, string $type, string $scope)";s:10:"visibility";s:6:"public";s:9:"startLine";i:19;s:7:"endLine";i:25;s:3:"ccn";i:1;}s:8:"isSystem";a:6:{s:10:"methodName";s:8:"isSystem";s:9:"signature";s:16:"isSystem(): bool";s:10:"visibility";s:6:"public";s:9:"startLine";i:27;s:7:"endLine";i:30;s:3:"ccn";i:1;}s:6:"isUser";a:6:{s:10:"methodName";s:6:"isUser";s:9:"signature";s:14:"isUser(): bool";s:10:"visibility";s:6:"public";s:9:"startLine";i:32;s:7:"endLine";i:35;s:3:"ccn";i:1;}s:4:"fake";a:6:{s:10:"methodName";s:4:"fake";s:9:"signature";s:72:"fake(?string $name, ?string $label, ?string $type, ?string $scope): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:37;s:7:"endLine";i:49;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:51;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:51;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:15:{i:11;i:1;i:12;i:1;i:13;i:1;i:14;i:1;i:15;i:1;i:16;i:1;i:25;i:2;i:29;i:3;i:34;i:4;i:43;i:5;i:44;i:5;i:45;i:5;i:46;i:5;i:47;i:5;i:48;i:5;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/e677eb91f4ab61502a874bfd78843a34 b/.phpunit.cache/code-coverage/e677eb91f4ab61502a874bfd78843a34 deleted file mode 100644 index 04d69d4..0000000 --- a/.phpunit.cache/code-coverage/e677eb91f4ab61502a874bfd78843a34 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:62:"CodebarAg\DocuWare\Requests\General\Organization\GetLoginToken";a:6:{s:4:"name";s:13:"GetLoginToken";s:14:"namespacedName";s:62:"CodebarAg\DocuWare\Requests\General\Organization\GetLoginToken";s:9:"namespace";s:48:"CodebarAg\DocuWare\Requests\General\Organization";s:9:"startLine";i:16;s:7:"endLine";i:58;s:7:"methods";a:6:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:67:"__construct(array $targetProducts, string $usage, string $lifetime)";s:10:"visibility";s:6:"public";s:9:"startLine";i:23;s:7:"endLine";i:28;s:3:"ccn";i:1;}s:15:"resolveEndpoint";a:6:{s:10:"methodName";s:15:"resolveEndpoint";s:9:"signature";s:25:"resolveEndpoint(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:30;s:7:"endLine";i:33;s:3:"ccn";i:1;}s:11:"defaultBody";a:6:{s:10:"methodName";s:11:"defaultBody";s:9:"signature";s:20:"defaultBody(): array";s:10:"visibility";s:9:"protected";s:9:"startLine";i:35;s:7:"endLine";i:42;s:3:"ccn";i:1;}s:18:"resolveCacheDriver";a:6:{s:10:"methodName";s:18:"resolveCacheDriver";s:9:"signature";s:67:"resolveCacheDriver(): Saloon\CachePlugin\Drivers\LaravelCacheDriver";s:10:"visibility";s:6:"public";s:9:"startLine";i:44;s:7:"endLine";i:47;s:3:"ccn";i:1;}s:20:"cacheExpiryInSeconds";a:6:{s:10:"methodName";s:20:"cacheExpiryInSeconds";s:9:"signature";s:27:"cacheExpiryInSeconds(): int";s:10:"visibility";s:6:"public";s:9:"startLine";i:49;s:7:"endLine";i:52;s:3:"ccn";i:1;}s:21:"createDtoFromResponse";a:6:{s:10:"methodName";s:21:"createDtoFromResponse";s:9:"signature";s:61:"createDtoFromResponse(Saloon\Http\Response $response): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:54;s:7:"endLine";i:57;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:59;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:59;}s:15:"ignoredLinesFor";a:1:{i:0;i:16;}s:17:"executableLinesIn";a:10:{i:28;i:4;i:32;i:6;i:37;i:7;i:38;i:7;i:39;i:7;i:40;i:7;i:41;i:7;i:46;i:8;i:51;i:9;i:56;i:10;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/e7d111d0c983404001f236c7ea3b945f b/.phpunit.cache/code-coverage/e7d111d0c983404001f236c7ea3b945f deleted file mode 100644 index 5b731cd..0000000 --- a/.phpunit.cache/code-coverage/e7d111d0c983404001f236c7ea3b945f +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:55:"CodebarAg\DocuWare\DTO\General\Organization\FileCabinet";a:6:{s:4:"name";s:11:"FileCabinet";s:14:"namespacedName";s:55:"CodebarAg\DocuWare\DTO\General\Organization\FileCabinet";s:9:"namespace";s:43:"CodebarAg\DocuWare\DTO\General\Organization";s:9:"startLine";i:8;s:7:"endLine";i:73;s:7:"methods";a:3:{s:8:"fromJson";a:6:{s:10:"methodName";s:8:"fromJson";s:9:"signature";s:27:"fromJson(array $data): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:10;s:7:"endLine";i:26;s:3:"ccn";i:1;}s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:278:"__construct(string $color, string $name, string $id, bool $isBasket, bool $usable, bool $default, ?string $assignedCabinetId, string $versionManagement, bool $windowsExplorerClientAccess, bool $addIndexEntriesInUpperCase, bool $documentAuditingEnabled, bool $hasFullTextSupport)";s:10:"visibility";s:6:"public";s:9:"startLine";i:28;s:7:"endLine";i:42;s:3:"ccn";i:1;}s:4:"fake";a:6:{s:10:"methodName";s:4:"fake";s:9:"signature";s:288:"fake(?string $color, ?string $name, ?string $id, ?bool $isBasket, ?bool $usable, ?bool $default, ?string $assignedCabinetId, ?string $versionManagement, ?bool $windowsExplorerClientAccess, ?bool $addIndexEntriesInUpperCase, ?bool $documentAuditingEnabled, ?bool $hasFullTextSupport): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:44;s:7:"endLine";i:72;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:74;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:74;}s:15:"ignoredLinesFor";a:1:{i:0;i:8;}s:17:"executableLinesIn";a:29:{i:12;i:1;i:13;i:1;i:14;i:1;i:15;i:1;i:16;i:1;i:17;i:1;i:18;i:1;i:19;i:1;i:20;i:1;i:21;i:1;i:22;i:1;i:23;i:1;i:24;i:1;i:25;i:1;i:42;i:2;i:58;i:3;i:59;i:3;i:60;i:3;i:61;i:3;i:62;i:3;i:63;i:3;i:64;i:3;i:65;i:3;i:66;i:3;i:67;i:3;i:68;i:3;i:69;i:3;i:70;i:3;i:71;i:3;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/ed6fa75212af5c6b05c5ff8577490b78 b/.phpunit.cache/code-coverage/ed6fa75212af5c6b05c5ff8577490b78 deleted file mode 100644 index 6c66a37..0000000 --- a/.phpunit.cache/code-coverage/ed6fa75212af5c6b05c5ff8577490b78 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:72:"CodebarAg\DocuWare\DTO\Authentication\OAuth\IdentityServiceConfiguration";a:6:{s:4:"name";s:28:"IdentityServiceConfiguration";s:14:"namespacedName";s:72:"CodebarAg\DocuWare\DTO\Authentication\OAuth\IdentityServiceConfiguration";s:9:"namespace";s:43:"CodebarAg\DocuWare\DTO\Authentication\OAuth";s:9:"startLine";i:7;s:7:"endLine";i:86;s:7:"methods";a:2:{s:4:"make";a:6:{s:10:"methodName";s:4:"make";s:9:"signature";s:23:"make(array $data): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:9;s:7:"endLine";i:47;s:3:"ccn";i:1;}s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:1165:"__construct(string $issuer, string $jwksUri, string $authorizationEndpoint, string $tokenEndpoint, string $userinfoEndpoint, string $endSessionEndpoint, string $checkSessionIframe, string $revocationEndpoint, string $introspectionEndpoint, string $deviceAuthorizationEndpoint, string $backchannelAuthenticationEndpoint, string $pushedAuthorizationRequestEndpoint, bool $requirePushedAuthorizationRequests, bool $frontchannelLogoutSupported, bool $frontchannelLogoutSessionSupported, bool $backchannelLogoutSupported, bool $backchannelLogoutSessionSupported, array $scopesSupported, array $claimsSupported, array $grantTypesSupported, array $responseTypesSupported, array $responseModesSupported, array $tokenEndpointAuthMethodsSupported, array $idTokenSigningAlgValuesSupported, array $subjectTypesSupported, array $codeChallengeMethodsSupported, bool $requestParameterSupported, array $requestObjectSigningAlgValuesSupported, array $promptValuesSupported, bool $authorizationResponseIssParameterSupported, array $backchannelTokenDeliveryModesSupported, bool $backchannelUserCodeParameterSupported, array $dpopSigningAlgValuesSupported, string $windowsAuthEndpoint)";s:10:"visibility";s:6:"public";s:9:"startLine";i:49;s:7:"endLine";i:85;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:87;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:87;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:37:{i:11;i:1;i:12;i:1;i:13;i:1;i:14;i:1;i:15;i:1;i:16;i:1;i:17;i:1;i:18;i:1;i:19;i:1;i:20;i:1;i:21;i:1;i:22;i:1;i:23;i:1;i:24;i:1;i:25;i:1;i:26;i:1;i:27;i:1;i:28;i:1;i:29;i:1;i:30;i:1;i:31;i:1;i:32;i:1;i:33;i:1;i:34;i:1;i:35;i:1;i:36;i:1;i:37;i:1;i:38;i:1;i:39;i:1;i:40;i:1;i:41;i:1;i:42;i:1;i:43;i:1;i:44;i:1;i:45;i:1;i:46;i:1;i:85;i:2;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/f3155792def8ca976ff0275567c5d100 b/.phpunit.cache/code-coverage/f3155792def8ca976ff0275567c5d100 deleted file mode 100644 index 942f658..0000000 --- a/.phpunit.cache/code-coverage/f3155792def8ca976ff0275567c5d100 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:83:"CodebarAg\DocuWare\Responses\FileCabinets\General\GetFileCabinetInformationResponse";a:6:{s:4:"name";s:33:"GetFileCabinetInformationResponse";s:14:"namespacedName";s:83:"CodebarAg\DocuWare\Responses\FileCabinets\General\GetFileCabinetInformationResponse";s:9:"namespace";s:49:"CodebarAg\DocuWare\Responses\FileCabinets\General";s:9:"startLine";i:10;s:7:"endLine";i:22;s:7:"methods";a:1:{s:12:"fromResponse";a:6:{s:10:"methodName";s:12:"fromResponse";s:9:"signature";s:112:"fromResponse(Saloon\Http\Response $response): CodebarAg\DocuWare\DTO\FileCabinets\General\FileCabinetInformation";s:10:"visibility";s:6:"public";s:9:"startLine";i:12;s:7:"endLine";i:21;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:23;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:23;}s:15:"ignoredLinesFor";a:1:{i:0;i:10;}s:17:"executableLinesIn";a:4:{i:14;i:1;i:16;i:2;i:18;i:3;i:20;i:4;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/f9e4fecac63b97356875ace8cc1b94c3 b/.phpunit.cache/code-coverage/f9e4fecac63b97356875ace8cc1b94c3 deleted file mode 100644 index 2e5952d..0000000 --- a/.phpunit.cache/code-coverage/f9e4fecac63b97356875ace8cc1b94c3 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:67:"CodebarAg\DocuWare\Requests\FileCabinets\SelectLists\GetSelectLists";a:6:{s:4:"name";s:14:"GetSelectLists";s:14:"namespacedName";s:67:"CodebarAg\DocuWare\Requests\FileCabinets\SelectLists\GetSelectLists";s:9:"namespace";s:52:"CodebarAg\DocuWare\Requests\FileCabinets\SelectLists";s:9:"startLine";i:14;s:7:"endLine";i:54;s:7:"methods";a:6:{s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:71:"__construct(string $fileCabinetId, string $dialogId, string $fieldName)";s:10:"visibility";s:6:"public";s:9:"startLine";i:20;s:7:"endLine";i:25;s:3:"ccn";i:1;}s:15:"resolveEndpoint";a:6:{s:10:"methodName";s:15:"resolveEndpoint";s:9:"signature";s:25:"resolveEndpoint(): string";s:10:"visibility";s:6:"public";s:9:"startLine";i:27;s:7:"endLine";i:30;s:3:"ccn";i:1;}s:18:"resolveCacheDriver";a:6:{s:10:"methodName";s:18:"resolveCacheDriver";s:9:"signature";s:67:"resolveCacheDriver(): Saloon\CachePlugin\Drivers\LaravelCacheDriver";s:10:"visibility";s:6:"public";s:9:"startLine";i:32;s:7:"endLine";i:35;s:3:"ccn";i:1;}s:20:"cacheExpiryInSeconds";a:6:{s:10:"methodName";s:20:"cacheExpiryInSeconds";s:9:"signature";s:27:"cacheExpiryInSeconds(): int";s:10:"visibility";s:6:"public";s:9:"startLine";i:37;s:7:"endLine";i:40;s:3:"ccn";i:1;}s:12:"defaultQuery";a:6:{s:10:"methodName";s:12:"defaultQuery";s:9:"signature";s:21:"defaultQuery(): array";s:10:"visibility";s:6:"public";s:9:"startLine";i:42;s:7:"endLine";i:48;s:3:"ccn";i:1;}s:21:"createDtoFromResponse";a:6:{s:10:"methodName";s:21:"createDtoFromResponse";s:9:"signature";s:60:"createDtoFromResponse(Saloon\Http\Response $response): mixed";s:10:"visibility";s:6:"public";s:9:"startLine";i:50;s:7:"endLine";i:53;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:55;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:55;}s:15:"ignoredLinesFor";a:1:{i:0;i:14;}s:17:"executableLinesIn";a:9:{i:25;i:3;i:29;i:4;i:34;i:5;i:39;i:6;i:44;i:7;i:45;i:7;i:46;i:7;i:47;i:7;i:52;i:8;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/fdcc36c40ac93d1d78e6e5b01ea4705c b/.phpunit.cache/code-coverage/fdcc36c40ac93d1d78e6e5b01ea4705c deleted file mode 100644 index c3d742b..0000000 --- a/.phpunit.cache/code-coverage/fdcc36c40ac93d1d78e6e5b01ea4705c +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:50:"CodebarAg\DocuWare\Exceptions\UnableToUpdateFields";a:6:{s:4:"name";s:20:"UnableToUpdateFields";s:14:"namespacedName";s:50:"CodebarAg\DocuWare\Exceptions\UnableToUpdateFields";s:9:"namespace";s:29:"CodebarAg\DocuWare\Exceptions";s:9:"startLine";i:7;s:7:"endLine";i:18;s:7:"methods";a:2:{s:16:"noValuesProvided";a:6:{s:10:"methodName";s:16:"noValuesProvided";s:9:"signature";s:24:"noValuesProvided(): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:9;s:7:"endLine";i:12;s:3:"ccn";i:1;}s:24:"noValuesProvidedForField";a:6:{s:10:"methodName";s:24:"noValuesProvidedForField";s:9:"signature";s:45:"noValuesProvidedForField(string $field): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:14;s:7:"endLine";i:17;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:19;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:19;}s:15:"ignoredLinesFor";a:1:{i:0;i:7;}s:17:"executableLinesIn";a:2:{i:11;i:1;i:16;i:2;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/ff6829f11ff301b138ca03da00426c41 b/.phpunit.cache/code-coverage/ff6829f11ff301b138ca03da00426c41 deleted file mode 100644 index 226dabd..0000000 --- a/.phpunit.cache/code-coverage/ff6829f11ff301b138ca03da00426c41 +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:56:"CodebarAg\DocuWare\DTO\General\Organization\Organization";a:6:{s:4:"name";s:12:"Organization";s:14:"namespacedName";s:56:"CodebarAg\DocuWare\DTO\General\Organization\Organization";s:9:"namespace";s:43:"CodebarAg\DocuWare\DTO\General\Organization";s:9:"startLine";i:8;s:7:"endLine";i:45;s:7:"methods";a:3:{s:8:"fromJson";a:6:{s:10:"methodName";s:8:"fromJson";s:9:"signature";s:27:"fromJson(array $data): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:10;s:7:"endLine";i:19;s:3:"ccn";i:1;}s:11:"__construct";a:6:{s:10:"methodName";s:11:"__construct";s:9:"signature";s:103:"__construct(string $id, string $name, ?string $guid, array $additionalInfo, array $configurationRights)";s:10:"visibility";s:6:"public";s:9:"startLine";i:21;s:7:"endLine";i:28;s:3:"ccn";i:1;}s:4:"fake";a:6:{s:10:"methodName";s:4:"fake";s:9:"signature";s:104:"fake(?string $id, ?string $name, ?string $guid, array $additionalInfo, array $configurationRights): self";s:10:"visibility";s:6:"public";s:9:"startLine";i:30;s:7:"endLine";i:44;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:46;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:46;}s:15:"ignoredLinesFor";a:1:{i:0;i:8;}s:17:"executableLinesIn";a:15:{i:12;i:1;i:13;i:1;i:14;i:1;i:15;i:1;i:16;i:1;i:17;i:1;i:18;i:1;i:28;i:2;i:37;i:7;i:38;i:7;i:39;i:7;i:40;i:7;i:41;i:7;i:42;i:7;i:43;i:7;}} \ No newline at end of file diff --git a/.phpunit.cache/code-coverage/fffe326c5aa70c4797b8a2b58055a5ec b/.phpunit.cache/code-coverage/fffe326c5aa70c4797b8a2b58055a5ec deleted file mode 100644 index ad4f961..0000000 --- a/.phpunit.cache/code-coverage/fffe326c5aa70c4797b8a2b58055a5ec +++ /dev/null @@ -1 +0,0 @@ -a:6:{s:9:"classesIn";a:1:{s:73:"CodebarAg\DocuWare\Responses\FileCabinets\Upload\CreateDataRecordResponse";a:6:{s:4:"name";s:24:"CreateDataRecordResponse";s:14:"namespacedName";s:73:"CodebarAg\DocuWare\Responses\FileCabinets\Upload\CreateDataRecordResponse";s:9:"namespace";s:48:"CodebarAg\DocuWare\Responses\FileCabinets\Upload";s:9:"startLine";i:10;s:7:"endLine";i:22;s:7:"methods";a:1:{s:12:"fromResponse";a:6:{s:10:"methodName";s:12:"fromResponse";s:9:"signature";s:87:"fromResponse(Saloon\Http\Response $response): CodebarAg\DocuWare\DTO\Documents\Document";s:10:"visibility";s:6:"public";s:9:"startLine";i:12;s:7:"endLine";i:21;s:3:"ccn";i:1;}}}}s:8:"traitsIn";a:0:{}s:11:"functionsIn";a:0:{}s:14:"linesOfCodeFor";a:3:{s:11:"linesOfCode";i:23;s:18:"commentLinesOfCode";i:0;s:21:"nonCommentLinesOfCode";i:23;}s:15:"ignoredLinesFor";a:1:{i:0;i:10;}s:17:"executableLinesIn";a:4:{i:14;i:1;i:16;i:2;i:18;i:3;i:20;i:4;}} \ No newline at end of file diff --git a/.phpunit.cache/test-results b/.phpunit.cache/test-results deleted file mode 100644 index 5940aec..0000000 --- a/.phpunit.cache/test-results +++ /dev/null @@ -1 +0,0 @@ -{"version":"pest_2.34.7","defects":[],"times":{"P\\Tests\\Feature\\DocuWareAuthenticationTest::__pest_evaluable_it_can_authenticate_with_DocuWare":0.833,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_file_cabinet":0.062,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_table_row":0.006,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_document_field":0.009,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_document_paginator":0.015,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_dialog":0.014,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_organization_index":0.013,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_suggestion_field":0.013,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_document":0.01,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_field":0.013,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_organization":0.012,"P\\Tests\\Feature\\Requests\\Document\\GetDocumentDownloadRequestTest::__pest_evaluable_it_can_download_a_document":0.692,"P\\Tests\\Feature\\Requests\\Fields\\GetFieldsRequestTest::__pest_evaluable_it_can_list_fields_for_a_file_cabinet":0.184,"P\\Tests\\Feature\\DocuWareTest::__pest_evaluable_it_can_create_encrypted_url_for_a_document_in_a_basket":0.036,"P\\Tests\\Feature\\DocuWareTest::__pest_evaluable_it_can_create_encrypted_url_for_a_document_in_a_file_cabinet":0.014,"P\\Tests\\Feature\\Requests\\Document\\PutDocumentFieldsRequestTest::__pest_evaluable_it_can_update_a_document_value":0.682,"P\\Tests\\Feature\\Requests\\Document\\PutDocumentFieldsRequestTest::__pest_evaluable_it_can_update_multiple_document_values":0.585,"P\\Tests\\Feature\\Requests\\Dialogs\\GetDialogRequestTest::__pest_evaluable_it_can_get_a_dialog":0.323,"P\\Tests\\Unit\\DTO\\DocumentIndex\\PrepareDTOTest::__pest_evaluable_it_create_prepare_makeContent_dto":0.011,"P\\Tests\\Unit\\DTO\\DocumentIndex\\PrepareDTOTest::__pest_evaluable_it_create_prepare_index_dto":0.003,"P\\Tests\\Unit\\DTO\\DocumentIndex\\IndexTextDTOTest::__pest_evaluable_it_create_prepare_index_text_dto":0.004,"P\\Tests\\Unit\\DTO\\DocumentIndex\\IndexNumericDTOTest::__pest_evaluable_it_create_index_numeric_dto":0.003,"P\\Tests\\Feature\\Requests\\Organization\\GetOrganizationsRequestTest::__pest_evaluable_it_can_list_organizations":0.119,"P\\Tests\\Unit\\DTO\\DocumentIndex\\IndexDateDTOTest::__pest_evaluable_it_create_index_date_dto":0.005,"P\\Tests\\Feature\\Requests\\Document\\GetDocumentRequestTest::__pest_evaluable_it_can_show_a_document":0.355,"P\\Tests\\Feature\\Requests\\Document\\Thumbnail\\GetDocumentDownloadThumbnailRequestTest::__pest_evaluable_it_can_download_a_document_thumbnail":0.484,"P\\Tests\\Unit\\DTO\\DocumentIndex\\IndexDateTimeDTOTest::__pest_evaluable_it_create_index_date_time_dto":0.005,"P\\Tests\\Feature\\Requests\\Document\\PostDocumentRequestTest::__pest_evaluable_it_can_upload_document_with_index_values_and_delete_it":0.279,"P\\Tests\\Feature\\Requests\\Document\\PostDocumentRequestTest::__pest_evaluable_it_can_upload_document_without_file_name_and_file_content_and_delete_it":0.177,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_search_documents":0.243,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_search_documents_with_null_values":0.135,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_t_search_documents_by_diverged_date_range":0.011,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_override_search_documents_dates_filter_by_using_equal_operator":0.216,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_search_documents_dates_filter_in_future":0.157,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_search_documents_dates_filter_in_past":0.188,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_search_documents_with_multiple_values":0.732,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_t_search_documents_by_more_than_two_dates":0.011,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_override_search_documents_dates_filter_by_using_same_operator":0.192,"P\\Tests\\Feature\\Requests\\Document\\GetDocumentsRequestTest::__pest_evaluable_it_can_get_all_documents":0.543,"P\\Tests\\Feature\\Requests\\Document\\GetDocumentCountRequestTest::__pest_evaluable_it_can_get_a_total_count_of_documents":0.364,"P\\Tests\\Unit\\DTO\\DocumentIndex\\PrepareTableDTOTest::__pest_evaluable_it_create_prepare_index_table_dto":0.005,"P\\Tests\\Unit\\DTO\\DocumentIndex\\IndexTableDTOTest::__pest_evaluable_it_create_prepare_index_text_dto":0.006,"P\\Tests\\Unit\\DTO\\DocumentIndex\\IndexDecimalDTOTest::__pest_evaluable_it_create_index_numeric_dto":0.003,"P\\Tests\\Feature\\DocuWareAuthenticationTest::__pest_evaluable_it_can_get_oath_request_token":0.67,"P\\Tests\\Feature\\DocuWareAuthenticationTest::__pest_evaluable_it_can_get_oath_responsible_identity_service":0.162,"P\\Tests\\Feature\\DocuWareAuthenticationTest::__pest_evaluable_it_can_get_oath_identity_service_configuration":0.352,"P\\Tests\\Feature\\Requests\\Document\\GetDocumentPreviewRequestTest::__pest_evaluable_it_can_preview_a_document_image":0.902,"P\\Tests\\Core\\ArchTest::__pest_evaluable_it_will_not_use_any_debug_function":0.457,"P\\Tests\\Feature\\Requests\\Dialogs\\GetDialogsRequestTest::__pest_evaluable_it_can_list_dialogs_for_a_file_cabinet":0.174,"P\\Tests\\Feature\\Requests\\FileCabinets\\GetFileCabinetInformationTest::__pest_evaluable_it_can_get_file_cabinet_information":0.153}} \ No newline at end of file From 892198aa12ca11ae8b2d95263e228ae83a9bab94 Mon Sep 17 00:00:00 2001 From: Rhys Lees <43909932+RhysLees@users.noreply.github.com> Date: Tue, 30 Apr 2024 21:37:32 +0100 Subject: [PATCH 08/54] WIP --- README.md | 58 ++++++--- composer.json | 2 +- config/laravel-docuware.php | 3 + phpunit.xml.dist | 1 + src/Connectors/DocuWareConnector.php | 114 +++++++++++++++++- src/DTO/Config.php | 32 +++++ src/DocuWare.php | 4 +- src/DocuWareServiceProvider.php | 4 +- ...kieCreatedLog.php => DocuWareOAuthLog.php} | 9 +- ...en.php => RequestTokenWithCredentials.php} | 5 +- .../OAuth/RequestTokenWithToken.php | 54 +++++++++ src/Support/EnsureValidCookie.php | 4 +- tests/Feature/DocuWareAuthenticationTest.php | 33 ++++- tests/Pest.php | 20 ++- 14 files changed, 289 insertions(+), 54 deletions(-) create mode 100644 src/DTO/Config.php rename src/Events/{DocuWareCookieCreatedLog.php => DocuWareOAuthLog.php} (63%) rename src/Requests/Authentication/OAuth/{RequestToken.php => RequestTokenWithCredentials.php} (90%) create mode 100644 src/Requests/Authentication/OAuth/RequestTokenWithToken.php diff --git a/README.md b/README.md index ed63a4f..af4eaa5 100644 --- a/README.md +++ b/README.md @@ -97,34 +97,52 @@ DOCUWARE_PASSPHRASE="a#bcd>2~C1'abc\\#" Getting OAuth Token ```php -use CodebarAg\DocuWare\Facades\DocuWare; +use CodebarAg\DocuWare\Connectors\DocuWareConnector; -$tokenResponse = new DocuWare::getNewAuthenticationOAuthToken( - username: 'username', // Optional if you need to authenticate with a username different from the one in .env - password: 'password', // Optional if you need to authenticate with a password different from the one in .env -); -``` +// Use credentials from your .env file +$connector = new DocuWareConnector(); -$tokenResponse will contain the following properties: +// Pass credentials manually +$connector = new DocuWareConnector( + configuration: new CodebarAg\DocuWare\DTO\Config( + url: 'https://your-domain.docuware.cloud', + username: 'username', + password: 'password', + passphrase: 'passphrase', + cacheDriver: 'redis', + cacheLifetimeInSeconds: 60, + requestTimeoutInSeconds: 60, + ) +); -```php -CodebarAg\DocuWare\DTO\Authentication\OAuth\RequestToken {#3591▶ - +accessToken: "your_access_token_will_be_here" - +tokenType: "Bearer" - +scope: "docuware.platform" - +expiresIn: 3600 - +expiresAt: Illuminate\Support\Carbon -} ``` -> You may use this token once or store it in your cache for future use. take note of the `expiresIn` and/or `expiresAt` property to know when the token will expire. +Getting a new token via Organization Token: +```php +//Step 1: Create a new connector with either method above +$connector = new DocuWareConnector(); -Once you have your token, you can use it to authenticate your requests: +//Step 2: Get the Get Login Token +$loginToken = $connector->send(new GetLoginToken())->dto(); -```php -use CodebarAg\DocuWare\Connectors\DocuWareConnector; +//Step 3.a: Use the login token in a new connector to fresh the cached access token +$connector = new DocuWareConnector( + token: $loginToken->token +); -$connector = new DocuWareConnector($tokenResponse->accessToken); +//Step 3.b: Optionally pass a configuration to the new connector +$connector = new DocuWareConnector( + configuration: new CodebarAg\DocuWare\DTO\Config( + url: 'https://your-domain.docuware.cloud', + username: '', + password: '', + passphrase: 'passphrase', + cacheDriver: 'redis', + cacheLifetimeInSeconds: 60, + requestTimeoutInSeconds: 60, + ), + token: $loginToken->token +); ``` diff --git a/composer.json b/composer.json index c8ec772..aec33a3 100644 --- a/composer.json +++ b/composer.json @@ -29,8 +29,8 @@ "illuminate/contracts": "^11.0", "nesbot/carbon": "^2.72", "saloonphp/cache-plugin": "^3.0", - "saloonphp/saloon": "^3.7", "saloonphp/laravel-plugin": "^3.5", + "saloonphp/saloon": "^3.7", "spatie/laravel-package-tools": "^1.16" }, "require-dev": { diff --git a/config/laravel-docuware.php b/config/laravel-docuware.php index 40246fc..753bce4 100644 --- a/config/laravel-docuware.php +++ b/config/laravel-docuware.php @@ -76,6 +76,9 @@ 'driver' => env('DOCUWARE_CACHE_DRIVER', env('CACHE_DRIVER', 'file')), 'lifetime_in_seconds' => env('DOCUWARE_CACHE_LIFETIME_IN_SECONDS', 60), ], + 'request' => [ + 'timeout_in_seconds' => env('DOCUWARE_CACHE_TIMEOUT_IN_SECONDS', 60), + ], ], /* diff --git a/phpunit.xml.dist b/phpunit.xml.dist index a6dd8d1..8501007 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -43,6 +43,7 @@ + diff --git a/src/Connectors/DocuWareConnector.php b/src/Connectors/DocuWareConnector.php index e3a9037..ba45081 100644 --- a/src/Connectors/DocuWareConnector.php +++ b/src/Connectors/DocuWareConnector.php @@ -2,14 +2,40 @@ namespace CodebarAg\DocuWare\Connectors; +use CodebarAg\DocuWare\DTO\Authentication\OAuth\RequestToken as RequestTokenDto; +use CodebarAg\DocuWare\DTO\Config; +use CodebarAg\DocuWare\Events\DocuWareOAuthLog; +use CodebarAg\DocuWare\Requests\Authentication\OAuth\GetIdentityServiceConfiguration; +use CodebarAg\DocuWare\Requests\Authentication\OAuth\GetResponsibleIdentityService; +use CodebarAg\DocuWare\Requests\Authentication\OAuth\RequestTokenWithCredentials; +use CodebarAg\DocuWare\Requests\Authentication\OAuth\RequestTokenWithToken; +use Illuminate\Support\Facades\Cache; +use Psr\SimpleCache\InvalidArgumentException; use Saloon\Http\Auth\TokenAuthenticator; use Saloon\Http\Connector; class DocuWareConnector extends Connector { - public function __construct( - public readonly ?string $token = null, - ) { + public Config $configuration; + + public null|string $token = null; + + public function __construct(null|Config $configuration = null, null|string $token = null) { + if (empty($configuration)) { + $this->configuration = new Config( + url: config('laravel-docuware.credentials.url'), + username: config('laravel-docuware.credentials.username'), + password: config('laravel-docuware.credentials.password'), + passphrase: config('laravel-docuware.passphrase'), + cacheDriver: config('laravel-docuware.configurations.cache.driver'), + cacheLifetimeInSeconds: config('laravel-docuware.configurations.cache.lifetime_in_seconds'), + requestTimeoutInSeconds: config('laravel-docuware.configurations.request.timeout_in_seconds'), + ); + }else{ + $this->configuration = $configuration; + } + + $this->token = $token; } /** @@ -27,8 +53,88 @@ public function defaultHeaders(): array ]; } + public function defaultConfig(): array + { + return [ + 'timeout' => $this->configuration->requestTimeoutInSeconds, + ]; + } + protected function defaultAuth(): TokenAuthenticator { - return new TokenAuthenticator($this->token); + return new TokenAuthenticator($this->getOrCreateNewOAuthToken()); + } + + /** + * @throws InvalidArgumentException + */ + protected function getOrCreateNewOAuthToken() + { + $cache = Cache::store($this->configuration->cacheDriver); + $cacheKey = 'docuware.oauth.token.'.$this->configuration->url.'.'.$this->configuration->username; + + if (filled($this->token)) { + $token = $this->getNewAuthenticationOAuthTokenWithToken($this->token); + + $cache->put(key: $cacheKey, value: $token, ttl: $token->expiresIn); + + DocuWareOAuthLog::dispatch($this->configuration->url, $this->configuration->username, 'Token set from token'); + } + + if ( + $cache->has(key: $cacheKey) + ){ + $token = $cache->get(key: $cacheKey); + + DocuWareOAuthLog::dispatch($this->configuration->url, $this->configuration->username, 'Token retrieved from cache'); + }else{ + $token = $this->getNewAuthenticationOAuthTokenWithCredentials($this->configuration->username, $this->configuration->password); + + $cache->put(key: $cacheKey, value: $token, ttl: $token->expiresIn); + + DocuWareOAuthLog::dispatch($this->configuration->url, $this->configuration->username, 'Token retrieved from API'); + } + + return $token->accessToken; + } + + protected function getNewAuthenticationOAuthTokenWithCredentials( + ?string $username = '', + ?string $password = '', + ?string $clientId = 'docuware.platform.net.client' + ): RequestTokenDto { + $responsibleIdentityServiceResponse = (new GetResponsibleIdentityService())->send(); + + $identityServiceConfigurationResponse = (new GetIdentityServiceConfiguration( + identityServiceUrl: $responsibleIdentityServiceResponse->dto()->identityServiceUrl + ))->send(); + + $requestTokenResponse = (new RequestTokenWithCredentials( + tokenEndpoint: $identityServiceConfigurationResponse->dto()->tokenEndpoint, + username: $username, + password: $password, + clientId: $clientId, + ))->send(); + + return $requestTokenResponse->dto(); + } + + protected function getNewAuthenticationOAuthTokenWithToken( + string $token, + ?string $clientId = 'docuware.platform.net.client' + ): RequestTokenDto { + $responsibleIdentityServiceResponse = (new GetResponsibleIdentityService())->send(); + + $identityServiceConfigurationResponse = (new GetIdentityServiceConfiguration( + identityServiceUrl: $responsibleIdentityServiceResponse->dto()->identityServiceUrl + ))->send(); + + $requestTokenResponse = (new RequestTokenWithToken( + tokenEndpoint: $identityServiceConfigurationResponse->dto()->tokenEndpoint, + token: $token, + clientId: $clientId, + ))->send(); + + return $requestTokenResponse->dto(); } } diff --git a/src/DTO/Config.php b/src/DTO/Config.php new file mode 100644 index 0000000..dabe46d --- /dev/null +++ b/src/DTO/Config.php @@ -0,0 +1,32 @@ +dto()->identityServiceUrl ))->send(); - $requestTokenResponse = (new RequestToken( + $requestTokenResponse = (new RequestTokenWithCredentials( tokenEndpoint: $identityServiceConfigurationResponse->dto()->tokenEndpoint, username: $username, password: $password, diff --git a/src/DocuWareServiceProvider.php b/src/DocuWareServiceProvider.php index face78e..c221f2f 100644 --- a/src/DocuWareServiceProvider.php +++ b/src/DocuWareServiceProvider.php @@ -2,7 +2,6 @@ namespace CodebarAg\DocuWare; -use CodebarAg\DocuWare\Commands\ListAuthCookie; use Spatie\LaravelPackageTools\Package; use Spatie\LaravelPackageTools\PackageServiceProvider; @@ -12,7 +11,6 @@ public function configurePackage(Package $package): void { $package ->name('laravel-docuware') - ->hasConfigFile('laravel-docuware') - ->hasCommand(ListAuthCookie::class); + ->hasConfigFile('laravel-docuware'); } } diff --git a/src/Events/DocuWareCookieCreatedLog.php b/src/Events/DocuWareOAuthLog.php similarity index 63% rename from src/Events/DocuWareCookieCreatedLog.php rename to src/Events/DocuWareOAuthLog.php index 433a7d1..4810136 100644 --- a/src/Events/DocuWareCookieCreatedLog.php +++ b/src/Events/DocuWareOAuthLog.php @@ -6,13 +6,20 @@ use Illuminate\Foundation\Events\Dispatchable; use Illuminate\Queue\SerializesModels; -class DocuWareCookieCreatedLog +class DocuWareOAuthLog { use Dispatchable; use InteractsWithSockets; use SerializesModels; + /** + * @param string $url + * @param string $username + * @param string $message + */ public function __construct( + public string $url, + public string $username, public string $message ) { } diff --git a/src/Requests/Authentication/OAuth/RequestToken.php b/src/Requests/Authentication/OAuth/RequestTokenWithCredentials.php similarity index 90% rename from src/Requests/Authentication/OAuth/RequestToken.php rename to src/Requests/Authentication/OAuth/RequestTokenWithCredentials.php index 091c529..1fd0c08 100644 --- a/src/Requests/Authentication/OAuth/RequestToken.php +++ b/src/Requests/Authentication/OAuth/RequestTokenWithCredentials.php @@ -10,7 +10,7 @@ use Saloon\Http\SoloRequest; use Saloon\Traits\Body\HasFormBody; -class RequestToken extends SoloRequest implements HasBody +class RequestTokenWithCredentials extends SoloRequest implements HasBody { use HasFormBody; @@ -20,7 +20,6 @@ public function __construct( public readonly mixed $tokenEndpoint, public readonly ?string $username = '', public readonly ?string $password = '', - public readonly string $grantType = 'password', public readonly string $clientId = 'docuware.platform.net.client', ) { } @@ -41,7 +40,7 @@ public function defaultBody(): array { return [ 'scope' => 'docuware.platform', - 'grant_type' => $this->grantType, + 'grant_type' => 'password', 'client_id' => $this->clientId, 'username' => filled($this->username) ? $this->username : config('laravel-docuware.credentials.username'), 'password' => filled($this->password) ? $this->password : config('laravel-docuware.credentials.password'), diff --git a/src/Requests/Authentication/OAuth/RequestTokenWithToken.php b/src/Requests/Authentication/OAuth/RequestTokenWithToken.php new file mode 100644 index 0000000..73d3810 --- /dev/null +++ b/src/Requests/Authentication/OAuth/RequestTokenWithToken.php @@ -0,0 +1,54 @@ +tokenEndpoint; + } + + public function defaultHeaders(): array + { + return [ + 'Accept' => 'application/json', + ]; + } + + public function defaultBody(): array + { + return [ + 'scope' => 'docuware.platform', + 'grant_type' => 'dwtoken', + 'client_id' => $this->clientId, + 'token' => $this->token, + ]; + } + + public function createDtoFromResponse(Response $response): RequestTokenDto + { + return RequestTokenResponse::fromResponse($response); + } +} diff --git a/src/Support/EnsureValidCookie.php b/src/Support/EnsureValidCookie.php index f07f75d..9048ca0 100644 --- a/src/Support/EnsureValidCookie.php +++ b/src/Support/EnsureValidCookie.php @@ -2,7 +2,7 @@ namespace CodebarAg\DocuWare\Support; -use CodebarAg\DocuWare\Events\DocuWareCookieCreatedLog; +use CodebarAg\DocuWare\Events\DocuWareOAuthLog; use CodebarAg\DocuWare\Events\DocuWareResponseLog; use CodebarAg\DocuWare\Exceptions\UnableToLogin; use CodebarAg\DocuWare\Exceptions\UnableToLoginNoCookies; @@ -23,7 +23,7 @@ public static function check(): void EnsureValidCredentials::check(); - event(new DocuWareCookieCreatedLog('Creating new authentication cookie for caching')); + event(new DocuWareOAuthLog('Creating new authentication cookie for caching')); $cookieJar = new CookieJar(); diff --git a/tests/Feature/DocuWareAuthenticationTest.php b/tests/Feature/DocuWareAuthenticationTest.php index e5e07b9..eca0283 100644 --- a/tests/Feature/DocuWareAuthenticationTest.php +++ b/tests/Feature/DocuWareAuthenticationTest.php @@ -1,11 +1,16 @@ send(); @@ -30,17 +35,33 @@ identityServiceUrl: $responsibleIdentityServiceResponse->dto()->identityServiceUrl ))->send(); - $requestTokenResponse = (new \CodebarAg\DocuWare\Requests\Authentication\OAuth\RequestToken( + $requestTokenResponse = (new \CodebarAg\DocuWare\Requests\Authentication\OAuth\RequestTokenWithCredentials( tokenEndpoint: $identityServiceConfigurationResponse->dto()->tokenEndpoint ))->send(); expect($requestTokenResponse->dto())->toBeInstanceOf(RequestToken::class); })->group('authentication'); -it('can authenticate with DocuWare', function () { - $res = DocuWare::getNewAuthenticationOAuthToken(); +it('can authenticate with DocuWare Credentials', function () { + Event::fake(); - ray($res); + $connector = new DocuWareConnector(); + $connector->send(new GetOrganization()); - expect($res)->toBeInstanceOf(RequestToken::class); -})->group('authentication'); + Event::assertDispatched(DocuWareOAuthLog::class); + +})->group('authentication')->only(); + +it('can authenticate with DocuWare Token', function () { + Event::fake(); + + $connector = new DocuWareConnector(); + $token = $connector->send(new GetLoginToken())->dto(); + + $connector = new DocuWareConnector(token: $token); + + $connector->send(new GetOrganization()); + + Event::assertDispatched(DocuWareOAuthLog::class); + +})->group('authentication')->only(); diff --git a/tests/Pest.php b/tests/Pest.php index 3564320..d6ff17a 100644 --- a/tests/Pest.php +++ b/tests/Pest.php @@ -16,18 +16,6 @@ }) ->in('Feature'); -/** - * @throws Throwable - */ -function getConnector(): object -{ - if (! env('DOCUWARE_TOKEN')) { - throw new Exception('DOCUWARE_TOKEN is not set in the .env file.'); - } - - return new DocuWareConnector(env('DOCUWARE_TOKEN')); -} - function clearFiles(): void { $connector = getConnector(); @@ -43,3 +31,11 @@ function clearFiles(): void ))->dto(); } } + +/** + * @throws Throwable + */ +function getConnector(): object +{ + return new DocuWareConnector(); +} From 71fbb88ad732664446e35ea39ff1a4c25b808ea9 Mon Sep 17 00:00:00 2001 From: RhysLees Date: Tue, 30 Apr 2024 20:38:02 +0000 Subject: [PATCH 09/54] Fix styling --- src/Connectors/DocuWareConnector.php | 11 ++++++----- src/Events/DocuWareOAuthLog.php | 5 ----- .../Authentication/OAuth/RequestTokenWithToken.php | 2 -- tests/Feature/DocuWareAuthenticationTest.php | 2 -- 4 files changed, 6 insertions(+), 14 deletions(-) diff --git a/src/Connectors/DocuWareConnector.php b/src/Connectors/DocuWareConnector.php index ba45081..8719c75 100644 --- a/src/Connectors/DocuWareConnector.php +++ b/src/Connectors/DocuWareConnector.php @@ -18,9 +18,10 @@ class DocuWareConnector extends Connector { public Config $configuration; - public null|string $token = null; + public ?string $token = null; - public function __construct(null|Config $configuration = null, null|string $token = null) { + public function __construct(?Config $configuration = null, ?string $token = null) + { if (empty($configuration)) { $this->configuration = new Config( url: config('laravel-docuware.credentials.url'), @@ -31,7 +32,7 @@ public function __construct(null|Config $configuration = null, null|string $toke cacheLifetimeInSeconds: config('laravel-docuware.configurations.cache.lifetime_in_seconds'), requestTimeoutInSeconds: config('laravel-docuware.configurations.request.timeout_in_seconds'), ); - }else{ + } else { $this->configuration = $configuration; } @@ -83,11 +84,11 @@ protected function getOrCreateNewOAuthToken() if ( $cache->has(key: $cacheKey) - ){ + ) { $token = $cache->get(key: $cacheKey); DocuWareOAuthLog::dispatch($this->configuration->url, $this->configuration->username, 'Token retrieved from cache'); - }else{ + } else { $token = $this->getNewAuthenticationOAuthTokenWithCredentials($this->configuration->username, $this->configuration->password); $cache->put(key: $cacheKey, value: $token, ttl: $token->expiresIn); diff --git a/src/Events/DocuWareOAuthLog.php b/src/Events/DocuWareOAuthLog.php index 4810136..41f8cbb 100644 --- a/src/Events/DocuWareOAuthLog.php +++ b/src/Events/DocuWareOAuthLog.php @@ -12,11 +12,6 @@ class DocuWareOAuthLog use InteractsWithSockets; use SerializesModels; - /** - * @param string $url - * @param string $username - * @param string $message - */ public function __construct( public string $url, public string $username, diff --git a/src/Requests/Authentication/OAuth/RequestTokenWithToken.php b/src/Requests/Authentication/OAuth/RequestTokenWithToken.php index 73d3810..be53bff 100644 --- a/src/Requests/Authentication/OAuth/RequestTokenWithToken.php +++ b/src/Requests/Authentication/OAuth/RequestTokenWithToken.php @@ -3,9 +3,7 @@ namespace CodebarAg\DocuWare\Requests\Authentication\OAuth; use CodebarAg\DocuWare\DTO\Authentication\OAuth\RequestToken as RequestTokenDto; -use CodebarAg\DocuWare\Events\DocuWareOAuthLog; use CodebarAg\DocuWare\Responses\Authentication\OAuth\RequestTokenResponse; -use Illuminate\Support\Facades\Cache; use Saloon\Contracts\Body\HasBody; use Saloon\Enums\Method; use Saloon\Http\Response; diff --git a/tests/Feature/DocuWareAuthenticationTest.php b/tests/Feature/DocuWareAuthenticationTest.php index eca0283..1b6c5fb 100644 --- a/tests/Feature/DocuWareAuthenticationTest.php +++ b/tests/Feature/DocuWareAuthenticationTest.php @@ -5,12 +5,10 @@ use CodebarAg\DocuWare\DTO\Authentication\OAuth\RequestToken; use CodebarAg\DocuWare\DTO\Authentication\OAuth\ResponsibleIdentityService; use CodebarAg\DocuWare\Events\DocuWareOAuthLog; -use CodebarAg\DocuWare\Facades\DocuWare; use CodebarAg\DocuWare\Requests\Authentication\OAuth\GetIdentityServiceConfiguration; use CodebarAg\DocuWare\Requests\Authentication\OAuth\GetResponsibleIdentityService; use CodebarAg\DocuWare\Requests\General\Organization\GetLoginToken; use CodebarAg\DocuWare\Requests\General\Organization\GetOrganization; -use Illuminate\Support\Facades\Cache; it('can get oath responsible identity service', function () { $responsibleIdentityServiceResponse = (new GetResponsibleIdentityService())->send(); From 72dba0424d3d025ccd8856629fa4a30c17d5fb02 Mon Sep 17 00:00:00 2001 From: Rhys Lees <43909932+RhysLees@users.noreply.github.com> Date: Tue, 30 Apr 2024 21:38:40 +0100 Subject: [PATCH 10/54] WIP --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index af4eaa5..df362a8 100644 --- a/README.md +++ b/README.md @@ -120,10 +120,10 @@ $connector = new DocuWareConnector( Getting a new token via Organization Token: ```php //Step 1: Create a new connector with either method above -$connector = new DocuWareConnector(); +$loginTokenConnector = new DocuWareConnector(); //Step 2: Get the Get Login Token -$loginToken = $connector->send(new GetLoginToken())->dto(); +$loginToken = $loginTokenConnector->send(new GetLoginToken())->dto(); //Step 3.a: Use the login token in a new connector to fresh the cached access token $connector = new DocuWareConnector( From 5fb0de5842dcd5c482be46a605e62848cd4d055f Mon Sep 17 00:00:00 2001 From: Rhys Lees <43909932+RhysLees@users.noreply.github.com> Date: Tue, 30 Apr 2024 21:39:24 +0100 Subject: [PATCH 11/54] WIP --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index df362a8..8479123 100644 --- a/README.md +++ b/README.md @@ -98,13 +98,14 @@ DOCUWARE_PASSPHRASE="a#bcd>2~C1'abc\\#" ```php use CodebarAg\DocuWare\Connectors\DocuWareConnector; +use CodebarAg\DocuWare\DTO\Config; // Use credentials from your .env file $connector = new DocuWareConnector(); // Pass credentials manually $connector = new DocuWareConnector( - configuration: new CodebarAg\DocuWare\DTO\Config( + configuration: new Config( url: 'https://your-domain.docuware.cloud', username: 'username', password: 'password', @@ -119,6 +120,9 @@ $connector = new DocuWareConnector( Getting a new token via Organization Token: ```php +use CodebarAg\DocuWare\Connectors\DocuWareConnector; +use CodebarAg\DocuWare\DTO\Config; + //Step 1: Create a new connector with either method above $loginTokenConnector = new DocuWareConnector(); @@ -132,7 +136,7 @@ $connector = new DocuWareConnector( //Step 3.b: Optionally pass a configuration to the new connector $connector = new DocuWareConnector( - configuration: new CodebarAg\DocuWare\DTO\Config( + configuration: new Config( url: 'https://your-domain.docuware.cloud', username: '', password: '', From d84d298434aab3e976d28704fc0722e1d09f54fc Mon Sep 17 00:00:00 2001 From: Rhys Lees <43909932+RhysLees@users.noreply.github.com> Date: Tue, 30 Apr 2024 21:40:29 +0100 Subject: [PATCH 12/54] WIP --- phpunit.xml.dist | 1 - 1 file changed, 1 deletion(-) diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 8501007..a7b871f 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -37,7 +37,6 @@ - From 43168e5527183769f7117d2e9412fb5ce8b3cc3f Mon Sep 17 00:00:00 2001 From: Rhys Lees <43909932+RhysLees@users.noreply.github.com> Date: Tue, 30 Apr 2024 21:58:54 +0100 Subject: [PATCH 13/54] WIP --- README.md | 4 +++- src/DocuWare.php | 1 - tests/Feature/DocuWareAuthenticationTest.php | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 8479123..b5423db 100644 --- a/README.md +++ b/README.md @@ -94,7 +94,9 @@ DOCUWARE_PASSPHRASE="a#bcd>2~C1'abc\\#" ### Getting OAuth Token
- Getting OAuth Token + Getting Started with OAuth + +> This package automatically handles the generation of OAuth token for you and stores them in cache. ```php use CodebarAg\DocuWare\Connectors\DocuWareConnector; diff --git a/src/DocuWare.php b/src/DocuWare.php index 7790c1d..f277219 100644 --- a/src/DocuWare.php +++ b/src/DocuWare.php @@ -25,7 +25,6 @@ public function getNewAuthenticationOAuthToken( tokenEndpoint: $identityServiceConfigurationResponse->dto()->tokenEndpoint, username: $username, password: $password, - grantType: $grantType, clientId: $clientId, ))->send(); diff --git a/tests/Feature/DocuWareAuthenticationTest.php b/tests/Feature/DocuWareAuthenticationTest.php index 1b6c5fb..869f8b2 100644 --- a/tests/Feature/DocuWareAuthenticationTest.php +++ b/tests/Feature/DocuWareAuthenticationTest.php @@ -48,7 +48,7 @@ Event::assertDispatched(DocuWareOAuthLog::class); -})->group('authentication')->only(); +})->group('authentication'); it('can authenticate with DocuWare Token', function () { Event::fake(); @@ -62,4 +62,4 @@ Event::assertDispatched(DocuWareOAuthLog::class); -})->group('authentication')->only(); +})->group('authentication'); From 5d6377d8f7eb7cfe5be9760b38113b71830c5361 Mon Sep 17 00:00:00 2001 From: Rhys Lees <43909932+RhysLees@users.noreply.github.com> Date: Tue, 30 Apr 2024 22:01:39 +0100 Subject: [PATCH 14/54] WIP --- src/Support/EnsureValidCookie.php | 43 ------------------------------- 1 file changed, 43 deletions(-) delete mode 100644 src/Support/EnsureValidCookie.php diff --git a/src/Support/EnsureValidCookie.php b/src/Support/EnsureValidCookie.php deleted file mode 100644 index 9048ca0..0000000 --- a/src/Support/EnsureValidCookie.php +++ /dev/null @@ -1,43 +0,0 @@ -config()->add('cookies', $cookieJar); - - $response = $request->send(); - - event(new DocuWareResponseLog($response)); - - throw_if($response->status() === Response::HTTP_UNAUTHORIZED, UnableToLogin::create()); - throw_if($cookieJar->toArray() === [], UnableToLoginNoCookies::create()); - - Auth::store($cookieJar); - } -} From 570ac4060bf8b1fc97857950ad9d540a014da8af Mon Sep 17 00:00:00 2001 From: Rhys Lees <43909932+RhysLees@users.noreply.github.com> Date: Fri, 3 May 2024 15:40:33 +0100 Subject: [PATCH 15/54] WIP --- README.md | 102 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 102 insertions(+) diff --git a/README.md b/README.md index b5423db..e551676 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,108 @@ then optimize the processes that power the core of your business.
+
+ Current Support + +| Group | Request | Supported | +|-------------------------------------|-------------------------------------------------------------|-----------| +| Authentication/OAuth | 1. Get Responsible Identity Service | ✅ | +| Authentication/OAuth | 2. Get Identity Service Configuration | ✅ | +| Authentication/OAuth | 3.a Request Token w/ Username & Password | ✅ | +| Authentication/OAuth | 3.b Request Token w/ a DocuWare Token | ✅ | +| Authentication/OAuth | 3.c Request Token w/ Username & Password (Trusted User) | ❌ | +| Authentication/OAuth | 3.d.1 Obtain Windows Authorization (On Premises Only) | ❌ | +| Authentication/OAuth | 3.d.2 Request Token /w a Windows Account (On Premises Only) | ❌ | +| General/Organisation | Get Login Token | ✅ | +| General/Organisation | Get Organization | ✅ | +| General/Organisation | Get All File Cabinets and Document Trays | ✅ | +| General/UserManagement | Get Users | ❌ | +| General/UserManagement | Get Users by ID | ❌ | +| General/UserManagement | Get Users of a Role | ❌ | +| General/UserManagement | Get Users of a Group | ❌ | +| General/UserManagement | Create User | ❌ | +| General/UserManagement | Update User | ❌ | +| General/UserManagement | Get Groups | ❌ | +| General/UserManagement | Get All Groups for a Specific User | ❌ | +| General/UserManagement | Add User to a Group | ❌ | +| General/UserManagement | Remove User from a Group | ❌ | +| General/UserManagement | Get Roles | ❌ | +| General/UserManagement | Get All Roles for a Specific User | ❌ | +| General/UserManagement | Add User to a Role | ❌ | +| General/UserManagement | Remove User from a Role | ❌ | +| FileCabinets/General | Get File Cabinet Information | ✅ | +| FileCabinets/General | Get Total Number of Documents | ✅ | +| FileCabinets/Dialogs | Get All Dialogs | ✅ | +| FileCabinets/Dialogs | Get a Specific Dialog | ✅ | +| FileCabinets/Dialogs | Get Dialogs of a Specific Type | ❌ | +| FileCabinets/Search | Get Documents from a File Cabinet | ❌ | +| FileCabinets/Search | Get a Specific Document From a File Cabinet | ❌ | +| FileCabinets/Search | Search for Documents in a Single File Cabinet | ❌ | +| FileCabinets/Search | Search for Documents in Multiple File Cabinets | ❌ | +| FileCabinets/CheckInCheckOut | Check-out & Download a Document | ❌ | +| FileCabinets/CheckInCheckOut | Check-in a Document from the File System | ❌ | +| FileCabinets/CheckInCheckOut | Undo Check-out | ❌ | +| FileCabinets/SelectLists | Get Select Lists | ✅ | +| FileCabinets/SelectLists | Get Filtered Select Lists | ❌ | +| FileCabinets/Upload | Create Data Record | ✅ | +| FileCabinets/Upload | Append File(s) to a Data Record | ❌ | +| FileCabinets/Upload | Upload a Single File for a Data Record | ❌ | +| FileCabinets/Upload | Create a Data Record & Upload File | ❌ | +| FileCabinets/Upload | Create Data Record & Upload File Using Store Dialog | ❌ | +| FileCabinets/Upload | Append a Single PDF to a Document | ❌ | +| FileCabinets/Upload | Replace a PDF Document Section | ❌ | +| FileCabinets/BatchIndexFieldsUpdate | Batch Update Index Fields By Id | ❌ | +| FileCabinets/BatchIndexFieldsUpdate | Batch Update Index Fields By Search | ❌ | +| FileCabinets/BatchIndexFieldsUpdate | Batch Append/Update Keyword Fields By Id | ❌ | +| Documents/UpdateIndexValues | Update Index Values | ✅ | +| Documents/UpdateIndexValues | Update Table Field Values | ❌ | +| Documents/ModifyDocuments | Transfer Document | ✅ | +| Documents/ModifyDocuments | Delete Document | ✅ | +| Documents/ClipUnclip&StapleUnstaple | Clip | ❌ | +| Documents/ClipUnclip&StapleUnstaple | Unclip | ❌ | +| Documents/ClipUnclip&StapleUnstaple | Staple | ❌ | +| Documents/ClipUnclip&StapleUnstaple | Unstaple | ❌ | +| Documents/AnnotationsStamps | AddStampWithPosition | ❌ | +| Documents/AnnotationsStamps | AddStampWithBestPosition | ❌ | +| Documents/AnnotationsStamps | AddTextAnnotation | ❌ | +| Documents/AnnotationsStamps | AddRectEntryAnnotation | ❌ | +| Documents/AnnotationsStamps | AddLineEntryAnnotation | ❌ | +| Documents/AnnotationsStamps | AddPolyLineEntryAnnotation | ❌ | +| Documents/AnnotationsStamps | DeleteAnnotation | ❌ | +| Documents/AnnotationsStamps | UpdateTextAnnotation | ❌ | +| Documents/AnnotationsStamps | Get Stamps | ❌ | +| Documents/DocumentsTrashBin | Get Documents | ❌ | +| Documents/DocumentsTrashBin | Delete Documents | ❌ | +| Documents/DocumentsTrashBin | Restore Documents | ❌ | +| Documents/ApplicationProperties | Get Application Properties | ❌ | +| Documents/ApplicationProperties | Add Application Properties | ❌ | +| Documents/ApplicationProperties | Delete Application Properties | ❌ | +| Documents/ApplicationProperties | Update Application Properties | ❌ | +| Documents/Sections | Get All Sections from a Document | ❌ | +| Documents/Sections | Get a Specific Section | ❌ | +| Documents/Sections | Delete Section | ❌ | +| Documents/Download | Download Document | ✅ | +| Documents/Download | Download Section | ❌ | +| Documents/Download | Download Thumbnail | ✅ | +| Workflow | Get Document Workflow History | ❌ | +| Workflow | Get Document Workflow History Steps | ❌ | + + + + + + + + + + + + + + +
+ + ## ⚙️ Installation You can install the package via composer: From d36c921c4882199b7388d3754044a9fcc48f6cc6 Mon Sep 17 00:00:00 2001 From: Rhys Lees <43909932+RhysLees@users.noreply.github.com> Date: Fri, 3 May 2024 19:34:46 +0100 Subject: [PATCH 16/54] WIP --- README.md | 12 ++-- .../UserManagement/GetModifyGroups/Group.php | 24 +++++++ .../UserManagement/GetModifyRoles/Role.php | 26 +++++++ .../UserManagement/GetUsers/OutOfOffice.php | 24 +++++++ .../GetUsers/RegionalSettings.php | 22 ++++++ .../General/UserManagement/GetUsers/User.php | 69 +++++++++++++++++++ .../GetModifyGroups/GetGroups.php | 56 +++++++++++++++ .../GetModifyRoles/GetRoles.php | 57 +++++++++++++++ .../UserManagement/GetUsers/GetUserById.php | 52 ++++++++++++++ .../UserManagement/GetUsers/GetUsers.php | 55 +++++++++++++++ .../GetUsers/GetUsersOfAGroup.php | 53 ++++++++++++++ .../GetUsers/GetUsersOfARole.php | 55 +++++++++++++++ .../GetModifyGroups/GetGroupsResponse.php | 24 +++++++ .../GetModifyRoles/GetRolesResponse.php | 25 +++++++ .../GetUsers/GetUserResponse.php | 22 ++++++ .../GetUsers/GetUsersResponse.php | 24 +++++++ .../GetModifyGroups/GetGroupsTest.php | 24 +++++++ .../GetUsers/GetUserByIdTest.php | 19 +++++ .../GetUsers/GetUsersOfAGroupTest.php | 27 ++++++++ .../GetUsers/GetUsersOfARoleTest.php | 25 +++++++ .../UserManagement/GetUsers/GetUsersTest.php | 22 ++++++ 21 files changed, 711 insertions(+), 6 deletions(-) create mode 100644 src/DTO/General/UserManagement/GetModifyGroups/Group.php create mode 100644 src/DTO/General/UserManagement/GetModifyRoles/Role.php create mode 100644 src/DTO/General/UserManagement/GetUsers/OutOfOffice.php create mode 100644 src/DTO/General/UserManagement/GetUsers/RegionalSettings.php create mode 100644 src/DTO/General/UserManagement/GetUsers/User.php create mode 100644 src/Requests/General/UserManagement/GetModifyGroups/GetGroups.php create mode 100644 src/Requests/General/UserManagement/GetModifyRoles/GetRoles.php create mode 100644 src/Requests/General/UserManagement/GetUsers/GetUserById.php create mode 100644 src/Requests/General/UserManagement/GetUsers/GetUsers.php create mode 100644 src/Requests/General/UserManagement/GetUsers/GetUsersOfAGroup.php create mode 100644 src/Requests/General/UserManagement/GetUsers/GetUsersOfARole.php create mode 100644 src/Responses/General/UserManagement/GetModifyGroups/GetGroupsResponse.php create mode 100644 src/Responses/General/UserManagement/GetModifyRoles/GetRolesResponse.php create mode 100644 src/Responses/General/UserManagement/GetUsers/GetUserResponse.php create mode 100644 src/Responses/General/UserManagement/GetUsers/GetUsersResponse.php create mode 100644 tests/Feature/Requests/General/UserManagement/GetModifyGroups/GetGroupsTest.php create mode 100644 tests/Feature/Requests/General/UserManagement/GetUsers/GetUserByIdTest.php create mode 100644 tests/Feature/Requests/General/UserManagement/GetUsers/GetUsersOfAGroupTest.php create mode 100644 tests/Feature/Requests/General/UserManagement/GetUsers/GetUsersOfARoleTest.php create mode 100644 tests/Feature/Requests/General/UserManagement/GetUsers/GetUsersTest.php diff --git a/README.md b/README.md index e551676..1397c87 100644 --- a/README.md +++ b/README.md @@ -76,17 +76,17 @@ then optimize the processes that power the core of your business. | General/Organisation | Get Login Token | ✅ | | General/Organisation | Get Organization | ✅ | | General/Organisation | Get All File Cabinets and Document Trays | ✅ | -| General/UserManagement | Get Users | ❌ | -| General/UserManagement | Get Users by ID | ❌ | -| General/UserManagement | Get Users of a Role | ❌ | -| General/UserManagement | Get Users of a Group | ❌ | +| General/UserManagement | Get Users | ✅ | +| General/UserManagement | Get Users by ID | ✅ | +| General/UserManagement | Get Users of a Role | ✅ | +| General/UserManagement | Get Users of a Group | ✅ | | General/UserManagement | Create User | ❌ | | General/UserManagement | Update User | ❌ | -| General/UserManagement | Get Groups | ❌ | +| General/UserManagement | Get Groups | ✅ | | General/UserManagement | Get All Groups for a Specific User | ❌ | | General/UserManagement | Add User to a Group | ❌ | | General/UserManagement | Remove User from a Group | ❌ | -| General/UserManagement | Get Roles | ❌ | +| General/UserManagement | Get Roles | ✅ | | General/UserManagement | Get All Roles for a Specific User | ❌ | | General/UserManagement | Add User to a Role | ❌ | | General/UserManagement | Remove User from a Role | ❌ | diff --git a/src/DTO/General/UserManagement/GetModifyGroups/Group.php b/src/DTO/General/UserManagement/GetModifyGroups/Group.php new file mode 100644 index 0000000..b1fab04 --- /dev/null +++ b/src/DTO/General/UserManagement/GetModifyGroups/Group.php @@ -0,0 +1,24 @@ + $this->name, + 'Active' => $this->active, + ]; + } + + public function resolveCacheDriver(): LaravelCacheDriver + { + return new LaravelCacheDriver(Cache::store(config('laravel-docuware.configurations.cache.driver'))); + } + + public function cacheExpiryInSeconds(): int + { + return config('laravel-docuware.configurations.cache.lifetime_in_seconds', 3600); + } + + public function createDtoFromResponse(Response $response): Enumerable|Collection + { + return GetGroupsResponse::fromResponse($response); + } +} diff --git a/src/Requests/General/UserManagement/GetModifyRoles/GetRoles.php b/src/Requests/General/UserManagement/GetModifyRoles/GetRoles.php new file mode 100644 index 0000000..693a319 --- /dev/null +++ b/src/Requests/General/UserManagement/GetModifyRoles/GetRoles.php @@ -0,0 +1,57 @@ + $this->name, + 'Active' => $this->active, + 'Type' => $this->type, + ]; + } + + public function resolveCacheDriver(): LaravelCacheDriver + { + return new LaravelCacheDriver(Cache::store(config('laravel-docuware.configurations.cache.driver'))); + } + + public function cacheExpiryInSeconds(): int + { + return config('laravel-docuware.configurations.cache.lifetime_in_seconds', 3600); + } + + public function createDtoFromResponse(Response $response): Enumerable|Collection + { + return GetRolesResponse::fromResponse($response); + } +} diff --git a/src/Requests/General/UserManagement/GetUsers/GetUserById.php b/src/Requests/General/UserManagement/GetUsers/GetUserById.php new file mode 100644 index 0000000..9d724c8 --- /dev/null +++ b/src/Requests/General/UserManagement/GetUsers/GetUserById.php @@ -0,0 +1,52 @@ + $this->userId, + ]; + } + + public function resolveCacheDriver(): LaravelCacheDriver + { + return new LaravelCacheDriver(Cache::store(config('laravel-docuware.configurations.cache.driver'))); + } + + public function cacheExpiryInSeconds(): int + { + return config('laravel-docuware.configurations.cache.lifetime_in_seconds', 3600); + } + + public function createDtoFromResponse(Response $response): User + { + return GetUserResponse::fromResponse($response); + } +} diff --git a/src/Requests/General/UserManagement/GetUsers/GetUsers.php b/src/Requests/General/UserManagement/GetUsers/GetUsers.php new file mode 100644 index 0000000..0436696 --- /dev/null +++ b/src/Requests/General/UserManagement/GetUsers/GetUsers.php @@ -0,0 +1,55 @@ + $this->name, + 'Active' => $this->active, + ]; + } + + public function resolveCacheDriver(): LaravelCacheDriver + { + return new LaravelCacheDriver(Cache::store(config('laravel-docuware.configurations.cache.driver'))); + } + + public function cacheExpiryInSeconds(): int + { + return config('laravel-docuware.configurations.cache.lifetime_in_seconds', 3600); + } + + public function createDtoFromResponse(Response $response): Enumerable|Collection + { + return GetUsersResponse::fromResponse($response); + } +} diff --git a/src/Requests/General/UserManagement/GetUsers/GetUsersOfAGroup.php b/src/Requests/General/UserManagement/GetUsers/GetUsersOfAGroup.php new file mode 100644 index 0000000..c863e65 --- /dev/null +++ b/src/Requests/General/UserManagement/GetUsers/GetUsersOfAGroup.php @@ -0,0 +1,53 @@ + $this->groupId, + ]; + } + + public function resolveCacheDriver(): LaravelCacheDriver + { + return new LaravelCacheDriver(Cache::store(config('laravel-docuware.configurations.cache.driver'))); + } + + public function cacheExpiryInSeconds(): int + { + return config('laravel-docuware.configurations.cache.lifetime_in_seconds', 3600); + } + + public function createDtoFromResponse(Response $response): Enumerable|Collection + { + return GetUsersResponse::fromResponse($response); + } +} diff --git a/src/Requests/General/UserManagement/GetUsers/GetUsersOfARole.php b/src/Requests/General/UserManagement/GetUsers/GetUsersOfARole.php new file mode 100644 index 0000000..a6020bf --- /dev/null +++ b/src/Requests/General/UserManagement/GetUsers/GetUsersOfARole.php @@ -0,0 +1,55 @@ + $this->roleId, + 'IncludeGroupUsers' => $this->includeGroupUsers, + ]; + } + + public function resolveCacheDriver(): LaravelCacheDriver + { + return new LaravelCacheDriver(Cache::store(config('laravel-docuware.configurations.cache.driver'))); + } + + public function cacheExpiryInSeconds(): int + { + return config('laravel-docuware.configurations.cache.lifetime_in_seconds', 3600); + } + + public function createDtoFromResponse(Response $response): Enumerable|Collection + { + return GetUsersResponse::fromResponse($response); + } +} diff --git a/src/Responses/General/UserManagement/GetModifyGroups/GetGroupsResponse.php b/src/Responses/General/UserManagement/GetModifyGroups/GetGroupsResponse.php new file mode 100644 index 0000000..5822826 --- /dev/null +++ b/src/Responses/General/UserManagement/GetModifyGroups/GetGroupsResponse.php @@ -0,0 +1,24 @@ +throw()->json('Item'); + + return collect($groups)->map(fn (array $group) => Group::fromJson($group)); + } +} diff --git a/src/Responses/General/UserManagement/GetModifyRoles/GetRolesResponse.php b/src/Responses/General/UserManagement/GetModifyRoles/GetRolesResponse.php new file mode 100644 index 0000000..6417fe8 --- /dev/null +++ b/src/Responses/General/UserManagement/GetModifyRoles/GetRolesResponse.php @@ -0,0 +1,25 @@ +throw()->json('Item'); + + return collect($roles)->map(fn (array $role) => Role::fromJson($role)); + } +} diff --git a/src/Responses/General/UserManagement/GetUsers/GetUserResponse.php b/src/Responses/General/UserManagement/GetUsers/GetUserResponse.php new file mode 100644 index 0000000..6961de4 --- /dev/null +++ b/src/Responses/General/UserManagement/GetUsers/GetUserResponse.php @@ -0,0 +1,22 @@ +throw()->json(); + + return User::fromJson($user); + } +} diff --git a/src/Responses/General/UserManagement/GetUsers/GetUsersResponse.php b/src/Responses/General/UserManagement/GetUsers/GetUsersResponse.php new file mode 100644 index 0000000..4010403 --- /dev/null +++ b/src/Responses/General/UserManagement/GetUsers/GetUsersResponse.php @@ -0,0 +1,24 @@ +throw()->json('User'); + + return collect($users)->map(fn (array $user) => User::fromJson($user)); + } +} diff --git a/tests/Feature/Requests/General/UserManagement/GetModifyGroups/GetGroupsTest.php b/tests/Feature/Requests/General/UserManagement/GetModifyGroups/GetGroupsTest.php new file mode 100644 index 0000000..abb1614 --- /dev/null +++ b/tests/Feature/Requests/General/UserManagement/GetModifyGroups/GetGroupsTest.php @@ -0,0 +1,24 @@ +connector->send(new GetRoles())->dto(); + + $this->assertInstanceOf(Collection::class, $groups); + + foreach ($groups as $group) { + $this->assertInstanceOf(Group::class, $group); + } + + $this->assertNotCount(0, $groups); + Event::assertDispatched(DocuWareResponseLog::class); +}); diff --git a/tests/Feature/Requests/General/UserManagement/GetUsers/GetUserByIdTest.php b/tests/Feature/Requests/General/UserManagement/GetUsers/GetUserByIdTest.php new file mode 100644 index 0000000..43e7363 --- /dev/null +++ b/tests/Feature/Requests/General/UserManagement/GetUsers/GetUserByIdTest.php @@ -0,0 +1,19 @@ +connector->send(new GetUsers())->dto(); + + $user = $this->connector->send(new GetUserById($users->get(2)->id))->dto(); + + $this->assertInstanceOf(User::class, $user); + + Event::assertDispatched(DocuWareResponseLog::class); +}); diff --git a/tests/Feature/Requests/General/UserManagement/GetUsers/GetUsersOfAGroupTest.php b/tests/Feature/Requests/General/UserManagement/GetUsers/GetUsersOfAGroupTest.php new file mode 100644 index 0000000..3670fbc --- /dev/null +++ b/tests/Feature/Requests/General/UserManagement/GetUsers/GetUsersOfAGroupTest.php @@ -0,0 +1,27 @@ +connector->send(new GetGroups())->dto(); + + $users = $this->connector->send(new GetUsersOfAGroup($groups->first()->id))->dto(); + + $this->assertInstanceOf(Collection::class, $users); + + foreach ($users as $user) { + $this->assertInstanceOf(User::class, $user); + } + + $this->assertNotCount(0, $users); + Event::assertDispatched(DocuWareResponseLog::class); +}); diff --git a/tests/Feature/Requests/General/UserManagement/GetUsers/GetUsersOfARoleTest.php b/tests/Feature/Requests/General/UserManagement/GetUsers/GetUsersOfARoleTest.php new file mode 100644 index 0000000..7af21ae --- /dev/null +++ b/tests/Feature/Requests/General/UserManagement/GetUsers/GetUsersOfARoleTest.php @@ -0,0 +1,25 @@ +connector->send(new GetRoles())->dto(); + + $users = $this->connector->send(new GetUsersOfARole($roles->first()->id))->dto(); + + $this->assertInstanceOf(Collection::class, $users); + + foreach ($users as $user) { + $this->assertInstanceOf(User::class, $user); + } + + $this->assertNotCount(0, $users); + Event::assertDispatched(DocuWareResponseLog::class); +}); diff --git a/tests/Feature/Requests/General/UserManagement/GetUsers/GetUsersTest.php b/tests/Feature/Requests/General/UserManagement/GetUsers/GetUsersTest.php new file mode 100644 index 0000000..b6a96a0 --- /dev/null +++ b/tests/Feature/Requests/General/UserManagement/GetUsers/GetUsersTest.php @@ -0,0 +1,22 @@ +connector->send(new GetUsers())->dto(); + + $this->assertInstanceOf(Collection::class, $users); + + foreach ($users as $user) { + $this->assertInstanceOf(User::class, $user); + } + + $this->assertNotCount(0, $users); + Event::assertDispatched(DocuWareResponseLog::class); +}); From 4bb990832784cfefbe9c1c33ae880aaad2c94851 Mon Sep 17 00:00:00 2001 From: Rhys Lees <43909932+RhysLees@users.noreply.github.com> Date: Fri, 3 May 2024 19:38:45 +0100 Subject: [PATCH 17/54] WIP --- .../GetModifyGroups/GetGroupsTest.php | 8 +++---- .../GetModifyRoles/GetRolesTest.php | 24 +++++++++++++++++++ .../GetUsers/GetUsersOfAGroupTest.php | 2 +- 3 files changed, 28 insertions(+), 6 deletions(-) create mode 100644 tests/Feature/Requests/General/UserManagement/GetModifyRoles/GetRolesTest.php diff --git a/tests/Feature/Requests/General/UserManagement/GetModifyGroups/GetGroupsTest.php b/tests/Feature/Requests/General/UserManagement/GetModifyGroups/GetGroupsTest.php index abb1614..7d04e77 100644 --- a/tests/Feature/Requests/General/UserManagement/GetModifyGroups/GetGroupsTest.php +++ b/tests/Feature/Requests/General/UserManagement/GetModifyGroups/GetGroupsTest.php @@ -1,17 +1,15 @@ connector->send(new GetRoles())->dto(); + $groups = $this->connector->send(new GetGroups())->dto(); $this->assertInstanceOf(Collection::class, $groups); diff --git a/tests/Feature/Requests/General/UserManagement/GetModifyRoles/GetRolesTest.php b/tests/Feature/Requests/General/UserManagement/GetModifyRoles/GetRolesTest.php new file mode 100644 index 0000000..43bf1f3 --- /dev/null +++ b/tests/Feature/Requests/General/UserManagement/GetModifyRoles/GetRolesTest.php @@ -0,0 +1,24 @@ +connector->send(new GetRoles())->dto(); + + $this->assertInstanceOf(Collection::class, $roles); + + foreach ($roles as $role) { + $this->assertInstanceOf(Role::class, $role); + } + + $this->assertNotCount(0, $roles); + Event::assertDispatched(DocuWareResponseLog::class); +}); diff --git a/tests/Feature/Requests/General/UserManagement/GetUsers/GetUsersOfAGroupTest.php b/tests/Feature/Requests/General/UserManagement/GetUsers/GetUsersOfAGroupTest.php index 3670fbc..5907c3d 100644 --- a/tests/Feature/Requests/General/UserManagement/GetUsers/GetUsersOfAGroupTest.php +++ b/tests/Feature/Requests/General/UserManagement/GetUsers/GetUsersOfAGroupTest.php @@ -9,7 +9,7 @@ use Illuminate\Support\Collection; use Illuminate\Support\Facades\Event; -it('can list users of a role', function () { +it('can list users of a group', function () { Event::fake(); $groups = $this->connector->send(new GetGroups())->dto(); From 0c4f2edfd2957644daa554a0994c1184ba80c2a8 Mon Sep 17 00:00:00 2001 From: Rhys Lees <43909932+RhysLees@users.noreply.github.com> Date: Fri, 3 May 2024 23:39:13 +0100 Subject: [PATCH 18/54] =WIP --- README.md | 4 +- .../General/UserManagement/GetUsers/User.php | 8 +-- .../GetAllGroupsForASpecificUser.php | 57 ++++++++++++++++++ .../GetModifyGroups/GetGroups.php | 5 +- .../GetAllRolesForASpecificUser.php | 59 +++++++++++++++++++ .../GetModifyRoles/GetRoles.php | 6 +- .../UserManagement/GetUsers/GetUsers.php | 4 +- .../GetUsers/GetUsersOfAGroup.php | 2 +- .../GetUsers/GetUsersOfARole.php | 4 +- .../GetModifyRoles/GetRolesResponse.php | 1 - .../GetAllGroupsForASpecificUserTest.php | 25 ++++++++ .../GetAllRolesForASpecificUserTest.php | 25 ++++++++ .../GetModifyRoles/GetRolesTest.php | 2 - .../GetUsers/GetUsersOfAGroupTest.php | 2 - 14 files changed, 182 insertions(+), 22 deletions(-) create mode 100644 src/Requests/General/UserManagement/GetModifyGroups/GetAllGroupsForASpecificUser.php create mode 100644 src/Requests/General/UserManagement/GetModifyRoles/GetAllRolesForASpecificUser.php create mode 100644 tests/Feature/Requests/General/UserManagement/GetModifyGroups/GetAllGroupsForASpecificUserTest.php create mode 100644 tests/Feature/Requests/General/UserManagement/GetModifyRoles/GetAllRolesForASpecificUserTest.php diff --git a/README.md b/README.md index 1397c87..0279efd 100644 --- a/README.md +++ b/README.md @@ -83,11 +83,11 @@ then optimize the processes that power the core of your business. | General/UserManagement | Create User | ❌ | | General/UserManagement | Update User | ❌ | | General/UserManagement | Get Groups | ✅ | -| General/UserManagement | Get All Groups for a Specific User | ❌ | +| General/UserManagement | Get All Groups for a Specific User | ✅ | | General/UserManagement | Add User to a Group | ❌ | | General/UserManagement | Remove User from a Group | ❌ | | General/UserManagement | Get Roles | ✅ | -| General/UserManagement | Get All Roles for a Specific User | ❌ | +| General/UserManagement | Get All Roles for a Specific User | ✅ | | General/UserManagement | Add User to a Role | ❌ | | General/UserManagement | Remove User from a Role | ❌ | | FileCabinets/General | Get File Cabinet Information | ✅ | diff --git a/src/DTO/General/UserManagement/GetUsers/User.php b/src/DTO/General/UserManagement/GetUsers/User.php index 06206f2..fe8f16a 100644 --- a/src/DTO/General/UserManagement/GetUsers/User.php +++ b/src/DTO/General/UserManagement/GetUsers/User.php @@ -27,15 +27,15 @@ public static function fromJson(array $data): self public function __construct( public string $id, public string $name, - public null|string $firstName, - public null|string $lastName, + public ?string $firstName, + public ?string $lastName, public string $dbName, public string $email, public bool $active, public bool $isHighSecurity, public string $defaultWebBasket, - public null|OutOfOffice $outOfOffice, - public null|RegionalSettings $regionalSettings, + public ?OutOfOffice $outOfOffice, + public ?RegionalSettings $regionalSettings, ) { } diff --git a/src/Requests/General/UserManagement/GetModifyGroups/GetAllGroupsForASpecificUser.php b/src/Requests/General/UserManagement/GetModifyGroups/GetAllGroupsForASpecificUser.php new file mode 100644 index 0000000..c81f358 --- /dev/null +++ b/src/Requests/General/UserManagement/GetModifyGroups/GetAllGroupsForASpecificUser.php @@ -0,0 +1,57 @@ + $this->userId, + 'Name' => $this->name, + 'Active' => $this->active, + ]; + } + + public function resolveCacheDriver(): LaravelCacheDriver + { + return new LaravelCacheDriver(Cache::store(config('laravel-docuware.configurations.cache.driver'))); + } + + public function cacheExpiryInSeconds(): int + { + return config('laravel-docuware.configurations.cache.lifetime_in_seconds', 3600); + } + + public function createDtoFromResponse(Response $response): Enumerable|Collection + { + return GetGroupsResponse::fromResponse($response); + } +} diff --git a/src/Requests/General/UserManagement/GetModifyGroups/GetGroups.php b/src/Requests/General/UserManagement/GetModifyGroups/GetGroups.php index ae2d483..616669a 100644 --- a/src/Requests/General/UserManagement/GetModifyGroups/GetGroups.php +++ b/src/Requests/General/UserManagement/GetModifyGroups/GetGroups.php @@ -3,7 +3,6 @@ namespace CodebarAg\DocuWare\Requests\General\UserManagement\GetModifyGroups; use CodebarAg\DocuWare\Responses\General\UserManagement\GetModifyGroups\GetGroupsResponse; -use CodebarAg\DocuWare\Responses\General\UserManagement\GetModifyGroups\GetRolesResponse; use Illuminate\Support\Collection; use Illuminate\Support\Enumerable; use Illuminate\Support\Facades\Cache; @@ -21,8 +20,8 @@ class GetGroups extends Request implements Cacheable protected Method $method = Method::GET; public function __construct( - public null|string $name = null, - public null|bool $active = null, + public ?string $name = null, + public ?bool $active = null, ) { } diff --git a/src/Requests/General/UserManagement/GetModifyRoles/GetAllRolesForASpecificUser.php b/src/Requests/General/UserManagement/GetModifyRoles/GetAllRolesForASpecificUser.php new file mode 100644 index 0000000..6d469c6 --- /dev/null +++ b/src/Requests/General/UserManagement/GetModifyRoles/GetAllRolesForASpecificUser.php @@ -0,0 +1,59 @@ + $this->userId, + 'Name' => $this->name, + 'Active' => $this->active, + 'Type' => $this->type, + ]; + } + + public function resolveCacheDriver(): LaravelCacheDriver + { + return new LaravelCacheDriver(Cache::store(config('laravel-docuware.configurations.cache.driver'))); + } + + public function cacheExpiryInSeconds(): int + { + return config('laravel-docuware.configurations.cache.lifetime_in_seconds', 3600); + } + + public function createDtoFromResponse(Response $response): Enumerable|Collection + { + return GetRolesResponse::fromResponse($response); + } +} diff --git a/src/Requests/General/UserManagement/GetModifyRoles/GetRoles.php b/src/Requests/General/UserManagement/GetModifyRoles/GetRoles.php index 693a319..f36cf9e 100644 --- a/src/Requests/General/UserManagement/GetModifyRoles/GetRoles.php +++ b/src/Requests/General/UserManagement/GetModifyRoles/GetRoles.php @@ -20,9 +20,9 @@ class GetRoles extends Request implements Cacheable protected Method $method = Method::GET; public function __construct( - public null|string $name = null, - public null|bool $active = null, - public null|string $type = null, + public ?string $name = null, + public ?bool $active = null, + public ?string $type = null, ) { } diff --git a/src/Requests/General/UserManagement/GetUsers/GetUsers.php b/src/Requests/General/UserManagement/GetUsers/GetUsers.php index 0436696..c161f85 100644 --- a/src/Requests/General/UserManagement/GetUsers/GetUsers.php +++ b/src/Requests/General/UserManagement/GetUsers/GetUsers.php @@ -20,8 +20,8 @@ class GetUsers extends Request implements Cacheable protected Method $method = Method::GET; public function __construct( - public null|string $name = null, - public null|bool $active = null, + public ?string $name = null, + public ?bool $active = null, ) { } diff --git a/src/Requests/General/UserManagement/GetUsers/GetUsersOfAGroup.php b/src/Requests/General/UserManagement/GetUsers/GetUsersOfAGroup.php index c863e65..e4054c9 100644 --- a/src/Requests/General/UserManagement/GetUsers/GetUsersOfAGroup.php +++ b/src/Requests/General/UserManagement/GetUsers/GetUsersOfAGroup.php @@ -20,7 +20,7 @@ class GetUsersOfAGroup extends Request implements Cacheable protected Method $method = Method::GET; public function __construct( - public null|string $groupId = null, + public ?string $groupId = null, ) { } diff --git a/src/Requests/General/UserManagement/GetUsers/GetUsersOfARole.php b/src/Requests/General/UserManagement/GetUsers/GetUsersOfARole.php index a6020bf..3e0a90a 100644 --- a/src/Requests/General/UserManagement/GetUsers/GetUsersOfARole.php +++ b/src/Requests/General/UserManagement/GetUsers/GetUsersOfARole.php @@ -20,8 +20,8 @@ class GetUsersOfARole extends Request implements Cacheable protected Method $method = Method::GET; public function __construct( - public null|string $roleId = null, - public null|bool $includeGroupUsers = null, + public ?string $roleId = null, + public ?bool $includeGroupUsers = null, ) { } diff --git a/src/Responses/General/UserManagement/GetModifyRoles/GetRolesResponse.php b/src/Responses/General/UserManagement/GetModifyRoles/GetRolesResponse.php index 6417fe8..b07ff81 100644 --- a/src/Responses/General/UserManagement/GetModifyRoles/GetRolesResponse.php +++ b/src/Responses/General/UserManagement/GetModifyRoles/GetRolesResponse.php @@ -2,7 +2,6 @@ namespace CodebarAg\DocuWare\Responses\General\UserManagement\GetModifyRoles; -use CodebarAg\DocuWare\DTO\General\UserManagement\GetModifyGroups\Group; use CodebarAg\DocuWare\DTO\General\UserManagement\GetModifyRoles\Role; use CodebarAg\DocuWare\Events\DocuWareResponseLog; use CodebarAg\DocuWare\Support\EnsureValidResponse; diff --git a/tests/Feature/Requests/General/UserManagement/GetModifyGroups/GetAllGroupsForASpecificUserTest.php b/tests/Feature/Requests/General/UserManagement/GetModifyGroups/GetAllGroupsForASpecificUserTest.php new file mode 100644 index 0000000..1010139 --- /dev/null +++ b/tests/Feature/Requests/General/UserManagement/GetModifyGroups/GetAllGroupsForASpecificUserTest.php @@ -0,0 +1,25 @@ +connector->send(new GetUsers())->dto(); + + $groups = $this->connector->send(new GetAllGroupsForASpecificUser($users->get(2)->id))->dto(); + + $this->assertInstanceOf(Collection::class, $groups); + + foreach ($groups as $group) { + $this->assertInstanceOf(Group::class, $group); + } + + $this->assertNotCount(0, $groups); + Event::assertDispatched(DocuWareResponseLog::class); +}); diff --git a/tests/Feature/Requests/General/UserManagement/GetModifyRoles/GetAllRolesForASpecificUserTest.php b/tests/Feature/Requests/General/UserManagement/GetModifyRoles/GetAllRolesForASpecificUserTest.php new file mode 100644 index 0000000..1794ad8 --- /dev/null +++ b/tests/Feature/Requests/General/UserManagement/GetModifyRoles/GetAllRolesForASpecificUserTest.php @@ -0,0 +1,25 @@ +connector->send(new GetUsers())->dto(); + + $roles = $this->connector->send(new GetAllRolesForASpecificUser($users->get(2)->id))->dto(); + + $this->assertInstanceOf(Collection::class, $roles); + + foreach ($roles as $role) { + $this->assertInstanceOf(Role::class, $role); + } + + $this->assertNotCount(0, $roles); + Event::assertDispatched(DocuWareResponseLog::class); +}); diff --git a/tests/Feature/Requests/General/UserManagement/GetModifyRoles/GetRolesTest.php b/tests/Feature/Requests/General/UserManagement/GetModifyRoles/GetRolesTest.php index 43bf1f3..b881811 100644 --- a/tests/Feature/Requests/General/UserManagement/GetModifyRoles/GetRolesTest.php +++ b/tests/Feature/Requests/General/UserManagement/GetModifyRoles/GetRolesTest.php @@ -1,9 +1,7 @@ Date: Wed, 8 May 2024 17:52:05 +0100 Subject: [PATCH 19/54] WIP --- README.md | 108 +++++++++--------- config/laravel-docuware.php | 5 +- phpunit.xml.dist | 1 + src/Connectors/DocuWareConnector.php | 107 ++++++++--------- src/DTO/Config.php | 32 ------ src/DTO/Config/ConfigWithCredentials.php | 53 +++++++++ .../ConfigWithCredentialsTrustedUser.php | 57 +++++++++ src/Enums/DialogType.php | 13 +++ .../OAuth/RequestTokenWithCredentials.php | 5 +- ...equestTokenWithCredentialsTrustedUser.php} | 15 ++- .../Dialogs/GetDialogsOfASpecificType.php | 53 +++++++++ .../Search/GetDocumentsFromAFileCabinet.php | 2 + .../SelectLists/GetFilteredSelectLists.php | 54 +++++++++ .../SelectLists/GetSelectLists.php | 16 +-- src/Support/Auth.php | 2 +- src/Support/EnsureValidCredentials.php | 6 +- src/Support/EnsureValidPassphrase.php | 2 +- tests/Feature/DocuWareAuthenticationTest.php | 35 +----- .../Dialogs/GetASpecificDialogTest.php} | 0 .../Dialogs/GetAllDialogs.php} | 0 .../Dialogs/GetDialogsOfASpecificTypeTest.php | 26 +++++ .../GetFileCabinetInformationTest.php | 0 ...ASpecificDocumentFromAFileCabinetTest.php} | 0 .../GetDocumentsFromAFileCabinetTest.php} | 0 tests/Pest.php | 6 +- 25 files changed, 400 insertions(+), 198 deletions(-) delete mode 100644 src/DTO/Config.php create mode 100644 src/DTO/Config/ConfigWithCredentials.php create mode 100644 src/DTO/Config/ConfigWithCredentialsTrustedUser.php create mode 100644 src/Enums/DialogType.php rename src/Requests/Authentication/OAuth/{RequestTokenWithToken.php => RequestTokenWithCredentialsTrustedUser.php} (68%) create mode 100644 src/Requests/FileCabinets/Dialogs/GetDialogsOfASpecificType.php create mode 100644 src/Requests/FileCabinets/SelectLists/GetFilteredSelectLists.php rename tests/Feature/Requests/{Dialogs/GetDialogRequestTest.php => FileCabinets/Dialogs/GetASpecificDialogTest.php} (100%) rename tests/Feature/Requests/{Dialogs/GetDialogsRequestTest.php => FileCabinets/Dialogs/GetAllDialogs.php} (100%) create mode 100644 tests/Feature/Requests/FileCabinets/Dialogs/GetDialogsOfASpecificTypeTest.php rename tests/Feature/Requests/FileCabinets/{ => General}/GetFileCabinetInformationTest.php (100%) rename tests/Feature/Requests/{Document/GetDocumentRequestTest.php => FileCabinets/Search/GetASpecificDocumentFromAFileCabinetTest.php} (100%) rename tests/Feature/Requests/{Document/GetDocumentsRequestTest.php => FileCabinets/Search/GetDocumentsFromAFileCabinetTest.php} (100%) diff --git a/README.md b/README.md index 0279efd..9309fc3 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ then optimize the processes that power the core of your business. | Authentication/OAuth | 1. Get Responsible Identity Service | ✅ | | Authentication/OAuth | 2. Get Identity Service Configuration | ✅ | | Authentication/OAuth | 3.a Request Token w/ Username & Password | ✅ | -| Authentication/OAuth | 3.b Request Token w/ a DocuWare Token | ✅ | +| Authentication/OAuth | 3.b Request Token w/ a DocuWare Token | ❌ | | Authentication/OAuth | 3.c Request Token w/ Username & Password (Trusted User) | ❌ | | Authentication/OAuth | 3.d.1 Obtain Windows Authorization (On Premises Only) | ❌ | | Authentication/OAuth | 3.d.2 Request Token /w a Windows Account (On Premises Only) | ❌ | @@ -94,9 +94,9 @@ then optimize the processes that power the core of your business. | FileCabinets/General | Get Total Number of Documents | ✅ | | FileCabinets/Dialogs | Get All Dialogs | ✅ | | FileCabinets/Dialogs | Get a Specific Dialog | ✅ | -| FileCabinets/Dialogs | Get Dialogs of a Specific Type | ❌ | -| FileCabinets/Search | Get Documents from a File Cabinet | ❌ | -| FileCabinets/Search | Get a Specific Document From a File Cabinet | ❌ | +| FileCabinets/Dialogs | Get Dialogs of a Specific Type | ✅ | +| FileCabinets/Search | Get Documents from a File Cabinet | ✅ | +| FileCabinets/Search | Get a Specific Document From a File Cabinet | ✅ | | FileCabinets/Search | Search for Documents in a Single File Cabinet | ❌ | | FileCabinets/Search | Search for Documents in Multiple File Cabinets | ❌ | | FileCabinets/CheckInCheckOut | Check-out & Download a Document | ❌ | @@ -147,19 +147,6 @@ then optimize the processes that power the core of your business. | Workflow | Get Document Workflow History | ❌ | | Workflow | Get Document Workflow History Steps | ❌ | - - - - - - - - - - - - - @@ -194,65 +181,80 @@ DOCUWARE_PASSPHRASE="a#bcd>2~C1'abc\\#" ## 🏗 Usage -### Getting OAuth Token +### Getting Started with OAuth
Getting Started with OAuth > This package automatically handles the generation of OAuth token for you and stores them in cache. +### Getting a new token via Username & Password: + ```php use CodebarAg\DocuWare\Connectors\DocuWareConnector; -use CodebarAg\DocuWare\DTO\Config; +use CodebarAg\DocuWare\DTO\Config\ConfigWithCredentials; -// Use credentials from your .env file -$connector = new DocuWareConnector(); - -// Pass credentials manually $connector = new DocuWareConnector( - configuration: new Config( - url: 'https://your-domain.docuware.cloud', + configuration: new ConfigWithCredentials( username: 'username', password: 'password', - passphrase: 'passphrase', - cacheDriver: 'redis', - cacheLifetimeInSeconds: 60, - requestTimeoutInSeconds: 60, ) ); - ``` -Getting a new token via Organization Token: +### Getting a new token via Username & Password (Trusted User): + ```php use CodebarAg\DocuWare\Connectors\DocuWareConnector; -use CodebarAg\DocuWare\DTO\Config; - -//Step 1: Create a new connector with either method above -$loginTokenConnector = new DocuWareConnector(); - -//Step 2: Get the Get Login Token -$loginToken = $loginTokenConnector->send(new GetLoginToken())->dto(); +use CodebarAg\DocuWare\DTO\Config\ConfigWithCredentialsTrustedUser; -//Step 3.a: Use the login token in a new connector to fresh the cached access token $connector = new DocuWareConnector( - token: $loginToken->token + configuration: new ConfigWithCredentialsTrustedUser( + username: 'username', + password: 'password', + impersonatedUsername: 'impersonatedUsername', + ) ); +``` -//Step 3.b: Optionally pass a configuration to the new connector -$connector = new DocuWareConnector( - configuration: new Config( - url: 'https://your-domain.docuware.cloud', - username: '', - password: '', - passphrase: 'passphrase', - cacheDriver: 'redis', - cacheLifetimeInSeconds: 60, - requestTimeoutInSeconds: 60, - ), - token: $loginToken->token -); +### Extending the connector + +We understand it may be repetitive to pass the configuration every time you create a new connector. + +You can extend the connector and set the configuration once. + +#### Create a new connector + +```php + ### Available Requests diff --git a/config/laravel-docuware.php b/config/laravel-docuware.php index 753bce4..1176d87 100644 --- a/config/laravel-docuware.php +++ b/config/laravel-docuware.php @@ -35,8 +35,6 @@ 'credentials' => [ 'url' => env('DOCUWARE_URL'), - 'username' => env('DOCUWARE_USERNAME'), - 'password' => env('DOCUWARE_PASSWORD'), ], /* @@ -79,6 +77,9 @@ 'request' => [ 'timeout_in_seconds' => env('DOCUWARE_CACHE_TIMEOUT_IN_SECONDS', 60), ], + + 'client_id' => env('DOCUWARE_CLIENT_ID', 'docuware.platform.net.client'), + 'scope' => env('DOCUWARE_SCOPE', 'docuware.platform'), ], /* diff --git a/phpunit.xml.dist b/phpunit.xml.dist index a7b871f..20d2ff8 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -37,6 +37,7 @@ + diff --git a/src/Connectors/DocuWareConnector.php b/src/Connectors/DocuWareConnector.php index 8719c75..f297b5f 100644 --- a/src/Connectors/DocuWareConnector.php +++ b/src/Connectors/DocuWareConnector.php @@ -2,41 +2,26 @@ namespace CodebarAg\DocuWare\Connectors; +use CodebarAg\DocuWare\DTO\Authentication\OAuth\IdentityServiceConfiguration; use CodebarAg\DocuWare\DTO\Authentication\OAuth\RequestToken as RequestTokenDto; -use CodebarAg\DocuWare\DTO\Config; +use CodebarAg\DocuWare\DTO\Config\ConfigWithCredentials; +use CodebarAg\DocuWare\DTO\Config\ConfigWithCredentialsTrustedUser; use CodebarAg\DocuWare\Events\DocuWareOAuthLog; use CodebarAg\DocuWare\Requests\Authentication\OAuth\GetIdentityServiceConfiguration; use CodebarAg\DocuWare\Requests\Authentication\OAuth\GetResponsibleIdentityService; use CodebarAg\DocuWare\Requests\Authentication\OAuth\RequestTokenWithCredentials; -use CodebarAg\DocuWare\Requests\Authentication\OAuth\RequestTokenWithToken; +use CodebarAg\DocuWare\Requests\Authentication\OAuth\RequestTokenWithCredentialsTrustedUser; use Illuminate\Support\Facades\Cache; +use Illuminate\Support\Facades\Crypt; use Psr\SimpleCache\InvalidArgumentException; use Saloon\Http\Auth\TokenAuthenticator; use Saloon\Http\Connector; class DocuWareConnector extends Connector { - public Config $configuration; - - public ?string $token = null; - - public function __construct(?Config $configuration = null, ?string $token = null) - { - if (empty($configuration)) { - $this->configuration = new Config( - url: config('laravel-docuware.credentials.url'), - username: config('laravel-docuware.credentials.username'), - password: config('laravel-docuware.credentials.password'), - passphrase: config('laravel-docuware.passphrase'), - cacheDriver: config('laravel-docuware.configurations.cache.driver'), - cacheLifetimeInSeconds: config('laravel-docuware.configurations.cache.lifetime_in_seconds'), - requestTimeoutInSeconds: config('laravel-docuware.configurations.request.timeout_in_seconds'), - ); - } else { - $this->configuration = $configuration; - } - - $this->token = $token; + public function __construct( + public ConfigWithCredentials|ConfigWithCredentialsTrustedUser $configuration + ) { } /** @@ -44,7 +29,7 @@ public function __construct(?Config $configuration = null, ?string $token = null */ public function resolveBaseUrl(): string { - return config('laravel-docuware.credentials.url').'/DocuWare/Platform'; + return $this->configuration->url.'/DocuWare/Platform'; } public function defaultHeaders(): array @@ -72,68 +57,70 @@ protected function defaultAuth(): TokenAuthenticator protected function getOrCreateNewOAuthToken() { $cache = Cache::store($this->configuration->cacheDriver); - $cacheKey = 'docuware.oauth.token.'.$this->configuration->url.'.'.$this->configuration->username; - if (filled($this->token)) { - $token = $this->getNewAuthenticationOAuthTokenWithToken($this->token); + // get instance name of $this->configuration as string + $instanceName = get_class($this->configuration); - $cache->put(key: $cacheKey, value: $token, ttl: $token->expiresIn); + $cacheKey = 'docuware.oauth.'.$instanceName.'.'.$this->configuration->url.'.'.$this->configuration?->username; - DocuWareOAuthLog::dispatch($this->configuration->url, $this->configuration->username, 'Token set from token'); - } + $token = null; - if ( - $cache->has(key: $cacheKey) - ) { - $token = $cache->get(key: $cacheKey); + if ($cache->has(key: $cacheKey)) { + $token = Crypt::decrypt($cache->get(key: $cacheKey)); DocuWareOAuthLog::dispatch($this->configuration->url, $this->configuration->username, 'Token retrieved from cache'); } else { - $token = $this->getNewAuthenticationOAuthTokenWithCredentials($this->configuration->username, $this->configuration->password); + if ($this->configuration instanceof ConfigWithCredentials) { + $token = $this->getNewOAuthTokenWithCredentials(); + + DocuWareOAuthLog::dispatch($this->configuration->url, $this->configuration->username, 'Token retrieved from API'); + } - $cache->put(key: $cacheKey, value: $token, ttl: $token->expiresIn); + if ($this->configuration instanceof ConfigWithCredentialsTrustedUser) { + $token = $this->getNewOAuthTokenWithCredentialsTrustedUser(); - DocuWareOAuthLog::dispatch($this->configuration->url, $this->configuration->username, 'Token retrieved from API'); + DocuWareOAuthLog::dispatch($this->configuration->url, $this->configuration->username, 'Token retrieved from API'); + } + + $cache->put(key: $cacheKey, value: Crypt::encrypt($token), ttl: $token->expiresIn); } return $token->accessToken; } - protected function getNewAuthenticationOAuthTokenWithCredentials( - ?string $username = '', - ?string $password = '', - ?string $clientId = 'docuware.platform.net.client' - ): RequestTokenDto { + protected function getAuthenticationTokenEndpoint(): IdentityServiceConfiguration + { $responsibleIdentityServiceResponse = (new GetResponsibleIdentityService())->send(); $identityServiceConfigurationResponse = (new GetIdentityServiceConfiguration( identityServiceUrl: $responsibleIdentityServiceResponse->dto()->identityServiceUrl ))->send(); + return $identityServiceConfigurationResponse->dto(); + } + + protected function getNewOAuthTokenWithCredentials(): RequestTokenDto + { $requestTokenResponse = (new RequestTokenWithCredentials( - tokenEndpoint: $identityServiceConfigurationResponse->dto()->tokenEndpoint, - username: $username, - password: $password, - clientId: $clientId, + tokenEndpoint: $this->getAuthenticationTokenEndpoint()->tokenEndpoint, + clientId: $this->configuration->clientId, + scope: $this->configuration->scope, + username: $this->configuration->username, + password: $this->configuration->password, ))->send(); return $requestTokenResponse->dto(); } - protected function getNewAuthenticationOAuthTokenWithToken( - string $token, - ?string $clientId = 'docuware.platform.net.client' - ): RequestTokenDto { - $responsibleIdentityServiceResponse = (new GetResponsibleIdentityService())->send(); - - $identityServiceConfigurationResponse = (new GetIdentityServiceConfiguration( - identityServiceUrl: $responsibleIdentityServiceResponse->dto()->identityServiceUrl - ))->send(); - - $requestTokenResponse = (new RequestTokenWithToken( - tokenEndpoint: $identityServiceConfigurationResponse->dto()->tokenEndpoint, - token: $token, - clientId: $clientId, + protected function getNewOAuthTokenWithCredentialsTrustedUser(): RequestTokenDto + { + $requestTokenResponse = (new RequestTokenWithCredentialsTrustedUser( + tokenEndpoint: $this->getAuthenticationTokenEndpoint()->tokenEndpoint, + clientId: $this->configuration->clientId, + scope: $this->configuration->scope, + username: $this->configuration->username, + password: $this->configuration->password, + impersonateName: $this->configuration->impersonatedUsername, ))->send(); return $requestTokenResponse->dto(); diff --git a/src/DTO/Config.php b/src/DTO/Config.php deleted file mode 100644 index dabe46d..0000000 --- a/src/DTO/Config.php +++ /dev/null @@ -1,32 +0,0 @@ -username = $username; + $this->password = $password; + + $this->url = filled($url) ? $url : config('laravel-docuware.credentials.url'); + + $this->passphrase = filled($passphrase) ? $passphrase : config('laravel-docuware.passphrase'); + + $this->cacheDriver = filled($cacheDriver) ? $cacheDriver : config('laravel-docuware.configurations.cache.driver'); + + $this->cacheLifetimeInSeconds = filled($cacheLifetimeInSeconds) ? $cacheLifetimeInSeconds : config('laravel-docuware.configurations.cache.lifetime_in_seconds'); + + $this->requestTimeoutInSeconds = filled($requestTimeoutInSeconds) ? $requestTimeoutInSeconds : config('laravel-docuware.configurations.request.timeout_in_seconds'); + + $this->clientId = filled($clientId) ? $clientId : config('laravel-docuware.configurations.client_id'); + + $this->scope = filled($scope) ? $scope : config('laravel-docuware.configurations.scope'); + } +} diff --git a/src/DTO/Config/ConfigWithCredentialsTrustedUser.php b/src/DTO/Config/ConfigWithCredentialsTrustedUser.php new file mode 100644 index 0000000..2ec3fd4 --- /dev/null +++ b/src/DTO/Config/ConfigWithCredentialsTrustedUser.php @@ -0,0 +1,57 @@ +username = $username; + $this->password = $password; + $this->impersonatedUsername = $impersonatedUsername; + + $this->url = filled($url) ? $url : config('laravel-docuware.credentials.url'); + + $this->passphrase = filled($passphrase) ? $passphrase : config('laravel-docuware.passphrase'); + + $this->cacheDriver = filled($cacheDriver) ? $cacheDriver : config('laravel-docuware.configurations.cache.driver'); + + $this->cacheLifetimeInSeconds = filled($cacheLifetimeInSeconds) ? $cacheLifetimeInSeconds : config('laravel-docuware.configurations.cache.lifetime_in_seconds'); + + $this->requestTimeoutInSeconds = filled($requestTimeoutInSeconds) ? $requestTimeoutInSeconds : config('laravel-docuware.configurations.request.timeout_in_seconds'); + + $this->clientId = filled($clientId) ? $clientId : config('laravel-docuware.configurations.client_id'); + + $this->scope = filled($scope) ? $scope : config('laravel-docuware.configurations.scope'); + } +} diff --git a/src/Enums/DialogType.php b/src/Enums/DialogType.php new file mode 100644 index 0000000..517786f --- /dev/null +++ b/src/Enums/DialogType.php @@ -0,0 +1,13 @@ + 'docuware.platform', 'grant_type' => 'password', + 'scope' => $this->scope, 'client_id' => $this->clientId, 'username' => filled($this->username) ? $this->username : config('laravel-docuware.credentials.username'), 'password' => filled($this->password) ? $this->password : config('laravel-docuware.credentials.password'), diff --git a/src/Requests/Authentication/OAuth/RequestTokenWithToken.php b/src/Requests/Authentication/OAuth/RequestTokenWithCredentialsTrustedUser.php similarity index 68% rename from src/Requests/Authentication/OAuth/RequestTokenWithToken.php rename to src/Requests/Authentication/OAuth/RequestTokenWithCredentialsTrustedUser.php index be53bff..8912fee 100644 --- a/src/Requests/Authentication/OAuth/RequestTokenWithToken.php +++ b/src/Requests/Authentication/OAuth/RequestTokenWithCredentialsTrustedUser.php @@ -10,7 +10,7 @@ use Saloon\Http\SoloRequest; use Saloon\Traits\Body\HasFormBody; -class RequestTokenWithToken extends SoloRequest implements HasBody +class RequestTokenWithCredentialsTrustedUser extends SoloRequest implements HasBody { use HasFormBody; @@ -18,8 +18,11 @@ class RequestTokenWithToken extends SoloRequest implements HasBody public function __construct( public readonly mixed $tokenEndpoint, - public readonly ?string $token = '', public readonly string $clientId = 'docuware.platform.net.client', + public readonly string $scope = 'docuware.platform', + public readonly string $username = '', + public readonly string $password = '', + public readonly string $impersonateName = '', ) { } @@ -38,10 +41,12 @@ public function defaultHeaders(): array public function defaultBody(): array { return [ - 'scope' => 'docuware.platform', - 'grant_type' => 'dwtoken', + 'grant_type' => 'trusted', + 'scope' => $this->scope, 'client_id' => $this->clientId, - 'token' => $this->token, + 'username' => $this->username, + 'password' => $this->password, + 'impersonateName' => $this->impersonateName, ]; } diff --git a/src/Requests/FileCabinets/Dialogs/GetDialogsOfASpecificType.php b/src/Requests/FileCabinets/Dialogs/GetDialogsOfASpecificType.php new file mode 100644 index 0000000..e1daddc --- /dev/null +++ b/src/Requests/FileCabinets/Dialogs/GetDialogsOfASpecificType.php @@ -0,0 +1,53 @@ +fileCabinetId.'/Dialogs'; + } + + public function defaultQuery(): array + { + return [ + 'DialogType' => $this->dialogType->value, + ]; + } + + public function resolveCacheDriver(): LaravelCacheDriver + { + return new LaravelCacheDriver(Cache::store(config('laravel-docuware.configurations.cache.driver'))); + } + + public function cacheExpiryInSeconds(): int + { + return config('laravel-docuware.configurations.cache.lifetime_in_seconds', 3600); + } + + public function createDtoFromResponse(Response $response): mixed + { + return GetAllDialogsResponse::fromResponse($response); + } +} diff --git a/src/Requests/FileCabinets/Search/GetDocumentsFromAFileCabinet.php b/src/Requests/FileCabinets/Search/GetDocumentsFromAFileCabinet.php index 68df81f..ce4790e 100644 --- a/src/Requests/FileCabinets/Search/GetDocumentsFromAFileCabinet.php +++ b/src/Requests/FileCabinets/Search/GetDocumentsFromAFileCabinet.php @@ -20,6 +20,7 @@ class GetDocumentsFromAFileCabinet extends Request implements Cacheable public function __construct( protected readonly string $fileCabinetId, + protected readonly array $fields = [], protected readonly int $page = 1, protected readonly int $perPage = 50, ) { @@ -28,6 +29,7 @@ public function __construct( public function defaultQuery(): array { return [ + 'fields' => filled($this->fields) ? implode(',', $this->fields) : null, 'count' => $this->perPage, 'start' => ($this->page - 1) * $this->perPage, ]; diff --git a/src/Requests/FileCabinets/SelectLists/GetFilteredSelectLists.php b/src/Requests/FileCabinets/SelectLists/GetFilteredSelectLists.php new file mode 100644 index 0000000..62433ac --- /dev/null +++ b/src/Requests/FileCabinets/SelectLists/GetFilteredSelectLists.php @@ -0,0 +1,54 @@ +fileCabinetId.'/Query/SelectListExpression'; + } + + public function defaultQuery(): array + { + return [ + 'DialogId' => $this->dialogId, + 'FieldName' => $this->fieldName, + ]; + } + + public function resolveCacheDriver(): LaravelCacheDriver + { + return new LaravelCacheDriver(Cache::store(config('laravel-docuware.configurations.cache.driver'))); + } + + public function cacheExpiryInSeconds(): int + { + return config('laravel-docuware.configurations.cache.lifetime_in_seconds', 3600); + } + + public function createDtoFromResponse(Response $response): mixed + { + return GetSelectListsResponse::fromResponse($response); + } +} diff --git a/src/Requests/FileCabinets/SelectLists/GetSelectLists.php b/src/Requests/FileCabinets/SelectLists/GetSelectLists.php index a21eb16..0f48f43 100644 --- a/src/Requests/FileCabinets/SelectLists/GetSelectLists.php +++ b/src/Requests/FileCabinets/SelectLists/GetSelectLists.php @@ -29,6 +29,14 @@ public function resolveEndpoint(): string return '/FileCabinets/'.$this->fileCabinetId.'/Query/SelectListExpression'; } + public function defaultQuery(): array + { + return [ + 'DialogId' => $this->dialogId, + 'FieldName' => $this->fieldName, + ]; + } + public function resolveCacheDriver(): LaravelCacheDriver { return new LaravelCacheDriver(Cache::store(config('laravel-docuware.configurations.cache.driver'))); @@ -39,14 +47,6 @@ public function cacheExpiryInSeconds(): int return config('laravel-docuware.configurations.cache.lifetime_in_seconds', 3600); } - public function defaultQuery(): array - { - return [ - 'dialogId' => $this->dialogId, - 'fieldName' => $this->fieldName, - ]; - } - public function createDtoFromResponse(Response $response): mixed { return GetSelectListsResponse::fromResponse($response); diff --git a/src/Support/Auth.php b/src/Support/Auth.php index 76ac725..2b7887a 100644 --- a/src/Support/Auth.php +++ b/src/Support/Auth.php @@ -60,7 +60,7 @@ public static function forget(): void public static function domain(): string { throw_if( - empty(config('laravel-docuware.credentials.url')), + blank(config('laravel-docuware.credentials.url')), UnableToFindUrlCredential::create(), ); diff --git a/src/Support/EnsureValidCredentials.php b/src/Support/EnsureValidCredentials.php index 640275d..4173a69 100644 --- a/src/Support/EnsureValidCredentials.php +++ b/src/Support/EnsureValidCredentials.php @@ -11,17 +11,17 @@ class EnsureValidCredentials public static function check(): void { throw_if( - empty(config('laravel-docuware.credentials.url')), + blank(config('laravel-docuware.credentials.url')), UnableToFindUrlCredential::create(), ); throw_if( - empty(config('laravel-docuware.credentials.username')), + blank(config('laravel-docuware.credentials.username')), UnableToFindUserCredential::create(), ); throw_if( - empty(config('laravel-docuware.credentials.password')), + blank(config('laravel-docuware.credentials.password')), UnableToFindPasswordCredential::create(), ); diff --git a/src/Support/EnsureValidPassphrase.php b/src/Support/EnsureValidPassphrase.php index 73a46cb..2651d87 100644 --- a/src/Support/EnsureValidPassphrase.php +++ b/src/Support/EnsureValidPassphrase.php @@ -9,7 +9,7 @@ class EnsureValidPassphrase public static function check(): void { throw_if( - empty(config('laravel-docuware.passphrase')), + blank(config('laravel-docuware.passphrase')), UnableToFindPassphrase::create(), ); } diff --git a/tests/Feature/DocuWareAuthenticationTest.php b/tests/Feature/DocuWareAuthenticationTest.php index 869f8b2..643d648 100644 --- a/tests/Feature/DocuWareAuthenticationTest.php +++ b/tests/Feature/DocuWareAuthenticationTest.php @@ -2,12 +2,11 @@ use CodebarAg\DocuWare\Connectors\DocuWareConnector; use CodebarAg\DocuWare\DTO\Authentication\OAuth\IdentityServiceConfiguration; -use CodebarAg\DocuWare\DTO\Authentication\OAuth\RequestToken; use CodebarAg\DocuWare\DTO\Authentication\OAuth\ResponsibleIdentityService; +use CodebarAg\DocuWare\DTO\Config\ConfigWithCredentials; use CodebarAg\DocuWare\Events\DocuWareOAuthLog; use CodebarAg\DocuWare\Requests\Authentication\OAuth\GetIdentityServiceConfiguration; use CodebarAg\DocuWare\Requests\Authentication\OAuth\GetResponsibleIdentityService; -use CodebarAg\DocuWare\Requests\General\Organization\GetLoginToken; use CodebarAg\DocuWare\Requests\General\Organization\GetOrganization; it('can get oath responsible identity service', function () { @@ -26,37 +25,13 @@ expect($identityServiceConfigurationResponse->dto())->toBeInstanceOf(IdentityServiceConfiguration::class); })->group('authentication'); -it('can get oath request token', function () { - $responsibleIdentityServiceResponse = (new GetResponsibleIdentityService())->send(); - - $identityServiceConfigurationResponse = (new GetIdentityServiceConfiguration( - identityServiceUrl: $responsibleIdentityServiceResponse->dto()->identityServiceUrl - ))->send(); - - $requestTokenResponse = (new \CodebarAg\DocuWare\Requests\Authentication\OAuth\RequestTokenWithCredentials( - tokenEndpoint: $identityServiceConfigurationResponse->dto()->tokenEndpoint - ))->send(); - - expect($requestTokenResponse->dto())->toBeInstanceOf(RequestToken::class); -})->group('authentication'); - it('can authenticate with DocuWare Credentials', function () { Event::fake(); - $connector = new DocuWareConnector(); - $connector->send(new GetOrganization()); - - Event::assertDispatched(DocuWareOAuthLog::class); - -})->group('authentication'); - -it('can authenticate with DocuWare Token', function () { - Event::fake(); - - $connector = new DocuWareConnector(); - $token = $connector->send(new GetLoginToken())->dto(); - - $connector = new DocuWareConnector(token: $token); + $connector = new DocuWareConnector(new ConfigWithCredentials( + username: config('laravel-docuware.credentials.username'), + password: config('laravel-docuware.credentials.password'), + )); $connector->send(new GetOrganization()); diff --git a/tests/Feature/Requests/Dialogs/GetDialogRequestTest.php b/tests/Feature/Requests/FileCabinets/Dialogs/GetASpecificDialogTest.php similarity index 100% rename from tests/Feature/Requests/Dialogs/GetDialogRequestTest.php rename to tests/Feature/Requests/FileCabinets/Dialogs/GetASpecificDialogTest.php diff --git a/tests/Feature/Requests/Dialogs/GetDialogsRequestTest.php b/tests/Feature/Requests/FileCabinets/Dialogs/GetAllDialogs.php similarity index 100% rename from tests/Feature/Requests/Dialogs/GetDialogsRequestTest.php rename to tests/Feature/Requests/FileCabinets/Dialogs/GetAllDialogs.php diff --git a/tests/Feature/Requests/FileCabinets/Dialogs/GetDialogsOfASpecificTypeTest.php b/tests/Feature/Requests/FileCabinets/Dialogs/GetDialogsOfASpecificTypeTest.php new file mode 100644 index 0000000..1ce23ba --- /dev/null +++ b/tests/Feature/Requests/FileCabinets/Dialogs/GetDialogsOfASpecificTypeTest.php @@ -0,0 +1,26 @@ +connector->send(new GetDialogsOfASpecificType($fileCabinetId, DialogType::SEARCH))->dto(); + + $this->assertInstanceOf(Collection::class, $dialogs); + + $this->assertNotCount(0, $dialogs); + + foreach ($dialogs as $dialog) { + $this->assertInstanceOf(Dialog::class, $dialog); + } + + Event::assertDispatched(DocuWareResponseLog::class); +}); diff --git a/tests/Feature/Requests/FileCabinets/GetFileCabinetInformationTest.php b/tests/Feature/Requests/FileCabinets/General/GetFileCabinetInformationTest.php similarity index 100% rename from tests/Feature/Requests/FileCabinets/GetFileCabinetInformationTest.php rename to tests/Feature/Requests/FileCabinets/General/GetFileCabinetInformationTest.php diff --git a/tests/Feature/Requests/Document/GetDocumentRequestTest.php b/tests/Feature/Requests/FileCabinets/Search/GetASpecificDocumentFromAFileCabinetTest.php similarity index 100% rename from tests/Feature/Requests/Document/GetDocumentRequestTest.php rename to tests/Feature/Requests/FileCabinets/Search/GetASpecificDocumentFromAFileCabinetTest.php diff --git a/tests/Feature/Requests/Document/GetDocumentsRequestTest.php b/tests/Feature/Requests/FileCabinets/Search/GetDocumentsFromAFileCabinetTest.php similarity index 100% rename from tests/Feature/Requests/Document/GetDocumentsRequestTest.php rename to tests/Feature/Requests/FileCabinets/Search/GetDocumentsFromAFileCabinetTest.php diff --git a/tests/Pest.php b/tests/Pest.php index d6ff17a..58d7f84 100644 --- a/tests/Pest.php +++ b/tests/Pest.php @@ -1,6 +1,7 @@ Date: Wed, 8 May 2024 17:52:50 +0100 Subject: [PATCH 20/54] WIP --- config/laravel-docuware.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/laravel-docuware.php b/config/laravel-docuware.php index 1176d87..3b7d467 100644 --- a/config/laravel-docuware.php +++ b/config/laravel-docuware.php @@ -35,6 +35,8 @@ 'credentials' => [ 'url' => env('DOCUWARE_URL'), + 'username' => env('DOCUWARE_USERNAME'), + 'password' => env('DOCUWARE_PASSWORD'), ], /* From 6c8e4a879c78964fa93878e070a785758fedc617 Mon Sep 17 00:00:00 2001 From: Rhys Lees <43909932+RhysLees@users.noreply.github.com> Date: Mon, 20 May 2024 11:05:31 +0100 Subject: [PATCH 21/54] WIP --- phpunit.xml.dist | 8 ++++---- .../GetDocumentCountRequestTest.php | 0 .../GetDocumentDownloadRequestTest.php | 0 .../GetDocumentPreviewRequestTest.php | 0 .../{Document => Documents}/PostDocumentRequestTest.php | 0 .../PutDocumentFieldsRequestTest.php | 0 .../Thumbnail/GetDocumentDownloadThumbnailRequestTest.php | 0 7 files changed, 4 insertions(+), 4 deletions(-) rename tests/Feature/Requests/{Document => Documents}/GetDocumentCountRequestTest.php (100%) rename tests/Feature/Requests/{Document => Documents}/GetDocumentDownloadRequestTest.php (100%) rename tests/Feature/Requests/{Document => Documents}/GetDocumentPreviewRequestTest.php (100%) rename tests/Feature/Requests/{Document => Documents}/PostDocumentRequestTest.php (100%) rename tests/Feature/Requests/{Document => Documents}/PutDocumentFieldsRequestTest.php (100%) rename tests/Feature/Requests/{Document => Documents}/Thumbnail/GetDocumentDownloadThumbnailRequestTest.php (100%) diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 20d2ff8..60421c1 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -46,9 +46,9 @@ - - - - + + + + diff --git a/tests/Feature/Requests/Document/GetDocumentCountRequestTest.php b/tests/Feature/Requests/Documents/GetDocumentCountRequestTest.php similarity index 100% rename from tests/Feature/Requests/Document/GetDocumentCountRequestTest.php rename to tests/Feature/Requests/Documents/GetDocumentCountRequestTest.php diff --git a/tests/Feature/Requests/Document/GetDocumentDownloadRequestTest.php b/tests/Feature/Requests/Documents/GetDocumentDownloadRequestTest.php similarity index 100% rename from tests/Feature/Requests/Document/GetDocumentDownloadRequestTest.php rename to tests/Feature/Requests/Documents/GetDocumentDownloadRequestTest.php diff --git a/tests/Feature/Requests/Document/GetDocumentPreviewRequestTest.php b/tests/Feature/Requests/Documents/GetDocumentPreviewRequestTest.php similarity index 100% rename from tests/Feature/Requests/Document/GetDocumentPreviewRequestTest.php rename to tests/Feature/Requests/Documents/GetDocumentPreviewRequestTest.php diff --git a/tests/Feature/Requests/Document/PostDocumentRequestTest.php b/tests/Feature/Requests/Documents/PostDocumentRequestTest.php similarity index 100% rename from tests/Feature/Requests/Document/PostDocumentRequestTest.php rename to tests/Feature/Requests/Documents/PostDocumentRequestTest.php diff --git a/tests/Feature/Requests/Document/PutDocumentFieldsRequestTest.php b/tests/Feature/Requests/Documents/PutDocumentFieldsRequestTest.php similarity index 100% rename from tests/Feature/Requests/Document/PutDocumentFieldsRequestTest.php rename to tests/Feature/Requests/Documents/PutDocumentFieldsRequestTest.php diff --git a/tests/Feature/Requests/Document/Thumbnail/GetDocumentDownloadThumbnailRequestTest.php b/tests/Feature/Requests/Documents/Thumbnail/GetDocumentDownloadThumbnailRequestTest.php similarity index 100% rename from tests/Feature/Requests/Document/Thumbnail/GetDocumentDownloadThumbnailRequestTest.php rename to tests/Feature/Requests/Documents/Thumbnail/GetDocumentDownloadThumbnailRequestTest.php From 52c8f0cf2afd57ead0cf4596dafd68257fec971e Mon Sep 17 00:00:00 2001 From: Rhys Lees <43909932+RhysLees@users.noreply.github.com> Date: Mon, 20 May 2024 14:54:30 +0100 Subject: [PATCH 22/54] WIP --- phpunit.xml.dist | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 60421c1..21b8f70 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -37,7 +37,7 @@ - + From d013729d6ab367e57cf9565cab514fd18f0d765e Mon Sep 17 00:00:00 2001 From: Rhys Lees <43909932+RhysLees@users.noreply.github.com> Date: Mon, 20 May 2024 14:54:56 +0100 Subject: [PATCH 23/54] WIP --- .github/workflows/run-tests.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 674e778..fa665e7 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -54,8 +54,3 @@ jobs: DOCUWARE_USERNAME: ${{ secrets.DOCUWARE_USERNAME }} DOCUWARE_PASSWORD: ${{ secrets.DOCUWARE_PASSWORD }} DOCUWARE_COOKIES: ${{ secrets.DOCUWARE_COOKIES }} - - DOCUWARE_TESTS_FILE_CABINET_ID: ${{ secrets.DOCUWARE_TESTS_FILE_CABINET_ID }} - DOCUWARE_TESTS_DIALOG_ID: ${{ secrets.DOCUWARE_TESTS_DIALOG_ID }} - DOCUWARE_TESTS_BASKET_ID: ${{ secrets.DOCUWARE_TESTS_BASKET_ID }} - DOCUWARE_TESTS_ORGANIZATION_ID: ${{ secrets.DOCUWARE_TESTS_ORGANIZATION_ID }} From f595ba7e820fa428ea67c29970e875714f6f2ca2 Mon Sep 17 00:00:00 2001 From: Rhys Lees <43909932+RhysLees@users.noreply.github.com> Date: Mon, 20 May 2024 22:33:53 +0100 Subject: [PATCH 24/54] WIP --- README.md | 4 +- .../UserManagement/CreateUpdateUser/User.php | 44 +++++++++++ .../UserManagement/GetUsers/OutOfOffice.php | 16 ++++ .../GetUsers/RegionalSettings.php | 4 +- .../General/UserManagement/GetUsers/User.php | 2 + .../CreateUpdateUsers/CreateUser.php | 67 +++++++++++++++++ .../CreateUpdateUsers/UpdateUser.php | 73 +++++++++++++++++++ .../CreateUpdateUserTest.php | 43 +++++++++++ 8 files changed, 249 insertions(+), 4 deletions(-) create mode 100644 src/DTO/General/UserManagement/CreateUpdateUser/User.php create mode 100644 src/Requests/General/UserManagement/CreateUpdateUsers/CreateUser.php create mode 100644 src/Requests/General/UserManagement/CreateUpdateUsers/UpdateUser.php create mode 100644 tests/Feature/Requests/General/UserManagement/CreateUpdateUsers/CreateUpdateUserTest.php diff --git a/README.md b/README.md index 9309fc3..5a285a0 100644 --- a/README.md +++ b/README.md @@ -80,8 +80,8 @@ then optimize the processes that power the core of your business. | General/UserManagement | Get Users by ID | ✅ | | General/UserManagement | Get Users of a Role | ✅ | | General/UserManagement | Get Users of a Group | ✅ | -| General/UserManagement | Create User | ❌ | -| General/UserManagement | Update User | ❌ | +| General/UserManagement | Create User | ✅ | +| General/UserManagement | Update User | ✅ | | General/UserManagement | Get Groups | ✅ | | General/UserManagement | Get All Groups for a Specific User | ✅ | | General/UserManagement | Add User to a Group | ❌ | diff --git a/src/DTO/General/UserManagement/CreateUpdateUser/User.php b/src/DTO/General/UserManagement/CreateUpdateUser/User.php new file mode 100644 index 0000000..3dad871 --- /dev/null +++ b/src/DTO/General/UserManagement/CreateUpdateUser/User.php @@ -0,0 +1,44 @@ +after('(')->before(')'); + $startDateTime = Carbon::createFromTimestamp($startDateTime); + } + + if ($endDateTime = Arr::get($data, 'EndDateTime')) { + $endDateTime = Str::of($endDateTime)->after('(')->before(')'); + $endDateTime = Carbon::createFromTimestamp($endDateTime); + } + return new self( isOutOfOffice: Arr::get($data, 'IsOutOfOffice'), + startDateTime: $startDateTime, startDateTimeSpecified: Arr::get($data, 'StartDateTimeSpecified'), + endDateTime: $endDateTime, endDateTimeSpecified: Arr::get($data, 'EndDateTimeSpecified'), ); } public function __construct( public bool $isOutOfOffice, + public ?Carbon $startDateTime, public bool $startDateTimeSpecified, + public ?Carbon $endDateTime, public bool $endDateTimeSpecified, ) { } diff --git a/src/DTO/General/UserManagement/GetUsers/RegionalSettings.php b/src/DTO/General/UserManagement/GetUsers/RegionalSettings.php index 62b2253..d7b5278 100644 --- a/src/DTO/General/UserManagement/GetUsers/RegionalSettings.php +++ b/src/DTO/General/UserManagement/GetUsers/RegionalSettings.php @@ -15,8 +15,8 @@ public static function fromJson(array $data): self } public function __construct( - public string $language, - public string $culture, + public ?string $language = null, + public ?string $culture = null, ) { } } diff --git a/src/DTO/General/UserManagement/GetUsers/User.php b/src/DTO/General/UserManagement/GetUsers/User.php index fe8f16a..850257d 100644 --- a/src/DTO/General/UserManagement/GetUsers/User.php +++ b/src/DTO/General/UserManagement/GetUsers/User.php @@ -12,6 +12,7 @@ public static function fromJson(array $data): self return new self( id: Arr::get($data, 'Id'), name: Arr::get($data, 'Name'), + salutation: Arr::get($data, 'Salutation'), firstName: Arr::get($data, 'FirstName'), lastName: Arr::get($data, 'LastName'), dbName: Arr::get($data, 'DBName'), @@ -27,6 +28,7 @@ public static function fromJson(array $data): self public function __construct( public string $id, public string $name, + public ?string $salutation, public ?string $firstName, public ?string $lastName, public string $dbName, diff --git a/src/Requests/General/UserManagement/CreateUpdateUsers/CreateUser.php b/src/Requests/General/UserManagement/CreateUpdateUsers/CreateUser.php new file mode 100644 index 0000000..ff3a5b4 --- /dev/null +++ b/src/Requests/General/UserManagement/CreateUpdateUsers/CreateUser.php @@ -0,0 +1,67 @@ + 'application/vnd.docuware.platform.createorganizationuser+json', + ]; + } + + protected function defaultBody(): array + { + return [ + 'Name' => $this->user->name, + 'DbName' => $this->user->dbName, + 'Email' => $this->user->email, + 'NetworkId' => $this->user->networkId, + 'Password' => $this->user->password, + ]; + } + + public function resolveCacheDriver(): LaravelCacheDriver + { + return new LaravelCacheDriver(Cache::store(config('laravel-docuware.configurations.cache.driver'))); + } + + public function cacheExpiryInSeconds(): int + { + return config('laravel-docuware.configurations.cache.lifetime_in_seconds', 3600); + } + + public function createDtoFromResponse(Response $response): GetUser + { + return GetUserResponse::fromResponse($response); + } +} diff --git a/src/Requests/General/UserManagement/CreateUpdateUsers/UpdateUser.php b/src/Requests/General/UserManagement/CreateUpdateUsers/UpdateUser.php new file mode 100644 index 0000000..8e0c43d --- /dev/null +++ b/src/Requests/General/UserManagement/CreateUpdateUsers/UpdateUser.php @@ -0,0 +1,73 @@ + 'application/json', + ]; + } + + protected function defaultBody(): array + { + return [ + 'Id' => $this->user->id, + 'Active' => $this->user->active, + 'FirstName' => $this->user->firstName, + 'LastName' => $this->user->lastName, + 'Salutation' => $this->user->salutation, + 'Name' => $this->user->name, + 'Email' => $this->user->email, + 'OutOfOffice' => [ + 'IsOutOfOffice' => $this->user->outOfOffice->isOutOfOffice, + 'StartDateTime' => $this->user->outOfOffice->startDateTime?->toISOString(), + 'EndDateTime' => $this->user->outOfOffice->endDateTime?->toISOString(), + ], + ]; + } + + public function resolveCacheDriver(): LaravelCacheDriver + { + return new LaravelCacheDriver(Cache::store(config('laravel-docuware.configurations.cache.driver'))); + } + + public function cacheExpiryInSeconds(): int + { + return config('laravel-docuware.configurations.cache.lifetime_in_seconds', 3600); + } + + public function createDtoFromResponse(Response $response): User + { + return GetUserResponse::fromResponse($response); + } +} diff --git a/tests/Feature/Requests/General/UserManagement/CreateUpdateUsers/CreateUpdateUserTest.php b/tests/Feature/Requests/General/UserManagement/CreateUpdateUsers/CreateUpdateUserTest.php new file mode 100644 index 0000000..f61a8f0 --- /dev/null +++ b/tests/Feature/Requests/General/UserManagement/CreateUpdateUsers/CreateUpdateUserTest.php @@ -0,0 +1,43 @@ +timestamp, -8); + + $user = $this->connector->send(new CreateUser(new User( + name: $timestamp.' - Test User', + dbName: $timestamp, + email: $timestamp.'-test@example.test', + password: 'TESTPASSWORD', + )))->dto(); + + $this->assertInstanceOf(GetUser::class, $user); + + Event::assertDispatched(DocuWareResponseLog::class); + + return $user; +}); + +it('can update users', function ($user) { + Event::fake(); + + sleep(5); + + $user->name .= ' - Updated'; + $user->active = false; + + $user = $this->connector->send(new UpdateUser($user))->dto(); + + $this->assertInstanceOf(GetUser::class, $user); + + Event::assertDispatched(DocuWareResponseLog::class); +})->depends('it can create users'); From 863827a1168982fac19ba96bf44765737f2a98ac Mon Sep 17 00:00:00 2001 From: Rhys Lees <43909932+RhysLees@users.noreply.github.com> Date: Tue, 21 May 2024 00:10:06 +0100 Subject: [PATCH 25/54] WIP --- README.md | 12 ++--- phpunit.xml.dist | 2 + .../GetModifyGroups/AddUserToAGroup.php | 53 ++++++++++++++++++ .../GetModifyGroups/RemoveUserFromAGroup.php | 53 ++++++++++++++++++ .../GetModifyRoles/AddUserToARole.php | 53 ++++++++++++++++++ .../GetModifyRoles/RemoveUserFromARole.php | 53 ++++++++++++++++++ .../AddRemoveUserToAGroupTest.php | 54 +++++++++++++++++++ .../AddRemoveUserToARoleTest.php | 54 +++++++++++++++++++ 8 files changed, 328 insertions(+), 6 deletions(-) create mode 100644 src/Requests/General/UserManagement/GetModifyGroups/AddUserToAGroup.php create mode 100644 src/Requests/General/UserManagement/GetModifyGroups/RemoveUserFromAGroup.php create mode 100644 src/Requests/General/UserManagement/GetModifyRoles/AddUserToARole.php create mode 100644 src/Requests/General/UserManagement/GetModifyRoles/RemoveUserFromARole.php create mode 100644 tests/Feature/Requests/General/UserManagement/GetModifyGroups/AddRemoveUserToAGroupTest.php create mode 100644 tests/Feature/Requests/General/UserManagement/GetModifyRoles/AddRemoveUserToARoleTest.php diff --git a/README.md b/README.md index 5a285a0..8d85388 100644 --- a/README.md +++ b/README.md @@ -84,12 +84,12 @@ then optimize the processes that power the core of your business. | General/UserManagement | Update User | ✅ | | General/UserManagement | Get Groups | ✅ | | General/UserManagement | Get All Groups for a Specific User | ✅ | -| General/UserManagement | Add User to a Group | ❌ | -| General/UserManagement | Remove User from a Group | ❌ | +| General/UserManagement | Add User to a Group | ✅ | +| General/UserManagement | Remove User from a Group | ✅ | | General/UserManagement | Get Roles | ✅ | | General/UserManagement | Get All Roles for a Specific User | ✅ | -| General/UserManagement | Add User to a Role | ❌ | -| General/UserManagement | Remove User from a Role | ❌ | +| General/UserManagement | Add User to a Role | ✅ | +| General/UserManagement | Remove User from a Role | ✅ | | FileCabinets/General | Get File Cabinet Information | ✅ | | FileCabinets/General | Get Total Number of Documents | ✅ | | FileCabinets/Dialogs | Get All Dialogs | ✅ | @@ -97,8 +97,8 @@ then optimize the processes that power the core of your business. | FileCabinets/Dialogs | Get Dialogs of a Specific Type | ✅ | | FileCabinets/Search | Get Documents from a File Cabinet | ✅ | | FileCabinets/Search | Get a Specific Document From a File Cabinet | ✅ | -| FileCabinets/Search | Search for Documents in a Single File Cabinet | ❌ | -| FileCabinets/Search | Search for Documents in Multiple File Cabinets | ❌ | +| FileCabinets/Search | Search for Documents in a Single File Cabinet | ✅ | +| FileCabinets/Search | Search for Documents in Multiple File Cabinets | ✅ | | FileCabinets/CheckInCheckOut | Check-out & Download a Document | ❌ | | FileCabinets/CheckInCheckOut | Check-in a Document from the File System | ❌ | | FileCabinets/CheckInCheckOut | Undo Check-out | ❌ | diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 21b8f70..cc3e2d8 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -50,5 +50,7 @@ + + diff --git a/src/Requests/General/UserManagement/GetModifyGroups/AddUserToAGroup.php b/src/Requests/General/UserManagement/GetModifyGroups/AddUserToAGroup.php new file mode 100644 index 0000000..94064fb --- /dev/null +++ b/src/Requests/General/UserManagement/GetModifyGroups/AddUserToAGroup.php @@ -0,0 +1,53 @@ + $this->userId, + ]; + } + + protected function defaultBody(): array + { + return [ + 'Ids' => $this->ids, + 'OperationType' => 'Add', + ]; + } + + public function createDtoFromResponse(Response $response): Response + { + event(new DocuWareResponseLog($response)); + + EnsureValidResponse::from($response); + + return $response; + } +} diff --git a/src/Requests/General/UserManagement/GetModifyGroups/RemoveUserFromAGroup.php b/src/Requests/General/UserManagement/GetModifyGroups/RemoveUserFromAGroup.php new file mode 100644 index 0000000..91786e4 --- /dev/null +++ b/src/Requests/General/UserManagement/GetModifyGroups/RemoveUserFromAGroup.php @@ -0,0 +1,53 @@ + $this->userId, + ]; + } + + protected function defaultBody(): array + { + return [ + 'Ids' => $this->ids, + 'OperationType' => 'Remove', + ]; + } + + public function createDtoFromResponse(Response $response): Response + { + event(new DocuWareResponseLog($response)); + + EnsureValidResponse::from($response); + + return $response; + } +} diff --git a/src/Requests/General/UserManagement/GetModifyRoles/AddUserToARole.php b/src/Requests/General/UserManagement/GetModifyRoles/AddUserToARole.php new file mode 100644 index 0000000..0c9a610 --- /dev/null +++ b/src/Requests/General/UserManagement/GetModifyRoles/AddUserToARole.php @@ -0,0 +1,53 @@ + $this->userId, + ]; + } + + protected function defaultBody(): array + { + return [ + 'Ids' => $this->ids, + 'OperationType' => 'Add', + ]; + } + + public function createDtoFromResponse(Response $response): Response + { + event(new DocuWareResponseLog($response)); + + EnsureValidResponse::from($response); + + return $response; + } +} diff --git a/src/Requests/General/UserManagement/GetModifyRoles/RemoveUserFromARole.php b/src/Requests/General/UserManagement/GetModifyRoles/RemoveUserFromARole.php new file mode 100644 index 0000000..bf53307 --- /dev/null +++ b/src/Requests/General/UserManagement/GetModifyRoles/RemoveUserFromARole.php @@ -0,0 +1,53 @@ + $this->userId, + ]; + } + + protected function defaultBody(): array + { + return [ + 'Ids' => $this->ids, + 'OperationType' => 'Remove', + ]; + } + + public function createDtoFromResponse(Response $response): Response + { + event(new DocuWareResponseLog($response)); + + EnsureValidResponse::from($response); + + return $response; + } +} diff --git a/tests/Feature/Requests/General/UserManagement/GetModifyGroups/AddRemoveUserToAGroupTest.php b/tests/Feature/Requests/General/UserManagement/GetModifyGroups/AddRemoveUserToAGroupTest.php new file mode 100644 index 0000000..22e093e --- /dev/null +++ b/tests/Feature/Requests/General/UserManagement/GetModifyGroups/AddRemoveUserToAGroupTest.php @@ -0,0 +1,54 @@ +timestamp, -8); + + $user = $this->connector->send(new CreateUser(new User( + name: $timestamp.' - Test User', + dbName: $timestamp, + email: $timestamp.'-test@example.test', + password: 'TESTPASSWORD', + )))->dto(); + + sleep(5); + + $response = $this->connector->send(new AddUserToAGroup( + userId: $user->id, + ids: [ + env('DOCUWARE_TESTS_GROUP_ID'), + ] + ))->dto(); + + expect($response->status())->toBe(200); + + Event::assertDispatched(DocuWareResponseLog::class); + + return $user; +}); + +it('can remove groups to a user', function ($user) { + Event::fake(); + + sleep(5); + + $response = $this->connector->send(new RemoveUserFromAGroup( + userId: $user->id, + ids: [ + env('DOCUWARE_TESTS_GROUP_ID'), + ] + ))->dto(); + + expect($response->status())->toBe(200); + + Event::assertDispatched(DocuWareResponseLog::class); +})->depends('it can add groups to a user'); diff --git a/tests/Feature/Requests/General/UserManagement/GetModifyRoles/AddRemoveUserToARoleTest.php b/tests/Feature/Requests/General/UserManagement/GetModifyRoles/AddRemoveUserToARoleTest.php new file mode 100644 index 0000000..4f89916 --- /dev/null +++ b/tests/Feature/Requests/General/UserManagement/GetModifyRoles/AddRemoveUserToARoleTest.php @@ -0,0 +1,54 @@ +timestamp, -8); + + $user = $this->connector->send(new CreateUser(new User( + name: $timestamp.' - Test User', + dbName: $timestamp, + email: $timestamp.'-test@example.test', + password: 'TESTPASSWORD', + )))->dto(); + + sleep(5); + + $response = $this->connector->send(new AddUserToARole( + userId: $user->id, + ids: [ + env('DOCUWARE_TESTS_ROLE_ID'), + ] + ))->dto(); + + expect($response->status())->toBe(200); + + Event::assertDispatched(DocuWareResponseLog::class); + + return $user; +}); + +it('can remove roles to a user', function ($user) { + Event::fake(); + + sleep(5); + + $response = $this->connector->send(new RemoveUserFromARole( + userId: $user->id, + ids: [ + env('DOCUWARE_TESTS_ROLE_ID'), + ] + ))->dto(); + + expect($response->status())->toBe(200); + + Event::assertDispatched(DocuWareResponseLog::class); +})->depends('it can add roles to a user'); From 32d4f83f4df7ca03f66a401a2816310c055555fb Mon Sep 17 00:00:00 2001 From: Rhys Lees <43909932+RhysLees@users.noreply.github.com> Date: Tue, 21 May 2024 00:40:51 +0100 Subject: [PATCH 26/54] WIP --- src/Connectors/DocuWareConnector.php | 2 +- src/DTO/General/UserManagement/GetUsers/User.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Connectors/DocuWareConnector.php b/src/Connectors/DocuWareConnector.php index f297b5f..627e1ad 100644 --- a/src/Connectors/DocuWareConnector.php +++ b/src/Connectors/DocuWareConnector.php @@ -61,7 +61,7 @@ protected function getOrCreateNewOAuthToken() // get instance name of $this->configuration as string $instanceName = get_class($this->configuration); - $cacheKey = 'docuware.oauth.'.$instanceName.'.'.$this->configuration->url.'.'.$this->configuration?->username; + $cacheKey = 'docuware.oauth.'.$instanceName.'.'.$this->configuration->url.'.'.($this->configuration->username ?? ''); $token = null; diff --git a/src/DTO/General/UserManagement/GetUsers/User.php b/src/DTO/General/UserManagement/GetUsers/User.php index 850257d..6727a07 100644 --- a/src/DTO/General/UserManagement/GetUsers/User.php +++ b/src/DTO/General/UserManagement/GetUsers/User.php @@ -44,6 +44,7 @@ public function __construct( public static function fake( ?string $id = null, ?string $name = null, + ?string $salutation = null, ?string $firstName = null, ?string $lastName = null, ?string $dbName = null, @@ -57,6 +58,7 @@ public static function fake( return new self( id: $id ?? (string) Str::uuid(), name: $name ?? (string) 'Fake File Cabinet', + salutation: $salutation ?? (string) 'Fake Salutation', firstName: $firstName ?? (string) 'Fake First Name', lastName: $lastName ?? (string) 'Fake Last Name', dbName: $dbName ?? (string) 'Fake DB Name', From a52dd2396e27f04cc51cb8e4d12c5e37375bbe53 Mon Sep 17 00:00:00 2001 From: Rhys Lees <43909932+RhysLees@users.noreply.github.com> Date: Tue, 21 May 2024 20:48:15 +0100 Subject: [PATCH 27/54] WIP --- README.md | 8 +- src/DTO/Documents/Document.php | 22 ++- .../ClipUnclipStapleUnstaple/Clip.php | 44 +++++ .../ClipUnclipStapleUnstaple/Staple.php | 44 +++++ .../ClipUnclipStapleUnstaple/Unclip.php | 48 ++++++ .../ClipUnclipStapleUnstaple/Unstaple.php | 48 ++++++ .../GetDocumentsFromAFileCabinetResponse.php | 2 +- .../ClipUnclipStapleUnstapleTest.php | 152 ++++++++++++++++++ tests/Fixtures/files/test-1.pdf | Bin 0 -> 8570 bytes tests/Fixtures/files/test-2.pdf | Bin 0 -> 8639 bytes tests/Pest.php | 22 +++ 11 files changed, 381 insertions(+), 9 deletions(-) create mode 100644 src/Requests/Documents/ClipUnclipStapleUnstaple/Clip.php create mode 100644 src/Requests/Documents/ClipUnclipStapleUnstaple/Staple.php create mode 100644 src/Requests/Documents/ClipUnclipStapleUnstaple/Unclip.php create mode 100644 src/Requests/Documents/ClipUnclipStapleUnstaple/Unstaple.php create mode 100644 tests/Feature/Requests/Documents/ClipUnclipStapleUnstaple/ClipUnclipStapleUnstapleTest.php create mode 100644 tests/Fixtures/files/test-1.pdf create mode 100644 tests/Fixtures/files/test-2.pdf diff --git a/README.md b/README.md index 8d85388..0e9a648 100644 --- a/README.md +++ b/README.md @@ -118,10 +118,10 @@ then optimize the processes that power the core of your business. | Documents/UpdateIndexValues | Update Table Field Values | ❌ | | Documents/ModifyDocuments | Transfer Document | ✅ | | Documents/ModifyDocuments | Delete Document | ✅ | -| Documents/ClipUnclip&StapleUnstaple | Clip | ❌ | -| Documents/ClipUnclip&StapleUnstaple | Unclip | ❌ | -| Documents/ClipUnclip&StapleUnstaple | Staple | ❌ | -| Documents/ClipUnclip&StapleUnstaple | Unstaple | ❌ | +| Documents/ClipUnclip&StapleUnstaple | Clip | ✅ | +| Documents/ClipUnclip&StapleUnstaple | Unclip | ✅ | +| Documents/ClipUnclip&StapleUnstaple | Staple | ✅ | +| Documents/ClipUnclip&StapleUnstaple | Unstaple | ✅ | | Documents/AnnotationsStamps | AddStampWithPosition | ❌ | | Documents/AnnotationsStamps | AddStampWithBestPosition | ❌ | | Documents/AnnotationsStamps | AddTextAnnotation | ❌ | diff --git a/src/DTO/Documents/Document.php b/src/DTO/Documents/Document.php index f3117c4..9063703 100644 --- a/src/DTO/Documents/Document.php +++ b/src/DTO/Documents/Document.php @@ -3,6 +3,7 @@ namespace CodebarAg\DocuWare\DTO\Documents; use Carbon\Carbon; +use CodebarAg\DocuWare\DTO\Section; use CodebarAg\DocuWare\DTO\SuggestionField; use CodebarAg\DocuWare\Support\ParseValue; use Illuminate\Support\Arr; @@ -13,14 +14,18 @@ final class Document { public static function fromJson(array $data): self { - $suggestions = Arr::has($data, 'Suggestions') - ? self::convertSuggestions(collect(Arr::get($data, 'Suggestions'))) - : null; - $fields = Arr::has($data, 'Fields') ? self::convertFields(collect(Arr::get($data, 'Fields'))) : null; + $sections = Arr::has($data, 'Sections') + ? self::convertSections(collect(Arr::get($data, 'Sections'))) + : null; + + $suggestions = Arr::has($data, 'Suggestions') + ? self::convertSuggestions(collect(Arr::get($data, 'Suggestions'))) + : null; + return new self( id: Arr::get($data, 'Id'), file_size: Arr::get($data, 'FileSize'), @@ -33,6 +38,7 @@ public static function fromJson(array $data): self created_at: ParseValue::date(Arr::get($data, 'CreatedAt')), updated_at: ParseValue::date(Arr::get($data, 'LastModified')), fields: $fields, + sections: $sections, suggestions: $suggestions, ); } @@ -51,6 +57,13 @@ protected static function convertSuggestions(Collection $suggestions): ?Collecti }); } + protected static function convertSections(Collection $sections): ?Collection + { + return $sections->mapWithKeys(function (array $section) { + return [$section['Id'] => Section::fromJson($section)]; + }); + } + public function __construct( public int $id, public int $file_size, @@ -63,6 +76,7 @@ public function __construct( public Carbon $created_at, public Carbon $updated_at, public ?Collection $fields, + public ?Collection $sections, public ?Collection $suggestions, ) { } diff --git a/src/Requests/Documents/ClipUnclipStapleUnstaple/Clip.php b/src/Requests/Documents/ClipUnclipStapleUnstaple/Clip.php new file mode 100644 index 0000000..38c65e2 --- /dev/null +++ b/src/Requests/Documents/ClipUnclipStapleUnstaple/Clip.php @@ -0,0 +1,44 @@ +documentTrayId.'/Operations/ContentMerge'; + } + + public function defaultBody(): array + { + return [ + 'Documents' => $this->documents, + 'Operation' => 'Clip', + 'Force' => $this->force, + ]; + } + + public function createDtoFromResponse(Response $response): Document + { + return GetASpecificDocumentFromAFileCabinetResponse::fromResponse($response); + } +} diff --git a/src/Requests/Documents/ClipUnclipStapleUnstaple/Staple.php b/src/Requests/Documents/ClipUnclipStapleUnstaple/Staple.php new file mode 100644 index 0000000..057abf1 --- /dev/null +++ b/src/Requests/Documents/ClipUnclipStapleUnstaple/Staple.php @@ -0,0 +1,44 @@ +documentTrayId.'/Operations/ContentMerge'; + } + + public function defaultBody(): array + { + return [ + 'Documents' => $this->documents, + 'Operation' => 'Staple', + 'Force' => $this->force, + ]; + } + + public function createDtoFromResponse(Response $response): Document + { + return GetASpecificDocumentFromAFileCabinetResponse::fromResponse($response); + } +} diff --git a/src/Requests/Documents/ClipUnclipStapleUnstaple/Unclip.php b/src/Requests/Documents/ClipUnclipStapleUnstaple/Unclip.php new file mode 100644 index 0000000..2b2cb48 --- /dev/null +++ b/src/Requests/Documents/ClipUnclipStapleUnstaple/Unclip.php @@ -0,0 +1,48 @@ +documentTrayId.'/Operations/ContentDivide'; + } + + public function defaultQuery(): array + { + return [ + 'DocId' => $this->documentId, + ]; + } + + public function defaultBody(): array + { + return [ + 'Operation' => 'Unclip', + ]; + } + + public function createDtoFromResponse(Response $response): DocumentPaginator + { + return GetDocumentsFromAFileCabinetResponse::fromResponse($response); + } +} diff --git a/src/Requests/Documents/ClipUnclipStapleUnstaple/Unstaple.php b/src/Requests/Documents/ClipUnclipStapleUnstaple/Unstaple.php new file mode 100644 index 0000000..dc3f139 --- /dev/null +++ b/src/Requests/Documents/ClipUnclipStapleUnstaple/Unstaple.php @@ -0,0 +1,48 @@ +documentTrayId.'/Operations/ContentDivide'; + } + + public function defaultQuery(): array + { + return [ + 'DocId' => $this->documentId, + ]; + } + + public function defaultBody(): array + { + return [ + 'Operation' => 'Unstaple', + ]; + } + + public function createDtoFromResponse(Response $response): DocumentPaginator + { + return GetDocumentsFromAFileCabinetResponse::fromResponse($response); + } +} diff --git a/src/Responses/FileCabinets/Search/GetDocumentsFromAFileCabinetResponse.php b/src/Responses/FileCabinets/Search/GetDocumentsFromAFileCabinetResponse.php index 31306d8..c2786bd 100644 --- a/src/Responses/FileCabinets/Search/GetDocumentsFromAFileCabinetResponse.php +++ b/src/Responses/FileCabinets/Search/GetDocumentsFromAFileCabinetResponse.php @@ -10,7 +10,7 @@ final class GetDocumentsFromAFileCabinetResponse { - public static function fromResponse(Response $response, $page, $perPage): DocumentPaginator + public static function fromResponse(Response $response, $page = 1, $perPage = 50): DocumentPaginator { event(new DocuWareResponseLog($response)); diff --git a/tests/Feature/Requests/Documents/ClipUnclipStapleUnstaple/ClipUnclipStapleUnstapleTest.php b/tests/Feature/Requests/Documents/ClipUnclipStapleUnstaple/ClipUnclipStapleUnstapleTest.php new file mode 100644 index 0000000..f11a86f --- /dev/null +++ b/tests/Feature/Requests/Documents/ClipUnclipStapleUnstaple/ClipUnclipStapleUnstapleTest.php @@ -0,0 +1,152 @@ +send(new GetDocumentsFromAFileCabinet( + $fileCabinetId + ))->dto(); + + foreach ($paginator->documents as $document) { + $connector->send(new DeleteDocument( + $fileCabinetId, + $document->id, + ))->dto(); + } +} + +function uploadFiles($connector, $fileCabinetId, $path): array +{ + $document = $connector->send(new CreateDataRecord( + $fileCabinetId, + file_get_contents($path.'/test-1.pdf'), + 'test-1.pdf', + ))->dto(); + + $document2 = $connector->send(new CreateDataRecord( + $fileCabinetId, + file_get_contents($path.'/test-2.pdf'), + 'test-2.pdf', + ))->dto(); + + sleep(5); // Wait for the files to be uploaded and processed + + // Have to get document again as returned data is incorrect + $document = $connector->send(new GetASpecificDocumentFromAFileCabinet( + $fileCabinetId, + $document->id + ))->dto(); + + // Have to get document2 again as returned data is incorrect + $document2 = $connector->send(new GetASpecificDocumentFromAFileCabinet( + $fileCabinetId, + $document2->id + ))->dto(); + + return [$document, $document2]; +} + +it('can clip 2 documents', function () { + Event::fake(); + + $fileCabinetId = config('laravel-docuware.tests.basket_id'); + $path = __DIR__.'/../../../../Fixtures/files'; + + cleanup($this->connector, $fileCabinetId); + + [$document, $document2] = uploadFiles($this->connector, $fileCabinetId, $path); + + $clip = $this->connector->send(new Clip( + $fileCabinetId, + [ + $document->id, + $document2->id, + ] + ))->dto(); + + expect($clip->id)->toBe($document->id) + ->and($clip->total_pages)->toBe($document->total_pages + $document2->total_pages) + ->and($clip->sections->count())->toBe(2); + + Event::assertDispatched(DocuWareResponseLog::class); + + return [$clip, $document, $document2]; +}); + +it('can unclip 2 documents', function ($test) { + Event::fake(); + + [$clip, $document, $document2] = $test; + + $fileCabinetId = config('laravel-docuware.tests.basket_id'); + + sleep(5); + + $unclip = $this->connector->send(new Unclip( + $fileCabinetId, + $clip->id + ))->dto(); + + expect($unclip->documents->count())->toBe(2) + ->and($unclip->documents->first()->title)->toBe($document->title) + ->and($unclip->documents->first()->file_size)->toBe($document->file_size) + ->and($unclip->documents->last()->title)->toBe($document2->title) + ->and($unclip->documents->last()->file_size)->toBe($document2->file_size); + + Event::assertDispatched(DocuWareResponseLog::class); +})->depends('it can clip 2 documents'); + +it('can staple 2 documents', function () { + Event::fake(); + + $fileCabinetId = config('laravel-docuware.tests.basket_id'); + $path = __DIR__.'/../../../../Fixtures/files'; + + cleanup($this->connector, $fileCabinetId); + + [$document, $document2] = uploadFiles($this->connector, $fileCabinetId, $path); + + $staple = $this->connector->send(new Staple( + $fileCabinetId, + [ + $document->id, + $document2->id, + ] + ))->dto(); + + expect($staple->title)->toBe($document->title) + ->and($staple->total_pages)->toBe($document->total_pages + $document2->total_pages); + + Event::assertDispatched(DocuWareResponseLog::class); + + return $staple; + +}); + +it('can unstaple 2 documents', function ($staple) { + Event::fake(); + + $fileCabinetId = config('laravel-docuware.tests.basket_id'); + + sleep(5); + + $unclip = $this->connector->send(new Unstaple( + $fileCabinetId, + $staple->id + ))->dto(); + + expect($unclip->documents->count())->toBe($staple->total_pages); + + Event::assertDispatched(DocuWareResponseLog::class); +})->depends('it can staple 2 documents'); diff --git a/tests/Fixtures/files/test-1.pdf b/tests/Fixtures/files/test-1.pdf new file mode 100644 index 0000000000000000000000000000000000000000..505f6f4836d7040892ab809ac3fcc3022a48f634 GIT binary patch literal 8570 zcmcJV1yqz>w}1f&8IVv)KpByco*F#m{hK3=AmQtEQKxsupN>Y?=kq!xIkWQtf z8}6W=|L^zt-*xZ0Yu$IvnwhiTePYMF>pc4mvzoLl7nmCgU~XF2T3E^6e%0I50)PTR zKqTA-AS?{zk+rr%A)GOvb}$q|8exVsM*w-05Du0oDIufkl4fj6;Ybx^W(<_PHDZ7U5liCi2^f^2uskaBCoG? z2^eik3sA^%Z-lFDc_EqxYlA0a(n5u2Gssj|sB;?#z}yBA@wbCyijMB0|9xa3i3TO=EkwV%boi!a{W(eSg zlcik1K)xSyh>BudjhXg`SW6266u1y$M!#_MUlR!aHh~IeZ9EbeA#%XP2goChaI-c; zXvj(aD@YK2Fyudn@%PZB#Jg*0j#7p6)C$!0US$L_@6dV?0zcooPl>A@ChxC?6CB9m zCXFXcLC&UQuJr+1E`-rchJxtvBls}k7MWU0gSxcL!UWouaHD{4doua7Rex%9seE|U za>Hl13QO(e5$;En9=1PknjXdaN`ukWYn@H|I5cF~Bzo8%W-Kgl}*V3;VKAFW|B^pqoa1)v#IZqw!4Rr6 z!q@qXb4_pU_Ocf_s@oG2Smx7c^}Dav@V-P>t4$^|&!nSq(~J_Cr!CVT5+G`|Dj%^aEaVCj46ta4W<&kAMAC4O)56>bW zPPATFZnHSrEY>`PgE?Xwm1jadlzMhbh@XI{{of+vWw4p`?USrx)(Ys?*7S!Ktq$u) zr*8Uco{F@29cyp0toFQ=K)=+VvRlpPsinf&V={Ptqqr_k8>_?~UwmOEUv&eBwS|XO zGWlZrX0V;f)23NsR-%a2RXZ2#R9kM2Wr5?=N63!)V4?k_&h=xRds)8>tfl7t@f(|xk@xer3tpV}KaU!;DZ-V9pSR$q=K3=FfX4iXN~i{>^51o{om z_|fpQ5?uF9v8AwbHO2A?5>l&>Cul>8U`gG+#N;66h2yhgNCpP9)zw%P#JqKhf_R-R z9Wf9Yg*(hBNib?I?h!|sJ2SuLyq-Q4XxD&qHJSkR3cwq{4Z`7kaE0C<>Ue1qh!yC6 zpX^fnCGPt;*5bJDB}7NC021I4Y`4cYj#vW$UcI;~kN6$&jc|28TyZ2K_Lma}1UD#x zuqOkoFF*QDM)_JIH<~JgG)Z!ZjLzV)r<8=6AjPF-sjz6Wr{agbEN^JoALph?sfp~| zM$uMXHhz5cil7(Bi+_sk6G)zj(+|5cf>q`}T6B;8vfRhcX=xA27X;KF#%B~Ns6m+3a8C8PD2u*q-P#xQ2!ZH;iF9W;JYk6)_gHHLVoh+kz7qW z5279z7A3s9Gy+?_M^DoF;rcASqi+R`5yXM75VxFk7+vkZ(s*TtWz(aEeUf715ov?V zclg6wbpStlznfE03@!Dn(S!!LwvR|}#RHk_n6$`fFE3p_4J7}_s~+%16~!1#=GkNf zXM6W#M50EXo<-#ug?um*wFVPgQb~Z8ybYr`ci=ksx`Q|0C$Z0aW99Ci)q=8XdLGyI9#X*E7!l*4pH}hAr-p-GTjK z9AlhC9Cln(u97x#kYX?;*FINu0A#~r1G5>mIUeNBi|onnaevv9V#<3ye-iSos4C2> z;>c#V@terEXSB(*b+p%MwP_Q0TllUgJ0!O!FC;JVww72K5S8K@EEp`6ntsh9&6n9@Ue#&hqAW?2quIVnRs>q|qWBOKoBTZC2 zwIDU4UasEIuj4~6aO^>Z#PfzXY2j)0u$Qp(8ME8DF?oIL=?3ZdS_I9?oWeIn=L}hj z!cyd)%15>fLUq4@V=#@~TaNEOl&*z66L?RJ- z5h+v?RHmG3oSIxKoDBMG`gnTwCEtpU8poQFZH>)*T7zxo%!<3SCKgKza=514>eqbk zB^wt_P*tl`_w14EF&?uVg9$`JJVI(o_D4`|cd7$@2FX{JXDYfk(Q^c>-mLHX<+Gm-lkSdbK$VIfqW`+7JTlmmUV7t!6yxT>$W5XK|_T`luINLEU!&(v~t8dZRhhp$ zU76DN(LJ2#+6!E(&D_g8cAs{;?EYoqYt^=15?tS8w6}2DxL~1c>-AQ7weD)24$RQ$ z0jYJAc~lAH&HGw~w>ENv+21n01<*z%FV=qZE?-L-YaJi1pR)Js$Bw+zOdxubg1*MD zZC}l{K*GKm_GKo&v1jG=x2k$eKT|*HwfmbfJ#s;EnXMnATnFzB3=6ywh~@tn`LyNT zoKq|Ebb43H`&!;tHE4R}0j}UJq0QOW1BQ*4#KNPV;Xb)vSx-~<%6bjL4bq0b426|t z@LPK;c~5=y?@zhWeS=Hv`T4^g^j=bOafhX1PfR!Ei|0bA?!H@+EkTK zCG($C3X2LSI|CBlnrv1&=Zx1LpJ*rKSr!Tz-}6cFsa*>`jU2jJ{W9Kk)z|uK>4tsn zSI6Sh__=~7b$C8YN5;oIlY3P@3s25d=q^RzAFXrOd7qnn5&7yfdD=&iLuw+{P|K*`3MroRxWl)qjd(pdJsh$nvftzi z~3X^Z@gpP*x?3c`! z=lk8QH?p$BC-dsW_5x1Rj?H#jW4^Ac9;n8pMvA#VBs|&jV6nGYoZ1iEKK^r;eX)bR z*!W^LyYf;}k}wy9Iq+hyssS|qwRHtwY@B~>j{mP{(HF^`+^zJKWz;~}A2f~qh&vEq zzfM}#5+o@Ac`kMWn+zmk>4k{yhN^(39GkCAsL@o`a7ebV#F6Xn(|XATGj4@GlN2s6 zeS^=?RAI$s@PvZ)Mqdtq#;X^lO5D8|3m&`njMA z0Sx$DSmOGFp?DOn&0R30^V7f!zhDCY`_lg$Sqg@N*&!`|;+V@{9QJR}xnQ5aFXaas z@o2ijQ9me7%h?t2bB!0-_VcF1#U;fd;fO+F7JVU;M!1+cTVvYJ0PtTVr-jsZu>Qfa z;J;W;*4o(xC1nM320}4Jr3Cxc-~;mLTAQP+E-d4N@&X|s=*1`CZG*fa0~wvm$q?Lw`vl%1Je2o)sw4Y z?r&4vuOG+(vRa9sZS&92mYI{uzDTi*#9dMHtuTOgl3i!5m>NbaE@fjWfU(Zx+mic9 zLa6Cvh2zKg^p(1M91leIOFtvQla3Op5}<;HS?QI@-~&<4%QdgFyEUd3PNfH?nuc$Z z-ytXeB=VGyYFLm)>2Ycd+pUr+BVH-wdFj|akV=&NsFgO8^te@429x4d$#A&gd!}z4 zRci?x5uKM_27HRYiYPG6wT$)Xp4*NAH(kyCMv$oF#_;El=SMjHjPSn$_A`JgFnbKz z{v)tp&;>02Y;Zv^>O4{~$NLCtODhzRpHBeDqlrS;>s<8E`zZzR3h-mPyIKB72Ou9m z81s{WdHigFA^e!}E|LxNP(xtm{zdcudhq>vI9}lX&lJHRKOac&R|}JN{Fq$(PtU~P zIXzO(){bJBvJQIu-OD|o)Ds$qm#MFC{b3T?RXS=-ozyrbQ_ zqyAjqGd?CGgvW18==1V&kAw40LonN^W8=z^_~Z0_Bno9am+vqnbd=^LC#ENsx1UKb zQeUUJVZ5;{LPuZg-KZ>5KG{o}-}&u$cw!(`e`#4&Y-ZV5UT#AvYv;)r*vE7&f6`=S z*`83YhsEKWcV)We&|NRvhdNW&+;>nXS!c1}ybXT(Q~5bppM<_w8%EH~@_eTqi-|t> z<^H3+K~1lI8@Z`6FP$j^XdW`hY3CE4z^-zn=21%(>+Vq%n@{7BLenPtmgk}oX`vh3{nGS3jMkG`1$s{-WP=0Et3(^?@7@k?bBO57tFz z8h{rSvoCenFYv{yx_;6U6ftIur6cRO60@9XSygR{i@ZEEEcPItazT6Lh~sV1V1e;$ zsmXSHRGMv^HebJe{ArzTflfR;ha&lSyNa7JPUGegc;_pA^=dB&HSbts?swA>26x&d z9r4$1(0diw@QI}Qs{I;V}iq6MoXc5x&gb_j67meE#)71I_DS;VFqfi>80-=oKO@dwe z4AYpWq4fm4>TUJ-Nj}j+#B7@R&u_pVPm9H^pPW6PI$rPOG4|UW8>G&vKP%-(NUcY0 zemr!s?0NC>E}!RCQ`4qd&y5=lbT_VZU!f$DdwD}xxEGleLbA8uUF|}!C$^2!wQQ~1 zD|7YYG}6zGy*)$RgAQC-(G#MV5YRBq4t*f2bw5Ke8d8*RQIpr&wLUoOq&VjkLv!)RMba#`vaA%bdDytWaKk`V z({-(FH(bmeF2@(I%|N!9fh+}al%s^^b=D16BO=l$qFh{XUw7Q1id-VPzVq5eq}eJ2 z-;AXtxK|qA{2d~i6F^VvX zP3F^+?FyJav|Em^>C;?v=KCRtt^+Eezaw(eciWA)bXRt=CX?MJ%ilZ)?^BIEC_Y|q zUL`Fqx(QD9p^75Ei;IuxuyowIC5w5Ghx{sc10c*L$zM~?TGrJG+^(ylAY(l+_!&Kw znX$xl5I|H}VV&Te(s~1jSvHn5F}#W+EWT!%nbZ6({r!;7abMq5i8mXNeWL;~_?K(I zHe}-P!gYd`^ssi&5aU86+wx2%>fHdy6_t<5Qma{ZF@&|EbY5i z6isTkf(prPizWCKWM(ZoJ92r{bxsHo0^?We@zNQ)M zCOupE?`Gc^&q{@UKy}mi%N8)2NAU6h#E^p>zC+=w25BEM?2^`08_KwwrUSGbu;dlG zL3ZA6)m4t4HEYC7*E-GDuEiWo*2b2&+~11$-diH!H!3Dh8aen(3h5qQGmgXwnwUVb#d(pJslfS_-E??X-zCJ$+b5!FXA!1P;n3=)@r4YxDiCYBta&7T`apODAM&Unb!53E{5vb#R#%0G%C%OmaO#B2J6R#b zx!ndZ>Z>?8eSVk)+vXa!$st(D2*Nc63=B zwNl&t?}Z%#WR#<)+MV9GNbTGi4V49l+7U73uG)-Sm8qBFt2>^ye{R4j!@F%!a@{#6 zBGlYjl0bqAw-O!KrYCfh(Te|C&ej8&S#12aK*1#EBqH%~@Sy3paJjCUaU^ zVZZY9A$goTLNf5Gp4Ch%y^%9s5|mYQ4{YsDoE7-B3jYE7?hn>{0V_)!m-K=pRuWZC>aQTeI_scP8W`v+WcY`5wjo5Veo)7NHKTT_4RX(vGuG|5dF{B9SP9-J^rVo!Y|Zkm*n z*CBsRh+Wwe`s$FaI9h$SraI$3$3YOy;@2g0!gj+#Rw?P?rLg(?LWwnz1F=0WIb`#v z`*-f`oU=*YX&a=7b7s_ve0nQ+L^p4%l4w94pk|~!j8=g#W69mlwy)M|BD8h9g|On) z$9u?UXA^Aw>81VmPl%C}+iQuJh~pnjGHu_!jB{O>oDBYbPR_wfP8{9vJxZ;&#&gPz z9-qMLOX142Y1=cW^%w*^8bs?ZibxxlEx;<|w=rRnso{(i)!7xE_Q{Ky#Bl$y~h)(cYNt2>J#sD zra1?tvdtc1e@{$Xg;#&+VO*Cr;@QLU`}if3&+woy(do=UY8Ozb{;oZJ!M-t6JHVW7 z@SvA$n2qxEW~3s$+vbDMbBsiV*>>X#=}=Ft(rT|6+#@*AM(@YO{*(RT=Q-yxEsL@3 z=_X;fPb6O$-6GkF5acwk0HGW2go&38>y<^W4J_^`yY`||r8U0UESrmG(?sd!H3*Dd z0)?j)S+#h+4HivUEEN&Uwg-&eFA&LAiLKM3lSzVzt9mM~bSR^%k51)Pb9_eDTlZl` z`7F(o!dTq-X}MgMTP&Xf57%eE^tP@O>juj8+X?NMic)Bu>8 zIOedWqqDUYK-Sf_mLE^Hc7*yZb;oDDe0+HOnV9FyH^a)Vz0x!BrKOGYcWGs10b``6 z3{%JXOL{)W-u>N|EY>?BJ6oL_4KTb=oE_?2F5P%hv2*r)x>_@Rqpr{CTmTt8Zhbarg~Eejk4x#Ylv-|ewfCb> z2?|mQYX1Xf^8Z#yz!Xi)UCl5@+IQ?>W~!P%9fY%sHPQhH=H=!C8r_j}wYD<{LZGq& zLPl&rbyt`($_t1&yZuqG@j$U*I1zK&jl%Sh#vHf;?nvK-fH17j2LXcxFh{K*0}zN6 z^TOyUBh4>Vfd9S9zbhRc&Ik(t2nZGcfc|x1Fq99<2ebhGl0l%D(#pjJboeEM@?**o z|B!(|5KN`z?|L98rX2AP85GQmDboBy57Ydo3@X6;=XkuBqyK;Og+hfeb&$W02L%iM zDdPiSVE7+;{6c@s!3%->VH;HFqFna(zP!8`T>pnm;BR^;XBdXcoqznFLDSj`f$=lu zv>%B?0Wn3aAJsT{2MZ(+e32%YN}Rkjrq&}22l1Ml!C_zooEL^!iU0%(5#WbI1ThEx j<}fo}uqfbvR{2@~azSB|=tqPFK>`o}Gqa4UEa1NYiwW&8 literal 0 HcmV?d00001 diff --git a/tests/Fixtures/files/test-2.pdf b/tests/Fixtures/files/test-2.pdf new file mode 100644 index 0000000000000000000000000000000000000000..2a9a4169147d6000974e17f80fa17fbbeea89980 GIT binary patch literal 8639 zcmcJV1yodP_wWG;8Bjow5@bL?dWH!?N?Jflx*1^Tk`74$ML@bsT0lxtkZwUrLRz}J zr2m6n-|M};-}-;+TkAV()|`3v*-z}fpE+y)_Bjj+ViN3}98ds5%fjx$TF%~^zLqus z6bJ^|7?=b2`GFt_GfM}g9qMd}a6pP74Q-5&K+t2PwTXi%kQ2%c6chy5JJ=x+Rsa|D z=+DA{CNLpZpNIU8V^&Z$G%{1Ff|LM=@8bOiFHI!z^m)P4w7!t;MFOul?ipX)vS4|E zbmDGq?Hw_05($p2R|>ms$d;knfT{4bm;AGtgz{@-d5t)n9GXEf_xvR!9r7>&rk;MK zP9sQiOk-NAahoBT>kw#_+5gQkv78oUf z^TIhGKpq$;2QNeifbzp%lU;TGOZN0O|liqBfQ`c1pGg zLnQFZ$)fh0K=_Y21O-v9Mos%etgH+Ha$kv2qhC4tuL*d5n?Me=HjwaDh^$fZ0fNMk zPG*M4Cz2xn2@-^h6Y}4~_{Gho0tfgW-NsZ5l=4=< z2=HTc62p=pA!1fFQf@$(d_iX@PJ;K`*I)#9mr$XtQBh2MVKUePcdG!tHzgvgI*Sjizwsi`nF$j_wUhQzzM6Yt+6)+|_b~K~9K%Qyslw#@HBB^1B$u;90Fe zeEi!-ZKa2s9NtDX<81W`jP}EqUg31yqV(8k0P!I%eoscS1&k=A(pCz{CFZC7Xl6(N zCxkQ&H~k&mTuYJVVa_6JO=nyz<9r&WMi0eDSW0k>!c+poOhzzfnsyw+H)TMRNDrjX^*bf(G-pOwP z(RQ)W%BGU`?gm)uMzqZ0-^UADU$?YJPqpA+UFJSb^|kp_AHaJQ-?e$F%9l+h1k%==_NAa;|~b>~m)`TT*HR*^d9RisEtr^Z zp%Ax=r4t%F?N`<_kA>-!77y`5jqDiG*(frm{VW?XZiV4EyaB*`IKUWe`ZuV&p|;ni zfM|Z+j|i{DT;q6zVfGO7y|Ca{G=MPYS9GW6=C){qK5l)Oa=u))*xHzC4L5A@@VzA; z0sVSGW{_=;BHJzC61bzQQl>zkO%?IawshVdEc zDpJ9ll}%(bcec^k{Pmh5uRrX#eyv|Z{ra69F_AEJdUPUMi*UM3j9l@Au$!58K7>39 ze>#5+`$ZZej-0fOV(x`T@Qi^fV%R_$JQQabr}~&|k;|A6>T~RyWiV8dt$zQVkP|K! zQDO*ti>iL8zE*K;$+fSDbv~+_?F|&ORJNW~E zAarffHefD!{Z;s*6cwXfB#Bf2J=qg_=J+xnWhrwy9Yz7hTH46Y2S$>1>t(b?j2S_p!8oL)e z*I5vmA8rx77VFL+A2kx|9IMBXdS8#$OZp=FtO`T1@nNHqPe!q7n#4?5lYqaJctU!# z!ApY#gFu7lv+!0$hK~_G5tX;(b04l04=`lWQi^=Zavi8DlP!BNh8zP^OLAwPeu-RZ z-KSZu-N!{TAhi~l7N`~|7fL@p!EOTUe}_Jy$O?`Ot_cp^gDrmOo$DRvDl*f({Ky=A z%wo;*ESfIbI2t`VH1DyB%@D~@a-LP5{22(7Y(!+RIEe@yanZ7c`g3b-~f` zo88LB45dN5X$6HFIqdy{nUnbf1%_`+)lD+wN_&WPA~>|Tg)6lym7GQ7WkBj6y&}b} zG(pAGg4E1<$$BlXPYr#*G5sLn#KyO2uhQxfDTs_2!+Uw*`TZ;zni+g;JcbodU+oCa zX)zWDCQC&~g>=d)eI1-q*01g@>&3TNG-ZV4!)w~pizhTR-boC<;ce#cc$VRsc+83? z5TqWIOgc%b$F{+y#J8s(N;U=Wy=3-!J(h zl{1~J(Zk$xqbCCopKP0Kke%GF|LIH>m0dW85l66|i*4GV%6Rmg=GsZO>`2IxQ;Sv0 zhe86 z-x22+=T0Y+dn4ORCnKlwm^_&8aF+p@m=c((ID&W(+*??Vn9YsojWxbBpaDI4?Lkru zkuy;ze|}szzRv9vdvXpo*gM8`*D4hkPZwuQb^~!S(UzJ=p&bJql0hM)GNjHDoszBM zLz1%M?&7iHGO_Ax8m03R!J5IqYync5JGb5Go$PXt1}0@*%&pG?<~BK?+A*c;V|L{W zxm~@5VS0@kPg(BXp`o58ybL66%3XL|xUcuYc>!}IvgXBU#8MmUQpk?ZcjQ?(W~|?P zzkadU7M(ytsY0pSQgayc!sXu_-|OxA%;!dhMP)EUbNh2YoB5S}FZ&|GfOu8Rssk0c zUkhr6Wq?JiKbZ|}st~6?><@p;WUpad6ZiV!@xh~D`b3838hEAV@25;8k*S{)yNMR} z=M(0wyQn+&I!`^}#&BmxlRBr1fU`#Urp3(y|KURI@egv&I*rvc2X$+qRzRyqquX5) zT_MOj)7G!11{L2Z7T4*UmToP!iF^=IoT+8+(Yk5bYI)moW74>^z&_FCE7g1I@dg^YqkV6h-0|AeGnLqUlR{n{K96LN+Kqtokm0*EDKUEMo@OiM zTUNCzwx#DWa|N&KusoJdbWTB2ht(bnuP>ADTnoZJ+2p8mzto)&Sn-%T@5jj{&=u-- z<2g4yH(Z}fzYmaSNy!r`I3M~xVw_vMzy4-Kzqj`H~2Vs(ye5_b-OD#_RE}qJ@ZAyQFMQPs;Bd5t%*Tr%eF=TTD*|-)Z04Vli@?F zC8Oo}FV1FL**UMK^6P{Sea_QP4for_SJvgf%SWe%2suB)J==9*v@%|tKJwc;{WHtH z%3!Y&UsSRyB`PX{utypJuX5EVK%HNyE9X_>{3|*Be?^P_5RQbN#}SO9n*842Z|J@p zegLaYf{HeO5pGDL&>3RN509}AB6#pp4m@q!N<67R{^295NatEKk=hZZn`8jp?#oCK z{sO(X*fcFwrtF%pNhqoNa{=UT?FcVFLEB;fLYFR@$%_JRtq1o3j2gKQJP#&gFEDNh z!%zM+n)f$@{%_EN^NK}KEb$+<_~DY@-~#X`T>O^%|LFe9f&X9V;tGa-P4Krt_W!1z zE2`i|fzOpCjz1U*Bx7b|k0PC)2449E75Lwm{^!V|2nU3vjmb|Ov;T|3{sx^Z_W9>h zexMOZ$<7zo{>6F{W_I=tqNWHtAQVMZj}gBba3Dy{%*es?$}%_<284j2S7*RKEc+e#{$gVY zjPrk|E}gJO>t-N+z!txM=wzC27&XzrVD6Kf7CA_FZ_K3YX6Rxav^GMbHF9G!LT431 zYn8{j?i(Mw8m5)N0>*JkmAE6t49~%{>--k<>L$CBLkSuI9XyTab;jBcgs>D|p>Gq2 z3@179eEbTYRm#S7Hn6&_vmNM6g^Hca zKHDVnxkc1JK^L$8G~{_B>^nvLEs^{^4e0)%UVbh5oI`3vXwfHKhdw>3We#GO?5dR&qpAnQp zSfSYVUy-#$m|T(ij}VLepmKIN7z|{GaKnL|oIDU9Czung0{}^(_L!NWu(gRL61AT| z!uEz&%+Cwuy`trx4R#1h9VCjdeS|bKF?9fP!MTATB?qLH>QxW*pHcvfn+w(5$>hg= z0K&OY0hUF${A_VTxKQI=?Kae14T+lj7ta6Z&iCu?c*Xla_Xvvl;aohwT0ki5YUlm8 zo8s@F9-?kxd1oZL4odZeL~1n3vWwtT3WZ*H2{dA%qk`^}T+_>JBdHMC+9Zn3*HVfg zK2I_tV)4{39-5=d;1VvEH~g3e3DPxDRj%7g%x zikNc7_4X$8d{bp#U8nY{mL}{sd6%Z*?eUg!)RWlX6OQY|v-Uz=-<{&>jMGAIr&P{US`4O{;)U1ug=1n1f-{03Nrn@(X`xGIxaVHY7W=fCpjM#(jSc}A1NXwm z6V5Go${djNq3G?7E!$`Yz<{!+gimqTF0Un^v| z;_(@JlD3GftsMR0K9HjOXnKIaPQKUXXy4ji!)thdKgm_bt4)14m5cwJd5-$ryFYtt zy5fzq)!zQQ&6VVn^o#jntXjkToUQTdcUxAP!$&YzH}@~>=Yf-WCxtON`@=C<=R3)u zWwT}Tsfe*>!8W}sk!^iG$ZP_GIYsFfT7xXep-bu<-ij@rxC>=9x>Q5@Cwvd<`{c0-91*vWeL$yy{=MObCn4N0V0!D*vo)}|es zE}e%g-+O?n-lUI)>e zR?p55)#yq&h!^H5D@}Jn`|v*PCAQIPkwyAUwqoH!e!iO*r5`SAYL7OB>WCJ<~^}fiGG14r`&;?gdmf^9cyb_*-oncaOvE6hDx>lmDhO)86hA>T-vrFeO65T3n00i#Edn>6Ur4F7- zb*g=SB+ffH^eJLd$&U3F>|45^b^p>7k*%b#)UAbk+3B0o>Gud+aEarC{O$X-tvJ$# zbK~$tCb1XqZ4a}o%ZcPFJyGfK!+Ho}4jLNMUM-B8&k%e<+9*{eejWd-vVYv^DhI`_G=2wfLU7rXqnlN6(*)4KQ5@vgEyC|q1Xf0g zbSJ*HFD~~_?$1in9OZ?#inoXv@MQ0e&iPs@e`@(mnQzXdqf%D33v;LR45AkcmUj%|+0xD8 zZ%)}^CQ2XNwoZec=z_L=OI9+qW{6)lX!oZ`$?_pPNO^ThDYxWQ;KL#7W0?(^BGJ?p z`r~K@+b>n9BqJiA_#*wDB9B7Ti^wJ zBXt>#6Wj6russ3JSwIAr1qY8>8$`(4x$wl=cY*nk%1Kdc%9-t)RQMs~6@E0zId6D! zm9Gs%oAJlsb1BXe3;Mp_Q=I6|cxh%U5IlFDdGq;3j^f_M^%b(j4+?aOf9s(>VuHDRxrzD zwV1t_Z8c#IYQ=4aM|=$WBHE?_dRxmtBzN?xRhq)-4I}NL_cBgX@qNNB!mmnpYIHXz z%ewOzcWy0S(1tVRe!8xlZ?@~J&PK`5&J^w4ny#OXPt-OZ$Dw4aILa;}R7htoq>FSW z_n=@isO)fO594#BYC1CM^komPsFnENnw{xn*Pg`yI|305@HaK{U*50&MpaK z_&&t~^JpbbbM#c&P8MLop&>oHb8DVw@B^-!vbIpzH z3$1U!mT$f@D;)n#d~bC40Ww8%SCAuJA_gtGYA(!8`#Rq$t$0nHz8x98Wc}c6A4WY_ ze)idKbi~j6E`zhMILQ4ui9b72DWfs8%eY}|O&$mudw=6y;a+*LN+?|~MeIX=W7nF6 z!I;`&fQ)oU&jXuvO9WAPMJ=6-5xhW zQQ_xsNaJ@}|GW6PtpvEYznKS3tH$42NZ!v|NLEqF6)u;&vDjIS38>X#mNi&u7P$c` z?HNQLV`-#`Gu4h8$5T#_ShtnV=oXO(47!M-EBHocpq`~C#z1d#oDzKNvkpVVJ*3Gl z*Apc{kh)^WX?^X)@})e5h;UE#+vsa)=23wI4Hp%8VM4;^nP{yl2cMVkD>d1|?8Y2f zk?X~;i_-9AjaGeZyk#}wVs2PIw<&Deq%&(L*DuDDw1fz~28J~fUA;m=R8gs#Dejho>~#*R~Pw_4`gY8qchrb}2>pk$sWa4Pl7 z80gk<9$0hvI8V$sPZ}c;!G1fSEjZk-rh0x5sgJ8)nV&akgn=z)bj#T3gLTrW3?OIM zi|md9BX?}Ku;T@th<5W}jdj^(7jwVl@tP5iv}d>7!<$AXy$yLk%R?Efhpjs&P!{ z{e7Kz3MXO-@u`d@^GVbYsAqhW1gCA$Sd)? zM=veNJKe&xGtg-$XC0-*+21@3Y-YLJiK%VWxE8Z^@~rH>{M*e2aMD9P%aR^td_&Fi z3%A}AcOy2rW1>OUr@nfS&fBw0URa6#{A2-7@fnCZrWo5DOOmRS>T+L?T|_>TmLcB2 zHzgz9&Q914IYfK>hLufocN5mXG>})p$~s2+CSn}jnQ(rU6z97lGoc1;Z}>#n&wA?%_4iRE8UB01UPC(6rRCm)FG z==Wotb(+dwe5~~(xU1^X+_t`Xzh^k{U}YoT!=3N2jN4kB1~>5_J7UGF%}$S;9r3BDc{wj<@<*mYi>VWZ{-;9c z{YB#miQ~%`uMbO4y(rvD%CjmBFNtbgHWr7-f+F1ud_0Vn{El+^Y?}8+7E2~h_Q%RC z%HWCIMg1c0o@%+I1q>ltHdNiu+bp%Tw9ZqogDbsDHZ`WJa&%sYZsAd0JnY1Vq)Q0i zGw%Wko;Oxndmbdxd_0)=Rz6agTD?C;Ab0+K^=x3`K&j~2QFlH3ti2cHwYNJPZEvHO z9M1&mNjc3iytehx;bPJ%WZG+Om7x9GmRuDNC6`9<5GOPizjZGBrKXxze(Nnf&A7AC zFsrW3QKeA(BjN=&`&8dyY~7-`gVp+Hi+P~Sy=1=B+O)HrTOQmF=NAjkf|vQbbtkmO za*e69UNQILOb*$oUDrmB?M-xz*S*jqiyLkJ3#xMcR*gVaUW^H!|)FX2TR1Y!K zQ(FL&*aHX{0t3S#oSfVcE(lB$48D*0p!8&IjILCG|7VrI%Ox&$NMisP$jJ==|K~uV zEF2048UugHAW&3&=IQ`i|B^wuP&JKz$-rO;s$BC=Juno8D&PH62IYjIDn0*{{b>D5 z2IYqRIUWr4{=mQWpuDJJ%8wELULPmVpE5WY1=Ro2`FyMvrA_W2eyUNcZn!N*R6a9!V4=0Qh Lz`!6bF9G-;!A~>; literal 0 HcmV?d00001 diff --git a/tests/Pest.php b/tests/Pest.php index 58d7f84..3feb7b3 100644 --- a/tests/Pest.php +++ b/tests/Pest.php @@ -4,6 +4,8 @@ use CodebarAg\DocuWare\DTO\Config\ConfigWithCredentials; use CodebarAg\DocuWare\Requests\Documents\ModifyDocuments\DeleteDocument; use CodebarAg\DocuWare\Requests\FileCabinets\Search\GetDocumentsFromAFileCabinet; +use CodebarAg\DocuWare\Requests\General\UserManagement\CreateUpdateUsers\UpdateUser; +use CodebarAg\DocuWare\Requests\General\UserManagement\GetUsers\GetUsers; use CodebarAg\DocuWare\Tests\TestCase; uses(TestCase::class) @@ -15,6 +17,9 @@ clearFiles(); }) + ->afterEach(function () { + setUsersInactive(); + }) ->in('Feature'); function clearFiles(): void @@ -33,6 +38,23 @@ function clearFiles(): void } } +function setUsersInactive(): void +{ + $connector = getConnector(); + + $response = $connector->send(new GetUsers()); + + $users = $response->dto()->filter(function ($user) { + return Str::contains($user->email, 'test@example.test') && $user->active === true; + }); + + foreach ($users as $user) { + $user->active = false; + + $connector->send(new UpdateUser($user)); + } +} + /** * @throws Throwable */ From 482bbd95772fabbb226f4c38b79d9b9be7bd2fc0 Mon Sep 17 00:00:00 2001 From: Rhys Lees <43909932+RhysLees@users.noreply.github.com> Date: Tue, 21 May 2024 20:49:24 +0100 Subject: [PATCH 28/54] WIP --- .../ClipUnclipStapleUnstaple/ClipUnclipStapleUnstapleTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Feature/Requests/Documents/ClipUnclipStapleUnstaple/ClipUnclipStapleUnstapleTest.php b/tests/Feature/Requests/Documents/ClipUnclipStapleUnstaple/ClipUnclipStapleUnstapleTest.php index f11a86f..b5ed98e 100644 --- a/tests/Feature/Requests/Documents/ClipUnclipStapleUnstaple/ClipUnclipStapleUnstapleTest.php +++ b/tests/Feature/Requests/Documents/ClipUnclipStapleUnstaple/ClipUnclipStapleUnstapleTest.php @@ -134,7 +134,7 @@ function uploadFiles($connector, $fileCabinetId, $path): array }); -it('can unstaple 2 documents', function ($staple) { +it('can unstaple a document', function ($staple) { Event::fake(); $fileCabinetId = config('laravel-docuware.tests.basket_id'); From 1b072838237bfb7d2020cd1e7eccdb1c09208771 Mon Sep 17 00:00:00 2001 From: Rhys Lees <43909932+RhysLees@users.noreply.github.com> Date: Tue, 21 May 2024 20:55:31 +0100 Subject: [PATCH 29/54] WIP --- src/DTO/Documents/Document.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/DTO/Documents/Document.php b/src/DTO/Documents/Document.php index 9063703..04439ef 100644 --- a/src/DTO/Documents/Document.php +++ b/src/DTO/Documents/Document.php @@ -131,6 +131,7 @@ public static function fake( ?Carbon $created_at = null, ?Carbon $updated_at = null, ?Collection $fields = null, + ?Collection $sections = null, ?Collection $suggestions = null, ): self { return new self( @@ -148,6 +149,7 @@ public static function fake( DocumentField::fake(), DocumentField::fake(), ]), + sections: $sections ?? null, suggestions: $suggestions ?? null ); } From 0cd63bba1ebc28f1b3ced074715c167dd0fcf940 Mon Sep 17 00:00:00 2001 From: Rhys Lees <43909932+RhysLees@users.noreply.github.com> Date: Tue, 21 May 2024 21:48:31 +0100 Subject: [PATCH 30/54] WIP --- .../ClipUnclipStapleUnstapleTest.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/tests/Feature/Requests/Documents/ClipUnclipStapleUnstaple/ClipUnclipStapleUnstapleTest.php b/tests/Feature/Requests/Documents/ClipUnclipStapleUnstaple/ClipUnclipStapleUnstapleTest.php index b5ed98e..58c87a4 100644 --- a/tests/Feature/Requests/Documents/ClipUnclipStapleUnstaple/ClipUnclipStapleUnstapleTest.php +++ b/tests/Feature/Requests/Documents/ClipUnclipStapleUnstaple/ClipUnclipStapleUnstapleTest.php @@ -125,12 +125,19 @@ function uploadFiles($connector, $fileCabinetId, $path): array ] ))->dto(); - expect($staple->title)->toBe($document->title) - ->and($staple->total_pages)->toBe($document->total_pages + $document2->total_pages); + sleep(5); // Wait for the files to be uploaded and processed + + $stapledDocument = $this->connector->send(new GetASpecificDocumentFromAFileCabinet( + $fileCabinetId, + $staple->id + ))->dto(); + + expect($stapledDocument->title)->toBe($document->title) + ->and($stapledDocument->total_pages)->toBe($document->total_pages + $document2->total_pages); Event::assertDispatched(DocuWareResponseLog::class); - return $staple; + return $stapledDocument; }); From 6bd3785c0ec44d22e7d3e38c0b9ea37ae34e1634 Mon Sep 17 00:00:00 2001 From: Rhys Lees <43909932+RhysLees@users.noreply.github.com> Date: Tue, 28 May 2024 22:27:44 +0100 Subject: [PATCH 31/54] WIP --- src/DocuWareSearchRequestBuilder.php | 23 +- .../DocumentsTrashBin/GetDocuments.php | 73 ++++++ .../ClipUnclipStapleUnstaple/ClipTest.php | 30 +++ .../ClipUnclipStapleUnstapleTest.php | 159 ------------ .../ClipUnclipStapleUnstaple/StapleTest.php | 37 +++ .../ClipUnclipStapleUnstaple/UnclipTest.php | 40 +++ .../ClipUnclipStapleUnstaple/UnstapleTest.php | 36 +++ .../GetDocumentsFromTrashBin.php | 228 ++++++++++++++++++ tests/Pest.php | 47 ++++ 9 files changed, 513 insertions(+), 160 deletions(-) create mode 100644 src/Requests/Documents/DocumentsTrashBin/GetDocuments.php create mode 100644 tests/Feature/Requests/Documents/ClipUnclipStapleUnstaple/ClipTest.php delete mode 100644 tests/Feature/Requests/Documents/ClipUnclipStapleUnstaple/ClipUnclipStapleUnstapleTest.php create mode 100644 tests/Feature/Requests/Documents/ClipUnclipStapleUnstaple/StapleTest.php create mode 100644 tests/Feature/Requests/Documents/ClipUnclipStapleUnstaple/UnclipTest.php create mode 100644 tests/Feature/Requests/Documents/ClipUnclipStapleUnstaple/UnstapleTest.php create mode 100644 tests/Feature/Requests/Documents/DocumentsTrashBin/GetDocumentsFromTrashBin.php diff --git a/src/DocuWareSearchRequestBuilder.php b/src/DocuWareSearchRequestBuilder.php index a347c1c..b799ea8 100644 --- a/src/DocuWareSearchRequestBuilder.php +++ b/src/DocuWareSearchRequestBuilder.php @@ -4,6 +4,7 @@ use Carbon\Carbon; use CodebarAg\DocuWare\Exceptions\UnableToSearch; +use CodebarAg\DocuWare\Requests\Documents\DocumentsTrashBin\GetDocuments; use CodebarAg\DocuWare\Requests\Search\GetSearchRequest; use Illuminate\Support\Str; use Saloon\Exceptions\InvalidResponseClassException; @@ -31,6 +32,15 @@ class DocuWareSearchRequestBuilder protected array $usedDateOperators = []; + protected bool $trashBin = false; + + public function trashBin(): self + { + $this->trashBin = true; + + return $this; + } + public function fileCabinet(string $fileCabinetId): self { $this->fileCabinetId = $fileCabinetId; @@ -144,7 +154,7 @@ public function filterIn(string $name, mixed $values): self * @throws InvalidResponseClassException * @throws PendingRequestException */ - public function get(): GetSearchRequest + public function get(): GetSearchRequest|GetDocuments { $this->checkDateFilterRangeDivergence(); $this->restructureMonoDateFilterRange(); @@ -170,6 +180,17 @@ public function get(): GetSearchRequest ]; } + if ($this->trashBin) { + return new GetDocuments( + page: $this->page, + perPage: $this->perPage, + searchTerm: $this->searchTerm, + orderField: $this->orderField, + orderDirection: $this->orderDirection, + condition: $condition, + ); + } + return new GetSearchRequest( fileCabinetId: $this->fileCabinetId, dialogId: $this->dialogId, diff --git a/src/Requests/Documents/DocumentsTrashBin/GetDocuments.php b/src/Requests/Documents/DocumentsTrashBin/GetDocuments.php new file mode 100644 index 0000000..391a074 --- /dev/null +++ b/src/Requests/Documents/DocumentsTrashBin/GetDocuments.php @@ -0,0 +1,73 @@ + $this->perPage, + 'Start' => ($this->page - 1) * $this->perPage, + 'Condition' => $this->condition, + 'SortOrder' => [ + [ + 'Field' => $this->orderField, + 'Direction' => $this->orderDirection, + ], + ], + 'Operation' => config('laravel-docuware.configurations.search.operation', 'And'), + 'ForceRefresh' => config('laravel-docuware.configurations.search.force_refresh', true), + 'IncludeSuggestions' => config('laravel-docuware.configurations.search.include_suggestions', false), + 'AdditionalResultFields' => config('laravel-docuware.configurations.search.additional_result_fields', []), + ]; + } + + public function createDtoFromResponse(Response $response): DocumentPaginator + { + return GetSearchResponse::fromResponse($response, $this->page, $this->perPage); + } +} diff --git a/tests/Feature/Requests/Documents/ClipUnclipStapleUnstaple/ClipTest.php b/tests/Feature/Requests/Documents/ClipUnclipStapleUnstaple/ClipTest.php new file mode 100644 index 0000000..910c982 --- /dev/null +++ b/tests/Feature/Requests/Documents/ClipUnclipStapleUnstaple/ClipTest.php @@ -0,0 +1,30 @@ +connector, $fileCabinetId); + + [$document, $document2] = uploadFiles($this->connector, $fileCabinetId, $path); + + $clip = $this->connector->send(new Clip( + $fileCabinetId, + [ + $document->id, + $document2->id, + ] + ))->dto(); + + expect($clip->id)->toBe($document->id) + ->and($clip->total_pages)->toBe($document->total_pages + $document2->total_pages) + ->and($clip->sections->count())->toBe(2); + + Event::assertDispatched(DocuWareResponseLog::class); +})->group('clip'); diff --git a/tests/Feature/Requests/Documents/ClipUnclipStapleUnstaple/ClipUnclipStapleUnstapleTest.php b/tests/Feature/Requests/Documents/ClipUnclipStapleUnstaple/ClipUnclipStapleUnstapleTest.php deleted file mode 100644 index 58c87a4..0000000 --- a/tests/Feature/Requests/Documents/ClipUnclipStapleUnstaple/ClipUnclipStapleUnstapleTest.php +++ /dev/null @@ -1,159 +0,0 @@ -send(new GetDocumentsFromAFileCabinet( - $fileCabinetId - ))->dto(); - - foreach ($paginator->documents as $document) { - $connector->send(new DeleteDocument( - $fileCabinetId, - $document->id, - ))->dto(); - } -} - -function uploadFiles($connector, $fileCabinetId, $path): array -{ - $document = $connector->send(new CreateDataRecord( - $fileCabinetId, - file_get_contents($path.'/test-1.pdf'), - 'test-1.pdf', - ))->dto(); - - $document2 = $connector->send(new CreateDataRecord( - $fileCabinetId, - file_get_contents($path.'/test-2.pdf'), - 'test-2.pdf', - ))->dto(); - - sleep(5); // Wait for the files to be uploaded and processed - - // Have to get document again as returned data is incorrect - $document = $connector->send(new GetASpecificDocumentFromAFileCabinet( - $fileCabinetId, - $document->id - ))->dto(); - - // Have to get document2 again as returned data is incorrect - $document2 = $connector->send(new GetASpecificDocumentFromAFileCabinet( - $fileCabinetId, - $document2->id - ))->dto(); - - return [$document, $document2]; -} - -it('can clip 2 documents', function () { - Event::fake(); - - $fileCabinetId = config('laravel-docuware.tests.basket_id'); - $path = __DIR__.'/../../../../Fixtures/files'; - - cleanup($this->connector, $fileCabinetId); - - [$document, $document2] = uploadFiles($this->connector, $fileCabinetId, $path); - - $clip = $this->connector->send(new Clip( - $fileCabinetId, - [ - $document->id, - $document2->id, - ] - ))->dto(); - - expect($clip->id)->toBe($document->id) - ->and($clip->total_pages)->toBe($document->total_pages + $document2->total_pages) - ->and($clip->sections->count())->toBe(2); - - Event::assertDispatched(DocuWareResponseLog::class); - - return [$clip, $document, $document2]; -}); - -it('can unclip 2 documents', function ($test) { - Event::fake(); - - [$clip, $document, $document2] = $test; - - $fileCabinetId = config('laravel-docuware.tests.basket_id'); - - sleep(5); - - $unclip = $this->connector->send(new Unclip( - $fileCabinetId, - $clip->id - ))->dto(); - - expect($unclip->documents->count())->toBe(2) - ->and($unclip->documents->first()->title)->toBe($document->title) - ->and($unclip->documents->first()->file_size)->toBe($document->file_size) - ->and($unclip->documents->last()->title)->toBe($document2->title) - ->and($unclip->documents->last()->file_size)->toBe($document2->file_size); - - Event::assertDispatched(DocuWareResponseLog::class); -})->depends('it can clip 2 documents'); - -it('can staple 2 documents', function () { - Event::fake(); - - $fileCabinetId = config('laravel-docuware.tests.basket_id'); - $path = __DIR__.'/../../../../Fixtures/files'; - - cleanup($this->connector, $fileCabinetId); - - [$document, $document2] = uploadFiles($this->connector, $fileCabinetId, $path); - - $staple = $this->connector->send(new Staple( - $fileCabinetId, - [ - $document->id, - $document2->id, - ] - ))->dto(); - - sleep(5); // Wait for the files to be uploaded and processed - - $stapledDocument = $this->connector->send(new GetASpecificDocumentFromAFileCabinet( - $fileCabinetId, - $staple->id - ))->dto(); - - expect($stapledDocument->title)->toBe($document->title) - ->and($stapledDocument->total_pages)->toBe($document->total_pages + $document2->total_pages); - - Event::assertDispatched(DocuWareResponseLog::class); - - return $stapledDocument; - -}); - -it('can unstaple a document', function ($staple) { - Event::fake(); - - $fileCabinetId = config('laravel-docuware.tests.basket_id'); - - sleep(5); - - $unclip = $this->connector->send(new Unstaple( - $fileCabinetId, - $staple->id - ))->dto(); - - expect($unclip->documents->count())->toBe($staple->total_pages); - - Event::assertDispatched(DocuWareResponseLog::class); -})->depends('it can staple 2 documents'); diff --git a/tests/Feature/Requests/Documents/ClipUnclipStapleUnstaple/StapleTest.php b/tests/Feature/Requests/Documents/ClipUnclipStapleUnstaple/StapleTest.php new file mode 100644 index 0000000..f994a5e --- /dev/null +++ b/tests/Feature/Requests/Documents/ClipUnclipStapleUnstaple/StapleTest.php @@ -0,0 +1,37 @@ +connector, $fileCabinetId); + + [$document, $document2] = uploadFiles($this->connector, $fileCabinetId, $path); + + $staple = $this->connector->send(new Staple( + $fileCabinetId, + [ + $document->id, + $document2->id, + ] + ))->dto(); + + sleep(5); // Wait for the files to be uploaded and processed + + $stapledDocument = $this->connector->send(new GetASpecificDocumentFromAFileCabinet( + $fileCabinetId, + $staple->id + ))->dto(); + + expect($stapledDocument->title)->toBe($document->title) + ->and($stapledDocument->total_pages)->toBe($document->total_pages + $document2->total_pages); + + Event::assertDispatched(DocuWareResponseLog::class); +})->group('staple'); diff --git a/tests/Feature/Requests/Documents/ClipUnclipStapleUnstaple/UnclipTest.php b/tests/Feature/Requests/Documents/ClipUnclipStapleUnstaple/UnclipTest.php new file mode 100644 index 0000000..f6cbcdc --- /dev/null +++ b/tests/Feature/Requests/Documents/ClipUnclipStapleUnstaple/UnclipTest.php @@ -0,0 +1,40 @@ +connector, $fileCabinetId); + + [$document, $document2] = uploadFiles($this->connector, $fileCabinetId, $path); + + $clip = $this->connector->send(new Clip( + $fileCabinetId, + [ + $document->id, + $document2->id, + ] + ))->dto(); + + sleep(5); + + $unclip = $this->connector->send(new Unclip( + $fileCabinetId, + $clip->id + ))->dto(); + + expect($unclip->documents->count())->toBe(2) + ->and($unclip->documents->first()->title)->toBe($document->title) + ->and($unclip->documents->first()->file_size)->toBe($document->file_size) + ->and($unclip->documents->last()->title)->toBe($document2->title) + ->and($unclip->documents->last()->file_size)->toBe($document2->file_size); + + Event::assertDispatched(DocuWareResponseLog::class); +})->group('unclip'); diff --git a/tests/Feature/Requests/Documents/ClipUnclipStapleUnstaple/UnstapleTest.php b/tests/Feature/Requests/Documents/ClipUnclipStapleUnstaple/UnstapleTest.php new file mode 100644 index 0000000..1bd30b6 --- /dev/null +++ b/tests/Feature/Requests/Documents/ClipUnclipStapleUnstaple/UnstapleTest.php @@ -0,0 +1,36 @@ +connector, $fileCabinetId); + + [$document, $document2] = uploadFiles($this->connector, $fileCabinetId, $path); + + $staple = $this->connector->send(new Staple( + $fileCabinetId, + [ + $document->id, + $document2->id, + ] + ))->dto(); + + sleep(5); + + $unclip = $this->connector->send(new Unstaple( + $fileCabinetId, + $staple->id + ))->dto(); + + expect($unclip->documents->count())->toBe($staple->total_pages); + + Event::assertDispatched(DocuWareResponseLog::class); +})->group('unstaple'); diff --git a/tests/Feature/Requests/Documents/DocumentsTrashBin/GetDocumentsFromTrashBin.php b/tests/Feature/Requests/Documents/DocumentsTrashBin/GetDocumentsFromTrashBin.php new file mode 100644 index 0000000..b475cb0 --- /dev/null +++ b/tests/Feature/Requests/Documents/DocumentsTrashBin/GetDocumentsFromTrashBin.php @@ -0,0 +1,228 @@ +searchRequestBuilder() + ->trashBin() + ->page(1) + ->perPage(5) + ->fulltext('test') + ->filterDate('DWSTOREDATETIME', '>=', Carbon::create(2021)) + ->filterDate('DWSTOREDATETIME', '<', now()) + ->filter('DOCUMENT_TYPE', 'Abrechnung') + ->orderBy('DWSTOREDATETIME', 'desc') + ->get(); + + $paginator = $this->connector->send($paginatorRequest)->dto(); + + $this->assertInstanceOf(DocumentPaginator::class, $paginator); + Event::assertDispatched(DocuWareResponseLog::class); +})->group('search', 'trash'); + +it('can\'t search documents by more than two dates in trash', function () { + Event::fake(); + + $this->expectException(UnableToSearch::class); + + $request = (new DocuWare()) + ->searchRequestBuilder() + ->trashBin() + ->page(1) + ->perPage(5) + ->fulltext('test') + ->filterDate('DWSTOREDATETIME', '>=', Carbon::create(2020)) + ->filterDate('DWSTOREDATETIME', '>=', Carbon::create(2021)) + ->filterDate('DWSTOREDATETIME', '<', now()) + ->filter('DOCUMENT_TYPE', 'Abrechnung') + ->orderBy('DWSTOREDATETIME', 'desc') + ->get(); + + $this->connector->send($request)->dto(); +})->group('search', 'trash'); + +it('can override search documents dates filter by using same operator in trash', function () { + Event::fake(); + + $paginatorRequest = (new DocuWare()) + ->searchRequestBuilder() + ->trashBin() + ->page(1) + ->perPage(5) + ->fulltext('test') + ->filterDate('DWSTOREDATETIME', '<=', Carbon::create(2022)) + ->filterDate('DWSTOREDATETIME', '>=', Carbon::create(2020)) + ->filterDate('DWSTOREDATETIME', '>=', Carbon::create(2021)) + ->filter('DOCUMENT_TYPE', 'Abrechnung') + ->orderBy('DWSTOREDATETIME', 'desc') + ->get(); + + $paginator = $this->connector->send($paginatorRequest)->dto(); + + $this->assertInstanceOf(DocumentPaginator::class, $paginator); + Event::assertDispatched(DocuWareResponseLog::class); +})->group('search', 'trash'); + +it('can override search documents dates filter by using equal operator in trash', function () { + Event::fake(); + + $paginatorRequest = (new DocuWare()) + ->searchRequestBuilder() + ->trashBin() + ->page(1) + ->perPage(5) + ->fulltext('test') + ->filterDate('DWSTOREDATETIME', '>=', Carbon::create(2020)) + ->filterDate('DWSTOREDATETIME', '=', Carbon::create(2021)) + ->filter('DOCUMENT_TYPE', 'Abrechnung') + ->orderBy('DWSTOREDATETIME', 'desc') + ->get(); + + $paginator = $this->connector->send($paginatorRequest)->dto(); + + $this->assertInstanceOf(DocumentPaginator::class, $paginator); + Event::assertDispatched(DocuWareResponseLog::class); +})->group('search', 'trash'); + +it('can\'t search documents by diverged date range', function () { + Event::fake(); + + $this->expectException(UnableToSearch::class); + + $request = (new DocuWare()) + ->searchRequestBuilder() + ->trashBin() + ->page(1) + ->perPage(5) + ->fulltext('test') + ->filterDate('DWSTOREDATETIME', '<=', Carbon::create(2020)) + ->filterDate('DWSTOREDATETIME', '>=', Carbon::create(2021)) + ->filter('DOCUMENT_TYPE', 'Abrechnung') + ->orderBy('DWSTOREDATETIME', 'desc') + ->get(); + + $this->connector->send($request)->dto(); +})->group('search', 'trash'); + +it('can search documents dates filter in future in trash', function () { + Event::fake(); + + $paginatorRequest = (new DocuWare()) + ->searchRequestBuilder() + ->trashBin() + ->page(1) + ->perPage(5) + ->fulltext('test') + ->filterDate('DWSTOREDATETIME', '>', Carbon::create(2018)) + ->filter('DOCUMENT_TYPE', 'Abrechnung') + ->orderBy('DWSTOREDATETIME', 'desc') + ->get(); + + $paginator = $this->connector->send($paginatorRequest)->dto(); + + $this->assertInstanceOf(DocumentPaginator::class, $paginator); + Event::assertDispatched(DocuWareResponseLog::class); +})->group('search', 'trash'); + +it('can search documents dates filter in past in trash', function () { + Event::fake(); + + $paginatorRequest = (new DocuWare()) + ->searchRequestBuilder() + ->trashBin() + ->page(1) + ->perPage(5) + ->fulltext('test') + ->filterDate('DWSTOREDATETIME', '<=', Carbon::create(2020)) + ->filter('DOCUMENT_TYPE', 'Abrechnung') + ->orderBy('DWSTOREDATETIME', 'desc') + ->get(); + + $paginator = $this->connector->send($paginatorRequest)->dto(); + + $this->assertInstanceOf(DocumentPaginator::class, $paginator); + Event::assertDispatched(DocuWareResponseLog::class); +})->group('search', 'trash'); + +it('can search documents with null values in trash', function () { + Event::fake(); + + $paginatorRequest = (new DocuWare()) + ->searchRequestBuilder() + ->trashBin() + ->page(null) + ->perPage(null) + ->fulltext(null) + ->filter('DOCUMENT_TYPE', null) + ->orderBy('DWSTOREDATETIME', null) + ->get(); + + $paginator = $this->connector->send($paginatorRequest)->dto(); + + $this->assertInstanceOf(DocumentPaginator::class, $paginator); + Event::assertDispatched(DocuWareResponseLog::class); +})->group('search', 'trash'); + +it('can search documents with multiple values in trash', function () { + Event::fake(); + + $fileCabinetId = config('laravel-docuware.tests.file_cabinet_id'); + $fileContent = '::fake-file-content::'; + $fileName = 'example.txt'; + + $documentOne = $this->connector->send(new CreateDataRecord( + $fileCabinetId, + $fileContent, + $fileName, + collect([ + IndexTextDTO::make('DOCUMENT_LABEL', '::text::'), + IndexTextDTO::make('DOCUMENT_TYPE', 'Abrechnung'), + ]), + ))->dto(); + + $documentTwo = $this->connector->send(new CreateDataRecord( + $fileCabinetId, + $fileContent, + $fileName, + collect([ + IndexTextDTO::make('DOCUMENT_LABEL', '::text::'), + IndexTextDTO::make('DOCUMENT_TYPE', 'Rechnung'), + ]), + ))->dto(); + + $documentThree = $this->connector->send(new CreateDataRecord( + $fileCabinetId, + $fileContent, + $fileName, + collect([ + IndexTextDTO::make('DOCUMENT_LABEL', '::text::'), + IndexTextDTO::make('DOCUMENT_TYPE', 'EtwasAnderes'), + ]), + ))->dto(); + + // Should filter down to documentOne and documentTwo. documentThree should be filtered out. + $paginatorRequestBothDocuments = (new DocuWare()) + ->searchRequestBuilder() + ->trashBin() + ->page(null) + ->perPage(null) + ->fulltext(null) + ->filterIn('DOCUMENT_TYPE', ['Abrechnung', 'Rechnung']) + ->get(); + + $paginator = $this->connector->send($paginatorRequestBothDocuments)->dto(); + + $this->assertInstanceOf(DocumentPaginator::class, $paginator); + $this->assertCount(2, $paginator->documents); + Event::assertDispatched(DocuWareResponseLog::class); +})->group('search', 'trash'); diff --git a/tests/Pest.php b/tests/Pest.php index 3feb7b3..a0917b4 100644 --- a/tests/Pest.php +++ b/tests/Pest.php @@ -3,7 +3,9 @@ use CodebarAg\DocuWare\Connectors\DocuWareConnector; use CodebarAg\DocuWare\DTO\Config\ConfigWithCredentials; use CodebarAg\DocuWare\Requests\Documents\ModifyDocuments\DeleteDocument; +use CodebarAg\DocuWare\Requests\FileCabinets\Search\GetASpecificDocumentFromAFileCabinet; use CodebarAg\DocuWare\Requests\FileCabinets\Search\GetDocumentsFromAFileCabinet; +use CodebarAg\DocuWare\Requests\FileCabinets\Upload\CreateDataRecord; use CodebarAg\DocuWare\Requests\General\UserManagement\CreateUpdateUsers\UpdateUser; use CodebarAg\DocuWare\Requests\General\UserManagement\GetUsers\GetUsers; use CodebarAg\DocuWare\Tests\TestCase; @@ -65,3 +67,48 @@ function getConnector(): object password: config('laravel-docuware.credentials.password'), )); } + +function cleanup($connector, $fileCabinetId): void +{ + $paginator = $connector->send(new GetDocumentsFromAFileCabinet( + $fileCabinetId + ))->dto(); + + foreach ($paginator->documents as $document) { + $connector->send(new DeleteDocument( + $fileCabinetId, + $document->id, + ))->dto(); + } +} + +function uploadFiles($connector, $fileCabinetId, $path): array +{ + $document = $connector->send(new CreateDataRecord( + $fileCabinetId, + file_get_contents($path.'/test-1.pdf'), + 'test-1.pdf', + ))->dto(); + + $document2 = $connector->send(new CreateDataRecord( + $fileCabinetId, + file_get_contents($path.'/test-2.pdf'), + 'test-2.pdf', + ))->dto(); + + sleep(5); // Wait for the files to be uploaded and processed + + // Have to get document again as returned data is incorrect + $document = $connector->send(new GetASpecificDocumentFromAFileCabinet( + $fileCabinetId, + $document->id + ))->dto(); + + // Have to get document2 again as returned data is incorrect + $document2 = $connector->send(new GetASpecificDocumentFromAFileCabinet( + $fileCabinetId, + $document2->id + ))->dto(); + + return [$document, $document2]; +} From b618ac5ae4c7650c2fa80cdb9111b5d439bdd20e Mon Sep 17 00:00:00 2001 From: Rhys Lees <43909932+RhysLees@users.noreply.github.com> Date: Wed, 29 May 2024 16:53:46 +0100 Subject: [PATCH 32/54] WIP --- .github/workflows/run-tests.yml | 7 +++++++ tests/Feature/SleepTest.php | 12 ++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 tests/Feature/SleepTest.php diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index fa665e7..6af9740 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -54,3 +54,10 @@ jobs: DOCUWARE_USERNAME: ${{ secrets.DOCUWARE_USERNAME }} DOCUWARE_PASSWORD: ${{ secrets.DOCUWARE_PASSWORD }} DOCUWARE_COOKIES: ${{ secrets.DOCUWARE_COOKIES }} + + - name: Store Log Artifacts + if: failure() + uses: actions/upload-artifact@v4 + with: + name: Store report artifacts + path: ./vendor/orchestra/testbench-core/storage/logs diff --git a/tests/Feature/SleepTest.php b/tests/Feature/SleepTest.php new file mode 100644 index 0000000..bc8121c --- /dev/null +++ b/tests/Feature/SleepTest.php @@ -0,0 +1,12 @@ +toDateTimeString()); + Sleep::for(5)->seconds(); + Log::info(now()->toDateTimeString()); + +})->expectNotToPerformAssertions(); From 4e9940e3e98b103711a542345cdb6dc1ad99f555 Mon Sep 17 00:00:00 2001 From: RhysLees Date: Wed, 29 May 2024 15:54:15 +0000 Subject: [PATCH 33/54] Fix styling --- tests/Feature/SleepTest.php | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/Feature/SleepTest.php b/tests/Feature/SleepTest.php index bc8121c..ff22466 100644 --- a/tests/Feature/SleepTest.php +++ b/tests/Feature/SleepTest.php @@ -1,6 +1,5 @@ Date: Wed, 29 May 2024 17:27:03 +0100 Subject: [PATCH 34/54] WIP --- .github/workflows/run-tests.yml | 2 +- tests/Feature/SleepTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 6af9740..53e6252 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -60,4 +60,4 @@ jobs: uses: actions/upload-artifact@v4 with: name: Store report artifacts - path: ./vendor/orchestra/testbench-core/storage/logs + path: ./vendor/orchestra/testbench-core/laravel/storage/logs diff --git a/tests/Feature/SleepTest.php b/tests/Feature/SleepTest.php index ff22466..badb67f 100644 --- a/tests/Feature/SleepTest.php +++ b/tests/Feature/SleepTest.php @@ -8,4 +8,4 @@ Sleep::for(5)->seconds(); Log::info(now()->toDateTimeString()); -})->expectNotToPerformAssertions(); +})->expectNotToPerformAssertions()->only(); From a2a4bb8115207b36998cf40430ca4cc4966add2b Mon Sep 17 00:00:00 2001 From: Rhys Lees <43909932+RhysLees@users.noreply.github.com> Date: Wed, 29 May 2024 17:50:45 +0100 Subject: [PATCH 35/54] WIP --- tests/Feature/SleepTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Feature/SleepTest.php b/tests/Feature/SleepTest.php index badb67f..ff22466 100644 --- a/tests/Feature/SleepTest.php +++ b/tests/Feature/SleepTest.php @@ -8,4 +8,4 @@ Sleep::for(5)->seconds(); Log::info(now()->toDateTimeString()); -})->expectNotToPerformAssertions()->only(); +})->expectNotToPerformAssertions(); From a7475da3a42d7b173996df6cb38c5cbd8d5cb5ef Mon Sep 17 00:00:00 2001 From: Rhys Lees <43909932+RhysLees@users.noreply.github.com> Date: Wed, 29 May 2024 18:06:43 +0100 Subject: [PATCH 36/54] WIP --- .../Documents/ClipUnclipStapleUnstaple/StapleTest.php | 3 ++- .../Documents/ClipUnclipStapleUnstaple/UnclipTest.php | 3 ++- .../Documents/ClipUnclipStapleUnstaple/UnstapleTest.php | 3 ++- .../UserManagement/CreateUpdateUsers/CreateUpdateUserTest.php | 2 +- .../GetModifyGroups/AddRemoveUserToAGroupTest.php | 4 ++-- .../GetModifyRoles/AddRemoveUserToARoleTest.php | 4 ++-- tests/Pest.php | 3 ++- 7 files changed, 13 insertions(+), 9 deletions(-) diff --git a/tests/Feature/Requests/Documents/ClipUnclipStapleUnstaple/StapleTest.php b/tests/Feature/Requests/Documents/ClipUnclipStapleUnstaple/StapleTest.php index f994a5e..9fbbbdc 100644 --- a/tests/Feature/Requests/Documents/ClipUnclipStapleUnstaple/StapleTest.php +++ b/tests/Feature/Requests/Documents/ClipUnclipStapleUnstaple/StapleTest.php @@ -4,6 +4,7 @@ use CodebarAg\DocuWare\Requests\Documents\ClipUnclipStapleUnstaple\Staple; use CodebarAg\DocuWare\Requests\FileCabinets\Search\GetASpecificDocumentFromAFileCabinet; use Illuminate\Support\Facades\Event; +use Illuminate\Support\Sleep; it('can staple 2 documents', function () { Event::fake(); @@ -23,7 +24,7 @@ ] ))->dto(); - sleep(5); // Wait for the files to be uploaded and processed + Sleep::for(5)->seconds(); // Wait for the files to be uploaded and processed $stapledDocument = $this->connector->send(new GetASpecificDocumentFromAFileCabinet( $fileCabinetId, diff --git a/tests/Feature/Requests/Documents/ClipUnclipStapleUnstaple/UnclipTest.php b/tests/Feature/Requests/Documents/ClipUnclipStapleUnstaple/UnclipTest.php index f6cbcdc..21c5c18 100644 --- a/tests/Feature/Requests/Documents/ClipUnclipStapleUnstaple/UnclipTest.php +++ b/tests/Feature/Requests/Documents/ClipUnclipStapleUnstaple/UnclipTest.php @@ -4,6 +4,7 @@ use CodebarAg\DocuWare\Requests\Documents\ClipUnclipStapleUnstaple\Clip; use CodebarAg\DocuWare\Requests\Documents\ClipUnclipStapleUnstaple\Unclip; use Illuminate\Support\Facades\Event; +use Illuminate\Support\Sleep; it('can unclip 2 documents', function () { Event::fake(); @@ -23,7 +24,7 @@ ] ))->dto(); - sleep(5); + Sleep::for(5)->seconds(); $unclip = $this->connector->send(new Unclip( $fileCabinetId, diff --git a/tests/Feature/Requests/Documents/ClipUnclipStapleUnstaple/UnstapleTest.php b/tests/Feature/Requests/Documents/ClipUnclipStapleUnstaple/UnstapleTest.php index 1bd30b6..8d53a3c 100644 --- a/tests/Feature/Requests/Documents/ClipUnclipStapleUnstaple/UnstapleTest.php +++ b/tests/Feature/Requests/Documents/ClipUnclipStapleUnstaple/UnstapleTest.php @@ -4,6 +4,7 @@ use CodebarAg\DocuWare\Requests\Documents\ClipUnclipStapleUnstaple\Staple; use CodebarAg\DocuWare\Requests\Documents\ClipUnclipStapleUnstaple\Unstaple; use Illuminate\Support\Facades\Event; +use Illuminate\Support\Sleep; it('can unstaple a document', function () { Event::fake(); @@ -23,7 +24,7 @@ ] ))->dto(); - sleep(5); + Sleep::for(5)->seconds(); $unclip = $this->connector->send(new Unstaple( $fileCabinetId, diff --git a/tests/Feature/Requests/General/UserManagement/CreateUpdateUsers/CreateUpdateUserTest.php b/tests/Feature/Requests/General/UserManagement/CreateUpdateUsers/CreateUpdateUserTest.php index f61a8f0..e35f5fe 100644 --- a/tests/Feature/Requests/General/UserManagement/CreateUpdateUsers/CreateUpdateUserTest.php +++ b/tests/Feature/Requests/General/UserManagement/CreateUpdateUsers/CreateUpdateUserTest.php @@ -30,7 +30,7 @@ it('can update users', function ($user) { Event::fake(); - sleep(5); + Sleep::for(5)->seconds(); $user->name .= ' - Updated'; $user->active = false; diff --git a/tests/Feature/Requests/General/UserManagement/GetModifyGroups/AddRemoveUserToAGroupTest.php b/tests/Feature/Requests/General/UserManagement/GetModifyGroups/AddRemoveUserToAGroupTest.php index 22e093e..8826df2 100644 --- a/tests/Feature/Requests/General/UserManagement/GetModifyGroups/AddRemoveUserToAGroupTest.php +++ b/tests/Feature/Requests/General/UserManagement/GetModifyGroups/AddRemoveUserToAGroupTest.php @@ -20,7 +20,7 @@ password: 'TESTPASSWORD', )))->dto(); - sleep(5); + Sleep::for(5)->seconds(); $response = $this->connector->send(new AddUserToAGroup( userId: $user->id, @@ -39,7 +39,7 @@ it('can remove groups to a user', function ($user) { Event::fake(); - sleep(5); + Sleep::for(5)->seconds(); $response = $this->connector->send(new RemoveUserFromAGroup( userId: $user->id, diff --git a/tests/Feature/Requests/General/UserManagement/GetModifyRoles/AddRemoveUserToARoleTest.php b/tests/Feature/Requests/General/UserManagement/GetModifyRoles/AddRemoveUserToARoleTest.php index 4f89916..bcd6c6b 100644 --- a/tests/Feature/Requests/General/UserManagement/GetModifyRoles/AddRemoveUserToARoleTest.php +++ b/tests/Feature/Requests/General/UserManagement/GetModifyRoles/AddRemoveUserToARoleTest.php @@ -20,7 +20,7 @@ password: 'TESTPASSWORD', )))->dto(); - sleep(5); + Sleep::for(5)->seconds(); $response = $this->connector->send(new AddUserToARole( userId: $user->id, @@ -39,7 +39,7 @@ it('can remove roles to a user', function ($user) { Event::fake(); - sleep(5); + Sleep::for(5)->seconds(); $response = $this->connector->send(new RemoveUserFromARole( userId: $user->id, diff --git a/tests/Pest.php b/tests/Pest.php index a0917b4..9b18f40 100644 --- a/tests/Pest.php +++ b/tests/Pest.php @@ -9,6 +9,7 @@ use CodebarAg\DocuWare\Requests\General\UserManagement\CreateUpdateUsers\UpdateUser; use CodebarAg\DocuWare\Requests\General\UserManagement\GetUsers\GetUsers; use CodebarAg\DocuWare\Tests\TestCase; +use Illuminate\Support\Sleep; uses(TestCase::class) ->in(__DIR__); @@ -96,7 +97,7 @@ function uploadFiles($connector, $fileCabinetId, $path): array 'test-2.pdf', ))->dto(); - sleep(5); // Wait for the files to be uploaded and processed + Sleep::for(5)->seconds(); // Wait for the files to be uploaded and processed // Have to get document again as returned data is incorrect $document = $connector->send(new GetASpecificDocumentFromAFileCabinet( From b27f11f43d7fc26f81d32ecc3684d863a51008de Mon Sep 17 00:00:00 2001 From: Rhys Lees <43909932+RhysLees@users.noreply.github.com> Date: Wed, 29 May 2024 18:12:33 +0100 Subject: [PATCH 37/54] WIP --- .../UserManagement/CreateUpdateUsers/CreateUpdateUserTest.php | 1 + .../UserManagement/GetModifyGroups/AddRemoveUserToAGroupTest.php | 1 + .../UserManagement/GetModifyRoles/AddRemoveUserToARoleTest.php | 1 + 3 files changed, 3 insertions(+) diff --git a/tests/Feature/Requests/General/UserManagement/CreateUpdateUsers/CreateUpdateUserTest.php b/tests/Feature/Requests/General/UserManagement/CreateUpdateUsers/CreateUpdateUserTest.php index e35f5fe..707a89a 100644 --- a/tests/Feature/Requests/General/UserManagement/CreateUpdateUsers/CreateUpdateUserTest.php +++ b/tests/Feature/Requests/General/UserManagement/CreateUpdateUsers/CreateUpdateUserTest.php @@ -7,6 +7,7 @@ use CodebarAg\DocuWare\Requests\General\UserManagement\CreateUpdateUsers\UpdateUser; use Illuminate\Support\Carbon; use Illuminate\Support\Facades\Event; +use Illuminate\Support\Sleep; it('can create users', function () { Event::fake(); diff --git a/tests/Feature/Requests/General/UserManagement/GetModifyGroups/AddRemoveUserToAGroupTest.php b/tests/Feature/Requests/General/UserManagement/GetModifyGroups/AddRemoveUserToAGroupTest.php index 8826df2..a201c1b 100644 --- a/tests/Feature/Requests/General/UserManagement/GetModifyGroups/AddRemoveUserToAGroupTest.php +++ b/tests/Feature/Requests/General/UserManagement/GetModifyGroups/AddRemoveUserToAGroupTest.php @@ -7,6 +7,7 @@ use CodebarAg\DocuWare\Requests\General\UserManagement\GetModifyGroups\RemoveUserFromAGroup; use Illuminate\Support\Carbon; use Illuminate\Support\Facades\Event; +use Illuminate\Support\Sleep; it('can add groups to a user', function () { Event::fake(); diff --git a/tests/Feature/Requests/General/UserManagement/GetModifyRoles/AddRemoveUserToARoleTest.php b/tests/Feature/Requests/General/UserManagement/GetModifyRoles/AddRemoveUserToARoleTest.php index bcd6c6b..1f9cc6c 100644 --- a/tests/Feature/Requests/General/UserManagement/GetModifyRoles/AddRemoveUserToARoleTest.php +++ b/tests/Feature/Requests/General/UserManagement/GetModifyRoles/AddRemoveUserToARoleTest.php @@ -7,6 +7,7 @@ use CodebarAg\DocuWare\Requests\General\UserManagement\GetModifyRoles\RemoveUserFromARole; use Illuminate\Support\Carbon; use Illuminate\Support\Facades\Event; +use Illuminate\Support\Sleep; it('can add roles to a user', function () { Event::fake(); From 607e1890daffd0f6ffcb6b0a457df7d4325f007c Mon Sep 17 00:00:00 2001 From: Rhys Lees <43909932+RhysLees@users.noreply.github.com> Date: Wed, 29 May 2024 19:13:35 +0100 Subject: [PATCH 38/54] WIP --- src/Connectors/DocuWareConnector.php | 4 +++- .../OAuth/GetIdentityServiceConfiguration.php | 18 +++++++++++++++++- .../OAuth/GetResponsibleIdentityService.php | 18 +++++++++++++++++- tests/TestCase.php | 17 +++++++++++++++++ 4 files changed, 54 insertions(+), 3 deletions(-) diff --git a/src/Connectors/DocuWareConnector.php b/src/Connectors/DocuWareConnector.php index 627e1ad..3d2c9c5 100644 --- a/src/Connectors/DocuWareConnector.php +++ b/src/Connectors/DocuWareConnector.php @@ -82,7 +82,7 @@ protected function getOrCreateNewOAuthToken() DocuWareOAuthLog::dispatch($this->configuration->url, $this->configuration->username, 'Token retrieved from API'); } - $cache->put(key: $cacheKey, value: Crypt::encrypt($token), ttl: $token->expiresIn); + $cache->put(key: $cacheKey, value: Crypt::encrypt($token), ttl: $token->expiresIn - 60); } return $token->accessToken; @@ -91,10 +91,12 @@ protected function getOrCreateNewOAuthToken() protected function getAuthenticationTokenEndpoint(): IdentityServiceConfiguration { $responsibleIdentityServiceResponse = (new GetResponsibleIdentityService())->send(); + ray($responsibleIdentityServiceResponse->isCached())->purple(); $identityServiceConfigurationResponse = (new GetIdentityServiceConfiguration( identityServiceUrl: $responsibleIdentityServiceResponse->dto()->identityServiceUrl ))->send(); + ray($identityServiceConfigurationResponse->isCached())->purple(); return $identityServiceConfigurationResponse->dto(); } diff --git a/src/Requests/Authentication/OAuth/GetIdentityServiceConfiguration.php b/src/Requests/Authentication/OAuth/GetIdentityServiceConfiguration.php index dfe465a..df59e97 100644 --- a/src/Requests/Authentication/OAuth/GetIdentityServiceConfiguration.php +++ b/src/Requests/Authentication/OAuth/GetIdentityServiceConfiguration.php @@ -5,12 +5,18 @@ use CodebarAg\DocuWare\DTO\Authentication\OAuth\IdentityServiceConfiguration; use CodebarAg\DocuWare\Events\DocuWareResponseLog; use CodebarAg\DocuWare\Support\EnsureValidResponse; +use Illuminate\Support\Facades\Cache; +use Saloon\CachePlugin\Contracts\Cacheable; +use Saloon\CachePlugin\Drivers\LaravelCacheDriver; +use Saloon\CachePlugin\Traits\HasCaching; use Saloon\Enums\Method; use Saloon\Http\Response; use Saloon\Http\SoloRequest; -class GetIdentityServiceConfiguration extends SoloRequest +class GetIdentityServiceConfiguration extends SoloRequest implements Cacheable { + use HasCaching; + protected Method $method = Method::GET; public function __construct( @@ -30,6 +36,16 @@ public function defaultHeaders(): array ]; } + public function resolveCacheDriver(): LaravelCacheDriver + { + return new LaravelCacheDriver(Cache::store(config('laravel-docuware.configurations.cache.driver'))); + } + + public function cacheExpiryInSeconds(): int + { + return config('laravel-docuware.configurations.cache.lifetime_in_seconds', 3600); + } + public function createDtoFromResponse(Response $response): IdentityServiceConfiguration { event(new DocuWareResponseLog($response)); diff --git a/src/Requests/Authentication/OAuth/GetResponsibleIdentityService.php b/src/Requests/Authentication/OAuth/GetResponsibleIdentityService.php index 35f4c73..08aad97 100644 --- a/src/Requests/Authentication/OAuth/GetResponsibleIdentityService.php +++ b/src/Requests/Authentication/OAuth/GetResponsibleIdentityService.php @@ -4,12 +4,18 @@ use CodebarAg\DocuWare\DTO\Authentication\OAuth\ResponsibleIdentityService; use CodebarAg\DocuWare\Responses\Authentication\OAuth\GetResponsibleIdentityServiceResponse; +use Illuminate\Support\Facades\Cache; +use Saloon\CachePlugin\Contracts\Cacheable; +use Saloon\CachePlugin\Drivers\LaravelCacheDriver; +use Saloon\CachePlugin\Traits\HasCaching; use Saloon\Enums\Method; use Saloon\Http\Response; use Saloon\Http\SoloRequest; -class GetResponsibleIdentityService extends SoloRequest +class GetResponsibleIdentityService extends SoloRequest implements Cacheable { + use HasCaching; + protected Method $method = Method::GET; public function resolveEndpoint(): string @@ -26,6 +32,16 @@ public function defaultHeaders(): array ]; } + public function resolveCacheDriver(): LaravelCacheDriver + { + return new LaravelCacheDriver(Cache::store(config('laravel-docuware.configurations.cache.driver'))); + } + + public function cacheExpiryInSeconds(): int + { + return config('laravel-docuware.configurations.cache.lifetime_in_seconds', 3600); + } + public function createDtoFromResponse(Response $response): ResponsibleIdentityService { return GetResponsibleIdentityServiceResponse::fromResponse($response); diff --git a/tests/TestCase.php b/tests/TestCase.php index 746ffaf..cbf78ff 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -3,7 +3,11 @@ namespace CodebarAg\DocuWare\Tests; use CodebarAg\DocuWare\DocuWareServiceProvider; +use CodebarAg\DocuWare\Events\DocuWareOAuthLog; +use CodebarAg\DocuWare\Events\DocuWareResponseLog; use Illuminate\Database\Eloquent\Factories\Factory; +use Illuminate\Support\Facades\Event; +use Illuminate\Support\Facades\Log; use Orchestra\Testbench\TestCase as Orchestra; class TestCase extends Orchestra @@ -15,6 +19,19 @@ protected function setUp(): void Factory::guessFactoryNamesUsing( fn (string $modelName) => 'codebar\\DocuWare\\Database\\Factories\\'.class_basename($modelName).'Factory', ); + + Event::listen(DocuWareResponseLog::class, function (DocuWareResponseLog $event) { + Log::info('Docuware response', [ + $event->response->getPendingRequest()->getUrl(), + ]); + }); + + Event::listen(DocuWareOAuthLog::class, function (DocuWareOAuthLog $event) { + Log::info($event->message, [ + 'url' => $event->url, + 'username' => $event->username, + ]); + }); } protected function getPackageProviders($app): array From e8f817cd0058d1134f8732a32cbdf1013dde542e Mon Sep 17 00:00:00 2001 From: Rhys Lees <43909932+RhysLees@users.noreply.github.com> Date: Wed, 29 May 2024 19:28:10 +0100 Subject: [PATCH 39/54] WIP --- src/Connectors/DocuWareConnector.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Connectors/DocuWareConnector.php b/src/Connectors/DocuWareConnector.php index 3d2c9c5..0ca9b4e 100644 --- a/src/Connectors/DocuWareConnector.php +++ b/src/Connectors/DocuWareConnector.php @@ -91,12 +91,10 @@ protected function getOrCreateNewOAuthToken() protected function getAuthenticationTokenEndpoint(): IdentityServiceConfiguration { $responsibleIdentityServiceResponse = (new GetResponsibleIdentityService())->send(); - ray($responsibleIdentityServiceResponse->isCached())->purple(); $identityServiceConfigurationResponse = (new GetIdentityServiceConfiguration( identityServiceUrl: $responsibleIdentityServiceResponse->dto()->identityServiceUrl ))->send(); - ray($identityServiceConfigurationResponse->isCached())->purple(); return $identityServiceConfigurationResponse->dto(); } From 9076c3440469c1b0d24d47ecff4b93cdc05a4a87 Mon Sep 17 00:00:00 2001 From: Rhys Lees <43909932+RhysLees@users.noreply.github.com> Date: Thu, 30 May 2024 19:34:04 +0100 Subject: [PATCH 40/54] WIP --- .gitignore | 1 + README.md | 4 +- .../DocumentsTrashBin/DeleteDocuments.php | 25 ++++ src/DTO/Documents/TrashDocumentPaginator.php | 127 ++++++++++++++++++ src/DocuWareSearchRequestBuilder.php | 2 +- .../DocumentsTrashBin/DeleteDocuments.php | 41 ++++++ .../DocumentsTrashBin/GetDocuments.php | 14 +- .../DeleteDocumentsResponse.php | 20 +++ .../Search/GetTrashSearchResponse.php | 31 +++++ .../DeleteDocumentsFromTrashBinTest.php | 33 +++++ ...n.php => GetDocumentsFromTrashBinTest.php} | 114 ++++------------ tests/Pest.php | 14 ++ tests/TestCase.php | 24 ++-- 13 files changed, 343 insertions(+), 107 deletions(-) create mode 100644 src/DTO/Documents/DocumentsTrashBin/DeleteDocuments.php create mode 100644 src/DTO/Documents/TrashDocumentPaginator.php create mode 100644 src/Requests/Documents/DocumentsTrashBin/DeleteDocuments.php create mode 100644 src/Responses/Documents/DocumentsTrashBin/DeleteDocumentsResponse.php create mode 100644 src/Responses/Search/GetTrashSearchResponse.php create mode 100644 tests/Feature/Requests/Documents/DocumentsTrashBin/DeleteDocumentsFromTrashBinTest.php rename tests/Feature/Requests/Documents/DocumentsTrashBin/{GetDocumentsFromTrashBin.php => GetDocumentsFromTrashBinTest.php} (51%) diff --git a/.gitignore b/.gitignore index 8054c8d..e8de7f7 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ phpstan.neon testbench.yaml vendor node_modules +.phpactor.json diff --git a/README.md b/README.md index 0e9a648..5cda690 100644 --- a/README.md +++ b/README.md @@ -131,8 +131,8 @@ then optimize the processes that power the core of your business. | Documents/AnnotationsStamps | DeleteAnnotation | ❌ | | Documents/AnnotationsStamps | UpdateTextAnnotation | ❌ | | Documents/AnnotationsStamps | Get Stamps | ❌ | -| Documents/DocumentsTrashBin | Get Documents | ❌ | -| Documents/DocumentsTrashBin | Delete Documents | ❌ | +| Documents/DocumentsTrashBin | Get Documents | ✅ | +| Documents/DocumentsTrashBin | Delete Documents | ✅ | | Documents/DocumentsTrashBin | Restore Documents | ❌ | | Documents/ApplicationProperties | Get Application Properties | ❌ | | Documents/ApplicationProperties | Add Application Properties | ❌ | diff --git a/src/DTO/Documents/DocumentsTrashBin/DeleteDocuments.php b/src/DTO/Documents/DocumentsTrashBin/DeleteDocuments.php new file mode 100644 index 0000000..0eed7bd --- /dev/null +++ b/src/DTO/Documents/DocumentsTrashBin/DeleteDocuments.php @@ -0,0 +1,25 @@ +current_page > 1; + } + + public function showNext(): bool + { + return $this->current_page < $this->last_page; + } + + public function successful(): bool + { + return is_null($this->error); + } + + public function failed(): bool + { + return ! $this->successful(); + } + + public static function fromJson( + array $data, + int $page, + int $perPage, + ): self { + $total = Arr::get($data, 'Count.Value'); + + $lastPage = (int) ceil($total / $perPage); + + $from = $page === 1 ? 1 : (($page - 1) * $perPage) + 1; + + $to = $page === $lastPage ? $total : $page * $perPage; + + $headers = collect(Arr::get($data, 'Headers')); + $documents = collect(Arr::get($data, 'Rows')); + + $mappedDocuments = $documents->map(function (array $document) use ($headers) { + $document = collect($document); + + return $document->mapWithKeys(function ($value, $key) use ($headers) { + $header = collect($headers->get($key)); + + return $header->has('FieldName') ? [$header->get('FieldName') => $value] : []; + })->filter(); + }); + + return new self( + total: $total, + per_page: $perPage, + current_page: $page, + last_page: $lastPage, + from: $from, + to: $to, + headers: $headers, + documents: $documents, + mappedDocuments: $mappedDocuments, + ); + } + + public static function fromFailed(Exception $e): self + { + return new self( + total: 0, + per_page: 0, + current_page: 0, + last_page: 0, + from: 0, + to: 0, + headers: collect(), + documents: collect(), + mappedDocuments: collect(), + error: ErrorBag::make($e), + ); + } + + public static function fake( + ?int $total = null, + ?int $per_page = null, + ?int $current_page = null, + ?int $last_page = null, + ?int $from = null, + ?int $to = null, + ?Collection $headers = null, + ?Collection $documents = null, + ?Collection $mappedDocuments = null, + ): self { + return new self( + total: $total ?? random_int(10, 100), + per_page: $per_page ?? 10, + current_page: $current_page ?? random_int(1, 10), + last_page: $last_page ?? random_int(10, 20), + from: $from ?? 1, + to: $to ?? 10, + headers: $headers, + documents: $documents, + mappedDocuments: $mappedDocuments, + ); + } +} diff --git a/src/DocuWareSearchRequestBuilder.php b/src/DocuWareSearchRequestBuilder.php index b799ea8..0e70ee7 100644 --- a/src/DocuWareSearchRequestBuilder.php +++ b/src/DocuWareSearchRequestBuilder.php @@ -207,7 +207,7 @@ public function get(): GetSearchRequest|GetDocuments protected function guard(): void { throw_if( - is_null($this->fileCabinetId), + is_null($this->fileCabinetId) && $this->trashBin === false, UnableToSearch::cabinetNotSet(), ); diff --git a/src/Requests/Documents/DocumentsTrashBin/DeleteDocuments.php b/src/Requests/Documents/DocumentsTrashBin/DeleteDocuments.php new file mode 100644 index 0000000..d9ab420 --- /dev/null +++ b/src/Requests/Documents/DocumentsTrashBin/DeleteDocuments.php @@ -0,0 +1,41 @@ + $this->ids instanceof Collection ? $this->ids->toArray() : $this->ids, + ]; + } + + public function createDtoFromResponse(Response $response): DeleteDocumentsDto + { + return DeleteDocumentsResponse::fromResponse($response); + } +} diff --git a/src/Requests/Documents/DocumentsTrashBin/GetDocuments.php b/src/Requests/Documents/DocumentsTrashBin/GetDocuments.php index 391a074..a710a4b 100644 --- a/src/Requests/Documents/DocumentsTrashBin/GetDocuments.php +++ b/src/Requests/Documents/DocumentsTrashBin/GetDocuments.php @@ -2,8 +2,8 @@ namespace CodebarAg\DocuWare\Requests\Documents\DocumentsTrashBin; -use CodebarAg\DocuWare\DTO\Documents\DocumentPaginator; -use CodebarAg\DocuWare\Responses\Search\GetSearchResponse; +use CodebarAg\DocuWare\DTO\Documents\TrashDocumentPaginator; +use CodebarAg\DocuWare\Responses\Search\GetTrashSearchResponse; use Illuminate\Support\Facades\Cache; use Saloon\CachePlugin\Contracts\Cacheable; use Saloon\CachePlugin\Drivers\LaravelCacheDriver; @@ -25,7 +25,7 @@ public function __construct( protected readonly int $page = 1, protected readonly int $perPage = 50, protected readonly ?string $searchTerm = null, - protected readonly string $orderField = 'DELETEDATETIME', + protected readonly ?string $orderField = null, protected readonly string $orderDirection = 'desc', protected readonly array $condition = [], protected readonly ?bool $forceRefresh = true, @@ -53,12 +53,12 @@ public function defaultBody(): array 'Count' => $this->perPage, 'Start' => ($this->page - 1) * $this->perPage, 'Condition' => $this->condition, - 'SortOrder' => [ + 'SortOrder' => $this->orderField ? [ [ 'Field' => $this->orderField, 'Direction' => $this->orderDirection, ], - ], + ] : null, 'Operation' => config('laravel-docuware.configurations.search.operation', 'And'), 'ForceRefresh' => config('laravel-docuware.configurations.search.force_refresh', true), 'IncludeSuggestions' => config('laravel-docuware.configurations.search.include_suggestions', false), @@ -66,8 +66,8 @@ public function defaultBody(): array ]; } - public function createDtoFromResponse(Response $response): DocumentPaginator + public function createDtoFromResponse(Response $response): TrashDocumentPaginator { - return GetSearchResponse::fromResponse($response, $this->page, $this->perPage); + return GetTrashSearchResponse::fromResponse($response, $this->page, $this->perPage); } } diff --git a/src/Responses/Documents/DocumentsTrashBin/DeleteDocumentsResponse.php b/src/Responses/Documents/DocumentsTrashBin/DeleteDocumentsResponse.php new file mode 100644 index 0000000..083babd --- /dev/null +++ b/src/Responses/Documents/DocumentsTrashBin/DeleteDocumentsResponse.php @@ -0,0 +1,20 @@ +throw()->json()); + } +} diff --git a/src/Responses/Search/GetTrashSearchResponse.php b/src/Responses/Search/GetTrashSearchResponse.php new file mode 100644 index 0000000..6cc028a --- /dev/null +++ b/src/Responses/Search/GetTrashSearchResponse.php @@ -0,0 +1,31 @@ +throw()->json(); + } catch (Exception $e) { + return TrashDocumentPaginator::fromFailed($e); + } + + return TrashDocumentPaginator::fromJson( + $data, + $page, + $perPage, + ); + } +} diff --git a/tests/Feature/Requests/Documents/DocumentsTrashBin/DeleteDocumentsFromTrashBinTest.php b/tests/Feature/Requests/Documents/DocumentsTrashBin/DeleteDocumentsFromTrashBinTest.php new file mode 100644 index 0000000..cc8b712 --- /dev/null +++ b/tests/Feature/Requests/Documents/DocumentsTrashBin/DeleteDocumentsFromTrashBinTest.php @@ -0,0 +1,33 @@ +connector->send(new CreateDataRecord( + config('laravel-docuware.tests.file_cabinet_id'), + file_get_contents(__DIR__.'/../../../../Fixtures/files/test-1.pdf'), + 'test-1.pdf', + ))->dto(); + + $this->connector->send(new DeleteDocument( + config('laravel-docuware.tests.file_cabinet_id'), + $document->id, + ))->dto(); + + $paginatorRequest = (new DocuWare()) + ->searchRequestBuilder() + ->trashBin() + ->get(); + + $paginator = $this->connector->send($paginatorRequest)->dto(); + + $delete = $this->connector->send(new DeleteDocuments($paginator->mappedDocuments->pluck('ID')->all()))->dto(); + + expect($delete->successCount)->toBe($paginator->total); +})->group('delete', 'trash'); diff --git a/tests/Feature/Requests/Documents/DocumentsTrashBin/GetDocumentsFromTrashBin.php b/tests/Feature/Requests/Documents/DocumentsTrashBin/GetDocumentsFromTrashBinTest.php similarity index 51% rename from tests/Feature/Requests/Documents/DocumentsTrashBin/GetDocumentsFromTrashBin.php rename to tests/Feature/Requests/Documents/DocumentsTrashBin/GetDocumentsFromTrashBinTest.php index b475cb0..e5d5fee 100644 --- a/tests/Feature/Requests/Documents/DocumentsTrashBin/GetDocumentsFromTrashBin.php +++ b/tests/Feature/Requests/Documents/DocumentsTrashBin/GetDocumentsFromTrashBinTest.php @@ -2,11 +2,9 @@ use Carbon\Carbon; use CodebarAg\DocuWare\DocuWare; -use CodebarAg\DocuWare\DTO\Documents\DocumentIndex\IndexTextDTO; -use CodebarAg\DocuWare\DTO\Documents\DocumentPaginator; +use CodebarAg\DocuWare\DTO\Documents\TrashDocumentPaginator; use CodebarAg\DocuWare\Events\DocuWareResponseLog; use CodebarAg\DocuWare\Exceptions\UnableToSearch; -use CodebarAg\DocuWare\Requests\FileCabinets\Upload\CreateDataRecord; use Illuminate\Support\Facades\Event; it('can search documents in trash', function () { @@ -18,15 +16,15 @@ ->page(1) ->perPage(5) ->fulltext('test') - ->filterDate('DWSTOREDATETIME', '>=', Carbon::create(2021)) - ->filterDate('DWSTOREDATETIME', '<', now()) + ->filterDate('DELETEDATETIME', '>=', Carbon::create(2021)) + ->filterDate('DELETEDATETIME', '<', now()) ->filter('DOCUMENT_TYPE', 'Abrechnung') - ->orderBy('DWSTOREDATETIME', 'desc') + ->orderBy('DELETEDATETIME', 'desc') ->get(); $paginator = $this->connector->send($paginatorRequest)->dto(); - $this->assertInstanceOf(DocumentPaginator::class, $paginator); + $this->assertInstanceOf(TrashDocumentPaginator::class, $paginator); Event::assertDispatched(DocuWareResponseLog::class); })->group('search', 'trash'); @@ -41,11 +39,11 @@ ->page(1) ->perPage(5) ->fulltext('test') - ->filterDate('DWSTOREDATETIME', '>=', Carbon::create(2020)) - ->filterDate('DWSTOREDATETIME', '>=', Carbon::create(2021)) - ->filterDate('DWSTOREDATETIME', '<', now()) + ->filterDate('DELETEDATETIME', '>=', Carbon::create(2020)) + ->filterDate('DELETEDATETIME', '>=', Carbon::create(2021)) + ->filterDate('DELETEDATETIME', '<', now()) ->filter('DOCUMENT_TYPE', 'Abrechnung') - ->orderBy('DWSTOREDATETIME', 'desc') + ->orderBy('DELETEDATETIME', 'desc') ->get(); $this->connector->send($request)->dto(); @@ -60,16 +58,16 @@ ->page(1) ->perPage(5) ->fulltext('test') - ->filterDate('DWSTOREDATETIME', '<=', Carbon::create(2022)) - ->filterDate('DWSTOREDATETIME', '>=', Carbon::create(2020)) - ->filterDate('DWSTOREDATETIME', '>=', Carbon::create(2021)) + ->filterDate('DELETEDATETIME', '<=', Carbon::create(2022)) + ->filterDate('DELETEDATETIME', '>=', Carbon::create(2020)) + ->filterDate('DELETEDATETIME', '>=', Carbon::create(2021)) ->filter('DOCUMENT_TYPE', 'Abrechnung') - ->orderBy('DWSTOREDATETIME', 'desc') + ->orderBy('DELETEDATETIME', 'desc') ->get(); $paginator = $this->connector->send($paginatorRequest)->dto(); - $this->assertInstanceOf(DocumentPaginator::class, $paginator); + $this->assertInstanceOf(TrashDocumentPaginator::class, $paginator); Event::assertDispatched(DocuWareResponseLog::class); })->group('search', 'trash'); @@ -82,15 +80,15 @@ ->page(1) ->perPage(5) ->fulltext('test') - ->filterDate('DWSTOREDATETIME', '>=', Carbon::create(2020)) - ->filterDate('DWSTOREDATETIME', '=', Carbon::create(2021)) + ->filterDate('DELETEDATETIME', '>=', Carbon::create(2020)) + ->filterDate('DELETEDATETIME', '=', Carbon::create(2021)) ->filter('DOCUMENT_TYPE', 'Abrechnung') - ->orderBy('DWSTOREDATETIME', 'desc') + ->orderBy('DELETEDATETIME', 'desc') ->get(); $paginator = $this->connector->send($paginatorRequest)->dto(); - $this->assertInstanceOf(DocumentPaginator::class, $paginator); + $this->assertInstanceOf(TrashDocumentPaginator::class, $paginator); Event::assertDispatched(DocuWareResponseLog::class); })->group('search', 'trash'); @@ -105,10 +103,10 @@ ->page(1) ->perPage(5) ->fulltext('test') - ->filterDate('DWSTOREDATETIME', '<=', Carbon::create(2020)) - ->filterDate('DWSTOREDATETIME', '>=', Carbon::create(2021)) + ->filterDate('DELETEDATETIME', '<=', Carbon::create(2020)) + ->filterDate('DELETEDATETIME', '>=', Carbon::create(2021)) ->filter('DOCUMENT_TYPE', 'Abrechnung') - ->orderBy('DWSTOREDATETIME', 'desc') + ->orderBy('DELETEDATETIME', 'desc') ->get(); $this->connector->send($request)->dto(); @@ -123,14 +121,14 @@ ->page(1) ->perPage(5) ->fulltext('test') - ->filterDate('DWSTOREDATETIME', '>', Carbon::create(2018)) + ->filterDate('DELETEDATETIME', '>', Carbon::create(2018)) ->filter('DOCUMENT_TYPE', 'Abrechnung') - ->orderBy('DWSTOREDATETIME', 'desc') + ->orderBy('DELETEDATETIME', 'desc') ->get(); $paginator = $this->connector->send($paginatorRequest)->dto(); - $this->assertInstanceOf(DocumentPaginator::class, $paginator); + $this->assertInstanceOf(TrashDocumentPaginator::class, $paginator); Event::assertDispatched(DocuWareResponseLog::class); })->group('search', 'trash'); @@ -143,14 +141,14 @@ ->page(1) ->perPage(5) ->fulltext('test') - ->filterDate('DWSTOREDATETIME', '<=', Carbon::create(2020)) + ->filterDate('DELETEDATETIME', '<=', Carbon::create(2020)) ->filter('DOCUMENT_TYPE', 'Abrechnung') - ->orderBy('DWSTOREDATETIME', 'desc') + ->orderBy('DELETEDATETIME', 'desc') ->get(); $paginator = $this->connector->send($paginatorRequest)->dto(); - $this->assertInstanceOf(DocumentPaginator::class, $paginator); + $this->assertInstanceOf(TrashDocumentPaginator::class, $paginator); Event::assertDispatched(DocuWareResponseLog::class); })->group('search', 'trash'); @@ -164,65 +162,11 @@ ->perPage(null) ->fulltext(null) ->filter('DOCUMENT_TYPE', null) - ->orderBy('DWSTOREDATETIME', null) + ->orderBy('DELETEDATETIME', null) ->get(); $paginator = $this->connector->send($paginatorRequest)->dto(); - $this->assertInstanceOf(DocumentPaginator::class, $paginator); - Event::assertDispatched(DocuWareResponseLog::class); -})->group('search', 'trash'); - -it('can search documents with multiple values in trash', function () { - Event::fake(); - - $fileCabinetId = config('laravel-docuware.tests.file_cabinet_id'); - $fileContent = '::fake-file-content::'; - $fileName = 'example.txt'; - - $documentOne = $this->connector->send(new CreateDataRecord( - $fileCabinetId, - $fileContent, - $fileName, - collect([ - IndexTextDTO::make('DOCUMENT_LABEL', '::text::'), - IndexTextDTO::make('DOCUMENT_TYPE', 'Abrechnung'), - ]), - ))->dto(); - - $documentTwo = $this->connector->send(new CreateDataRecord( - $fileCabinetId, - $fileContent, - $fileName, - collect([ - IndexTextDTO::make('DOCUMENT_LABEL', '::text::'), - IndexTextDTO::make('DOCUMENT_TYPE', 'Rechnung'), - ]), - ))->dto(); - - $documentThree = $this->connector->send(new CreateDataRecord( - $fileCabinetId, - $fileContent, - $fileName, - collect([ - IndexTextDTO::make('DOCUMENT_LABEL', '::text::'), - IndexTextDTO::make('DOCUMENT_TYPE', 'EtwasAnderes'), - ]), - ))->dto(); - - // Should filter down to documentOne and documentTwo. documentThree should be filtered out. - $paginatorRequestBothDocuments = (new DocuWare()) - ->searchRequestBuilder() - ->trashBin() - ->page(null) - ->perPage(null) - ->fulltext(null) - ->filterIn('DOCUMENT_TYPE', ['Abrechnung', 'Rechnung']) - ->get(); - - $paginator = $this->connector->send($paginatorRequestBothDocuments)->dto(); - - $this->assertInstanceOf(DocumentPaginator::class, $paginator); - $this->assertCount(2, $paginator->documents); + $this->assertInstanceOf(TrashDocumentPaginator::class, $paginator); Event::assertDispatched(DocuWareResponseLog::class); })->group('search', 'trash'); diff --git a/tests/Pest.php b/tests/Pest.php index 9b18f40..1905e7b 100644 --- a/tests/Pest.php +++ b/tests/Pest.php @@ -1,7 +1,9 @@ id, ))->dto(); } + + // $paginatorRequest = (new DocuWare()) + // ->searchRequestBuilder() + // ->trashBin() + // ->perPage(1000) + // ->get(); + // + // $paginator = $connector->send($paginatorRequest)->dto(); + // + // if ($paginator->total > 0) { + // $connector->send(new DeleteDocuments($paginator->mappedDocuments->pluck('ID')->all()))->dto(); + // } } function setUsersInactive(): void diff --git a/tests/TestCase.php b/tests/TestCase.php index cbf78ff..fd588b7 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -20,18 +20,18 @@ protected function setUp(): void fn (string $modelName) => 'codebar\\DocuWare\\Database\\Factories\\'.class_basename($modelName).'Factory', ); - Event::listen(DocuWareResponseLog::class, function (DocuWareResponseLog $event) { - Log::info('Docuware response', [ - $event->response->getPendingRequest()->getUrl(), - ]); - }); - - Event::listen(DocuWareOAuthLog::class, function (DocuWareOAuthLog $event) { - Log::info($event->message, [ - 'url' => $event->url, - 'username' => $event->username, - ]); - }); + // Event::listen(DocuWareResponseLog::class, function (DocuWareResponseLog $event) { + // Log::info('Docuware response', [ + // $event->response->getPendingRequest()->getUrl(), + // ]); + // }); + // + // Event::listen(DocuWareOAuthLog::class, function (DocuWareOAuthLog $event) { + // Log::info($event->message, [ + // 'url' => $event->url, + // 'username' => $event->username, + // ]); + // }); } protected function getPackageProviders($app): array From 72945bef21b35fda04cb355b0697de5dcfb8e328 Mon Sep 17 00:00:00 2001 From: Rhys Lees <43909932+RhysLees@users.noreply.github.com> Date: Thu, 30 May 2024 19:44:35 +0100 Subject: [PATCH 41/54] WIP --- README.md | 2 +- .../DocumentsTrashBin/RestoreDocuments.php | 25 +++++++++++ .../DocumentsTrashBin/RestoreDocuments.php | 41 +++++++++++++++++++ .../RestoreDocumentsResponse.php | 20 +++++++++ .../DeleteDocumentsFromTrashBinTest.php | 2 +- .../RestoreDocumentsFromTrashBinTest.php | 33 +++++++++++++++ tests/Feature/SleepTest.php | 3 +- tests/Pest.php | 22 +++++----- 8 files changed, 134 insertions(+), 14 deletions(-) create mode 100644 src/DTO/Documents/DocumentsTrashBin/RestoreDocuments.php create mode 100644 src/Requests/Documents/DocumentsTrashBin/RestoreDocuments.php create mode 100644 src/Responses/Documents/DocumentsTrashBin/RestoreDocumentsResponse.php create mode 100644 tests/Feature/Requests/Documents/DocumentsTrashBin/RestoreDocumentsFromTrashBinTest.php diff --git a/README.md b/README.md index 5cda690..93225e1 100644 --- a/README.md +++ b/README.md @@ -133,7 +133,7 @@ then optimize the processes that power the core of your business. | Documents/AnnotationsStamps | Get Stamps | ❌ | | Documents/DocumentsTrashBin | Get Documents | ✅ | | Documents/DocumentsTrashBin | Delete Documents | ✅ | -| Documents/DocumentsTrashBin | Restore Documents | ❌ | +| Documents/DocumentsTrashBin | Restore Documents | ✅ | | Documents/ApplicationProperties | Get Application Properties | ❌ | | Documents/ApplicationProperties | Add Application Properties | ❌ | | Documents/ApplicationProperties | Delete Application Properties | ❌ | diff --git a/src/DTO/Documents/DocumentsTrashBin/RestoreDocuments.php b/src/DTO/Documents/DocumentsTrashBin/RestoreDocuments.php new file mode 100644 index 0000000..476996e --- /dev/null +++ b/src/DTO/Documents/DocumentsTrashBin/RestoreDocuments.php @@ -0,0 +1,25 @@ + $this->ids instanceof Collection ? $this->ids->toArray() : $this->ids, + ]; + } + + public function createDtoFromResponse(Response $response): RestoreDocumentsDto + { + return RestoreDocumentsResponse::fromResponse($response); + } +} diff --git a/src/Responses/Documents/DocumentsTrashBin/RestoreDocumentsResponse.php b/src/Responses/Documents/DocumentsTrashBin/RestoreDocumentsResponse.php new file mode 100644 index 0000000..bce1134 --- /dev/null +++ b/src/Responses/Documents/DocumentsTrashBin/RestoreDocumentsResponse.php @@ -0,0 +1,20 @@ +throw()->json()); + } +} diff --git a/tests/Feature/Requests/Documents/DocumentsTrashBin/DeleteDocumentsFromTrashBinTest.php b/tests/Feature/Requests/Documents/DocumentsTrashBin/DeleteDocumentsFromTrashBinTest.php index cc8b712..86ddd56 100644 --- a/tests/Feature/Requests/Documents/DocumentsTrashBin/DeleteDocumentsFromTrashBinTest.php +++ b/tests/Feature/Requests/Documents/DocumentsTrashBin/DeleteDocumentsFromTrashBinTest.php @@ -6,7 +6,7 @@ use CodebarAg\DocuWare\Requests\FileCabinets\Upload\CreateDataRecord; use Illuminate\Support\Facades\Event; -it('can search documents in trash', function () { +it('can delete documents in trash', function () { Event::fake(); $document = $this->connector->send(new CreateDataRecord( diff --git a/tests/Feature/Requests/Documents/DocumentsTrashBin/RestoreDocumentsFromTrashBinTest.php b/tests/Feature/Requests/Documents/DocumentsTrashBin/RestoreDocumentsFromTrashBinTest.php new file mode 100644 index 0000000..0b39b03 --- /dev/null +++ b/tests/Feature/Requests/Documents/DocumentsTrashBin/RestoreDocumentsFromTrashBinTest.php @@ -0,0 +1,33 @@ +connector->send(new CreateDataRecord( + config('laravel-docuware.tests.file_cabinet_id'), + file_get_contents(__DIR__.'/../../../../Fixtures/files/test-1.pdf'), + 'test-1.pdf', + ))->dto(); + + $this->connector->send(new DeleteDocument( + config('laravel-docuware.tests.file_cabinet_id'), + $document->id, + ))->dto(); + + $paginatorRequest = (new DocuWare()) + ->searchRequestBuilder() + ->trashBin() + ->get(); + + $paginator = $this->connector->send($paginatorRequest)->dto(); + + $delete = $this->connector->send(new RestoreDocuments($paginator->mappedDocuments->pluck('ID')->all()))->dto(); + + expect($delete->successCount)->toBe($paginator->total); +})->group('restore', 'trash'); diff --git a/tests/Feature/SleepTest.php b/tests/Feature/SleepTest.php index ff22466..fba0ba4 100644 --- a/tests/Feature/SleepTest.php +++ b/tests/Feature/SleepTest.php @@ -8,4 +8,5 @@ Sleep::for(5)->seconds(); Log::info(now()->toDateTimeString()); -})->expectNotToPerformAssertions(); +})->expectNotToPerformAssertions() + ->skip('Testing sleep function.'); diff --git a/tests/Pest.php b/tests/Pest.php index 1905e7b..3662772 100644 --- a/tests/Pest.php +++ b/tests/Pest.php @@ -42,17 +42,17 @@ function clearFiles(): void ))->dto(); } - // $paginatorRequest = (new DocuWare()) - // ->searchRequestBuilder() - // ->trashBin() - // ->perPage(1000) - // ->get(); - // - // $paginator = $connector->send($paginatorRequest)->dto(); - // - // if ($paginator->total > 0) { - // $connector->send(new DeleteDocuments($paginator->mappedDocuments->pluck('ID')->all()))->dto(); - // } + $paginatorRequest = (new DocuWare()) + ->searchRequestBuilder() + ->trashBin() + ->perPage(1000) + ->get(); + + $paginator = $connector->send($paginatorRequest)->dto(); + + if ($paginator->total > 0) { + $connector->send(new DeleteDocuments($paginator->mappedDocuments->pluck('ID')->all()))->dto(); + } } function setUsersInactive(): void From d1243f4dcd1a2986cb5ae83b0ce7683e51f5810a Mon Sep 17 00:00:00 2001 From: Rhys Lees <43909932+RhysLees@users.noreply.github.com> Date: Sat, 1 Jun 2024 00:50:09 +0100 Subject: [PATCH 42/54] WIP --- README.md | 162 +++++++++--------- src/DTO/Section.php | 11 +- src/DTO/Workflow/HistoryStep.php | 38 ++++ src/DTO/Workflow/InstanceHistory.php | 46 +++++ .../Documents/Download/DownloadDocument.php | 4 +- .../Documents/Download/DownloadSection.php | 45 +++++ .../Documents/Download/DownloadThumbnail.php | 4 +- .../Documents/Sections/DeleteSection.php | 45 +++++ .../Sections/GetASpecificSection.php | 46 +++++ .../Sections/GetAllSectionsFromADocument.php} | 10 +- .../Workflow/GetDocumentWorkflowHistory.php | 46 +++++ .../GetDocumentWorkflowHistorySteps.php | 46 +++++ .../Download/DownloadDocumentResponse.php | 2 +- .../Download/DownloadSectionResponse.php | 19 ++ .../Sections/DeleteSectionResponse.php | 16 ++ .../Sections/GetASecificSectionResponse.php | 20 +++ .../GetAllSectionsFromADocumentResponse.php} | 14 +- .../GetDocumentWorkflowHistoryResponse.php | 23 +++ ...etDocumentWorkflowHistoryStepsResponse.php | 20 +++ .../DownloadDocumentTest.php} | 2 +- .../Download/DownloadSectionTest.php | 33 ++++ .../Download/DownloadThumbnailTest.php | 34 ++++ .../Documents/Sections/DeleteSectionTest.php | 35 ++++ .../Sections/GetASpecificSectionTest.php | 35 ++++ .../GetAllSectionsFromADocumentTest.php | 33 ++++ ...etDocumentDownloadThumbnailRequestTest.php | 4 +- .../GetDocumentWorkflowHistoryStepsTest.php | 45 +++++ .../GetDocumentWorkflowHistoryTest.php | 38 ++++ 28 files changed, 768 insertions(+), 108 deletions(-) create mode 100644 src/DTO/Workflow/HistoryStep.php create mode 100644 src/DTO/Workflow/InstanceHistory.php create mode 100644 src/Requests/Documents/Download/DownloadSection.php create mode 100644 src/Requests/Documents/Sections/DeleteSection.php create mode 100644 src/Requests/Documents/Sections/GetASpecificSection.php rename src/Requests/{Sections/GetSectionsRequest.php => Documents/Sections/GetAllSectionsFromADocument.php} (77%) create mode 100644 src/Requests/Workflow/GetDocumentWorkflowHistory.php create mode 100644 src/Requests/Workflow/GetDocumentWorkflowHistorySteps.php create mode 100644 src/Responses/Documents/Download/DownloadSectionResponse.php create mode 100644 src/Responses/Documents/Sections/DeleteSectionResponse.php create mode 100644 src/Responses/Documents/Sections/GetASecificSectionResponse.php rename src/Responses/{Sections/GetSectionsResponse.php => Documents/Sections/GetAllSectionsFromADocumentResponse.php} (59%) create mode 100644 src/Responses/Workflow/GetDocumentWorkflowHistoryResponse.php create mode 100644 src/Responses/Workflow/GetDocumentWorkflowHistoryStepsResponse.php rename tests/Feature/Requests/Documents/{GetDocumentDownloadRequestTest.php => Download/DownloadDocumentTest.php} (97%) create mode 100644 tests/Feature/Requests/Documents/Download/DownloadSectionTest.php create mode 100644 tests/Feature/Requests/Documents/Download/DownloadThumbnailTest.php create mode 100644 tests/Feature/Requests/Documents/Sections/DeleteSectionTest.php create mode 100644 tests/Feature/Requests/Documents/Sections/GetASpecificSectionTest.php create mode 100644 tests/Feature/Requests/Documents/Sections/GetAllSectionsFromADocumentTest.php create mode 100644 tests/Feature/Requests/Workflow/GetDocumentWorkflowHistoryStepsTest.php create mode 100644 tests/Feature/Requests/Workflow/GetDocumentWorkflowHistoryTest.php diff --git a/README.md b/README.md index 93225e1..9c675b8 100644 --- a/README.md +++ b/README.md @@ -64,88 +64,86 @@ then optimize the processes that power the core of your business.
Current Support -| Group | Request | Supported | -|-------------------------------------|-------------------------------------------------------------|-----------| -| Authentication/OAuth | 1. Get Responsible Identity Service | ✅ | -| Authentication/OAuth | 2. Get Identity Service Configuration | ✅ | -| Authentication/OAuth | 3.a Request Token w/ Username & Password | ✅ | -| Authentication/OAuth | 3.b Request Token w/ a DocuWare Token | ❌ | -| Authentication/OAuth | 3.c Request Token w/ Username & Password (Trusted User) | ❌ | -| Authentication/OAuth | 3.d.1 Obtain Windows Authorization (On Premises Only) | ❌ | -| Authentication/OAuth | 3.d.2 Request Token /w a Windows Account (On Premises Only) | ❌ | -| General/Organisation | Get Login Token | ✅ | -| General/Organisation | Get Organization | ✅ | -| General/Organisation | Get All File Cabinets and Document Trays | ✅ | -| General/UserManagement | Get Users | ✅ | -| General/UserManagement | Get Users by ID | ✅ | -| General/UserManagement | Get Users of a Role | ✅ | -| General/UserManagement | Get Users of a Group | ✅ | -| General/UserManagement | Create User | ✅ | -| General/UserManagement | Update User | ✅ | -| General/UserManagement | Get Groups | ✅ | -| General/UserManagement | Get All Groups for a Specific User | ✅ | -| General/UserManagement | Add User to a Group | ✅ | -| General/UserManagement | Remove User from a Group | ✅ | -| General/UserManagement | Get Roles | ✅ | -| General/UserManagement | Get All Roles for a Specific User | ✅ | -| General/UserManagement | Add User to a Role | ✅ | -| General/UserManagement | Remove User from a Role | ✅ | -| FileCabinets/General | Get File Cabinet Information | ✅ | -| FileCabinets/General | Get Total Number of Documents | ✅ | -| FileCabinets/Dialogs | Get All Dialogs | ✅ | -| FileCabinets/Dialogs | Get a Specific Dialog | ✅ | -| FileCabinets/Dialogs | Get Dialogs of a Specific Type | ✅ | -| FileCabinets/Search | Get Documents from a File Cabinet | ✅ | -| FileCabinets/Search | Get a Specific Document From a File Cabinet | ✅ | -| FileCabinets/Search | Search for Documents in a Single File Cabinet | ✅ | -| FileCabinets/Search | Search for Documents in Multiple File Cabinets | ✅ | -| FileCabinets/CheckInCheckOut | Check-out & Download a Document | ❌ | -| FileCabinets/CheckInCheckOut | Check-in a Document from the File System | ❌ | -| FileCabinets/CheckInCheckOut | Undo Check-out | ❌ | -| FileCabinets/SelectLists | Get Select Lists | ✅ | -| FileCabinets/SelectLists | Get Filtered Select Lists | ❌ | -| FileCabinets/Upload | Create Data Record | ✅ | -| FileCabinets/Upload | Append File(s) to a Data Record | ❌ | -| FileCabinets/Upload | Upload a Single File for a Data Record | ❌ | -| FileCabinets/Upload | Create a Data Record & Upload File | ❌ | -| FileCabinets/Upload | Create Data Record & Upload File Using Store Dialog | ❌ | -| FileCabinets/Upload | Append a Single PDF to a Document | ❌ | -| FileCabinets/Upload | Replace a PDF Document Section | ❌ | -| FileCabinets/BatchIndexFieldsUpdate | Batch Update Index Fields By Id | ❌ | -| FileCabinets/BatchIndexFieldsUpdate | Batch Update Index Fields By Search | ❌ | -| FileCabinets/BatchIndexFieldsUpdate | Batch Append/Update Keyword Fields By Id | ❌ | -| Documents/UpdateIndexValues | Update Index Values | ✅ | -| Documents/UpdateIndexValues | Update Table Field Values | ❌ | -| Documents/ModifyDocuments | Transfer Document | ✅ | -| Documents/ModifyDocuments | Delete Document | ✅ | -| Documents/ClipUnclip&StapleUnstaple | Clip | ✅ | -| Documents/ClipUnclip&StapleUnstaple | Unclip | ✅ | -| Documents/ClipUnclip&StapleUnstaple | Staple | ✅ | -| Documents/ClipUnclip&StapleUnstaple | Unstaple | ✅ | -| Documents/AnnotationsStamps | AddStampWithPosition | ❌ | -| Documents/AnnotationsStamps | AddStampWithBestPosition | ❌ | -| Documents/AnnotationsStamps | AddTextAnnotation | ❌ | -| Documents/AnnotationsStamps | AddRectEntryAnnotation | ❌ | -| Documents/AnnotationsStamps | AddLineEntryAnnotation | ❌ | -| Documents/AnnotationsStamps | AddPolyLineEntryAnnotation | ❌ | -| Documents/AnnotationsStamps | DeleteAnnotation | ❌ | -| Documents/AnnotationsStamps | UpdateTextAnnotation | ❌ | -| Documents/AnnotationsStamps | Get Stamps | ❌ | -| Documents/DocumentsTrashBin | Get Documents | ✅ | -| Documents/DocumentsTrashBin | Delete Documents | ✅ | -| Documents/DocumentsTrashBin | Restore Documents | ✅ | -| Documents/ApplicationProperties | Get Application Properties | ❌ | -| Documents/ApplicationProperties | Add Application Properties | ❌ | -| Documents/ApplicationProperties | Delete Application Properties | ❌ | -| Documents/ApplicationProperties | Update Application Properties | ❌ | -| Documents/Sections | Get All Sections from a Document | ❌ | -| Documents/Sections | Get a Specific Section | ❌ | -| Documents/Sections | Delete Section | ❌ | -| Documents/Download | Download Document | ✅ | -| Documents/Download | Download Section | ❌ | -| Documents/Download | Download Thumbnail | ✅ | -| Workflow | Get Document Workflow History | ❌ | -| Workflow | Get Document Workflow History Steps | ❌ | +| Group | Request | Supported | TODO | +|-------------------------------------|-------------------------------------------------------------|-----------|------| +| Authentication/OAuth | 1. Get Responsible Identity Service | ✅ | | +| Authentication/OAuth | 2. Get Identity Service Configuration | ✅ | | +| Authentication/OAuth | 3.a Request Token w/ Username & Password | ✅ | | +| Authentication/OAuth | 3.b Request Token w/ a DocuWare Token | 🕣 | | +| Authentication/OAuth | 3.c Request Token w/ Username & Password (Trusted User) | 🕣 | | +| Authentication/OAuth | 3.d.1 Obtain Windows Authorization (On Premises Only) | 🕣 | | +| Authentication/OAuth | 3.d.2 Request Token /w a Windows Account (On Premises Only) | 🕣 | | +| General/Organisation | Get Login Token | ✅ | | +| General/Organisation | Get Organization | ✅ | | +| General/Organisation | Get All File Cabinets and Document Trays | ✅ | | +| General/UserManagement | Get Users by ID | ✅ | | +| General/UserManagement | Get Users of a Role | ✅ | | +| General/UserManagement | Get Users of a Group | ✅ | | +| General/UserManagement | Create User | ✅ | | +| General/UserManagement | Update User | ✅ | | +| General/UserManagement | Get Groups | ✅ | | +| General/UserManagement | Get All Groups for a Specific User | ✅ | | +| General/UserManagement | Add User to a Group | ✅ | | +| General/UserManagement | Remove User from a Group | ✅ | | +| General/UserManagement | Get Roles | ✅ | | +| General/UserManagement | Get All Roles for a Specific User | ✅ | | +| General/UserManagement | Add User to a Role | ✅ | | +| General/UserManagement | Remove User from a Role | ✅ | | +| FileCabinets/General | Get File Cabinet Information | ✅ | | +| FileCabinets/General | Get Total Number of Documents | ✅ | | +| FileCabinets/Dialogs | Get All Dialogs | ✅ | | +| FileCabinets/Dialogs | Get a Specific Dialog | ✅ | | +| FileCabinets/Dialogs | Get Dialogs of a Specific Type | ✅ | | +| FileCabinets/Search | Get Documents from a File Cabinet | ✅ | | +| FileCabinets/Search | Get a Specific Document From a File Cabinet | ✅ | | +| FileCabinets/Search | Search for Documents in a Single File Cabinet | ✅ | | +| FileCabinets/Search | Search for Documents in Multiple File Cabinets | ✅ | | +| FileCabinets/CheckInCheckOut | Check-out & Download a Document | 🕣 | | +| FileCabinets/CheckInCheckOut | Check-in a Document from the File System | 🕣 | | +| FileCabinets/CheckInCheckOut | Undo Check-out | 🕣 | | +| FileCabinets/SelectLists | Get Select Lists & Get Filtered Select Lists | ✅ | | +| FileCabinets/Upload | Create Data Record | ✅ | | +| FileCabinets/Upload | Append File(s) to a Data Record | ❌ | - | +| FileCabinets/Upload | Upload a Single File for a Data Record | ❌ | - | +| FileCabinets/Upload | Create a Data Record & Upload File | ❌ | - | +| FileCabinets/Upload | Create Data Record & Upload File Using Store Dialog | ❌ | - | +| FileCabinets/Upload | Append a Single PDF to a Document | ❌ | - | +| FileCabinets/Upload | Replace a PDF Document Section | ❌ | - | +| FileCabinets/BatchIndexFieldsUpdate | Batch Update Index Fields By Id | ❌ | - | +| FileCabinets/BatchIndexFieldsUpdate | Batch Update Index Fields By Search | ❌ | - | +| FileCabinets/BatchIndexFieldsUpdate | Batch Append/Update Keyword Fields By Id | ❌ | - | +| Documents/UpdateIndexValues | Update Index Values | ✅ | | +| Documents/UpdateIndexValues | Update Table Field Values | ❌ | - ? | +| Documents/ModifyDocuments | Transfer Document | ✅ | - | +| Documents/ModifyDocuments | Delete Document | ✅ | | +| Documents/ClipUnclip&StapleUnstaple | Clip | ✅ | | +| Documents/ClipUnclip&StapleUnstaple | Unclip | ✅ | | +| Documents/ClipUnclip&StapleUnstaple | Staple | ✅ | | +| Documents/ClipUnclip&StapleUnstaple | Unstaple | ✅ | | +| Documents/AnnotationsStamps | AddStampWithPosition | ❌ | - | +| Documents/AnnotationsStamps | AddStampWithBestPosition | ❌ | - | +| Documents/AnnotationsStamps | AddTextAnnotation | ❌ | - | +| Documents/AnnotationsStamps | AddRectEntryAnnotation | ❌ | - | +| Documents/AnnotationsStamps | AddLineEntryAnnotation | ❌ | - | +| Documents/AnnotationsStamps | AddPolyLineEntryAnnotation | ❌ | - | +| Documents/AnnotationsStamps | DeleteAnnotation | ❌ | - | +| Documents/AnnotationsStamps | UpdateTextAnnotation | ❌ | - | +| Documents/AnnotationsStamps | Get Stamps | ❌ | - | +| Documents/DocumentsTrashBin | Get Documents | ✅ | | +| Documents/DocumentsTrashBin | Delete Documents | ✅ | | +| Documents/DocumentsTrashBin | Restore Documents | ✅ | | +| Documents/ApplicationProperties | Get Application Properties | ❌ | - | +| Documents/ApplicationProperties | Add Application Properties | ❌ | - | +| Documents/ApplicationProperties | Delete Application Properties | ❌ | - | +| Documents/ApplicationProperties | Update Application Properties | ❌ | - | +| Documents/Sections | Get All Sections from a Document | ✅ | - | +| Documents/Sections | Get a Specific Section | ✅ | - | +| Documents/Sections | Delete Section | ✅ | - | +| Documents/Download | Download Document | ✅ | | +| Documents/Download | Download Section | ✅ | - | +| Documents/Download | Download Thumbnail | ✅ | | +| Workflow | Get Document Workflow History | ✅ | - | +| Workflow | Get Document Workflow History Steps | ✅ | - |
diff --git a/src/DTO/Section.php b/src/DTO/Section.php index 7ce0a2d..6d0901b 100644 --- a/src/DTO/Section.php +++ b/src/DTO/Section.php @@ -3,11 +3,18 @@ namespace CodebarAg\DocuWare\DTO; use Illuminate\Support\Arr; +use Illuminate\Support\Carbon; +use Illuminate\Support\Str; final class Section { public static function fromJson(array $data): self { + if ($contentModifiedDateTime = Arr::get($data, 'ContentModified')) { + $contentModifiedDateTime = Str::of($contentModifiedDateTime)->after('(')->before(')'); + $contentModifiedDateTime = Carbon::createFromTimestamp($contentModifiedDateTime); + } + return new self( id: Arr::get($data, 'Id'), contentType: Arr::get($data, 'ContentType'), @@ -15,7 +22,7 @@ public static function fromJson(array $data): self pageCount: Arr::get($data, 'PageCount'), fileSize: Arr::get($data, 'FileSize'), originalFileName: Arr::get($data, 'OriginalFileName'), - contentModified: Arr::get($data, 'ContentModified'), + contentModified: $contentModifiedDateTime, annotationsPreview: Arr::get($data, 'AnnotationsPreview'), hasTextAnnotations: Arr::get($data, 'HasTextAnnotations'), ); @@ -28,7 +35,7 @@ public function __construct( public int $pageCount, public int $fileSize, public string $originalFileName, - public string $contentModified, + public ?Carbon $contentModified, public bool $annotationsPreview, public ?bool $hasTextAnnotations = null, ) { diff --git a/src/DTO/Workflow/HistoryStep.php b/src/DTO/Workflow/HistoryStep.php new file mode 100644 index 0000000..c184276 --- /dev/null +++ b/src/DTO/Workflow/HistoryStep.php @@ -0,0 +1,38 @@ +after('(')->before(')'); + $stepDateTime = Carbon::createFromTimestamp($stepDateTime); + } + + return new self( + infoItem: collect(Arr::get($data, 'Info.Item')), + stepNumber: Arr::get($data, 'StepNumber'), + stepDate: $stepDateTime, + activityName: Arr::get($data, 'ActivityName'), + activityType: Arr::get($data, 'ActivityType'), + stepType: Arr::get($data, 'StepType'), + ); + } + + public function __construct( + public Collection $infoItem, + public int $stepNumber, + public Carbon $stepDate, + public string $activityName, + public string $activityType, + public string $stepType, + ) { + } +} diff --git a/src/DTO/Workflow/InstanceHistory.php b/src/DTO/Workflow/InstanceHistory.php new file mode 100644 index 0000000..7e5436b --- /dev/null +++ b/src/DTO/Workflow/InstanceHistory.php @@ -0,0 +1,46 @@ +after('(')->before(')'); + $startDateTime = Carbon::createFromTimestamp($startDateTime); + } + + if ($historySteps = Arr::get($data, 'HistorySteps')) { + $historySteps = collect($historySteps)->map(fn (array $historyStep) => HistoryStep::fromJson($historyStep)); + } + + return new self( + id: Arr::get($data, 'Id'), + workflowId: Arr::get($data, 'WorkflowId'), + name: Arr::get($data, 'Name'), + version: Arr::get($data, 'Version'), + workflowRequest: Arr::get($data, 'WorkflowRequest'), + startedAt: $startDateTime, + docId: Arr::get($data, 'DocId'), + historySteps: $historySteps, + ); + } + + public function __construct( + public string $id, + public string $workflowId, + public string $name, + public int $version, + public bool $workflowRequest, + public Carbon $startedAt, + public string $docId, + public ?Collection $historySteps = null, + ) { + } +} diff --git a/src/Requests/Documents/Download/DownloadDocument.php b/src/Requests/Documents/Download/DownloadDocument.php index 27b48aa..83fee92 100644 --- a/src/Requests/Documents/Download/DownloadDocument.php +++ b/src/Requests/Documents/Download/DownloadDocument.php @@ -19,7 +19,7 @@ class DownloadDocument extends Request implements Cacheable public function __construct( protected readonly string $fileCabinetId, - protected readonly int $documentId, + protected readonly string $documentId, ) { } @@ -46,7 +46,7 @@ public function defaultQuery(): array ]; } - public function createDtoFromResponse(Response $response): string + public function createDtoFromResponse(Response $response): mixed { return DownloadDocumentResponse::fromResponse($response); } diff --git a/src/Requests/Documents/Download/DownloadSection.php b/src/Requests/Documents/Download/DownloadSection.php new file mode 100644 index 0000000..2afbf38 --- /dev/null +++ b/src/Requests/Documents/Download/DownloadSection.php @@ -0,0 +1,45 @@ +fileCabinetId.'/Sections/'.$this->sectionId.'/Data'; + } + + public function resolveCacheDriver(): LaravelCacheDriver + { + return new LaravelCacheDriver(Cache::store(config('laravel-docuware.configurations.cache.driver'))); + } + + public function cacheExpiryInSeconds(): int + { + return config('laravel-docuware.configurations.cache.lifetime_in_seconds', 3600); + } + + public function createDtoFromResponse(Response $response): mixed + { + return DownloadSectionResponse::fromResponse($response); + } +} diff --git a/src/Requests/Documents/Download/DownloadThumbnail.php b/src/Requests/Documents/Download/DownloadThumbnail.php index fc052ed..213aa94 100644 --- a/src/Requests/Documents/Download/DownloadThumbnail.php +++ b/src/Requests/Documents/Download/DownloadThumbnail.php @@ -19,14 +19,14 @@ class DownloadThumbnail extends Request implements Cacheable public function __construct( protected readonly string $fileCabinetId, - protected readonly string $thumbnailId, + protected readonly string $sectionId, protected readonly int $page = 0, ) { } public function resolveEndpoint(): string { - return '/FileCabinets/'.$this->fileCabinetId.'/Rendering/'.$this->thumbnailId.'/Thumbnail'; + return '/FileCabinets/'.$this->fileCabinetId.'/Rendering/'.$this->sectionId.'/Thumbnail'; } public function resolveCacheDriver(): LaravelCacheDriver diff --git a/src/Requests/Documents/Sections/DeleteSection.php b/src/Requests/Documents/Sections/DeleteSection.php new file mode 100644 index 0000000..e4a4cc2 --- /dev/null +++ b/src/Requests/Documents/Sections/DeleteSection.php @@ -0,0 +1,45 @@ +fileCabinetId.'/Sections/'.$this->sectionId; + } + + public function resolveCacheDriver(): LaravelCacheDriver + { + return new LaravelCacheDriver(Cache::store(config('laravel-docuware.configurations.cache.driver'))); + } + + public function cacheExpiryInSeconds(): int + { + return config('laravel-docuware.configurations.cache.lifetime_in_seconds', 3600); + } + + public function createDtoFromResponse(Response $response): bool + { + return DeleteSectionResponse::fromResponse($response); + } +} diff --git a/src/Requests/Documents/Sections/GetASpecificSection.php b/src/Requests/Documents/Sections/GetASpecificSection.php new file mode 100644 index 0000000..c7ab4b9 --- /dev/null +++ b/src/Requests/Documents/Sections/GetASpecificSection.php @@ -0,0 +1,46 @@ +fileCabinetId.'/Sections/'.$this->sectionId; + } + + public function resolveCacheDriver(): LaravelCacheDriver + { + return new LaravelCacheDriver(Cache::store(config('laravel-docuware.configurations.cache.driver'))); + } + + public function cacheExpiryInSeconds(): int + { + return config('laravel-docuware.configurations.cache.lifetime_in_seconds', 3600); + } + + public function createDtoFromResponse(Response $response): Section + { + return GetASecificSectionResponse::fromResponse($response); + } +} diff --git a/src/Requests/Sections/GetSectionsRequest.php b/src/Requests/Documents/Sections/GetAllSectionsFromADocument.php similarity index 77% rename from src/Requests/Sections/GetSectionsRequest.php rename to src/Requests/Documents/Sections/GetAllSectionsFromADocument.php index 7609933..45b87f2 100644 --- a/src/Requests/Sections/GetSectionsRequest.php +++ b/src/Requests/Documents/Sections/GetAllSectionsFromADocument.php @@ -1,8 +1,8 @@ fileCabinetId.'/Documents/'.$this->documentId.'/WorkflowHistory'; + } + + public function resolveCacheDriver(): LaravelCacheDriver + { + return new LaravelCacheDriver(Cache::store(config('laravel-docuware.configurations.cache.driver'))); + } + + public function cacheExpiryInSeconds(): int + { + return config('laravel-docuware.configurations.cache.lifetime_in_seconds', 3600); + } + + public function createDtoFromResponse(Response $response): Collection + { + return GetDocumentWorkflowHistoryResponse::fromResponse($response); + } +} diff --git a/src/Requests/Workflow/GetDocumentWorkflowHistorySteps.php b/src/Requests/Workflow/GetDocumentWorkflowHistorySteps.php new file mode 100644 index 0000000..d596486 --- /dev/null +++ b/src/Requests/Workflow/GetDocumentWorkflowHistorySteps.php @@ -0,0 +1,46 @@ +workflowId.'/Instances/'.$this->workflowInstanceId.'/History'; + } + + public function resolveCacheDriver(): LaravelCacheDriver + { + return new LaravelCacheDriver(Cache::store(config('laravel-docuware.configurations.cache.driver'))); + } + + public function cacheExpiryInSeconds(): int + { + return config('laravel-docuware.configurations.cache.lifetime_in_seconds', 3600); + } + + public function createDtoFromResponse(Response $response): InstanceHistory + { + return GetDocumentWorkflowHistoryStepsResponse::fromResponse($response); + } +} diff --git a/src/Responses/Documents/Download/DownloadDocumentResponse.php b/src/Responses/Documents/Download/DownloadDocumentResponse.php index 7b2cdc2..a29dd49 100644 --- a/src/Responses/Documents/Download/DownloadDocumentResponse.php +++ b/src/Responses/Documents/Download/DownloadDocumentResponse.php @@ -8,7 +8,7 @@ final class DownloadDocumentResponse { - public static function fromResponse(Response $response): string + public static function fromResponse(Response $response): mixed { event(new DocuWareResponseLog($response)); diff --git a/src/Responses/Documents/Download/DownloadSectionResponse.php b/src/Responses/Documents/Download/DownloadSectionResponse.php new file mode 100644 index 0000000..e03d600 --- /dev/null +++ b/src/Responses/Documents/Download/DownloadSectionResponse.php @@ -0,0 +1,19 @@ +throw()->body(); + } +} diff --git a/src/Responses/Documents/Sections/DeleteSectionResponse.php b/src/Responses/Documents/Sections/DeleteSectionResponse.php new file mode 100644 index 0000000..0a8efd7 --- /dev/null +++ b/src/Responses/Documents/Sections/DeleteSectionResponse.php @@ -0,0 +1,16 @@ +status() === 200; + } +} diff --git a/src/Responses/Documents/Sections/GetASecificSectionResponse.php b/src/Responses/Documents/Sections/GetASecificSectionResponse.php new file mode 100644 index 0000000..b8ea336 --- /dev/null +++ b/src/Responses/Documents/Sections/GetASecificSectionResponse.php @@ -0,0 +1,20 @@ +throw()->json()); + } +} diff --git a/src/Responses/Sections/GetSectionsResponse.php b/src/Responses/Documents/Sections/GetAllSectionsFromADocumentResponse.php similarity index 59% rename from src/Responses/Sections/GetSectionsResponse.php rename to src/Responses/Documents/Sections/GetAllSectionsFromADocumentResponse.php index 192f113..8388ffb 100644 --- a/src/Responses/Sections/GetSectionsResponse.php +++ b/src/Responses/Documents/Sections/GetAllSectionsFromADocumentResponse.php @@ -1,6 +1,6 @@ throw()->json(); - - $sections = collect(); - - foreach ($res['Section'] as $section) { - $sections->push(Section::fromJson($section)); - } - - return $sections; + return collect($response->throw()->json('Section'))->map(fn ($section) => Section::fromJson($section)); } } diff --git a/src/Responses/Workflow/GetDocumentWorkflowHistoryResponse.php b/src/Responses/Workflow/GetDocumentWorkflowHistoryResponse.php new file mode 100644 index 0000000..0396d9b --- /dev/null +++ b/src/Responses/Workflow/GetDocumentWorkflowHistoryResponse.php @@ -0,0 +1,23 @@ +throw()->json('InstanceHistory'); + + return collect($instanceHistories)->map(fn (array $instanceHistory) => InstanceHistory::fromJson($instanceHistory)); + } +} diff --git a/src/Responses/Workflow/GetDocumentWorkflowHistoryStepsResponse.php b/src/Responses/Workflow/GetDocumentWorkflowHistoryStepsResponse.php new file mode 100644 index 0000000..0fbd954 --- /dev/null +++ b/src/Responses/Workflow/GetDocumentWorkflowHistoryStepsResponse.php @@ -0,0 +1,20 @@ +throw()->json()); + } +} diff --git a/tests/Feature/Requests/Documents/GetDocumentDownloadRequestTest.php b/tests/Feature/Requests/Documents/Download/DownloadDocumentTest.php similarity index 97% rename from tests/Feature/Requests/Documents/GetDocumentDownloadRequestTest.php rename to tests/Feature/Requests/Documents/Download/DownloadDocumentTest.php index d901fdc..ab915f4 100644 --- a/tests/Feature/Requests/Documents/GetDocumentDownloadRequestTest.php +++ b/tests/Feature/Requests/Documents/Download/DownloadDocumentTest.php @@ -24,4 +24,4 @@ $this->assertSame(strlen('::fake-file-content::'), strlen($contents)); Event::assertDispatched(DocuWareResponseLog::class); -}); +})->group('download'); diff --git a/tests/Feature/Requests/Documents/Download/DownloadSectionTest.php b/tests/Feature/Requests/Documents/Download/DownloadSectionTest.php new file mode 100644 index 0000000..29a73f1 --- /dev/null +++ b/tests/Feature/Requests/Documents/Download/DownloadSectionTest.php @@ -0,0 +1,33 @@ +connector->send(new CreateDataRecord( + $fileCabinetId, + '::fake-file-content::', + 'example.txt' + ))->dto(); + + $sections = $this->connector->send(new GetAllSectionsFromADocument( + $fileCabinetId, + $document->id + ))->dto(); + + $contents = $this->connector->send(new DownloadSection( + $fileCabinetId, + $sections->first()->id + ))->dto(); + + $this->assertSame(strlen('::fake-file-content::'), strlen($contents)); + Event::assertDispatched(DocuWareResponseLog::class); + +})->group('download'); diff --git a/tests/Feature/Requests/Documents/Download/DownloadThumbnailTest.php b/tests/Feature/Requests/Documents/Download/DownloadThumbnailTest.php new file mode 100644 index 0000000..e9c117b --- /dev/null +++ b/tests/Feature/Requests/Documents/Download/DownloadThumbnailTest.php @@ -0,0 +1,34 @@ +connector->send(new CreateDataRecord( + $fileCabinetId, + '::fake-file-content::', + 'example.txt' + ))->dto(); + + $sections = $this->connector->send(new GetAllSectionsFromADocument( + $fileCabinetId, + $document->id + ))->dto(); + + $contents = $this->connector->send(new DownloadThumbnail( + $fileCabinetId, + $sections->first()->id + ))->dto(); + + expect($contents)->toBeInstanceOf(DocumentThumbnail::class); + Event::assertDispatched(DocuWareResponseLog::class); + +})->group('download'); diff --git a/tests/Feature/Requests/Documents/Sections/DeleteSectionTest.php b/tests/Feature/Requests/Documents/Sections/DeleteSectionTest.php new file mode 100644 index 0000000..9c56884 --- /dev/null +++ b/tests/Feature/Requests/Documents/Sections/DeleteSectionTest.php @@ -0,0 +1,35 @@ +connector->send(new CreateDataRecord( + $fileCabinetId, + '::fake-file-content::', + 'example.txt' + ))->dto(); + + $sections = $this->connector->send(new GetAllSectionsFromADocument( + $fileCabinetId, + $document->id + ))->dto(); + + $deleted = $this->connector->send(new DeleteSection( + $fileCabinetId, + $sections->first()->id + ))->dto(); + + expect($deleted)->toBeTrue(); + + Event::assertDispatched(DocuWareResponseLog::class); + +})->group('requests', 'sections'); diff --git a/tests/Feature/Requests/Documents/Sections/GetASpecificSectionTest.php b/tests/Feature/Requests/Documents/Sections/GetASpecificSectionTest.php new file mode 100644 index 0000000..7da557a --- /dev/null +++ b/tests/Feature/Requests/Documents/Sections/GetASpecificSectionTest.php @@ -0,0 +1,35 @@ +connector->send(new CreateDataRecord( + $fileCabinetId, + '::fake-file-content::', + 'example.txt' + ))->dto(); + + $sections = $this->connector->send(new GetAllSectionsFromADocument( + $fileCabinetId, + $document->id + ))->dto(); + + $section = $this->connector->send(new GetASpecificSection( + $fileCabinetId, + $sections->first()->id + ))->dto(); + + expect($section->id)->toBe($sections->first()->id); + + Event::assertDispatched(DocuWareResponseLog::class); + +})->group('requests', 'sections'); diff --git a/tests/Feature/Requests/Documents/Sections/GetAllSectionsFromADocumentTest.php b/tests/Feature/Requests/Documents/Sections/GetAllSectionsFromADocumentTest.php new file mode 100644 index 0000000..70a78c8 --- /dev/null +++ b/tests/Feature/Requests/Documents/Sections/GetAllSectionsFromADocumentTest.php @@ -0,0 +1,33 @@ +connector->send(new CreateDataRecord( + $fileCabinetId, + '::fake-file-content::', + 'example.txt' + ))->dto(); + + $sections = $this->connector->send(new GetAllSectionsFromADocument( + $fileCabinetId, + $document->id + ))->dto(); + + expect($sections)->toBeInstanceOf(Collection::class) + ->and($sections->count())->toBeGreaterThan(0) + ->and($sections->first())->toBeInstanceOf(Section::class); + + Event::assertDispatched(DocuWareResponseLog::class); + +})->group('requests', 'sections'); diff --git a/tests/Feature/Requests/Documents/Thumbnail/GetDocumentDownloadThumbnailRequestTest.php b/tests/Feature/Requests/Documents/Thumbnail/GetDocumentDownloadThumbnailRequestTest.php index 29c8757..9297ae4 100644 --- a/tests/Feature/Requests/Documents/Thumbnail/GetDocumentDownloadThumbnailRequestTest.php +++ b/tests/Feature/Requests/Documents/Thumbnail/GetDocumentDownloadThumbnailRequestTest.php @@ -3,8 +3,8 @@ use CodebarAg\DocuWare\DTO\Documents\DocumentThumbnail; use CodebarAg\DocuWare\Events\DocuWareResponseLog; use CodebarAg\DocuWare\Requests\Documents\Download\DownloadThumbnail; +use CodebarAg\DocuWare\Requests\Documents\Sections\GetAllSectionsFromADocument; use CodebarAg\DocuWare\Requests\FileCabinets\Upload\CreateDataRecord; -use CodebarAg\DocuWare\Requests\Sections\GetSectionsRequest; use Illuminate\Support\Facades\Event; it('can download a document thumbnail', function () { @@ -18,7 +18,7 @@ 'example.txt' ))->dto(); - $sections = $this->connector->send(new GetSectionsRequest( + $sections = $this->connector->send(new GetAllSectionsFromADocument( $fileCabinetId, $document->id, ))->dto(); diff --git a/tests/Feature/Requests/Workflow/GetDocumentWorkflowHistoryStepsTest.php b/tests/Feature/Requests/Workflow/GetDocumentWorkflowHistoryStepsTest.php new file mode 100644 index 0000000..79c17e8 --- /dev/null +++ b/tests/Feature/Requests/Workflow/GetDocumentWorkflowHistoryStepsTest.php @@ -0,0 +1,45 @@ +connector->send(new CreateDataRecord( + config('laravel-docuware.tests.file_cabinet_id'), + '::fake-file-content::', + 'example.txt' + ))->dto(); + + Sleep::for(5)->seconds(); + + $history = $this->connector->send(new GetDocumentWorkflowHistory( + config('laravel-docuware.tests.file_cabinet_id'), + $document->id + ))->dto(); + + $historySteps = $this->connector->send(new GetDocumentWorkflowHistorySteps( + $history->first()->workflowId, + $history->first()->id, + ))->dto(); + + expect($historySteps)->toHaveKeys([ + 'id', + 'workflowId', + 'name', + 'version', + 'workflowRequest', + 'startedAt', + 'docId', + 'historySteps', + ]) + ->and($historySteps->historySteps)->toBeInstanceOf(Collection::class); + + Event::assertDispatched(DocuWareResponseLog::class); +})->group('workflow'); diff --git a/tests/Feature/Requests/Workflow/GetDocumentWorkflowHistoryTest.php b/tests/Feature/Requests/Workflow/GetDocumentWorkflowHistoryTest.php new file mode 100644 index 0000000..7a0074c --- /dev/null +++ b/tests/Feature/Requests/Workflow/GetDocumentWorkflowHistoryTest.php @@ -0,0 +1,38 @@ +connector->send(new CreateDataRecord( + config('laravel-docuware.tests.file_cabinet_id'), + '::fake-file-content::', + 'example.txt' + ))->dto(); + + Sleep::for(5)->seconds(); + + $history = $this->connector->send(new GetDocumentWorkflowHistory( + config('laravel-docuware.tests.file_cabinet_id'), + $document->id + ))->dto(); + + expect($history)->toBeInstanceOf(Collection::class) + ->and($history->first())->toHaveKeys([ + 'id', + 'workflowId', + 'name', + 'version', + 'workflowRequest', + 'startedAt', + 'docId', + ]); + + Event::assertDispatched(DocuWareResponseLog::class); +})->group('workflow'); From 370375244d66638bd82ac8ef7ddd68855a5538f4 Mon Sep 17 00:00:00 2001 From: Rhys Lees <43909932+RhysLees@users.noreply.github.com> Date: Sat, 1 Jun 2024 01:01:43 +0100 Subject: [PATCH 43/54] WIP --- README.md | 2 +- .../GetApplicationProperties.php | 45 +++++++++++++++++++ .../GetApplicationPropertiesResponse.php | 19 ++++++++ .../GetApplicationPropertiesTest.php | 26 +++++++++++ 4 files changed, 91 insertions(+), 1 deletion(-) create mode 100644 src/Requests/Documents/ApplicationProperties/GetApplicationProperties.php create mode 100644 src/Responses/Documents/ApplicationProperties/GetApplicationPropertiesResponse.php create mode 100644 tests/Feature/Requests/Documents/ApplicationProperties/GetApplicationPropertiesTest.php diff --git a/README.md b/README.md index 9c675b8..6a28f06 100644 --- a/README.md +++ b/README.md @@ -132,7 +132,7 @@ then optimize the processes that power the core of your business. | Documents/DocumentsTrashBin | Get Documents | ✅ | | | Documents/DocumentsTrashBin | Delete Documents | ✅ | | | Documents/DocumentsTrashBin | Restore Documents | ✅ | | -| Documents/ApplicationProperties | Get Application Properties | ❌ | - | +| Documents/ApplicationProperties | Get Application Properties | ❓ | - | | Documents/ApplicationProperties | Add Application Properties | ❌ | - | | Documents/ApplicationProperties | Delete Application Properties | ❌ | - | | Documents/ApplicationProperties | Update Application Properties | ❌ | - | diff --git a/src/Requests/Documents/ApplicationProperties/GetApplicationProperties.php b/src/Requests/Documents/ApplicationProperties/GetApplicationProperties.php new file mode 100644 index 0000000..1acfa06 --- /dev/null +++ b/src/Requests/Documents/ApplicationProperties/GetApplicationProperties.php @@ -0,0 +1,45 @@ +fileCabinetId.'/Documents/'.$this->documentId.'/DocumentApplicationProperties'; + } + + public function resolveCacheDriver(): LaravelCacheDriver + { + return new LaravelCacheDriver(Cache::store(config('laravel-docuware.configurations.cache.driver'))); + } + + public function cacheExpiryInSeconds(): int + { + return config('laravel-docuware.configurations.cache.lifetime_in_seconds', 3600); + } + + public function createDtoFromResponse(Response $response): mixed + { + return GetApplicationPropertiesResponse::fromResponse($response); + } +} diff --git a/src/Responses/Documents/ApplicationProperties/GetApplicationPropertiesResponse.php b/src/Responses/Documents/ApplicationProperties/GetApplicationPropertiesResponse.php new file mode 100644 index 0000000..de30c79 --- /dev/null +++ b/src/Responses/Documents/ApplicationProperties/GetApplicationPropertiesResponse.php @@ -0,0 +1,19 @@ +throw()->json(); + } +} diff --git a/tests/Feature/Requests/Documents/ApplicationProperties/GetApplicationPropertiesTest.php b/tests/Feature/Requests/Documents/ApplicationProperties/GetApplicationPropertiesTest.php new file mode 100644 index 0000000..0192d88 --- /dev/null +++ b/tests/Feature/Requests/Documents/ApplicationProperties/GetApplicationPropertiesTest.php @@ -0,0 +1,26 @@ +connector->send(new CreateDataRecord( + $fileCabinetId, + '::fake-file-content::', + 'example.txt' + ))->dto(); + + $properties = $this->connector->send(new GetApplicationProperties( + $fileCabinetId, + $document->id, + ))->dto(); + + Event::assertDispatched(DocuWareResponseLog::class); + +}); From 413ecd6bc6062a1b28c4907fd54ef3bbb761bc47 Mon Sep 17 00:00:00 2001 From: Rhys Lees <43909932+RhysLees@users.noreply.github.com> Date: Wed, 5 Jun 2024 18:16:09 +0200 Subject: [PATCH 44/54] WIP --- README.md | 8 +- .../AddApplicationProperties.php | 56 ++++++++++++ .../DeleteApplicationProperties.php | 63 ++++++++++++++ .../UpdateApplicationProperties.php | 56 ++++++++++++ .../GetApplicationPropertiesResponse.php | 2 +- .../ApplicationPropertiesTest.php | 87 +++++++++++++++++++ .../GetApplicationPropertiesTest.php | 26 ------ 7 files changed, 267 insertions(+), 31 deletions(-) create mode 100644 src/Requests/Documents/ApplicationProperties/AddApplicationProperties.php create mode 100644 src/Requests/Documents/ApplicationProperties/DeleteApplicationProperties.php create mode 100644 src/Requests/Documents/ApplicationProperties/UpdateApplicationProperties.php create mode 100644 tests/Feature/Requests/Documents/ApplicationProperties/ApplicationPropertiesTest.php delete mode 100644 tests/Feature/Requests/Documents/ApplicationProperties/GetApplicationPropertiesTest.php diff --git a/README.md b/README.md index 6a28f06..492e811 100644 --- a/README.md +++ b/README.md @@ -132,10 +132,10 @@ then optimize the processes that power the core of your business. | Documents/DocumentsTrashBin | Get Documents | ✅ | | | Documents/DocumentsTrashBin | Delete Documents | ✅ | | | Documents/DocumentsTrashBin | Restore Documents | ✅ | | -| Documents/ApplicationProperties | Get Application Properties | ❓ | - | -| Documents/ApplicationProperties | Add Application Properties | ❌ | - | -| Documents/ApplicationProperties | Delete Application Properties | ❌ | - | -| Documents/ApplicationProperties | Update Application Properties | ❌ | - | +| Documents/ApplicationProperties | Get Application Properties | ✅ | - | +| Documents/ApplicationProperties | Add Application Properties | ✅ | - | +| Documents/ApplicationProperties | Delete Application Properties | ✅ | - | +| Documents/ApplicationProperties | Update Application Properties | ✅ | - | | Documents/Sections | Get All Sections from a Document | ✅ | - | | Documents/Sections | Get a Specific Section | ✅ | - | | Documents/Sections | Delete Section | ✅ | - | diff --git a/src/Requests/Documents/ApplicationProperties/AddApplicationProperties.php b/src/Requests/Documents/ApplicationProperties/AddApplicationProperties.php new file mode 100644 index 0000000..2d05564 --- /dev/null +++ b/src/Requests/Documents/ApplicationProperties/AddApplicationProperties.php @@ -0,0 +1,56 @@ +fileCabinetId.'/Documents/'.$this->documentId.'/DocumentApplicationProperties'; + } + + public function defaultBody() + { + return [ + 'DocumentApplicationProperty' => $this->properties, + ]; + } + + public function resolveCacheDriver(): LaravelCacheDriver + { + return new LaravelCacheDriver(Cache::store(config('laravel-docuware.configurations.cache.driver'))); + } + + public function cacheExpiryInSeconds(): int + { + return config('laravel-docuware.configurations.cache.lifetime_in_seconds', 3600); + } + + public function createDtoFromResponse(Response $response): mixed + { + return GetApplicationPropertiesResponse::fromResponse($response); + } +} diff --git a/src/Requests/Documents/ApplicationProperties/DeleteApplicationProperties.php b/src/Requests/Documents/ApplicationProperties/DeleteApplicationProperties.php new file mode 100644 index 0000000..8225369 --- /dev/null +++ b/src/Requests/Documents/ApplicationProperties/DeleteApplicationProperties.php @@ -0,0 +1,63 @@ +fileCabinetId.'/Documents/'.$this->documentId.'/DocumentApplicationProperties'; + } + + public function defaultBody() + { + $props = collect($this->propertyNames)->map(function ($name) { + return [ + 'Name' => $name, + 'Value' => null, + ]; + }); + + return [ + 'DocumentApplicationProperty' => $props, + ]; + } + + public function resolveCacheDriver(): LaravelCacheDriver + { + return new LaravelCacheDriver(Cache::store(config('laravel-docuware.configurations.cache.driver'))); + } + + public function cacheExpiryInSeconds(): int + { + return config('laravel-docuware.configurations.cache.lifetime_in_seconds', 3600); + } + + public function createDtoFromResponse(Response $response): mixed + { + return GetApplicationPropertiesResponse::fromResponse($response); + } +} diff --git a/src/Requests/Documents/ApplicationProperties/UpdateApplicationProperties.php b/src/Requests/Documents/ApplicationProperties/UpdateApplicationProperties.php new file mode 100644 index 0000000..fc33e59 --- /dev/null +++ b/src/Requests/Documents/ApplicationProperties/UpdateApplicationProperties.php @@ -0,0 +1,56 @@ +fileCabinetId.'/Documents/'.$this->documentId.'/DocumentApplicationProperties'; + } + + public function defaultBody() + { + return [ + 'DocumentApplicationProperty' => $this->properties, + ]; + } + + public function resolveCacheDriver(): LaravelCacheDriver + { + return new LaravelCacheDriver(Cache::store(config('laravel-docuware.configurations.cache.driver'))); + } + + public function cacheExpiryInSeconds(): int + { + return config('laravel-docuware.configurations.cache.lifetime_in_seconds', 3600); + } + + public function createDtoFromResponse(Response $response): mixed + { + return GetApplicationPropertiesResponse::fromResponse($response); + } +} diff --git a/src/Responses/Documents/ApplicationProperties/GetApplicationPropertiesResponse.php b/src/Responses/Documents/ApplicationProperties/GetApplicationPropertiesResponse.php index de30c79..35d9184 100644 --- a/src/Responses/Documents/ApplicationProperties/GetApplicationPropertiesResponse.php +++ b/src/Responses/Documents/ApplicationProperties/GetApplicationPropertiesResponse.php @@ -14,6 +14,6 @@ public static function fromResponse(Response $response): mixed EnsureValidResponse::from($response); - return $response->throw()->json(); + return collect($response->throw()->json('DocumentApplicationProperty')); } } diff --git a/tests/Feature/Requests/Documents/ApplicationProperties/ApplicationPropertiesTest.php b/tests/Feature/Requests/Documents/ApplicationProperties/ApplicationPropertiesTest.php new file mode 100644 index 0000000..3bfc5cd --- /dev/null +++ b/tests/Feature/Requests/Documents/ApplicationProperties/ApplicationPropertiesTest.php @@ -0,0 +1,87 @@ +connector->send(new CreateDataRecord( + $fileCabinetId, + '::fake-file-content::', + 'example.txt' + ))->dto(); + + $addProperties = $this->connector->send(new AddApplicationProperties( + $fileCabinetId, + $document->id, + [ + [ + 'Name' => 'Key1', + 'Value' => 'Key1 Value', + ], + [ + 'Name' => 'Key2', + 'Value' => 'Key2 Value', + ], + ], + ))->dto(); + + expect($addProperties)->toBeInstanceOf(Collection::class) + ->and($addProperties->count())->toBe(2) + ->and($addProperties->first()['Name'])->toBe('Key1') + ->and($addProperties->first()['Value'])->toBe('Key1 Value') + ->and($addProperties->last()['Name'])->toBe('Key2') + ->and($addProperties->last()['Value'])->toBe('Key2 Value'); + + $updateProperties = $this->connector->send(new UpdateApplicationProperties( + $fileCabinetId, + $document->id, + [ + [ + 'Name' => 'Key1', + 'Value' => 'Key1 Value Updated', + ], + ], + ))->dto()->sortBy('Name'); + + expect($updateProperties)->toBeInstanceOf(Collection::class) + ->and($updateProperties->count())->toBe(2) + ->and($updateProperties->first()['Name'])->toBe('Key1') + ->and($updateProperties->first()['Value'])->toBe('Key1 Value Updated') + ->and($updateProperties->last()['Name'])->toBe('Key2') + ->and($updateProperties->last()['Value'])->toBe('Key2 Value'); + + $deleteProperties = $this->connector->send(new DeleteApplicationProperties( + $fileCabinetId, + $document->id, + [ + 'Key1', + ], + ))->dto(); + + expect($deleteProperties)->toBeInstanceOf(Collection::class) + ->and($deleteProperties->count())->toBe(1) + ->and($deleteProperties->first()['Name'])->toBe('Key2') + ->and($deleteProperties->first()['Value'])->toBe('Key2 Value'); + + $properties = $this->connector->send(new GetApplicationProperties( + $fileCabinetId, + $document->id, + ))->dto(); + + expect($properties)->toBeInstanceOf(Collection::class) + ->and($properties->count())->toBe(1) + ->and($properties->first()['Name'])->toBe('Key2') + ->and($properties->first()['Value'])->toBe('Key2 Value'); + + Event::assertDispatched(DocuWareResponseLog::class); +})->only(); diff --git a/tests/Feature/Requests/Documents/ApplicationProperties/GetApplicationPropertiesTest.php b/tests/Feature/Requests/Documents/ApplicationProperties/GetApplicationPropertiesTest.php deleted file mode 100644 index 0192d88..0000000 --- a/tests/Feature/Requests/Documents/ApplicationProperties/GetApplicationPropertiesTest.php +++ /dev/null @@ -1,26 +0,0 @@ -connector->send(new CreateDataRecord( - $fileCabinetId, - '::fake-file-content::', - 'example.txt' - ))->dto(); - - $properties = $this->connector->send(new GetApplicationProperties( - $fileCabinetId, - $document->id, - ))->dto(); - - Event::assertDispatched(DocuWareResponseLog::class); - -}); From b8cdad0ce441973b28486bdc2d7cb699abc59d6c Mon Sep 17 00:00:00 2001 From: Rhys Lees <43909932+RhysLees@users.noreply.github.com> Date: Sat, 29 Jun 2024 04:10:07 +0100 Subject: [PATCH 45/54] WIP --- README.md | 160 +++++++++--------- .../AnnotationsStamps/Annotation.php | 31 ++++ .../AnnotationsStamps/AnnotationItem.php | 118 +++++++++++++ .../AnnotationItemCreated.php | 30 ++++ .../AnnotationsStamps/AnnotationItemField.php | 36 ++++ .../AnnotationItemFieldTypedValue.php | 30 ++++ .../AnnotationsStamps/AnnotationItemFont.php | 45 +++++ .../AnnotationsStamps/AnnotationItemLayer.php | 31 ++++ .../AnnotationItemLayerItem.php | 104 ++++++++++++ .../AnnotationItemLocation.php | 39 +++++ .../AnnotationsStamps/AnnotationPlacement.php | 29 ++++ .../AnnotationsStamps/Annotations.php | 47 +++++ .../AddLineEntryAnnotation.php | 7 + .../AddRectEntryAnnotation.php | 7 + .../AddStampWithBestPosition.php | 7 + .../AddStampWithPosition.php | 48 ++++++ .../AnnotationsStamps/AddTextAnnotation.php | 7 + .../UpdateTextAnnotation.php | 7 + .../AddStampWithPositionResponse.php | 24 +++ .../AddLineEntryAnnotationTest.php | 69 ++++++++ .../AddRectEntryAnnotationTest.php | 68 ++++++++ .../AddStampWithBestPositionTest.php | 58 +++++++ .../AddStampWithPositionTest.php | 63 +++++++ .../AddTextAnnotationTest.php | 77 +++++++++ .../UpdateTextAnnotationTest.php | 78 +++++++++ .../ApplicationPropertiesTest.php | 2 +- 26 files changed, 1141 insertions(+), 81 deletions(-) create mode 100644 src/DTO/Documents/AnnotationsStamps/Annotation.php create mode 100644 src/DTO/Documents/AnnotationsStamps/AnnotationItem.php create mode 100644 src/DTO/Documents/AnnotationsStamps/AnnotationItemCreated.php create mode 100644 src/DTO/Documents/AnnotationsStamps/AnnotationItemField.php create mode 100644 src/DTO/Documents/AnnotationsStamps/AnnotationItemFieldTypedValue.php create mode 100644 src/DTO/Documents/AnnotationsStamps/AnnotationItemFont.php create mode 100644 src/DTO/Documents/AnnotationsStamps/AnnotationItemLayer.php create mode 100644 src/DTO/Documents/AnnotationsStamps/AnnotationItemLayerItem.php create mode 100644 src/DTO/Documents/AnnotationsStamps/AnnotationItemLocation.php create mode 100644 src/DTO/Documents/AnnotationsStamps/AnnotationPlacement.php create mode 100644 src/DTO/Documents/AnnotationsStamps/Annotations.php create mode 100644 src/Requests/Documents/AnnotationsStamps/AddLineEntryAnnotation.php create mode 100644 src/Requests/Documents/AnnotationsStamps/AddRectEntryAnnotation.php create mode 100644 src/Requests/Documents/AnnotationsStamps/AddStampWithBestPosition.php create mode 100644 src/Requests/Documents/AnnotationsStamps/AddStampWithPosition.php create mode 100644 src/Requests/Documents/AnnotationsStamps/AddTextAnnotation.php create mode 100644 src/Requests/Documents/AnnotationsStamps/UpdateTextAnnotation.php create mode 100644 src/Responses/Documents/AnnotationsStamps/AddStampWithPositionResponse.php create mode 100644 tests/Feature/Requests/Documents/AnnotationsStaps/AddLineEntryAnnotationTest.php create mode 100644 tests/Feature/Requests/Documents/AnnotationsStaps/AddRectEntryAnnotationTest.php create mode 100644 tests/Feature/Requests/Documents/AnnotationsStaps/AddStampWithBestPositionTest.php create mode 100644 tests/Feature/Requests/Documents/AnnotationsStaps/AddStampWithPositionTest.php create mode 100644 tests/Feature/Requests/Documents/AnnotationsStaps/AddTextAnnotationTest.php create mode 100644 tests/Feature/Requests/Documents/AnnotationsStaps/UpdateTextAnnotationTest.php diff --git a/README.md b/README.md index 492e811..28d501e 100644 --- a/README.md +++ b/README.md @@ -64,86 +64,86 @@ then optimize the processes that power the core of your business.
Current Support -| Group | Request | Supported | TODO | -|-------------------------------------|-------------------------------------------------------------|-----------|------| -| Authentication/OAuth | 1. Get Responsible Identity Service | ✅ | | -| Authentication/OAuth | 2. Get Identity Service Configuration | ✅ | | -| Authentication/OAuth | 3.a Request Token w/ Username & Password | ✅ | | -| Authentication/OAuth | 3.b Request Token w/ a DocuWare Token | 🕣 | | -| Authentication/OAuth | 3.c Request Token w/ Username & Password (Trusted User) | 🕣 | | -| Authentication/OAuth | 3.d.1 Obtain Windows Authorization (On Premises Only) | 🕣 | | -| Authentication/OAuth | 3.d.2 Request Token /w a Windows Account (On Premises Only) | 🕣 | | -| General/Organisation | Get Login Token | ✅ | | -| General/Organisation | Get Organization | ✅ | | -| General/Organisation | Get All File Cabinets and Document Trays | ✅ | | -| General/UserManagement | Get Users by ID | ✅ | | -| General/UserManagement | Get Users of a Role | ✅ | | -| General/UserManagement | Get Users of a Group | ✅ | | -| General/UserManagement | Create User | ✅ | | -| General/UserManagement | Update User | ✅ | | -| General/UserManagement | Get Groups | ✅ | | -| General/UserManagement | Get All Groups for a Specific User | ✅ | | -| General/UserManagement | Add User to a Group | ✅ | | -| General/UserManagement | Remove User from a Group | ✅ | | -| General/UserManagement | Get Roles | ✅ | | -| General/UserManagement | Get All Roles for a Specific User | ✅ | | -| General/UserManagement | Add User to a Role | ✅ | | -| General/UserManagement | Remove User from a Role | ✅ | | -| FileCabinets/General | Get File Cabinet Information | ✅ | | -| FileCabinets/General | Get Total Number of Documents | ✅ | | -| FileCabinets/Dialogs | Get All Dialogs | ✅ | | -| FileCabinets/Dialogs | Get a Specific Dialog | ✅ | | -| FileCabinets/Dialogs | Get Dialogs of a Specific Type | ✅ | | -| FileCabinets/Search | Get Documents from a File Cabinet | ✅ | | -| FileCabinets/Search | Get a Specific Document From a File Cabinet | ✅ | | -| FileCabinets/Search | Search for Documents in a Single File Cabinet | ✅ | | -| FileCabinets/Search | Search for Documents in Multiple File Cabinets | ✅ | | -| FileCabinets/CheckInCheckOut | Check-out & Download a Document | 🕣 | | -| FileCabinets/CheckInCheckOut | Check-in a Document from the File System | 🕣 | | -| FileCabinets/CheckInCheckOut | Undo Check-out | 🕣 | | -| FileCabinets/SelectLists | Get Select Lists & Get Filtered Select Lists | ✅ | | -| FileCabinets/Upload | Create Data Record | ✅ | | -| FileCabinets/Upload | Append File(s) to a Data Record | ❌ | - | -| FileCabinets/Upload | Upload a Single File for a Data Record | ❌ | - | -| FileCabinets/Upload | Create a Data Record & Upload File | ❌ | - | -| FileCabinets/Upload | Create Data Record & Upload File Using Store Dialog | ❌ | - | -| FileCabinets/Upload | Append a Single PDF to a Document | ❌ | - | -| FileCabinets/Upload | Replace a PDF Document Section | ❌ | - | -| FileCabinets/BatchIndexFieldsUpdate | Batch Update Index Fields By Id | ❌ | - | -| FileCabinets/BatchIndexFieldsUpdate | Batch Update Index Fields By Search | ❌ | - | -| FileCabinets/BatchIndexFieldsUpdate | Batch Append/Update Keyword Fields By Id | ❌ | - | -| Documents/UpdateIndexValues | Update Index Values | ✅ | | -| Documents/UpdateIndexValues | Update Table Field Values | ❌ | - ? | -| Documents/ModifyDocuments | Transfer Document | ✅ | - | -| Documents/ModifyDocuments | Delete Document | ✅ | | -| Documents/ClipUnclip&StapleUnstaple | Clip | ✅ | | -| Documents/ClipUnclip&StapleUnstaple | Unclip | ✅ | | -| Documents/ClipUnclip&StapleUnstaple | Staple | ✅ | | -| Documents/ClipUnclip&StapleUnstaple | Unstaple | ✅ | | -| Documents/AnnotationsStamps | AddStampWithPosition | ❌ | - | -| Documents/AnnotationsStamps | AddStampWithBestPosition | ❌ | - | -| Documents/AnnotationsStamps | AddTextAnnotation | ❌ | - | -| Documents/AnnotationsStamps | AddRectEntryAnnotation | ❌ | - | -| Documents/AnnotationsStamps | AddLineEntryAnnotation | ❌ | - | -| Documents/AnnotationsStamps | AddPolyLineEntryAnnotation | ❌ | - | -| Documents/AnnotationsStamps | DeleteAnnotation | ❌ | - | -| Documents/AnnotationsStamps | UpdateTextAnnotation | ❌ | - | -| Documents/AnnotationsStamps | Get Stamps | ❌ | - | -| Documents/DocumentsTrashBin | Get Documents | ✅ | | -| Documents/DocumentsTrashBin | Delete Documents | ✅ | | -| Documents/DocumentsTrashBin | Restore Documents | ✅ | | -| Documents/ApplicationProperties | Get Application Properties | ✅ | - | -| Documents/ApplicationProperties | Add Application Properties | ✅ | - | -| Documents/ApplicationProperties | Delete Application Properties | ✅ | - | -| Documents/ApplicationProperties | Update Application Properties | ✅ | - | -| Documents/Sections | Get All Sections from a Document | ✅ | - | -| Documents/Sections | Get a Specific Section | ✅ | - | -| Documents/Sections | Delete Section | ✅ | - | -| Documents/Download | Download Document | ✅ | | -| Documents/Download | Download Section | ✅ | - | -| Documents/Download | Download Thumbnail | ✅ | | -| Workflow | Get Document Workflow History | ✅ | - | -| Workflow | Get Document Workflow History Steps | ✅ | - | +| Group | Request | Supported | TODO | +|-------------------------------------|-------------------------------------------------------------|-----------|----------------| +| Authentication/OAuth | 1. Get Responsible Identity Service | ✅ | | +| Authentication/OAuth | 2. Get Identity Service Configuration | ✅ | | +| Authentication/OAuth | 3.a Request Token w/ Username & Password | ✅ | | +| Authentication/OAuth | 3.b Request Token w/ a DocuWare Token | 🕣 | | +| Authentication/OAuth | 3.c Request Token w/ Username & Password (Trusted User) | 🕣 | | +| Authentication/OAuth | 3.d.1 Obtain Windows Authorization (On Premises Only) | 🕣 | | +| Authentication/OAuth | 3.d.2 Request Token /w a Windows Account (On Premises Only) | 🕣 | | +| General/Organisation | Get Login Token | ✅ | | +| General/Organisation | Get Organization | ✅ | | +| General/Organisation | Get All File Cabinets and Document Trays | ✅ | | +| General/UserManagement | Get Users by ID | ✅ | | +| General/UserManagement | Get Users of a Role | ✅ | | +| General/UserManagement | Get Users of a Group | ✅ | | +| General/UserManagement | Create User | ✅ | | +| General/UserManagement | Update User | ✅ | | +| General/UserManagement | Get Groups | ✅ | | +| General/UserManagement | Get All Groups for a Specific User | ✅ | | +| General/UserManagement | Add User to a Group | ✅ | | +| General/UserManagement | Remove User from a Group | ✅ | | +| General/UserManagement | Get Roles | ✅ | | +| General/UserManagement | Get All Roles for a Specific User | ✅ | | +| General/UserManagement | Add User to a Role | ✅ | | +| General/UserManagement | Remove User from a Role | ✅ | | +| FileCabinets/General | Get File Cabinet Information | ✅ | | +| FileCabinets/General | Get Total Number of Documents | ✅ | | +| FileCabinets/Dialogs | Get All Dialogs | ✅ | | +| FileCabinets/Dialogs | Get a Specific Dialog | ✅ | | +| FileCabinets/Dialogs | Get Dialogs of a Specific Type | ✅ | | +| FileCabinets/Search | Get Documents from a File Cabinet | ✅ | | +| FileCabinets/Search | Get a Specific Document From a File Cabinet | ✅ | | +| FileCabinets/Search | Search for Documents in a Single File Cabinet | ✅ | | +| FileCabinets/Search | Search for Documents in Multiple File Cabinets | ✅ | | +| FileCabinets/CheckInCheckOut | Check-out & Download a Document | 🕣 | | +| FileCabinets/CheckInCheckOut | Check-in a Document from the File System | 🕣 | | +| FileCabinets/CheckInCheckOut | Undo Check-out | 🕣 | | +| FileCabinets/SelectLists | Get Select Lists & Get Filtered Select Lists | ✅ | | +| FileCabinets/Upload | Create Data Record | ✅ | | +| FileCabinets/Upload | Append File(s) to a Data Record | ❌ | - | +| FileCabinets/Upload | Upload a Single File for a Data Record | ❌ | - | +| FileCabinets/Upload | Create a Data Record & Upload File | ❌ | - | +| FileCabinets/Upload | Create Data Record & Upload File Using Store Dialog | ❌ | - | +| FileCabinets/Upload | Append a Single PDF to a Document | ❌ | - | +| FileCabinets/Upload | Replace a PDF Document Section | ❌ | - | +| FileCabinets/BatchIndexFieldsUpdate | Batch Update Index Fields By Id | ❌ | - | +| FileCabinets/BatchIndexFieldsUpdate | Batch Update Index Fields By Search | ❌ | - | +| FileCabinets/BatchIndexFieldsUpdate | Batch Append/Update Keyword Fields By Id | ❌ | - | +| Documents/UpdateIndexValues | Update Index Values | ✅ | | +| Documents/UpdateIndexValues | Update Table Field Values | ❌ | - ? | +| Documents/ModifyDocuments | Transfer Document | ✅ | - | +| Documents/ModifyDocuments | Delete Document | ✅ | | +| Documents/ClipUnclip&StapleUnstaple | Clip | ✅ | | +| Documents/ClipUnclip&StapleUnstaple | Unclip | ✅ | | +| Documents/ClipUnclip&StapleUnstaple | Staple | ✅ | | +| Documents/ClipUnclip&StapleUnstaple | Unstaple | ✅ | | +| Documents/AnnotationsStamps | AddStampWithPosition | ❌ | - Better Tests | +| Documents/AnnotationsStamps | AddStampWithBestPosition | ❌ | - Better Tests | +| Documents/AnnotationsStamps | AddTextAnnotation | ❌ | - Better Tests | +| Documents/AnnotationsStamps | AddRectEntryAnnotation | ❌ | - Better Tests | +| Documents/AnnotationsStamps | AddLineEntryAnnotation | ❌ | - Better Tests | +| Documents/AnnotationsStamps | AddPolyLineEntryAnnotation | ❌ | - | +| Documents/AnnotationsStamps | DeleteAnnotation | ❌ | - | +| Documents/AnnotationsStamps | UpdateTextAnnotation | ❌ | - Better Tests | +| Documents/AnnotationsStamps | Get Stamps | ❌ | - | +| Documents/DocumentsTrashBin | Get Documents | ✅ | | +| Documents/DocumentsTrashBin | Delete Documents | ✅ | | +| Documents/DocumentsTrashBin | Restore Documents | ✅ | | +| Documents/ApplicationProperties | Get Application Properties | ✅ | - | +| Documents/ApplicationProperties | Add Application Properties | ✅ | - | +| Documents/ApplicationProperties | Delete Application Properties | ✅ | - | +| Documents/ApplicationProperties | Update Application Properties | ✅ | - | +| Documents/Sections | Get All Sections from a Document | ✅ | - | +| Documents/Sections | Get a Specific Section | ✅ | - | +| Documents/Sections | Delete Section | ✅ | - | +| Documents/Download | Download Document | ✅ | | +| Documents/Download | Download Section | ✅ | - | +| Documents/Download | Download Thumbnail | ✅ | | +| Workflow | Get Document Workflow History | ✅ | - | +| Workflow | Get Document Workflow History Steps | ✅ | - |
diff --git a/src/DTO/Documents/AnnotationsStamps/Annotation.php b/src/DTO/Documents/AnnotationsStamps/Annotation.php new file mode 100644 index 0000000..94d33db --- /dev/null +++ b/src/DTO/Documents/AnnotationsStamps/Annotation.php @@ -0,0 +1,31 @@ +map(fn (array $item) => AnnotationItem::fromData($item)) : null, + id: Arr::get($data, 'Id'), + ); + } + + public function __construct( + public ?Collection $items, + public int $id, + ) { + } + + public function values(): array + { + return [ + 'Items' => $this->items->values(), + 'Id' => $this->id, + ]; + } +} diff --git a/src/DTO/Documents/AnnotationsStamps/AnnotationItem.php b/src/DTO/Documents/AnnotationsStamps/AnnotationItem.php new file mode 100644 index 0000000..fa329ab --- /dev/null +++ b/src/DTO/Documents/AnnotationsStamps/AnnotationItem.php @@ -0,0 +1,118 @@ +map(fn (array $layer) => AnnotationItemLayer::fromData($layer)); + } else { + $layer = Arr::get($data, 'Layer'); + } + } + + return new self( + type: Arr::get($data, '$type'), + layer: $layer ?? null, + field: collect(Arr::get($data, 'Field')) + ->map(fn (array $field) => AnnotationItemField::fromData($field)), + password: Arr::get($data, 'Password'), + font: Arr::has($data, 'Font') ? AnnotationItemFont::fromData(Arr::get($data, 'Font')) : null, + location: Arr::has($data, 'Location') ? AnnotationItemLocation::fromData(Arr::get($data, 'Location')) : null, + headFont: Arr::has($data, 'HeadFont') ? AnnotationItemFont::fromData(Arr::get($data, 'HeadFont')) : null, + signature: Arr::get($data, 'Signature'), + userName: Arr::get($data, 'UserName'), + visible: Arr::get($data, 'Visible'), + frame: Arr::get($data, 'Frame'), + showUser: Arr::get($data, 'ShowUser'), + showDate: Arr::get($data, 'ShowDate'), + showTime: Arr::get($data, 'ShowTime'), + created: Arr::has($data, 'Created') ? AnnotationItemCreated::fromData(Arr::get($data, 'Created')) : null, + color: Arr::get($data, 'Color'), + rotation: Arr::get($data, 'Rotation'), + transparent: Arr::get($data, 'Transparent'), + strokeWidth: Arr::get($data, 'StrokeWidth'), + stampId: Arr::get($data, 'StampId') ?? Arr::get($data, 'Id'), + ); + } + + public function __construct( + public string $type, + public null|Collection|int $layer = null, + public ?Collection $field = null, + public ?string $password = null, + public ?AnnotationItemFont $font = null, + public ?AnnotationItemLocation $location = null, + public ?AnnotationItemFont $headFont = null, + public ?string $signature = null, + public ?string $userName = null, + public ?bool $visible = null, + public ?bool $frame = null, + public ?bool $showUser = null, + public ?bool $showDate = null, + public ?bool $showTime = null, + public ?AnnotationItemCreated $created = null, + public ?string $color = null, + public ?int $rotation = null, + public ?bool $transparent = null, + public ?int $strokeWidth = null, + public ?string $stampId = null, + ) { + } + + public function values(): array + { + if ($this->layer instanceof Collection) { + $layer = $this->layer->map(fn (AnnotationItemLayer $layer) => $layer->values())->toArray(); + } else { + $layer = $this->layer; + } + + $values = [ + '$type' => $this->type, + 'Layer' => $layer, + 'Field' => $this->field?->map(fn (AnnotationItemField $field) => $field->values())->toArray(), + 'Password' => $this->password, + 'Font' => $this->font, + 'Location' => $this->location?->values(), + 'HeadFont' => $this->headFont, + 'StampId' => $this->stampId, + ]; + + if (is_null($values['Field'])) { + unset($values['Field']); + } + + if (is_null($values['Password'])) { + unset($values['Password']); + } + + if (is_null($values['Font'])) { + unset($values['Font']); + } + + if (is_null($values['Location'])) { + unset($values['Location']); + } + + if (is_null($values['HeadFont'])) { + unset($values['HeadFont']); + } + + if (is_null($values['StampId'])) { + unset($values['StampId']); + } + + if (is_null($values['Layer'])) { + unset($values['Layer']); + } + + return $values; + } +} diff --git a/src/DTO/Documents/AnnotationsStamps/AnnotationItemCreated.php b/src/DTO/Documents/AnnotationsStamps/AnnotationItemCreated.php new file mode 100644 index 0000000..5e4e7dd --- /dev/null +++ b/src/DTO/Documents/AnnotationsStamps/AnnotationItemCreated.php @@ -0,0 +1,30 @@ + $this->user, + 'Time' => $this->time, + ]; + } +} diff --git a/src/DTO/Documents/AnnotationsStamps/AnnotationItemField.php b/src/DTO/Documents/AnnotationsStamps/AnnotationItemField.php new file mode 100644 index 0000000..2d7c180 --- /dev/null +++ b/src/DTO/Documents/AnnotationsStamps/AnnotationItemField.php @@ -0,0 +1,36 @@ + $this->name, + 'TypedValue' => $this->typedValue->values(), + 'Value' => $this->value, + 'TextAsString' => $this->textAsString, + ]; + } +} diff --git a/src/DTO/Documents/AnnotationsStamps/AnnotationItemFieldTypedValue.php b/src/DTO/Documents/AnnotationsStamps/AnnotationItemFieldTypedValue.php new file mode 100644 index 0000000..e2a4360 --- /dev/null +++ b/src/DTO/Documents/AnnotationsStamps/AnnotationItemFieldTypedValue.php @@ -0,0 +1,30 @@ + $this->item, + 'ItemElementName' => $this->itemElementName, + ]; + } +} diff --git a/src/DTO/Documents/AnnotationsStamps/AnnotationItemFont.php b/src/DTO/Documents/AnnotationsStamps/AnnotationItemFont.php new file mode 100644 index 0000000..c385607 --- /dev/null +++ b/src/DTO/Documents/AnnotationsStamps/AnnotationItemFont.php @@ -0,0 +1,45 @@ + $this->fontName, + 'Bold' => $this->bold, + 'Italic' => $this->italic, + 'Underlined' => $this->underlined, + 'StrikeThrough' => $this->strikeThrough, + 'FontSize' => $this->fontSize, + 'Spacing' => $this->spacing, + ]; + } +} diff --git a/src/DTO/Documents/AnnotationsStamps/AnnotationItemLayer.php b/src/DTO/Documents/AnnotationsStamps/AnnotationItemLayer.php new file mode 100644 index 0000000..f1cc1e0 --- /dev/null +++ b/src/DTO/Documents/AnnotationsStamps/AnnotationItemLayer.php @@ -0,0 +1,31 @@ +map(fn (array $layer) => AnnotationItemLayerItem::fromData($layer)), + ); + } + + public function __construct( + public string $id, + public Collection $items, + ) { + } + + public function values(): array + { + return [ + 'Id' => $this->id, + 'Items' => $this->items->map(fn (AnnotationItemLayerItem $item) => $item->values())->toArray(), + ]; + } +} diff --git a/src/DTO/Documents/AnnotationsStamps/AnnotationItemLayerItem.php b/src/DTO/Documents/AnnotationsStamps/AnnotationItemLayerItem.php new file mode 100644 index 0000000..e64eb4c --- /dev/null +++ b/src/DTO/Documents/AnnotationsStamps/AnnotationItemLayerItem.php @@ -0,0 +1,104 @@ + $this->type, + 'Font' => $this->font?->values(), + 'Value' => $this->value, + 'Location' => $this->location?->values(), + 'Color' => $this->color, + 'Rotation' => $this->rotation, + 'Transparent' => $this->transparent, + 'StrokeWidth' => $this->strokeWidth, + 'Filled' => $this->filled, + 'Ellipse' => $this->ellipse, + 'From' => $this->from?->values(), + 'To' => $this->to?->values(), + 'Arrow' => $this->arrow, + 'Id' => $this->id, + ]; + + if (is_null($values['Location'])) { + unset($values['Location']); + } + + if (is_null($values['Font'])) { + unset($values['Font']); + } + + if (is_null($values['Value'])) { + unset($values['Value']); + } + + if (is_null($values['Filled'])) { + unset($values['Filled']); + } + + if (is_null($values['Ellipse'])) { + unset($values['Ellipse']); + } + + if (is_null($values['From'])) { + unset($values['From']); + } + + if (is_null($values['To'])) { + unset($values['To']); + } + + if (is_null($values['Arrow'])) { + unset($values['Arrow']); + } + + if (is_null($values['Id'])) { + unset($values['Id']); + } + + return $values; + } +} diff --git a/src/DTO/Documents/AnnotationsStamps/AnnotationItemLocation.php b/src/DTO/Documents/AnnotationsStamps/AnnotationItemLocation.php new file mode 100644 index 0000000..d22589c --- /dev/null +++ b/src/DTO/Documents/AnnotationsStamps/AnnotationItemLocation.php @@ -0,0 +1,39 @@ + $this->x, + 'Y' => $this->y, + 'Left' => $this->left, + 'Top' => $this->top, + 'Width' => $this->width, + 'Height' => $this->height, + ]; + } +} diff --git a/src/DTO/Documents/AnnotationsStamps/AnnotationPlacement.php b/src/DTO/Documents/AnnotationsStamps/AnnotationPlacement.php new file mode 100644 index 0000000..738840a --- /dev/null +++ b/src/DTO/Documents/AnnotationsStamps/AnnotationPlacement.php @@ -0,0 +1,29 @@ +map(fn (array $item) => AnnotationItem::fromData($item)), + ); + } + + public function __construct( + public Collection $items, + ) { + } + + public function values(): array + { + return [ + 'Items' => $this->items->map(fn (AnnotationItem|AnnotationItemLayerItem $item) => $item->values())->toArray(), + ]; + } +} diff --git a/src/DTO/Documents/AnnotationsStamps/Annotations.php b/src/DTO/Documents/AnnotationsStamps/Annotations.php new file mode 100644 index 0000000..dfd5ecd --- /dev/null +++ b/src/DTO/Documents/AnnotationsStamps/Annotations.php @@ -0,0 +1,47 @@ +map(fn ($item) => Annotation::fromData($item)) : null, + ); + } + + public function __construct( + public ?int $pageNumber, + public ?int $sectionNumber, + public ?AnnotationPlacement $annotationsPlacement = null, + public ?Collection $annotation = null, + ) { + } + + public function values(): array + { + $values = [ + 'PageNumber' => $this->pageNumber, + 'SectionNumber' => $this->sectionNumber, + 'AnnotationsPlacement' => $this->annotationsPlacement?->values(), + 'Annotation' => $this->annotation?->map(fn (Annotation $item) => $item->values())->toArray(), + ]; + + if (is_null($values['AnnotationsPlacement'])) { + unset($values['AnnotationsPlacement']); + } + + if (is_null($values['Annotation'])) { + unset($values['Annotation']); + } + + return $values; + } +} diff --git a/src/Requests/Documents/AnnotationsStamps/AddLineEntryAnnotation.php b/src/Requests/Documents/AnnotationsStamps/AddLineEntryAnnotation.php new file mode 100644 index 0000000..9be3680 --- /dev/null +++ b/src/Requests/Documents/AnnotationsStamps/AddLineEntryAnnotation.php @@ -0,0 +1,7 @@ +fileCabinetId.'/Documents/'.$this->documentId.'/Annotation'; + } + + public function defaultBody(): array + { + ray($this->annotations->values()); + + return [ + 'Annotations' => [ + $this->annotations->values(), + ], + ]; + } + + public function createDtoFromResponse(Response $response): Collection|Enumerable + { + return AddStampWithPositionResponse::fromResponse($response); + } +} diff --git a/src/Requests/Documents/AnnotationsStamps/AddTextAnnotation.php b/src/Requests/Documents/AnnotationsStamps/AddTextAnnotation.php new file mode 100644 index 0000000..83dd4dc --- /dev/null +++ b/src/Requests/Documents/AnnotationsStamps/AddTextAnnotation.php @@ -0,0 +1,7 @@ +throw()->json('Annotations'); + + return collect($data)->map(fn (array $item) => Annotations::fromData($item)); + } +} diff --git a/tests/Feature/Requests/Documents/AnnotationsStaps/AddLineEntryAnnotationTest.php b/tests/Feature/Requests/Documents/AnnotationsStaps/AddLineEntryAnnotationTest.php new file mode 100644 index 0000000..9511034 --- /dev/null +++ b/tests/Feature/Requests/Documents/AnnotationsStaps/AddLineEntryAnnotationTest.php @@ -0,0 +1,69 @@ +connector, $fileCabinetId); + + [$document, $document2] = uploadFiles($this->connector, $fileCabinetId, $path); + + $annotations = new Annotations( + pageNumber: 0, + sectionNumber: 0, + annotationsPlacement: new AnnotationPlacement( + items: collect([ + new AnnotationItem( + type: 'Annotation', + layer: collect([ + new AnnotationItemLayer( + id: 1, + items: collect([ + new AnnotationItemLayerItem( + type: 'LineEntry', + color: 'Cyan', + rotation: 0, + transparent: false, + strokeWidth: 50, + arrow: false, + from: new AnnotationItemLocation( + x: 100, + y: 100, + ), + to: new AnnotationItemLocation( + x: 200, + y: 200, + ), + ), + ]), + ), + ]), + ), + ]), + ), + ); + + $stamp = $this->connector->send(new AddLineEntryAnnotation( + $fileCabinetId, + $document->id, + $annotations, + ))->dto(); + + expect($stamp)->toBeInstanceOf(Collection::class) + ->and($stamp->first())->toBeInstanceOf(Annotations::class); + + Event::assertDispatched(DocuWareResponseLog::class); +})->group('annotation')->only(); diff --git a/tests/Feature/Requests/Documents/AnnotationsStaps/AddRectEntryAnnotationTest.php b/tests/Feature/Requests/Documents/AnnotationsStaps/AddRectEntryAnnotationTest.php new file mode 100644 index 0000000..486adbd --- /dev/null +++ b/tests/Feature/Requests/Documents/AnnotationsStaps/AddRectEntryAnnotationTest.php @@ -0,0 +1,68 @@ +connector, $fileCabinetId); + + [$document, $document2] = uploadFiles($this->connector, $fileCabinetId, $path); + + $annotations = new Annotations( + pageNumber: 0, + sectionNumber: 0, + annotationsPlacement: new AnnotationPlacement( + items: collect([ + new AnnotationItem( + type: 'Annotation', + layer: collect([ + new AnnotationItemLayer( + id: 1, + items: collect([ + new AnnotationItemLayerItem( + type: 'RectEntry', + color: 'Bisque', + rotation: 0, + transparent: false, + strokeWidth: 50, + filled: true, + ellipse: false, + location: new AnnotationItemLocation( + left: 100, + top: 100, + width: 1500, + height: 100, + ), + ), + ]), + ), + ]), + ), + ]), + ), + ); + + $stamp = $this->connector->send(new AddRectEntryAnnotation( + $fileCabinetId, + $document->id, + $annotations, + ))->dto(); + + expect($stamp)->toBeInstanceOf(Collection::class) + ->and($stamp->first())->toBeInstanceOf(Annotations::class); + + Event::assertDispatched(DocuWareResponseLog::class); +})->group('annotation')->only(); diff --git a/tests/Feature/Requests/Documents/AnnotationsStaps/AddStampWithBestPositionTest.php b/tests/Feature/Requests/Documents/AnnotationsStaps/AddStampWithBestPositionTest.php new file mode 100644 index 0000000..3e615f3 --- /dev/null +++ b/tests/Feature/Requests/Documents/AnnotationsStaps/AddStampWithBestPositionTest.php @@ -0,0 +1,58 @@ +connector, $fileCabinetId); + + [$document, $document2] = uploadFiles($this->connector, $fileCabinetId, $path); + + $annotations = new Annotations( + pageNumber: 0, + sectionNumber: 0, + annotationsPlacement: new AnnotationPlacement( + items: collect([ + new AnnotationItem( + type: 'StampPlacement', + field: collect([ + new AnnotationItemField( + name: '<#1>', + typedValue: new AnnotationItemFieldTypedValue( + item: 'Text', + itemElementName: 'String', + ), + value: 'Test', + textAsString: 'Test', + ), + ]), + layer: 1, + stampId: 'e1b3f6cc-ed69-4af2-afa5-6d990c0144c5', + ), + ]), + ), + ); + + $stamp = $this->connector->send(new AddStampWithBestPosition( + $fileCabinetId, + $document->id, + $annotations, + ))->dto(); + + expect($stamp)->toBeInstanceOf(Collection::class) + ->and($stamp->first())->toBeInstanceOf(Annotations::class); + + Event::assertDispatched(DocuWareResponseLog::class); +})->group('stamp'); diff --git a/tests/Feature/Requests/Documents/AnnotationsStaps/AddStampWithPositionTest.php b/tests/Feature/Requests/Documents/AnnotationsStaps/AddStampWithPositionTest.php new file mode 100644 index 0000000..dfbf8e7 --- /dev/null +++ b/tests/Feature/Requests/Documents/AnnotationsStaps/AddStampWithPositionTest.php @@ -0,0 +1,63 @@ +connector, $fileCabinetId); + + [$document, $document2] = uploadFiles($this->connector, $fileCabinetId, $path); + + $annotations = new Annotations( + pageNumber: 0, + sectionNumber: 0, + annotationsPlacement: new AnnotationPlacement( + items: collect([ + new AnnotationItem( + type: 'StampPlacement', + field: collect([ + new AnnotationItemField( + name: '<#1>', + typedValue: new AnnotationItemFieldTypedValue( + item: 'Text', + itemElementName: 'String', + ), + value: 'Test', + textAsString: 'Test', + ), + ]), + layer: 1, + location: new AnnotationItemLocation( + x: 0.5, + y: 0.5, + ), + stampId: 'e1b3f6cc-ed69-4af2-afa5-6d990c0144c5', + ), + ]), + ), + ); + + $stamp = $this->connector->send(new AddStampWithPosition( + $fileCabinetId, + $document->id, + $annotations, + ))->dto(); + + expect($stamp)->toBeInstanceOf(Collection::class) + ->and($stamp->first())->toBeInstanceOf(Annotations::class); + + Event::assertDispatched(DocuWareResponseLog::class); +})->group('stamp'); diff --git a/tests/Feature/Requests/Documents/AnnotationsStaps/AddTextAnnotationTest.php b/tests/Feature/Requests/Documents/AnnotationsStaps/AddTextAnnotationTest.php new file mode 100644 index 0000000..ef25220 --- /dev/null +++ b/tests/Feature/Requests/Documents/AnnotationsStaps/AddTextAnnotationTest.php @@ -0,0 +1,77 @@ +connector, $fileCabinetId); + + [$document, $document2] = uploadFiles($this->connector, $fileCabinetId, $path); + + $annotations = new Annotations( + pageNumber: 0, + sectionNumber: 0, + annotationsPlacement: new AnnotationPlacement( + items: collect([ + new AnnotationItem( + type: 'Annotation', + layer: collect([ + new AnnotationItemLayer( + id: 1, + items: collect([ + new AnnotationItemLayerItem( + type: 'TextEntry', + color: 'Black', + rotation: 0, + transparent: false, + strokeWidth: 50, + value: 'Test', + font: new AnnotationItemFont( + fontName: 'Arial', + bold: false, + italic: false, + underlined: false, + strikeThrough: false, + fontSize: 12, + spacing: 0, + ), + location: new AnnotationItemLocation( + left: 100, + top: 100, + width: 1500, + height: 100, + ), + ), + ]), + ), + ]), + ), + ]), + ), + ); + + $stamp = $this->connector->send(new AddTextAnnotation( + $fileCabinetId, + $document->id, + $annotations, + ))->dto(); + + expect($stamp)->toBeInstanceOf(Collection::class) + ->and($stamp->first())->toBeInstanceOf(Annotations::class); + + Event::assertDispatched(DocuWareResponseLog::class); +})->group('annotation')->only(); diff --git a/tests/Feature/Requests/Documents/AnnotationsStaps/UpdateTextAnnotationTest.php b/tests/Feature/Requests/Documents/AnnotationsStaps/UpdateTextAnnotationTest.php new file mode 100644 index 0000000..8393ae7 --- /dev/null +++ b/tests/Feature/Requests/Documents/AnnotationsStaps/UpdateTextAnnotationTest.php @@ -0,0 +1,78 @@ +connector, $fileCabinetId); + + [$document, $document2] = uploadFiles($this->connector, $fileCabinetId, $path); + + $annotations = new Annotations( + pageNumber: 0, + sectionNumber: 0, + annotationsPlacement: new AnnotationPlacement( + items: collect([ + new AnnotationItem( + type: 'Annotation', + layer: collect([ + new AnnotationItemLayer( + id: 1, + items: collect([ + new AnnotationItemLayerItem( + type: 'TextEntry', + color: 'Black', + rotation: 0, + transparent: false, + strokeWidth: 50, + value: 'Test', + font: new AnnotationItemFont( + fontName: 'Arial', + bold: false, + italic: false, + underlined: false, + strikeThrough: false, + fontSize: 12, + spacing: 0, + ), + location: new AnnotationItemLocation( + left: 100, + top: 100, + width: 1500, + height: 100, + ), + id: 1, + ), + ]), + ), + ]), + ), + ]), + ), + ); + + $stamp = $this->connector->send(new AddTextAnnotation( + $fileCabinetId, + $document->id, + $annotations, + ))->dto(); + + expect($stamp)->toBeInstanceOf(Collection::class) + ->and($stamp->first())->toBeInstanceOf(Annotations::class); + + Event::assertDispatched(DocuWareResponseLog::class); +})->group('annotation')->only(); diff --git a/tests/Feature/Requests/Documents/ApplicationProperties/ApplicationPropertiesTest.php b/tests/Feature/Requests/Documents/ApplicationProperties/ApplicationPropertiesTest.php index 3bfc5cd..3eb84b9 100644 --- a/tests/Feature/Requests/Documents/ApplicationProperties/ApplicationPropertiesTest.php +++ b/tests/Feature/Requests/Documents/ApplicationProperties/ApplicationPropertiesTest.php @@ -84,4 +84,4 @@ ->and($properties->first()['Value'])->toBe('Key2 Value'); Event::assertDispatched(DocuWareResponseLog::class); -})->only(); +})->group('application-properties'); From 4ead305b3f23b3d14585f03065c76ce4f8ebd7c4 Mon Sep 17 00:00:00 2001 From: RhysLees Date: Sat, 29 Jun 2024 03:10:47 +0000 Subject: [PATCH 46/54] Fix styling --- src/Connectors/DocuWareConnector.php | 3 +-- src/DTO/Authentication/OAuth/IdentityServiceConfiguration.php | 3 +-- src/DTO/Authentication/OAuth/RequestToken.php | 3 +-- src/DTO/Authentication/OAuth/ResponsibleIdentityService.php | 3 +-- src/DTO/Documents/AnnotationsStamps/Annotation.php | 3 +-- src/DTO/Documents/AnnotationsStamps/AnnotationItem.php | 3 +-- src/DTO/Documents/AnnotationsStamps/AnnotationItemCreated.php | 3 +-- src/DTO/Documents/AnnotationsStamps/AnnotationItemField.php | 3 +-- .../AnnotationsStamps/AnnotationItemFieldTypedValue.php | 3 +-- src/DTO/Documents/AnnotationsStamps/AnnotationItemFont.php | 3 +-- src/DTO/Documents/AnnotationsStamps/AnnotationItemLayer.php | 3 +-- .../Documents/AnnotationsStamps/AnnotationItemLayerItem.php | 3 +-- .../Documents/AnnotationsStamps/AnnotationItemLocation.php | 3 +-- src/DTO/Documents/AnnotationsStamps/AnnotationPlacement.php | 3 +-- src/DTO/Documents/AnnotationsStamps/Annotations.php | 3 +-- src/DTO/Documents/Document.php | 3 +-- src/DTO/Documents/DocumentField.php | 3 +-- src/DTO/Documents/DocumentIndex/IndexDateDTO.php | 4 +--- src/DTO/Documents/DocumentIndex/IndexDateTimeDTO.php | 4 +--- src/DTO/Documents/DocumentIndex/IndexDecimalDTO.php | 4 +--- src/DTO/Documents/DocumentIndex/IndexNumericDTO.php | 4 +--- src/DTO/Documents/DocumentIndex/IndexTableDTO.php | 4 +--- src/DTO/Documents/DocumentIndex/IndexTextDTO.php | 4 +--- src/DTO/Documents/DocumentPaginator.php | 3 +-- src/DTO/Documents/DocumentThumbnail.php | 3 +-- src/DTO/Documents/DocumentsTrashBin/DeleteDocuments.php | 3 +-- src/DTO/Documents/DocumentsTrashBin/RestoreDocuments.php | 3 +-- src/DTO/Documents/Field.php | 3 +-- src/DTO/Documents/TableRow.php | 3 +-- src/DTO/Documents/TrashDocumentPaginator.php | 3 +-- src/DTO/ErrorBag.php | 3 +-- src/DTO/FileCabinets/Dialog.php | 3 +-- src/DTO/FileCabinets/General/FileCabinetInformation.php | 3 +-- src/DTO/General/Organization/FileCabinet.php | 3 +-- src/DTO/General/Organization/Organization.php | 3 +-- src/DTO/General/Organization/OrganizationIndex.php | 3 +-- src/DTO/General/UserManagement/CreateUpdateUser/User.php | 3 +-- src/DTO/General/UserManagement/GetModifyGroups/Group.php | 3 +-- src/DTO/General/UserManagement/GetModifyRoles/Role.php | 3 +-- src/DTO/General/UserManagement/GetUsers/OutOfOffice.php | 3 +-- src/DTO/General/UserManagement/GetUsers/RegionalSettings.php | 3 +-- src/DTO/General/UserManagement/GetUsers/User.php | 3 +-- src/DTO/Section.php | 3 +-- src/DTO/SuggestionField.php | 3 +-- src/DTO/Workflow/HistoryStep.php | 3 +-- src/DTO/Workflow/InstanceHistory.php | 3 +-- src/Events/DocuWareOAuthLog.php | 3 +-- src/Events/DocuWareResponseLog.php | 3 +-- .../Authentication/OAuth/GetIdentityServiceConfiguration.php | 3 +-- .../Authentication/OAuth/RequestTokenWithCredentials.php | 3 +-- .../OAuth/RequestTokenWithCredentialsTrustedUser.php | 3 +-- .../Documents/AnnotationsStamps/AddLineEntryAnnotation.php | 4 +--- .../Documents/AnnotationsStamps/AddRectEntryAnnotation.php | 4 +--- .../Documents/AnnotationsStamps/AddStampWithBestPosition.php | 4 +--- .../Documents/AnnotationsStamps/AddStampWithPosition.php | 3 +-- .../Documents/AnnotationsStamps/AddTextAnnotation.php | 4 +--- .../Documents/AnnotationsStamps/UpdateTextAnnotation.php | 4 +--- .../ApplicationProperties/AddApplicationProperties.php | 3 +-- .../ApplicationProperties/DeleteApplicationProperties.php | 3 +-- .../ApplicationProperties/GetApplicationProperties.php | 3 +-- .../ApplicationProperties/UpdateApplicationProperties.php | 3 +-- src/Requests/Documents/ClipUnclipStapleUnstaple/Clip.php | 3 +-- src/Requests/Documents/ClipUnclipStapleUnstaple/Staple.php | 3 +-- src/Requests/Documents/ClipUnclipStapleUnstaple/Unclip.php | 3 +-- src/Requests/Documents/ClipUnclipStapleUnstaple/Unstaple.php | 3 +-- src/Requests/Documents/DocumentsTrashBin/DeleteDocuments.php | 3 +-- src/Requests/Documents/DocumentsTrashBin/GetDocuments.php | 3 +-- src/Requests/Documents/DocumentsTrashBin/RestoreDocuments.php | 3 +-- src/Requests/Documents/Download/DownloadDocument.php | 3 +-- src/Requests/Documents/Download/DownloadSection.php | 3 +-- src/Requests/Documents/Download/DownloadThumbnail.php | 3 +-- src/Requests/Documents/GetDocumentPreviewRequest.php | 3 +-- src/Requests/Documents/ModifyDocuments/DeleteDocument.php | 3 +-- src/Requests/Documents/ModifyDocuments/TransferDocument.php | 3 +-- src/Requests/Documents/Sections/DeleteSection.php | 3 +-- src/Requests/Documents/Sections/GetASpecificSection.php | 3 +-- .../Documents/Sections/GetAllSectionsFromADocument.php | 3 +-- .../Documents/UpdateIndexValues/UpdateIndexValues.php | 3 +-- src/Requests/Fields/GetFieldsRequest.php | 3 +-- src/Requests/FileCabinets/Dialogs/GetASpecificDialog.php | 3 +-- src/Requests/FileCabinets/Dialogs/GetAllDialogs.php | 3 +-- .../FileCabinets/Dialogs/GetDialogsOfASpecificType.php | 3 +-- .../FileCabinets/General/GetFileCabinetInformation.php | 3 +-- .../FileCabinets/General/GetTotalNumberOfDocuments.php | 3 +-- .../Search/GetASpecificDocumentFromAFileCabinet.php | 3 +-- .../FileCabinets/Search/GetDocumentsFromAFileCabinet.php | 3 +-- .../FileCabinets/SelectLists/GetFilteredSelectLists.php | 3 +-- src/Requests/FileCabinets/SelectLists/GetSelectLists.php | 3 +-- src/Requests/FileCabinets/Upload/CreateDataRecord.php | 3 +-- .../Organization/GetAllFileCabinetsAndDocumentTrays.php | 3 +-- src/Requests/General/Organization/GetLoginToken.php | 3 +-- .../General/UserManagement/CreateUpdateUsers/CreateUser.php | 3 +-- .../General/UserManagement/CreateUpdateUsers/UpdateUser.php | 3 +-- .../UserManagement/GetModifyGroups/AddUserToAGroup.php | 3 +-- .../GetModifyGroups/GetAllGroupsForASpecificUser.php | 3 +-- .../General/UserManagement/GetModifyGroups/GetGroups.php | 3 +-- .../UserManagement/GetModifyGroups/RemoveUserFromAGroup.php | 3 +-- .../General/UserManagement/GetModifyRoles/AddUserToARole.php | 3 +-- .../GetModifyRoles/GetAllRolesForASpecificUser.php | 3 +-- .../General/UserManagement/GetModifyRoles/GetRoles.php | 3 +-- .../UserManagement/GetModifyRoles/RemoveUserFromARole.php | 3 +-- src/Requests/General/UserManagement/GetUsers/GetUserById.php | 3 +-- src/Requests/General/UserManagement/GetUsers/GetUsers.php | 3 +-- .../General/UserManagement/GetUsers/GetUsersOfAGroup.php | 3 +-- .../General/UserManagement/GetUsers/GetUsersOfARole.php | 3 +-- src/Requests/Search/GetSearchRequest.php | 3 +-- src/Requests/Workflow/GetDocumentWorkflowHistory.php | 3 +-- src/Requests/Workflow/GetDocumentWorkflowHistorySteps.php | 3 +-- 108 files changed, 108 insertions(+), 227 deletions(-) diff --git a/src/Connectors/DocuWareConnector.php b/src/Connectors/DocuWareConnector.php index 0ca9b4e..f64acb3 100644 --- a/src/Connectors/DocuWareConnector.php +++ b/src/Connectors/DocuWareConnector.php @@ -21,8 +21,7 @@ class DocuWareConnector extends Connector { public function __construct( public ConfigWithCredentials|ConfigWithCredentialsTrustedUser $configuration - ) { - } + ) {} /** * @throws \Exception diff --git a/src/DTO/Authentication/OAuth/IdentityServiceConfiguration.php b/src/DTO/Authentication/OAuth/IdentityServiceConfiguration.php index 6c219a8..503bd7f 100644 --- a/src/DTO/Authentication/OAuth/IdentityServiceConfiguration.php +++ b/src/DTO/Authentication/OAuth/IdentityServiceConfiguration.php @@ -81,6 +81,5 @@ public function __construct( public bool $backchannelUserCodeParameterSupported, public array $dpopSigningAlgValuesSupported, public string $windowsAuthEndpoint, - ) { - } + ) {} } diff --git a/src/DTO/Authentication/OAuth/RequestToken.php b/src/DTO/Authentication/OAuth/RequestToken.php index 1225e0d..1c8d84c 100644 --- a/src/DTO/Authentication/OAuth/RequestToken.php +++ b/src/DTO/Authentication/OAuth/RequestToken.php @@ -24,6 +24,5 @@ public function __construct( public string $scope, public int $expiresIn, public Carbon $expiresAt, - ) { - } + ) {} } diff --git a/src/DTO/Authentication/OAuth/ResponsibleIdentityService.php b/src/DTO/Authentication/OAuth/ResponsibleIdentityService.php index dc52ce7..8099d02 100644 --- a/src/DTO/Authentication/OAuth/ResponsibleIdentityService.php +++ b/src/DTO/Authentication/OAuth/ResponsibleIdentityService.php @@ -17,6 +17,5 @@ public static function make(array $data): self public function __construct( public string $identityServiceUrl, public bool $refreshTokenSupported, - ) { - } + ) {} } diff --git a/src/DTO/Documents/AnnotationsStamps/Annotation.php b/src/DTO/Documents/AnnotationsStamps/Annotation.php index 94d33db..01991d4 100644 --- a/src/DTO/Documents/AnnotationsStamps/Annotation.php +++ b/src/DTO/Documents/AnnotationsStamps/Annotation.php @@ -18,8 +18,7 @@ public static function fromData(array $data): self public function __construct( public ?Collection $items, public int $id, - ) { - } + ) {} public function values(): array { diff --git a/src/DTO/Documents/AnnotationsStamps/AnnotationItem.php b/src/DTO/Documents/AnnotationsStamps/AnnotationItem.php index fa329ab..4c60ea5 100644 --- a/src/DTO/Documents/AnnotationsStamps/AnnotationItem.php +++ b/src/DTO/Documents/AnnotationsStamps/AnnotationItem.php @@ -63,8 +63,7 @@ public function __construct( public ?bool $transparent = null, public ?int $strokeWidth = null, public ?string $stampId = null, - ) { - } + ) {} public function values(): array { diff --git a/src/DTO/Documents/AnnotationsStamps/AnnotationItemCreated.php b/src/DTO/Documents/AnnotationsStamps/AnnotationItemCreated.php index 5e4e7dd..cc43ce1 100644 --- a/src/DTO/Documents/AnnotationsStamps/AnnotationItemCreated.php +++ b/src/DTO/Documents/AnnotationsStamps/AnnotationItemCreated.php @@ -17,8 +17,7 @@ public static function fromData(array $data): self public function __construct( public string $user, public string $time, - ) { - } + ) {} public function values(): array { diff --git a/src/DTO/Documents/AnnotationsStamps/AnnotationItemField.php b/src/DTO/Documents/AnnotationsStamps/AnnotationItemField.php index 2d7c180..918a205 100644 --- a/src/DTO/Documents/AnnotationsStamps/AnnotationItemField.php +++ b/src/DTO/Documents/AnnotationsStamps/AnnotationItemField.php @@ -21,8 +21,7 @@ public function __construct( public AnnotationItemFieldTypedValue $typedValue, public string $value, public string $textAsString, - ) { - } + ) {} public function values(): array { diff --git a/src/DTO/Documents/AnnotationsStamps/AnnotationItemFieldTypedValue.php b/src/DTO/Documents/AnnotationsStamps/AnnotationItemFieldTypedValue.php index e2a4360..41f356b 100644 --- a/src/DTO/Documents/AnnotationsStamps/AnnotationItemFieldTypedValue.php +++ b/src/DTO/Documents/AnnotationsStamps/AnnotationItemFieldTypedValue.php @@ -17,8 +17,7 @@ public static function fromData(array $data): self public function __construct( public string $item, public string $itemElementName, - ) { - } + ) {} public function values(): array { diff --git a/src/DTO/Documents/AnnotationsStamps/AnnotationItemFont.php b/src/DTO/Documents/AnnotationsStamps/AnnotationItemFont.php index c385607..4e578ee 100644 --- a/src/DTO/Documents/AnnotationsStamps/AnnotationItemFont.php +++ b/src/DTO/Documents/AnnotationsStamps/AnnotationItemFont.php @@ -27,8 +27,7 @@ public function __construct( public bool $strikeThrough, public int $fontSize, public int $spacing - ) { - } + ) {} public function values(): array { diff --git a/src/DTO/Documents/AnnotationsStamps/AnnotationItemLayer.php b/src/DTO/Documents/AnnotationsStamps/AnnotationItemLayer.php index f1cc1e0..828c67f 100644 --- a/src/DTO/Documents/AnnotationsStamps/AnnotationItemLayer.php +++ b/src/DTO/Documents/AnnotationsStamps/AnnotationItemLayer.php @@ -18,8 +18,7 @@ public static function fromData(array $data): self public function __construct( public string $id, public Collection $items, - ) { - } + ) {} public function values(): array { diff --git a/src/DTO/Documents/AnnotationsStamps/AnnotationItemLayerItem.php b/src/DTO/Documents/AnnotationsStamps/AnnotationItemLayerItem.php index e64eb4c..58ec1e6 100644 --- a/src/DTO/Documents/AnnotationsStamps/AnnotationItemLayerItem.php +++ b/src/DTO/Documents/AnnotationsStamps/AnnotationItemLayerItem.php @@ -41,8 +41,7 @@ public function __construct( public ?AnnotationItemLocation $from = null, public ?AnnotationItemLocation $to = null, public ?int $id = null, - ) { - } + ) {} public function values(): array { diff --git a/src/DTO/Documents/AnnotationsStamps/AnnotationItemLocation.php b/src/DTO/Documents/AnnotationsStamps/AnnotationItemLocation.php index d22589c..6ea0c30 100644 --- a/src/DTO/Documents/AnnotationsStamps/AnnotationItemLocation.php +++ b/src/DTO/Documents/AnnotationsStamps/AnnotationItemLocation.php @@ -22,8 +22,7 @@ public function __construct( public ?string $top = null, public ?string $width = null, public ?string $height = null, - ) { - } + ) {} public function values(): array { diff --git a/src/DTO/Documents/AnnotationsStamps/AnnotationPlacement.php b/src/DTO/Documents/AnnotationsStamps/AnnotationPlacement.php index 738840a..0474867 100644 --- a/src/DTO/Documents/AnnotationsStamps/AnnotationPlacement.php +++ b/src/DTO/Documents/AnnotationsStamps/AnnotationPlacement.php @@ -17,8 +17,7 @@ public static function fromData(array $data): self public function __construct( public Collection $items, - ) { - } + ) {} public function values(): array { diff --git a/src/DTO/Documents/AnnotationsStamps/Annotations.php b/src/DTO/Documents/AnnotationsStamps/Annotations.php index dfd5ecd..a18d84d 100644 --- a/src/DTO/Documents/AnnotationsStamps/Annotations.php +++ b/src/DTO/Documents/AnnotationsStamps/Annotations.php @@ -22,8 +22,7 @@ public function __construct( public ?int $sectionNumber, public ?AnnotationPlacement $annotationsPlacement = null, public ?Collection $annotation = null, - ) { - } + ) {} public function values(): array { diff --git a/src/DTO/Documents/Document.php b/src/DTO/Documents/Document.php index 04439ef..5a9f1ea 100644 --- a/src/DTO/Documents/Document.php +++ b/src/DTO/Documents/Document.php @@ -78,8 +78,7 @@ public function __construct( public ?Collection $fields, public ?Collection $sections, public ?Collection $suggestions, - ) { - } + ) {} public function isPdf(): bool { diff --git a/src/DTO/Documents/DocumentField.php b/src/DTO/Documents/DocumentField.php index 70ad9e7..d7fe0c1 100644 --- a/src/DTO/Documents/DocumentField.php +++ b/src/DTO/Documents/DocumentField.php @@ -28,8 +28,7 @@ public function __construct( public bool $isNull, public null|int|float|Carbon|string|Collection $value, public string $type, - ) { - } + ) {} public static function fake( ?bool $systemField = false, diff --git a/src/DTO/Documents/DocumentIndex/IndexDateDTO.php b/src/DTO/Documents/DocumentIndex/IndexDateDTO.php index f30f7a3..bc3a37c 100644 --- a/src/DTO/Documents/DocumentIndex/IndexDateDTO.php +++ b/src/DTO/Documents/DocumentIndex/IndexDateDTO.php @@ -9,9 +9,7 @@ class IndexDateDTO public function __construct( public string $name, public null|Carbon|\Carbon\Carbon $value, - ) { - - } + ) {} public static function make(string $name, null|Carbon|\Carbon\Carbon $value): self { diff --git a/src/DTO/Documents/DocumentIndex/IndexDateTimeDTO.php b/src/DTO/Documents/DocumentIndex/IndexDateTimeDTO.php index c7e8c19..4467642 100644 --- a/src/DTO/Documents/DocumentIndex/IndexDateTimeDTO.php +++ b/src/DTO/Documents/DocumentIndex/IndexDateTimeDTO.php @@ -9,9 +9,7 @@ class IndexDateTimeDTO public function __construct( public string $name, public null|Carbon|\Carbon\Carbon $value, - ) { - - } + ) {} public static function make(string $name, null|Carbon|\Carbon\Carbon $value): self { diff --git a/src/DTO/Documents/DocumentIndex/IndexDecimalDTO.php b/src/DTO/Documents/DocumentIndex/IndexDecimalDTO.php index 1f37b04..e1de153 100644 --- a/src/DTO/Documents/DocumentIndex/IndexDecimalDTO.php +++ b/src/DTO/Documents/DocumentIndex/IndexDecimalDTO.php @@ -7,9 +7,7 @@ class IndexDecimalDTO public function __construct( public string $name, public null|int|float $value, - ) { - - } + ) {} public static function make(string $name, null|int|float $value): self { diff --git a/src/DTO/Documents/DocumentIndex/IndexNumericDTO.php b/src/DTO/Documents/DocumentIndex/IndexNumericDTO.php index cddbf3b..abd2b87 100644 --- a/src/DTO/Documents/DocumentIndex/IndexNumericDTO.php +++ b/src/DTO/Documents/DocumentIndex/IndexNumericDTO.php @@ -9,9 +9,7 @@ class IndexNumericDTO public function __construct( public string $name, public ?int $value, - ) { - - } + ) {} public static function make(string $name, ?int $value): self { diff --git a/src/DTO/Documents/DocumentIndex/IndexTableDTO.php b/src/DTO/Documents/DocumentIndex/IndexTableDTO.php index 5c6fe9c..3bda7d9 100644 --- a/src/DTO/Documents/DocumentIndex/IndexTableDTO.php +++ b/src/DTO/Documents/DocumentIndex/IndexTableDTO.php @@ -10,9 +10,7 @@ class IndexTableDTO public function __construct( public string $name, public null|Collection|array $rows, - ) { - - } + ) {} public static function make(string $name, null|Collection|array $rows): self { diff --git a/src/DTO/Documents/DocumentIndex/IndexTextDTO.php b/src/DTO/Documents/DocumentIndex/IndexTextDTO.php index 1f5c237..8917b1a 100644 --- a/src/DTO/Documents/DocumentIndex/IndexTextDTO.php +++ b/src/DTO/Documents/DocumentIndex/IndexTextDTO.php @@ -7,9 +7,7 @@ class IndexTextDTO public function __construct( public string $name, public ?string $value, - ) { - - } + ) {} public static function make(string $name, ?string $value): self { diff --git a/src/DTO/Documents/DocumentPaginator.php b/src/DTO/Documents/DocumentPaginator.php index 55ec562..422e786 100644 --- a/src/DTO/Documents/DocumentPaginator.php +++ b/src/DTO/Documents/DocumentPaginator.php @@ -21,8 +21,7 @@ public function __construct( public int $to, public Collection $documents, public ?ErrorBag $error = null, - ) { - } + ) {} public function showPrev(): bool { diff --git a/src/DTO/Documents/DocumentThumbnail.php b/src/DTO/Documents/DocumentThumbnail.php index bff296d..0a32d52 100644 --- a/src/DTO/Documents/DocumentThumbnail.php +++ b/src/DTO/Documents/DocumentThumbnail.php @@ -22,6 +22,5 @@ public function __construct( public string $mime, public string $data, public string $base64, - ) { - } + ) {} } diff --git a/src/DTO/Documents/DocumentsTrashBin/DeleteDocuments.php b/src/DTO/Documents/DocumentsTrashBin/DeleteDocuments.php index 0eed7bd..9eebdc0 100644 --- a/src/DTO/Documents/DocumentsTrashBin/DeleteDocuments.php +++ b/src/DTO/Documents/DocumentsTrashBin/DeleteDocuments.php @@ -20,6 +20,5 @@ public static function fromData(array $data): self public function __construct( public array $failedItems = [], public int $successCount = 0, - ) { - } + ) {} } diff --git a/src/DTO/Documents/DocumentsTrashBin/RestoreDocuments.php b/src/DTO/Documents/DocumentsTrashBin/RestoreDocuments.php index 476996e..d87bf87 100644 --- a/src/DTO/Documents/DocumentsTrashBin/RestoreDocuments.php +++ b/src/DTO/Documents/DocumentsTrashBin/RestoreDocuments.php @@ -20,6 +20,5 @@ public static function fromData(array $data): self public function __construct( public array $failedItems = [], public int $successCount = 0, - ) { - } + ) {} } diff --git a/src/DTO/Documents/Field.php b/src/DTO/Documents/Field.php index a26cc64..0c8fc4e 100644 --- a/src/DTO/Documents/Field.php +++ b/src/DTO/Documents/Field.php @@ -21,8 +21,7 @@ public function __construct( public string $label, public string $type, public string $scope, - ) { - } + ) {} public function isSystem(): bool { diff --git a/src/DTO/Documents/TableRow.php b/src/DTO/Documents/TableRow.php index 6cb003e..9612b62 100644 --- a/src/DTO/Documents/TableRow.php +++ b/src/DTO/Documents/TableRow.php @@ -24,8 +24,7 @@ protected static function convertFields(Collection $fields): Collection public function __construct( public Collection $fields, - ) { - } + ) {} public static function fake( ?Collection $fields = null, diff --git a/src/DTO/Documents/TrashDocumentPaginator.php b/src/DTO/Documents/TrashDocumentPaginator.php index 5927d98..c67dcd4 100644 --- a/src/DTO/Documents/TrashDocumentPaginator.php +++ b/src/DTO/Documents/TrashDocumentPaginator.php @@ -23,8 +23,7 @@ public function __construct( public Collection $documents, public Collection $mappedDocuments, public ?ErrorBag $error = null, - ) { - } + ) {} public function showPrev(): bool { diff --git a/src/DTO/ErrorBag.php b/src/DTO/ErrorBag.php index b83a186..814f4cd 100644 --- a/src/DTO/ErrorBag.php +++ b/src/DTO/ErrorBag.php @@ -9,8 +9,7 @@ class ErrorBag public function __construct( public int $code, public string $message, - ) { - } + ) {} public static function make(Exception $e): self { diff --git a/src/DTO/FileCabinets/Dialog.php b/src/DTO/FileCabinets/Dialog.php index bfcacd2..9e4c3c6 100644 --- a/src/DTO/FileCabinets/Dialog.php +++ b/src/DTO/FileCabinets/Dialog.php @@ -26,8 +26,7 @@ public function __construct( public bool $isDefault, public string $fileCabinetId, public ?array $fields = null, - ) { - } + ) {} public function isSearch(): bool { diff --git a/src/DTO/FileCabinets/General/FileCabinetInformation.php b/src/DTO/FileCabinets/General/FileCabinetInformation.php index fdbe350..242d2b2 100644 --- a/src/DTO/FileCabinets/General/FileCabinetInformation.php +++ b/src/DTO/FileCabinets/General/FileCabinetInformation.php @@ -38,8 +38,7 @@ public function __construct( public bool $addIndexEntriesInUpperCase, public bool $documentAuditingEnabled, public bool $hasFullTextSupport, - ) { - } + ) {} public static function fake( ?string $color = null, diff --git a/src/DTO/General/Organization/FileCabinet.php b/src/DTO/General/Organization/FileCabinet.php index a48abfc..0e6b973 100644 --- a/src/DTO/General/Organization/FileCabinet.php +++ b/src/DTO/General/Organization/FileCabinet.php @@ -38,8 +38,7 @@ public function __construct( public bool $addIndexEntriesInUpperCase, public bool $documentAuditingEnabled, public bool $hasFullTextSupport, - ) { - } + ) {} public static function fake( ?string $color = null, diff --git a/src/DTO/General/Organization/Organization.php b/src/DTO/General/Organization/Organization.php index 68953a5..26643bc 100644 --- a/src/DTO/General/Organization/Organization.php +++ b/src/DTO/General/Organization/Organization.php @@ -24,8 +24,7 @@ public function __construct( public ?string $guid = null, public array $additionalInfo = [], public array $configurationRights = [], - ) { - } + ) {} public static function fake( ?string $id = null, diff --git a/src/DTO/General/Organization/OrganizationIndex.php b/src/DTO/General/Organization/OrganizationIndex.php index f4b8c20..71a58db 100644 --- a/src/DTO/General/Organization/OrganizationIndex.php +++ b/src/DTO/General/Organization/OrganizationIndex.php @@ -20,8 +20,7 @@ public function __construct( public string $id, public string $name, public ?string $guid = null, - ) { - } + ) {} public static function fake( ?string $id = null, diff --git a/src/DTO/General/UserManagement/CreateUpdateUser/User.php b/src/DTO/General/UserManagement/CreateUpdateUser/User.php index 3dad871..dd0e1ad 100644 --- a/src/DTO/General/UserManagement/CreateUpdateUser/User.php +++ b/src/DTO/General/UserManagement/CreateUpdateUser/User.php @@ -23,8 +23,7 @@ public function __construct( public string $email, public string $password, public ?string $networkId = null, - ) { - } + ) {} public static function fake( ?string $name = null, diff --git a/src/DTO/General/UserManagement/GetModifyGroups/Group.php b/src/DTO/General/UserManagement/GetModifyGroups/Group.php index b1fab04..f37e092 100644 --- a/src/DTO/General/UserManagement/GetModifyGroups/Group.php +++ b/src/DTO/General/UserManagement/GetModifyGroups/Group.php @@ -19,6 +19,5 @@ public function __construct( public string $id, public string $name, public bool $active, - ) { - } + ) {} } diff --git a/src/DTO/General/UserManagement/GetModifyRoles/Role.php b/src/DTO/General/UserManagement/GetModifyRoles/Role.php index 578e63c..6eac160 100644 --- a/src/DTO/General/UserManagement/GetModifyRoles/Role.php +++ b/src/DTO/General/UserManagement/GetModifyRoles/Role.php @@ -21,6 +21,5 @@ public function __construct( public string $name, public bool $active, public string $type, - ) { - } + ) {} } diff --git a/src/DTO/General/UserManagement/GetUsers/OutOfOffice.php b/src/DTO/General/UserManagement/GetUsers/OutOfOffice.php index 195d0e4..802e4cf 100644 --- a/src/DTO/General/UserManagement/GetUsers/OutOfOffice.php +++ b/src/DTO/General/UserManagement/GetUsers/OutOfOffice.php @@ -35,6 +35,5 @@ public function __construct( public bool $startDateTimeSpecified, public ?Carbon $endDateTime, public bool $endDateTimeSpecified, - ) { - } + ) {} } diff --git a/src/DTO/General/UserManagement/GetUsers/RegionalSettings.php b/src/DTO/General/UserManagement/GetUsers/RegionalSettings.php index d7b5278..c926ee8 100644 --- a/src/DTO/General/UserManagement/GetUsers/RegionalSettings.php +++ b/src/DTO/General/UserManagement/GetUsers/RegionalSettings.php @@ -17,6 +17,5 @@ public static function fromJson(array $data): self public function __construct( public ?string $language = null, public ?string $culture = null, - ) { - } + ) {} } diff --git a/src/DTO/General/UserManagement/GetUsers/User.php b/src/DTO/General/UserManagement/GetUsers/User.php index 6727a07..f2d3e65 100644 --- a/src/DTO/General/UserManagement/GetUsers/User.php +++ b/src/DTO/General/UserManagement/GetUsers/User.php @@ -38,8 +38,7 @@ public function __construct( public string $defaultWebBasket, public ?OutOfOffice $outOfOffice, public ?RegionalSettings $regionalSettings, - ) { - } + ) {} public static function fake( ?string $id = null, diff --git a/src/DTO/Section.php b/src/DTO/Section.php index 6d0901b..49c554b 100644 --- a/src/DTO/Section.php +++ b/src/DTO/Section.php @@ -38,6 +38,5 @@ public function __construct( public ?Carbon $contentModified, public bool $annotationsPreview, public ?bool $hasTextAnnotations = null, - ) { - } + ) {} } diff --git a/src/DTO/SuggestionField.php b/src/DTO/SuggestionField.php index a5d933e..6e0a11e 100644 --- a/src/DTO/SuggestionField.php +++ b/src/DTO/SuggestionField.php @@ -21,8 +21,7 @@ public function __construct( public ?string $name, public ?string $db_name, public ?string $confidence, - ) { - } + ) {} public static function fake( array $value = [], diff --git a/src/DTO/Workflow/HistoryStep.php b/src/DTO/Workflow/HistoryStep.php index c184276..20a832a 100644 --- a/src/DTO/Workflow/HistoryStep.php +++ b/src/DTO/Workflow/HistoryStep.php @@ -33,6 +33,5 @@ public function __construct( public string $activityName, public string $activityType, public string $stepType, - ) { - } + ) {} } diff --git a/src/DTO/Workflow/InstanceHistory.php b/src/DTO/Workflow/InstanceHistory.php index 7e5436b..3ae14e0 100644 --- a/src/DTO/Workflow/InstanceHistory.php +++ b/src/DTO/Workflow/InstanceHistory.php @@ -41,6 +41,5 @@ public function __construct( public Carbon $startedAt, public string $docId, public ?Collection $historySteps = null, - ) { - } + ) {} } diff --git a/src/Events/DocuWareOAuthLog.php b/src/Events/DocuWareOAuthLog.php index 41f8cbb..e6f847f 100644 --- a/src/Events/DocuWareOAuthLog.php +++ b/src/Events/DocuWareOAuthLog.php @@ -16,6 +16,5 @@ public function __construct( public string $url, public string $username, public string $message - ) { - } + ) {} } diff --git a/src/Events/DocuWareResponseLog.php b/src/Events/DocuWareResponseLog.php index 662bb76..23250df 100644 --- a/src/Events/DocuWareResponseLog.php +++ b/src/Events/DocuWareResponseLog.php @@ -16,6 +16,5 @@ class DocuWareResponseLog public function __construct( public Response|SaloonResponse $response - ) { - } + ) {} } diff --git a/src/Requests/Authentication/OAuth/GetIdentityServiceConfiguration.php b/src/Requests/Authentication/OAuth/GetIdentityServiceConfiguration.php index df59e97..b07a542 100644 --- a/src/Requests/Authentication/OAuth/GetIdentityServiceConfiguration.php +++ b/src/Requests/Authentication/OAuth/GetIdentityServiceConfiguration.php @@ -21,8 +21,7 @@ class GetIdentityServiceConfiguration extends SoloRequest implements Cacheable public function __construct( public string $identityServiceUrl, - ) { - } + ) {} public function resolveEndpoint(): string { diff --git a/src/Requests/Authentication/OAuth/RequestTokenWithCredentials.php b/src/Requests/Authentication/OAuth/RequestTokenWithCredentials.php index 55e72bb..01bd572 100644 --- a/src/Requests/Authentication/OAuth/RequestTokenWithCredentials.php +++ b/src/Requests/Authentication/OAuth/RequestTokenWithCredentials.php @@ -22,8 +22,7 @@ public function __construct( public readonly ?string $scope = 'docuware.platform', public readonly ?string $username = '', public readonly ?string $password = '', - ) { - } + ) {} public function resolveEndpoint(): string { diff --git a/src/Requests/Authentication/OAuth/RequestTokenWithCredentialsTrustedUser.php b/src/Requests/Authentication/OAuth/RequestTokenWithCredentialsTrustedUser.php index 8912fee..ef4d65f 100644 --- a/src/Requests/Authentication/OAuth/RequestTokenWithCredentialsTrustedUser.php +++ b/src/Requests/Authentication/OAuth/RequestTokenWithCredentialsTrustedUser.php @@ -23,8 +23,7 @@ public function __construct( public readonly string $username = '', public readonly string $password = '', public readonly string $impersonateName = '', - ) { - } + ) {} public function resolveEndpoint(): string { diff --git a/src/Requests/Documents/AnnotationsStamps/AddLineEntryAnnotation.php b/src/Requests/Documents/AnnotationsStamps/AddLineEntryAnnotation.php index 9be3680..b6f4fcb 100644 --- a/src/Requests/Documents/AnnotationsStamps/AddLineEntryAnnotation.php +++ b/src/Requests/Documents/AnnotationsStamps/AddLineEntryAnnotation.php @@ -2,6 +2,4 @@ namespace CodebarAg\DocuWare\Requests\Documents\AnnotationsStamps; -class AddLineEntryAnnotation extends AddStampWithPosition -{ -} +class AddLineEntryAnnotation extends AddStampWithPosition {} diff --git a/src/Requests/Documents/AnnotationsStamps/AddRectEntryAnnotation.php b/src/Requests/Documents/AnnotationsStamps/AddRectEntryAnnotation.php index 7c149b2..033be7e 100644 --- a/src/Requests/Documents/AnnotationsStamps/AddRectEntryAnnotation.php +++ b/src/Requests/Documents/AnnotationsStamps/AddRectEntryAnnotation.php @@ -2,6 +2,4 @@ namespace CodebarAg\DocuWare\Requests\Documents\AnnotationsStamps; -class AddRectEntryAnnotation extends AddStampWithPosition -{ -} +class AddRectEntryAnnotation extends AddStampWithPosition {} diff --git a/src/Requests/Documents/AnnotationsStamps/AddStampWithBestPosition.php b/src/Requests/Documents/AnnotationsStamps/AddStampWithBestPosition.php index d08e850..a0f6410 100644 --- a/src/Requests/Documents/AnnotationsStamps/AddStampWithBestPosition.php +++ b/src/Requests/Documents/AnnotationsStamps/AddStampWithBestPosition.php @@ -2,6 +2,4 @@ namespace CodebarAg\DocuWare\Requests\Documents\AnnotationsStamps; -class AddStampWithBestPosition extends AddStampWithPosition -{ -} +class AddStampWithBestPosition extends AddStampWithPosition {} diff --git a/src/Requests/Documents/AnnotationsStamps/AddStampWithPosition.php b/src/Requests/Documents/AnnotationsStamps/AddStampWithPosition.php index 6cee215..caeddd8 100644 --- a/src/Requests/Documents/AnnotationsStamps/AddStampWithPosition.php +++ b/src/Requests/Documents/AnnotationsStamps/AddStampWithPosition.php @@ -22,8 +22,7 @@ public function __construct( protected readonly string $fileCabinetId, protected readonly string $documentId, protected readonly Annotations $annotations, - ) { - } + ) {} public function resolveEndpoint(): string { diff --git a/src/Requests/Documents/AnnotationsStamps/AddTextAnnotation.php b/src/Requests/Documents/AnnotationsStamps/AddTextAnnotation.php index 83dd4dc..b1c409f 100644 --- a/src/Requests/Documents/AnnotationsStamps/AddTextAnnotation.php +++ b/src/Requests/Documents/AnnotationsStamps/AddTextAnnotation.php @@ -2,6 +2,4 @@ namespace CodebarAg\DocuWare\Requests\Documents\AnnotationsStamps; -class AddTextAnnotation extends AddStampWithPosition -{ -} +class AddTextAnnotation extends AddStampWithPosition {} diff --git a/src/Requests/Documents/AnnotationsStamps/UpdateTextAnnotation.php b/src/Requests/Documents/AnnotationsStamps/UpdateTextAnnotation.php index 77e0630..8b54dea 100644 --- a/src/Requests/Documents/AnnotationsStamps/UpdateTextAnnotation.php +++ b/src/Requests/Documents/AnnotationsStamps/UpdateTextAnnotation.php @@ -2,6 +2,4 @@ namespace CodebarAg\DocuWare\Requests\Documents\AnnotationsStamps; -class UpdateTextAnnotation extends AddStampWithPosition -{ -} +class UpdateTextAnnotation extends AddStampWithPosition {} diff --git a/src/Requests/Documents/ApplicationProperties/AddApplicationProperties.php b/src/Requests/Documents/ApplicationProperties/AddApplicationProperties.php index 2d05564..40fd9b7 100644 --- a/src/Requests/Documents/ApplicationProperties/AddApplicationProperties.php +++ b/src/Requests/Documents/ApplicationProperties/AddApplicationProperties.php @@ -24,8 +24,7 @@ public function __construct( protected readonly string $fileCabinetId, protected readonly string $documentId, protected readonly array $properties, - ) { - } + ) {} public function resolveEndpoint(): string { diff --git a/src/Requests/Documents/ApplicationProperties/DeleteApplicationProperties.php b/src/Requests/Documents/ApplicationProperties/DeleteApplicationProperties.php index 8225369..67d1c4f 100644 --- a/src/Requests/Documents/ApplicationProperties/DeleteApplicationProperties.php +++ b/src/Requests/Documents/ApplicationProperties/DeleteApplicationProperties.php @@ -24,8 +24,7 @@ public function __construct( protected readonly string $fileCabinetId, protected readonly string $documentId, protected readonly array $propertyNames, - ) { - } + ) {} public function resolveEndpoint(): string { diff --git a/src/Requests/Documents/ApplicationProperties/GetApplicationProperties.php b/src/Requests/Documents/ApplicationProperties/GetApplicationProperties.php index 1acfa06..03330ba 100644 --- a/src/Requests/Documents/ApplicationProperties/GetApplicationProperties.php +++ b/src/Requests/Documents/ApplicationProperties/GetApplicationProperties.php @@ -20,8 +20,7 @@ class GetApplicationProperties extends Request implements Cacheable public function __construct( protected readonly string $fileCabinetId, protected readonly string $documentId, - ) { - } + ) {} public function resolveEndpoint(): string { diff --git a/src/Requests/Documents/ApplicationProperties/UpdateApplicationProperties.php b/src/Requests/Documents/ApplicationProperties/UpdateApplicationProperties.php index fc33e59..44ac803 100644 --- a/src/Requests/Documents/ApplicationProperties/UpdateApplicationProperties.php +++ b/src/Requests/Documents/ApplicationProperties/UpdateApplicationProperties.php @@ -24,8 +24,7 @@ public function __construct( protected readonly string $fileCabinetId, protected readonly string $documentId, protected readonly array $properties, - ) { - } + ) {} public function resolveEndpoint(): string { diff --git a/src/Requests/Documents/ClipUnclipStapleUnstaple/Clip.php b/src/Requests/Documents/ClipUnclipStapleUnstaple/Clip.php index 38c65e2..52cd9f5 100644 --- a/src/Requests/Documents/ClipUnclipStapleUnstaple/Clip.php +++ b/src/Requests/Documents/ClipUnclipStapleUnstaple/Clip.php @@ -20,8 +20,7 @@ public function __construct( protected readonly string $documentTrayId, protected readonly array $documents, protected readonly bool $force = false - ) { - } + ) {} public function resolveEndpoint(): string { diff --git a/src/Requests/Documents/ClipUnclipStapleUnstaple/Staple.php b/src/Requests/Documents/ClipUnclipStapleUnstaple/Staple.php index 057abf1..f3f8665 100644 --- a/src/Requests/Documents/ClipUnclipStapleUnstaple/Staple.php +++ b/src/Requests/Documents/ClipUnclipStapleUnstaple/Staple.php @@ -20,8 +20,7 @@ public function __construct( protected readonly string $documentTrayId, protected readonly array $documents, protected readonly bool $force = false - ) { - } + ) {} public function resolveEndpoint(): string { diff --git a/src/Requests/Documents/ClipUnclipStapleUnstaple/Unclip.php b/src/Requests/Documents/ClipUnclipStapleUnstaple/Unclip.php index 2b2cb48..352df77 100644 --- a/src/Requests/Documents/ClipUnclipStapleUnstaple/Unclip.php +++ b/src/Requests/Documents/ClipUnclipStapleUnstaple/Unclip.php @@ -19,8 +19,7 @@ class Unclip extends Request implements HasBody public function __construct( protected readonly string $documentTrayId, protected readonly string $documentId, - ) { - } + ) {} public function resolveEndpoint(): string { diff --git a/src/Requests/Documents/ClipUnclipStapleUnstaple/Unstaple.php b/src/Requests/Documents/ClipUnclipStapleUnstaple/Unstaple.php index dc3f139..7d4f861 100644 --- a/src/Requests/Documents/ClipUnclipStapleUnstaple/Unstaple.php +++ b/src/Requests/Documents/ClipUnclipStapleUnstaple/Unstaple.php @@ -19,8 +19,7 @@ class Unstaple extends Request implements HasBody public function __construct( protected readonly string $documentTrayId, protected readonly string $documentId, - ) { - } + ) {} public function resolveEndpoint(): string { diff --git a/src/Requests/Documents/DocumentsTrashBin/DeleteDocuments.php b/src/Requests/Documents/DocumentsTrashBin/DeleteDocuments.php index d9ab420..e935c1e 100644 --- a/src/Requests/Documents/DocumentsTrashBin/DeleteDocuments.php +++ b/src/Requests/Documents/DocumentsTrashBin/DeleteDocuments.php @@ -19,8 +19,7 @@ class DeleteDocuments extends Request implements HasBody public function __construct( protected readonly array|Collection $ids = [], - ) { - } + ) {} public function resolveEndpoint(): string { diff --git a/src/Requests/Documents/DocumentsTrashBin/GetDocuments.php b/src/Requests/Documents/DocumentsTrashBin/GetDocuments.php index a710a4b..7146614 100644 --- a/src/Requests/Documents/DocumentsTrashBin/GetDocuments.php +++ b/src/Requests/Documents/DocumentsTrashBin/GetDocuments.php @@ -29,8 +29,7 @@ public function __construct( protected readonly string $orderDirection = 'desc', protected readonly array $condition = [], protected readonly ?bool $forceRefresh = true, - ) { - } + ) {} public function resolveEndpoint(): string { diff --git a/src/Requests/Documents/DocumentsTrashBin/RestoreDocuments.php b/src/Requests/Documents/DocumentsTrashBin/RestoreDocuments.php index aebce4b..33b29ad 100644 --- a/src/Requests/Documents/DocumentsTrashBin/RestoreDocuments.php +++ b/src/Requests/Documents/DocumentsTrashBin/RestoreDocuments.php @@ -19,8 +19,7 @@ class RestoreDocuments extends Request implements HasBody public function __construct( protected readonly array|Collection $ids = [], - ) { - } + ) {} public function resolveEndpoint(): string { diff --git a/src/Requests/Documents/Download/DownloadDocument.php b/src/Requests/Documents/Download/DownloadDocument.php index 83fee92..662b0ad 100644 --- a/src/Requests/Documents/Download/DownloadDocument.php +++ b/src/Requests/Documents/Download/DownloadDocument.php @@ -20,8 +20,7 @@ class DownloadDocument extends Request implements Cacheable public function __construct( protected readonly string $fileCabinetId, protected readonly string $documentId, - ) { - } + ) {} public function resolveEndpoint(): string { diff --git a/src/Requests/Documents/Download/DownloadSection.php b/src/Requests/Documents/Download/DownloadSection.php index 2afbf38..f40dea0 100644 --- a/src/Requests/Documents/Download/DownloadSection.php +++ b/src/Requests/Documents/Download/DownloadSection.php @@ -20,8 +20,7 @@ class DownloadSection extends Request implements Cacheable public function __construct( protected readonly string $fileCabinetId, protected readonly string $sectionId, - ) { - } + ) {} public function resolveEndpoint(): string { diff --git a/src/Requests/Documents/Download/DownloadThumbnail.php b/src/Requests/Documents/Download/DownloadThumbnail.php index 213aa94..5dc5afe 100644 --- a/src/Requests/Documents/Download/DownloadThumbnail.php +++ b/src/Requests/Documents/Download/DownloadThumbnail.php @@ -21,8 +21,7 @@ public function __construct( protected readonly string $fileCabinetId, protected readonly string $sectionId, protected readonly int $page = 0, - ) { - } + ) {} public function resolveEndpoint(): string { diff --git a/src/Requests/Documents/GetDocumentPreviewRequest.php b/src/Requests/Documents/GetDocumentPreviewRequest.php index 128773c..e099ea3 100644 --- a/src/Requests/Documents/GetDocumentPreviewRequest.php +++ b/src/Requests/Documents/GetDocumentPreviewRequest.php @@ -20,8 +20,7 @@ class GetDocumentPreviewRequest extends Request implements Cacheable public function __construct( protected readonly string $fileCabinetId, protected readonly string $documentId, - ) { - } + ) {} public function resolveEndpoint(): string { diff --git a/src/Requests/Documents/ModifyDocuments/DeleteDocument.php b/src/Requests/Documents/ModifyDocuments/DeleteDocument.php index ad448b0..d33ff5c 100644 --- a/src/Requests/Documents/ModifyDocuments/DeleteDocument.php +++ b/src/Requests/Documents/ModifyDocuments/DeleteDocument.php @@ -14,8 +14,7 @@ class DeleteDocument extends Request public function __construct( protected readonly string $fileCabinetId, protected readonly string $documentId, - ) { - } + ) {} public function resolveEndpoint(): string { diff --git a/src/Requests/Documents/ModifyDocuments/TransferDocument.php b/src/Requests/Documents/ModifyDocuments/TransferDocument.php index 5b7b3eb..3431ec5 100644 --- a/src/Requests/Documents/ModifyDocuments/TransferDocument.php +++ b/src/Requests/Documents/ModifyDocuments/TransferDocument.php @@ -21,8 +21,7 @@ public function __construct( protected readonly string $storeDialogId, protected readonly string $documentId, protected readonly array $fields = [], - ) { - } + ) {} public function resolveEndpoint(): string { diff --git a/src/Requests/Documents/Sections/DeleteSection.php b/src/Requests/Documents/Sections/DeleteSection.php index e4a4cc2..681e9b8 100644 --- a/src/Requests/Documents/Sections/DeleteSection.php +++ b/src/Requests/Documents/Sections/DeleteSection.php @@ -20,8 +20,7 @@ class DeleteSection extends Request implements Cacheable public function __construct( protected readonly string $fileCabinetId, protected readonly string $sectionId, - ) { - } + ) {} public function resolveEndpoint(): string { diff --git a/src/Requests/Documents/Sections/GetASpecificSection.php b/src/Requests/Documents/Sections/GetASpecificSection.php index c7ab4b9..840c1d2 100644 --- a/src/Requests/Documents/Sections/GetASpecificSection.php +++ b/src/Requests/Documents/Sections/GetASpecificSection.php @@ -21,8 +21,7 @@ class GetASpecificSection extends Request implements Cacheable public function __construct( protected readonly string $fileCabinetId, protected readonly string $sectionId, - ) { - } + ) {} public function resolveEndpoint(): string { diff --git a/src/Requests/Documents/Sections/GetAllSectionsFromADocument.php b/src/Requests/Documents/Sections/GetAllSectionsFromADocument.php index 45b87f2..eb106e3 100644 --- a/src/Requests/Documents/Sections/GetAllSectionsFromADocument.php +++ b/src/Requests/Documents/Sections/GetAllSectionsFromADocument.php @@ -22,8 +22,7 @@ class GetAllSectionsFromADocument extends Request implements Cacheable public function __construct( protected readonly string $fileCabinetId, protected readonly string $documentId - ) { - } + ) {} public function resolveEndpoint(): string { diff --git a/src/Requests/Documents/UpdateIndexValues/UpdateIndexValues.php b/src/Requests/Documents/UpdateIndexValues/UpdateIndexValues.php index 62e4784..f6ace23 100644 --- a/src/Requests/Documents/UpdateIndexValues/UpdateIndexValues.php +++ b/src/Requests/Documents/UpdateIndexValues/UpdateIndexValues.php @@ -26,8 +26,7 @@ public function __construct( protected readonly string $documentId, protected readonly ?Collection $indexes = null, protected readonly bool $forceUpdate = false, - ) { - } + ) {} public function resolveEndpoint(): string { diff --git a/src/Requests/Fields/GetFieldsRequest.php b/src/Requests/Fields/GetFieldsRequest.php index 3361f53..614b9e1 100644 --- a/src/Requests/Fields/GetFieldsRequest.php +++ b/src/Requests/Fields/GetFieldsRequest.php @@ -21,8 +21,7 @@ class GetFieldsRequest extends Request implements Cacheable public function __construct( protected readonly string $fileCabinetId - ) { - } + ) {} public function resolveEndpoint(): string { diff --git a/src/Requests/FileCabinets/Dialogs/GetASpecificDialog.php b/src/Requests/FileCabinets/Dialogs/GetASpecificDialog.php index 2bcd243..f82ef14 100644 --- a/src/Requests/FileCabinets/Dialogs/GetASpecificDialog.php +++ b/src/Requests/FileCabinets/Dialogs/GetASpecificDialog.php @@ -20,8 +20,7 @@ class GetASpecificDialog extends Request implements Cacheable public function __construct( protected readonly string $fileCabinetId, protected readonly string $dialogId - ) { - } + ) {} public function resolveEndpoint(): string { diff --git a/src/Requests/FileCabinets/Dialogs/GetAllDialogs.php b/src/Requests/FileCabinets/Dialogs/GetAllDialogs.php index 945fc79..0d7a62a 100644 --- a/src/Requests/FileCabinets/Dialogs/GetAllDialogs.php +++ b/src/Requests/FileCabinets/Dialogs/GetAllDialogs.php @@ -19,8 +19,7 @@ class GetAllDialogs extends Request implements Cacheable public function __construct( protected readonly string $fileCabinetId - ) { - } + ) {} public function resolveEndpoint(): string { diff --git a/src/Requests/FileCabinets/Dialogs/GetDialogsOfASpecificType.php b/src/Requests/FileCabinets/Dialogs/GetDialogsOfASpecificType.php index e1daddc..60991eb 100644 --- a/src/Requests/FileCabinets/Dialogs/GetDialogsOfASpecificType.php +++ b/src/Requests/FileCabinets/Dialogs/GetDialogsOfASpecificType.php @@ -21,8 +21,7 @@ class GetDialogsOfASpecificType extends Request implements Cacheable public function __construct( protected readonly string $fileCabinetId, protected readonly DialogType $dialogType, - ) { - } + ) {} public function resolveEndpoint(): string { diff --git a/src/Requests/FileCabinets/General/GetFileCabinetInformation.php b/src/Requests/FileCabinets/General/GetFileCabinetInformation.php index baf42a0..9ab5021 100644 --- a/src/Requests/FileCabinets/General/GetFileCabinetInformation.php +++ b/src/Requests/FileCabinets/General/GetFileCabinetInformation.php @@ -20,8 +20,7 @@ class GetFileCabinetInformation extends Request implements Cacheable public function __construct( public readonly string $fileCabinetId, - ) { - } + ) {} public function resolveEndpoint(): string { diff --git a/src/Requests/FileCabinets/General/GetTotalNumberOfDocuments.php b/src/Requests/FileCabinets/General/GetTotalNumberOfDocuments.php index 5ec2f1d..a1fcfb2 100644 --- a/src/Requests/FileCabinets/General/GetTotalNumberOfDocuments.php +++ b/src/Requests/FileCabinets/General/GetTotalNumberOfDocuments.php @@ -20,8 +20,7 @@ class GetTotalNumberOfDocuments extends Request implements Cacheable public function __construct( protected readonly string $fileCabinetId, protected readonly string $searchDialogId, - ) { - } + ) {} public function resolveEndpoint(): string { diff --git a/src/Requests/FileCabinets/Search/GetASpecificDocumentFromAFileCabinet.php b/src/Requests/FileCabinets/Search/GetASpecificDocumentFromAFileCabinet.php index fb9a0ac..85ef4c4 100644 --- a/src/Requests/FileCabinets/Search/GetASpecificDocumentFromAFileCabinet.php +++ b/src/Requests/FileCabinets/Search/GetASpecificDocumentFromAFileCabinet.php @@ -21,8 +21,7 @@ class GetASpecificDocumentFromAFileCabinet extends Request implements Cacheable public function __construct( protected readonly string $fileCabinetId, protected readonly string $documentId, - ) { - } + ) {} public function resolveEndpoint(): string { diff --git a/src/Requests/FileCabinets/Search/GetDocumentsFromAFileCabinet.php b/src/Requests/FileCabinets/Search/GetDocumentsFromAFileCabinet.php index ce4790e..537611d 100644 --- a/src/Requests/FileCabinets/Search/GetDocumentsFromAFileCabinet.php +++ b/src/Requests/FileCabinets/Search/GetDocumentsFromAFileCabinet.php @@ -23,8 +23,7 @@ public function __construct( protected readonly array $fields = [], protected readonly int $page = 1, protected readonly int $perPage = 50, - ) { - } + ) {} public function defaultQuery(): array { diff --git a/src/Requests/FileCabinets/SelectLists/GetFilteredSelectLists.php b/src/Requests/FileCabinets/SelectLists/GetFilteredSelectLists.php index 62433ac..df675a8 100644 --- a/src/Requests/FileCabinets/SelectLists/GetFilteredSelectLists.php +++ b/src/Requests/FileCabinets/SelectLists/GetFilteredSelectLists.php @@ -21,8 +21,7 @@ public function __construct( protected readonly string $fileCabinetId, protected readonly string $dialogId, protected readonly string $fieldName, - ) { - } + ) {} public function resolveEndpoint(): string { diff --git a/src/Requests/FileCabinets/SelectLists/GetSelectLists.php b/src/Requests/FileCabinets/SelectLists/GetSelectLists.php index 0f48f43..7b70a4c 100644 --- a/src/Requests/FileCabinets/SelectLists/GetSelectLists.php +++ b/src/Requests/FileCabinets/SelectLists/GetSelectLists.php @@ -21,8 +21,7 @@ public function __construct( protected readonly string $fileCabinetId, protected readonly string $dialogId, protected readonly string $fieldName, - ) { - } + ) {} public function resolveEndpoint(): string { diff --git a/src/Requests/FileCabinets/Upload/CreateDataRecord.php b/src/Requests/FileCabinets/Upload/CreateDataRecord.php index d090cdd..fb44e8a 100644 --- a/src/Requests/FileCabinets/Upload/CreateDataRecord.php +++ b/src/Requests/FileCabinets/Upload/CreateDataRecord.php @@ -24,8 +24,7 @@ public function __construct( protected readonly ?string $fileContent, protected readonly ?string $fileName, protected readonly ?Collection $indexes = null, - ) { - } + ) {} public function resolveEndpoint(): string { diff --git a/src/Requests/General/Organization/GetAllFileCabinetsAndDocumentTrays.php b/src/Requests/General/Organization/GetAllFileCabinetsAndDocumentTrays.php index 3aecc61..06a31e4 100644 --- a/src/Requests/General/Organization/GetAllFileCabinetsAndDocumentTrays.php +++ b/src/Requests/General/Organization/GetAllFileCabinetsAndDocumentTrays.php @@ -24,8 +24,7 @@ class GetAllFileCabinetsAndDocumentTrays extends Request implements Cacheable */ public function __construct( public ?string $organizationId = null, - ) { - } + ) {} public function resolveEndpoint(): string { diff --git a/src/Requests/General/Organization/GetLoginToken.php b/src/Requests/General/Organization/GetLoginToken.php index 5ece850..12f65fb 100644 --- a/src/Requests/General/Organization/GetLoginToken.php +++ b/src/Requests/General/Organization/GetLoginToken.php @@ -24,8 +24,7 @@ public function __construct( public array $targetProducts = ['PlatformService'], public string $usage = 'Multi', public string $lifetime = '1.00:00:00', - ) { - } + ) {} public function resolveEndpoint(): string { diff --git a/src/Requests/General/UserManagement/CreateUpdateUsers/CreateUser.php b/src/Requests/General/UserManagement/CreateUpdateUsers/CreateUser.php index ff3a5b4..ec6cb16 100644 --- a/src/Requests/General/UserManagement/CreateUpdateUsers/CreateUser.php +++ b/src/Requests/General/UserManagement/CreateUpdateUsers/CreateUser.php @@ -24,8 +24,7 @@ class CreateUser extends Request implements Cacheable, HasBody public function __construct( protected readonly User $user, - ) { - } + ) {} public function resolveEndpoint(): string { diff --git a/src/Requests/General/UserManagement/CreateUpdateUsers/UpdateUser.php b/src/Requests/General/UserManagement/CreateUpdateUsers/UpdateUser.php index 8e0c43d..2d06e91 100644 --- a/src/Requests/General/UserManagement/CreateUpdateUsers/UpdateUser.php +++ b/src/Requests/General/UserManagement/CreateUpdateUsers/UpdateUser.php @@ -23,8 +23,7 @@ class UpdateUser extends Request implements Cacheable, HasBody public function __construct( protected readonly User $user, - ) { - } + ) {} public function resolveEndpoint(): string { diff --git a/src/Requests/General/UserManagement/GetModifyGroups/AddUserToAGroup.php b/src/Requests/General/UserManagement/GetModifyGroups/AddUserToAGroup.php index 94064fb..00db60d 100644 --- a/src/Requests/General/UserManagement/GetModifyGroups/AddUserToAGroup.php +++ b/src/Requests/General/UserManagement/GetModifyGroups/AddUserToAGroup.php @@ -19,8 +19,7 @@ class AddUserToAGroup extends Request implements HasBody public function __construct( public string $userId, public array $ids - ) { - } + ) {} public function resolveEndpoint(): string { diff --git a/src/Requests/General/UserManagement/GetModifyGroups/GetAllGroupsForASpecificUser.php b/src/Requests/General/UserManagement/GetModifyGroups/GetAllGroupsForASpecificUser.php index c81f358..7d3812b 100644 --- a/src/Requests/General/UserManagement/GetModifyGroups/GetAllGroupsForASpecificUser.php +++ b/src/Requests/General/UserManagement/GetModifyGroups/GetAllGroupsForASpecificUser.php @@ -23,8 +23,7 @@ public function __construct( public string $userId, public ?string $name = null, public ?bool $active = null, - ) { - } + ) {} public function resolveEndpoint(): string { diff --git a/src/Requests/General/UserManagement/GetModifyGroups/GetGroups.php b/src/Requests/General/UserManagement/GetModifyGroups/GetGroups.php index 616669a..bfcb872 100644 --- a/src/Requests/General/UserManagement/GetModifyGroups/GetGroups.php +++ b/src/Requests/General/UserManagement/GetModifyGroups/GetGroups.php @@ -22,8 +22,7 @@ class GetGroups extends Request implements Cacheable public function __construct( public ?string $name = null, public ?bool $active = null, - ) { - } + ) {} public function resolveEndpoint(): string { diff --git a/src/Requests/General/UserManagement/GetModifyGroups/RemoveUserFromAGroup.php b/src/Requests/General/UserManagement/GetModifyGroups/RemoveUserFromAGroup.php index 91786e4..a1a04cf 100644 --- a/src/Requests/General/UserManagement/GetModifyGroups/RemoveUserFromAGroup.php +++ b/src/Requests/General/UserManagement/GetModifyGroups/RemoveUserFromAGroup.php @@ -19,8 +19,7 @@ class RemoveUserFromAGroup extends Request implements HasBody public function __construct( public string $userId, public array $ids - ) { - } + ) {} public function resolveEndpoint(): string { diff --git a/src/Requests/General/UserManagement/GetModifyRoles/AddUserToARole.php b/src/Requests/General/UserManagement/GetModifyRoles/AddUserToARole.php index 0c9a610..f61095b 100644 --- a/src/Requests/General/UserManagement/GetModifyRoles/AddUserToARole.php +++ b/src/Requests/General/UserManagement/GetModifyRoles/AddUserToARole.php @@ -19,8 +19,7 @@ class AddUserToARole extends Request implements HasBody public function __construct( public string $userId, public array $ids - ) { - } + ) {} public function resolveEndpoint(): string { diff --git a/src/Requests/General/UserManagement/GetModifyRoles/GetAllRolesForASpecificUser.php b/src/Requests/General/UserManagement/GetModifyRoles/GetAllRolesForASpecificUser.php index 6d469c6..5d2b70b 100644 --- a/src/Requests/General/UserManagement/GetModifyRoles/GetAllRolesForASpecificUser.php +++ b/src/Requests/General/UserManagement/GetModifyRoles/GetAllRolesForASpecificUser.php @@ -24,8 +24,7 @@ public function __construct( public ?string $name = null, public ?bool $active = null, public ?string $type = null, - ) { - } + ) {} public function resolveEndpoint(): string { diff --git a/src/Requests/General/UserManagement/GetModifyRoles/GetRoles.php b/src/Requests/General/UserManagement/GetModifyRoles/GetRoles.php index f36cf9e..961b251 100644 --- a/src/Requests/General/UserManagement/GetModifyRoles/GetRoles.php +++ b/src/Requests/General/UserManagement/GetModifyRoles/GetRoles.php @@ -23,8 +23,7 @@ public function __construct( public ?string $name = null, public ?bool $active = null, public ?string $type = null, - ) { - } + ) {} public function resolveEndpoint(): string { diff --git a/src/Requests/General/UserManagement/GetModifyRoles/RemoveUserFromARole.php b/src/Requests/General/UserManagement/GetModifyRoles/RemoveUserFromARole.php index bf53307..abc7cf7 100644 --- a/src/Requests/General/UserManagement/GetModifyRoles/RemoveUserFromARole.php +++ b/src/Requests/General/UserManagement/GetModifyRoles/RemoveUserFromARole.php @@ -19,8 +19,7 @@ class RemoveUserFromARole extends Request implements HasBody public function __construct( public string $userId, public array $ids - ) { - } + ) {} public function resolveEndpoint(): string { diff --git a/src/Requests/General/UserManagement/GetUsers/GetUserById.php b/src/Requests/General/UserManagement/GetUsers/GetUserById.php index 9d724c8..c48fd1a 100644 --- a/src/Requests/General/UserManagement/GetUsers/GetUserById.php +++ b/src/Requests/General/UserManagement/GetUsers/GetUserById.php @@ -20,8 +20,7 @@ class GetUserById extends Request implements Cacheable public function __construct( public string $userId, - ) { - } + ) {} public function resolveEndpoint(): string { diff --git a/src/Requests/General/UserManagement/GetUsers/GetUsers.php b/src/Requests/General/UserManagement/GetUsers/GetUsers.php index c161f85..5645dc0 100644 --- a/src/Requests/General/UserManagement/GetUsers/GetUsers.php +++ b/src/Requests/General/UserManagement/GetUsers/GetUsers.php @@ -22,8 +22,7 @@ class GetUsers extends Request implements Cacheable public function __construct( public ?string $name = null, public ?bool $active = null, - ) { - } + ) {} public function resolveEndpoint(): string { diff --git a/src/Requests/General/UserManagement/GetUsers/GetUsersOfAGroup.php b/src/Requests/General/UserManagement/GetUsers/GetUsersOfAGroup.php index e4054c9..753ae7b 100644 --- a/src/Requests/General/UserManagement/GetUsers/GetUsersOfAGroup.php +++ b/src/Requests/General/UserManagement/GetUsers/GetUsersOfAGroup.php @@ -21,8 +21,7 @@ class GetUsersOfAGroup extends Request implements Cacheable public function __construct( public ?string $groupId = null, - ) { - } + ) {} public function resolveEndpoint(): string { diff --git a/src/Requests/General/UserManagement/GetUsers/GetUsersOfARole.php b/src/Requests/General/UserManagement/GetUsers/GetUsersOfARole.php index 3e0a90a..217cfd2 100644 --- a/src/Requests/General/UserManagement/GetUsers/GetUsersOfARole.php +++ b/src/Requests/General/UserManagement/GetUsers/GetUsersOfARole.php @@ -22,8 +22,7 @@ class GetUsersOfARole extends Request implements Cacheable public function __construct( public ?string $roleId = null, public ?bool $includeGroupUsers = null, - ) { - } + ) {} public function resolveEndpoint(): string { diff --git a/src/Requests/Search/GetSearchRequest.php b/src/Requests/Search/GetSearchRequest.php index 0b49f54..2438c00 100644 --- a/src/Requests/Search/GetSearchRequest.php +++ b/src/Requests/Search/GetSearchRequest.php @@ -31,8 +31,7 @@ public function __construct( protected readonly string $orderField = 'DWSTOREDATETIME', protected readonly string $orderDirection = 'asc', protected readonly array $condition = [], - ) { - } + ) {} public function resolveEndpoint(): string { diff --git a/src/Requests/Workflow/GetDocumentWorkflowHistory.php b/src/Requests/Workflow/GetDocumentWorkflowHistory.php index a792088..e3fd08e 100644 --- a/src/Requests/Workflow/GetDocumentWorkflowHistory.php +++ b/src/Requests/Workflow/GetDocumentWorkflowHistory.php @@ -21,8 +21,7 @@ class GetDocumentWorkflowHistory extends Request implements Cacheable public function __construct( protected readonly string $fileCabinetId, protected readonly string $documentId, - ) { - } + ) {} public function resolveEndpoint(): string { diff --git a/src/Requests/Workflow/GetDocumentWorkflowHistorySteps.php b/src/Requests/Workflow/GetDocumentWorkflowHistorySteps.php index d596486..4799212 100644 --- a/src/Requests/Workflow/GetDocumentWorkflowHistorySteps.php +++ b/src/Requests/Workflow/GetDocumentWorkflowHistorySteps.php @@ -21,8 +21,7 @@ class GetDocumentWorkflowHistorySteps extends Request implements Cacheable public function __construct( protected readonly string $workflowId, protected readonly string $workflowInstanceId, - ) { - } + ) {} public function resolveEndpoint(): string { From 5d4e74e1ea4de1ea4b28e43547b11e6f66eb93a7 Mon Sep 17 00:00:00 2001 From: Rhys Lees <43909932+RhysLees@users.noreply.github.com> Date: Thu, 4 Jul 2024 22:07:02 +0200 Subject: [PATCH 47/54] WIP --- .../Documents/AnnotationsStaps/AddStampWithBestPositionTest.php | 2 +- .../Documents/AnnotationsStaps/AddStampWithPositionTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Feature/Requests/Documents/AnnotationsStaps/AddStampWithBestPositionTest.php b/tests/Feature/Requests/Documents/AnnotationsStaps/AddStampWithBestPositionTest.php index 3e615f3..db803c9 100644 --- a/tests/Feature/Requests/Documents/AnnotationsStaps/AddStampWithBestPositionTest.php +++ b/tests/Feature/Requests/Documents/AnnotationsStaps/AddStampWithBestPositionTest.php @@ -27,6 +27,7 @@ items: collect([ new AnnotationItem( type: 'StampPlacement', + layer: 1, field: collect([ new AnnotationItemField( name: '<#1>', @@ -38,7 +39,6 @@ textAsString: 'Test', ), ]), - layer: 1, stampId: 'e1b3f6cc-ed69-4af2-afa5-6d990c0144c5', ), ]), diff --git a/tests/Feature/Requests/Documents/AnnotationsStaps/AddStampWithPositionTest.php b/tests/Feature/Requests/Documents/AnnotationsStaps/AddStampWithPositionTest.php index dfbf8e7..cbe6e6b 100644 --- a/tests/Feature/Requests/Documents/AnnotationsStaps/AddStampWithPositionTest.php +++ b/tests/Feature/Requests/Documents/AnnotationsStaps/AddStampWithPositionTest.php @@ -28,6 +28,7 @@ items: collect([ new AnnotationItem( type: 'StampPlacement', + layer: 1, field: collect([ new AnnotationItemField( name: '<#1>', @@ -39,7 +40,6 @@ textAsString: 'Test', ), ]), - layer: 1, location: new AnnotationItemLocation( x: 0.5, y: 0.5, From 9de52701c001de04add24a8e525710d7b7bc9db8 Mon Sep 17 00:00:00 2001 From: Rhys Lees <43909932+RhysLees@users.noreply.github.com> Date: Thu, 4 Jul 2024 22:13:54 +0200 Subject: [PATCH 48/54] WIP --- .../AddLineEntryAnnotationTest.php | 0 .../AddRectEntryAnnotationTest.php | 0 .../AddStampWithBestPositionTest.php | 0 .../AddStampWithPositionTest.php | 0 .../AddTextAnnotationTest.php | 0 .../UpdateTextAnnotationTest.php | 0 6 files changed, 0 insertions(+), 0 deletions(-) rename tests/Feature/Requests/Documents/{AnnotationsStaps => AnnotationsStamps}/AddLineEntryAnnotationTest.php (100%) rename tests/Feature/Requests/Documents/{AnnotationsStaps => AnnotationsStamps}/AddRectEntryAnnotationTest.php (100%) rename tests/Feature/Requests/Documents/{AnnotationsStaps => AnnotationsStamps}/AddStampWithBestPositionTest.php (100%) rename tests/Feature/Requests/Documents/{AnnotationsStaps => AnnotationsStamps}/AddStampWithPositionTest.php (100%) rename tests/Feature/Requests/Documents/{AnnotationsStaps => AnnotationsStamps}/AddTextAnnotationTest.php (100%) rename tests/Feature/Requests/Documents/{AnnotationsStaps => AnnotationsStamps}/UpdateTextAnnotationTest.php (100%) diff --git a/tests/Feature/Requests/Documents/AnnotationsStaps/AddLineEntryAnnotationTest.php b/tests/Feature/Requests/Documents/AnnotationsStamps/AddLineEntryAnnotationTest.php similarity index 100% rename from tests/Feature/Requests/Documents/AnnotationsStaps/AddLineEntryAnnotationTest.php rename to tests/Feature/Requests/Documents/AnnotationsStamps/AddLineEntryAnnotationTest.php diff --git a/tests/Feature/Requests/Documents/AnnotationsStaps/AddRectEntryAnnotationTest.php b/tests/Feature/Requests/Documents/AnnotationsStamps/AddRectEntryAnnotationTest.php similarity index 100% rename from tests/Feature/Requests/Documents/AnnotationsStaps/AddRectEntryAnnotationTest.php rename to tests/Feature/Requests/Documents/AnnotationsStamps/AddRectEntryAnnotationTest.php diff --git a/tests/Feature/Requests/Documents/AnnotationsStaps/AddStampWithBestPositionTest.php b/tests/Feature/Requests/Documents/AnnotationsStamps/AddStampWithBestPositionTest.php similarity index 100% rename from tests/Feature/Requests/Documents/AnnotationsStaps/AddStampWithBestPositionTest.php rename to tests/Feature/Requests/Documents/AnnotationsStamps/AddStampWithBestPositionTest.php diff --git a/tests/Feature/Requests/Documents/AnnotationsStaps/AddStampWithPositionTest.php b/tests/Feature/Requests/Documents/AnnotationsStamps/AddStampWithPositionTest.php similarity index 100% rename from tests/Feature/Requests/Documents/AnnotationsStaps/AddStampWithPositionTest.php rename to tests/Feature/Requests/Documents/AnnotationsStamps/AddStampWithPositionTest.php diff --git a/tests/Feature/Requests/Documents/AnnotationsStaps/AddTextAnnotationTest.php b/tests/Feature/Requests/Documents/AnnotationsStamps/AddTextAnnotationTest.php similarity index 100% rename from tests/Feature/Requests/Documents/AnnotationsStaps/AddTextAnnotationTest.php rename to tests/Feature/Requests/Documents/AnnotationsStamps/AddTextAnnotationTest.php diff --git a/tests/Feature/Requests/Documents/AnnotationsStaps/UpdateTextAnnotationTest.php b/tests/Feature/Requests/Documents/AnnotationsStamps/UpdateTextAnnotationTest.php similarity index 100% rename from tests/Feature/Requests/Documents/AnnotationsStaps/UpdateTextAnnotationTest.php rename to tests/Feature/Requests/Documents/AnnotationsStamps/UpdateTextAnnotationTest.php From 66497d3d63cdeba53c591c2bba46d86a9aa24fd7 Mon Sep 17 00:00:00 2001 From: Rhys Lees <43909932+RhysLees@users.noreply.github.com> Date: Thu, 4 Jul 2024 22:31:26 +0200 Subject: [PATCH 49/54] Remove AnnotationsStamps --- .gitignore | 9 ++ .../AnnotationsStamps/Annotation.php | 30 ----- .../AnnotationsStamps/AnnotationItem.php | 117 ------------------ .../AnnotationItemCreated.php | 29 ----- .../AnnotationsStamps/AnnotationItemField.php | 35 ------ .../AnnotationItemFieldTypedValue.php | 29 ----- .../AnnotationsStamps/AnnotationItemFont.php | 44 ------- .../AnnotationsStamps/AnnotationItemLayer.php | 30 ----- .../AnnotationItemLayerItem.php | 103 --------------- .../AnnotationItemLocation.php | 38 ------ .../AnnotationsStamps/AnnotationPlacement.php | 28 ----- .../AnnotationsStamps/Annotations.php | 46 ------- .../AddLineEntryAnnotation.php | 5 - .../AddRectEntryAnnotation.php | 5 - .../AddStampWithBestPosition.php | 5 - .../AddStampWithPosition.php | 47 ------- .../AnnotationsStamps/AddTextAnnotation.php | 5 - .../UpdateTextAnnotation.php | 5 - .../AddStampWithPositionResponse.php | 24 ---- .../AddLineEntryAnnotationTest.php | 69 ----------- .../AddRectEntryAnnotationTest.php | 68 ---------- .../AddStampWithBestPositionTest.php | 58 --------- .../AddStampWithPositionTest.php | 63 ---------- .../AddTextAnnotationTest.php | 77 ------------ .../UpdateTextAnnotationTest.php | 78 ------------ 25 files changed, 9 insertions(+), 1038 deletions(-) delete mode 100644 src/DTO/Documents/AnnotationsStamps/Annotation.php delete mode 100644 src/DTO/Documents/AnnotationsStamps/AnnotationItem.php delete mode 100644 src/DTO/Documents/AnnotationsStamps/AnnotationItemCreated.php delete mode 100644 src/DTO/Documents/AnnotationsStamps/AnnotationItemField.php delete mode 100644 src/DTO/Documents/AnnotationsStamps/AnnotationItemFieldTypedValue.php delete mode 100644 src/DTO/Documents/AnnotationsStamps/AnnotationItemFont.php delete mode 100644 src/DTO/Documents/AnnotationsStamps/AnnotationItemLayer.php delete mode 100644 src/DTO/Documents/AnnotationsStamps/AnnotationItemLayerItem.php delete mode 100644 src/DTO/Documents/AnnotationsStamps/AnnotationItemLocation.php delete mode 100644 src/DTO/Documents/AnnotationsStamps/AnnotationPlacement.php delete mode 100644 src/DTO/Documents/AnnotationsStamps/Annotations.php delete mode 100644 src/Requests/Documents/AnnotationsStamps/AddLineEntryAnnotation.php delete mode 100644 src/Requests/Documents/AnnotationsStamps/AddRectEntryAnnotation.php delete mode 100644 src/Requests/Documents/AnnotationsStamps/AddStampWithBestPosition.php delete mode 100644 src/Requests/Documents/AnnotationsStamps/AddStampWithPosition.php delete mode 100644 src/Requests/Documents/AnnotationsStamps/AddTextAnnotation.php delete mode 100644 src/Requests/Documents/AnnotationsStamps/UpdateTextAnnotation.php delete mode 100644 src/Responses/Documents/AnnotationsStamps/AddStampWithPositionResponse.php delete mode 100644 tests/Feature/Requests/Documents/AnnotationsStamps/AddLineEntryAnnotationTest.php delete mode 100644 tests/Feature/Requests/Documents/AnnotationsStamps/AddRectEntryAnnotationTest.php delete mode 100644 tests/Feature/Requests/Documents/AnnotationsStamps/AddStampWithBestPositionTest.php delete mode 100644 tests/Feature/Requests/Documents/AnnotationsStamps/AddStampWithPositionTest.php delete mode 100644 tests/Feature/Requests/Documents/AnnotationsStamps/AddTextAnnotationTest.php delete mode 100644 tests/Feature/Requests/Documents/AnnotationsStamps/UpdateTextAnnotationTest.php diff --git a/.gitignore b/.gitignore index e8de7f7..2a6a14c 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,12 @@ testbench.yaml vendor node_modules .phpactor.json + + + +## Annotations + +src/DTO/Documents/AnnotationsStamps/* +src/Requests/Documents/AnnotationsStamps/* +src/Responses/Documents/AnnotationsStamps/* +tests/Feature/Requests/Documents/AnnotationsStamps/* diff --git a/src/DTO/Documents/AnnotationsStamps/Annotation.php b/src/DTO/Documents/AnnotationsStamps/Annotation.php deleted file mode 100644 index 01991d4..0000000 --- a/src/DTO/Documents/AnnotationsStamps/Annotation.php +++ /dev/null @@ -1,30 +0,0 @@ -map(fn (array $item) => AnnotationItem::fromData($item)) : null, - id: Arr::get($data, 'Id'), - ); - } - - public function __construct( - public ?Collection $items, - public int $id, - ) {} - - public function values(): array - { - return [ - 'Items' => $this->items->values(), - 'Id' => $this->id, - ]; - } -} diff --git a/src/DTO/Documents/AnnotationsStamps/AnnotationItem.php b/src/DTO/Documents/AnnotationsStamps/AnnotationItem.php deleted file mode 100644 index 4c60ea5..0000000 --- a/src/DTO/Documents/AnnotationsStamps/AnnotationItem.php +++ /dev/null @@ -1,117 +0,0 @@ -map(fn (array $layer) => AnnotationItemLayer::fromData($layer)); - } else { - $layer = Arr::get($data, 'Layer'); - } - } - - return new self( - type: Arr::get($data, '$type'), - layer: $layer ?? null, - field: collect(Arr::get($data, 'Field')) - ->map(fn (array $field) => AnnotationItemField::fromData($field)), - password: Arr::get($data, 'Password'), - font: Arr::has($data, 'Font') ? AnnotationItemFont::fromData(Arr::get($data, 'Font')) : null, - location: Arr::has($data, 'Location') ? AnnotationItemLocation::fromData(Arr::get($data, 'Location')) : null, - headFont: Arr::has($data, 'HeadFont') ? AnnotationItemFont::fromData(Arr::get($data, 'HeadFont')) : null, - signature: Arr::get($data, 'Signature'), - userName: Arr::get($data, 'UserName'), - visible: Arr::get($data, 'Visible'), - frame: Arr::get($data, 'Frame'), - showUser: Arr::get($data, 'ShowUser'), - showDate: Arr::get($data, 'ShowDate'), - showTime: Arr::get($data, 'ShowTime'), - created: Arr::has($data, 'Created') ? AnnotationItemCreated::fromData(Arr::get($data, 'Created')) : null, - color: Arr::get($data, 'Color'), - rotation: Arr::get($data, 'Rotation'), - transparent: Arr::get($data, 'Transparent'), - strokeWidth: Arr::get($data, 'StrokeWidth'), - stampId: Arr::get($data, 'StampId') ?? Arr::get($data, 'Id'), - ); - } - - public function __construct( - public string $type, - public null|Collection|int $layer = null, - public ?Collection $field = null, - public ?string $password = null, - public ?AnnotationItemFont $font = null, - public ?AnnotationItemLocation $location = null, - public ?AnnotationItemFont $headFont = null, - public ?string $signature = null, - public ?string $userName = null, - public ?bool $visible = null, - public ?bool $frame = null, - public ?bool $showUser = null, - public ?bool $showDate = null, - public ?bool $showTime = null, - public ?AnnotationItemCreated $created = null, - public ?string $color = null, - public ?int $rotation = null, - public ?bool $transparent = null, - public ?int $strokeWidth = null, - public ?string $stampId = null, - ) {} - - public function values(): array - { - if ($this->layer instanceof Collection) { - $layer = $this->layer->map(fn (AnnotationItemLayer $layer) => $layer->values())->toArray(); - } else { - $layer = $this->layer; - } - - $values = [ - '$type' => $this->type, - 'Layer' => $layer, - 'Field' => $this->field?->map(fn (AnnotationItemField $field) => $field->values())->toArray(), - 'Password' => $this->password, - 'Font' => $this->font, - 'Location' => $this->location?->values(), - 'HeadFont' => $this->headFont, - 'StampId' => $this->stampId, - ]; - - if (is_null($values['Field'])) { - unset($values['Field']); - } - - if (is_null($values['Password'])) { - unset($values['Password']); - } - - if (is_null($values['Font'])) { - unset($values['Font']); - } - - if (is_null($values['Location'])) { - unset($values['Location']); - } - - if (is_null($values['HeadFont'])) { - unset($values['HeadFont']); - } - - if (is_null($values['StampId'])) { - unset($values['StampId']); - } - - if (is_null($values['Layer'])) { - unset($values['Layer']); - } - - return $values; - } -} diff --git a/src/DTO/Documents/AnnotationsStamps/AnnotationItemCreated.php b/src/DTO/Documents/AnnotationsStamps/AnnotationItemCreated.php deleted file mode 100644 index cc43ce1..0000000 --- a/src/DTO/Documents/AnnotationsStamps/AnnotationItemCreated.php +++ /dev/null @@ -1,29 +0,0 @@ - $this->user, - 'Time' => $this->time, - ]; - } -} diff --git a/src/DTO/Documents/AnnotationsStamps/AnnotationItemField.php b/src/DTO/Documents/AnnotationsStamps/AnnotationItemField.php deleted file mode 100644 index 918a205..0000000 --- a/src/DTO/Documents/AnnotationsStamps/AnnotationItemField.php +++ /dev/null @@ -1,35 +0,0 @@ - $this->name, - 'TypedValue' => $this->typedValue->values(), - 'Value' => $this->value, - 'TextAsString' => $this->textAsString, - ]; - } -} diff --git a/src/DTO/Documents/AnnotationsStamps/AnnotationItemFieldTypedValue.php b/src/DTO/Documents/AnnotationsStamps/AnnotationItemFieldTypedValue.php deleted file mode 100644 index 41f356b..0000000 --- a/src/DTO/Documents/AnnotationsStamps/AnnotationItemFieldTypedValue.php +++ /dev/null @@ -1,29 +0,0 @@ - $this->item, - 'ItemElementName' => $this->itemElementName, - ]; - } -} diff --git a/src/DTO/Documents/AnnotationsStamps/AnnotationItemFont.php b/src/DTO/Documents/AnnotationsStamps/AnnotationItemFont.php deleted file mode 100644 index 4e578ee..0000000 --- a/src/DTO/Documents/AnnotationsStamps/AnnotationItemFont.php +++ /dev/null @@ -1,44 +0,0 @@ - $this->fontName, - 'Bold' => $this->bold, - 'Italic' => $this->italic, - 'Underlined' => $this->underlined, - 'StrikeThrough' => $this->strikeThrough, - 'FontSize' => $this->fontSize, - 'Spacing' => $this->spacing, - ]; - } -} diff --git a/src/DTO/Documents/AnnotationsStamps/AnnotationItemLayer.php b/src/DTO/Documents/AnnotationsStamps/AnnotationItemLayer.php deleted file mode 100644 index 828c67f..0000000 --- a/src/DTO/Documents/AnnotationsStamps/AnnotationItemLayer.php +++ /dev/null @@ -1,30 +0,0 @@ -map(fn (array $layer) => AnnotationItemLayerItem::fromData($layer)), - ); - } - - public function __construct( - public string $id, - public Collection $items, - ) {} - - public function values(): array - { - return [ - 'Id' => $this->id, - 'Items' => $this->items->map(fn (AnnotationItemLayerItem $item) => $item->values())->toArray(), - ]; - } -} diff --git a/src/DTO/Documents/AnnotationsStamps/AnnotationItemLayerItem.php b/src/DTO/Documents/AnnotationsStamps/AnnotationItemLayerItem.php deleted file mode 100644 index 58ec1e6..0000000 --- a/src/DTO/Documents/AnnotationsStamps/AnnotationItemLayerItem.php +++ /dev/null @@ -1,103 +0,0 @@ - $this->type, - 'Font' => $this->font?->values(), - 'Value' => $this->value, - 'Location' => $this->location?->values(), - 'Color' => $this->color, - 'Rotation' => $this->rotation, - 'Transparent' => $this->transparent, - 'StrokeWidth' => $this->strokeWidth, - 'Filled' => $this->filled, - 'Ellipse' => $this->ellipse, - 'From' => $this->from?->values(), - 'To' => $this->to?->values(), - 'Arrow' => $this->arrow, - 'Id' => $this->id, - ]; - - if (is_null($values['Location'])) { - unset($values['Location']); - } - - if (is_null($values['Font'])) { - unset($values['Font']); - } - - if (is_null($values['Value'])) { - unset($values['Value']); - } - - if (is_null($values['Filled'])) { - unset($values['Filled']); - } - - if (is_null($values['Ellipse'])) { - unset($values['Ellipse']); - } - - if (is_null($values['From'])) { - unset($values['From']); - } - - if (is_null($values['To'])) { - unset($values['To']); - } - - if (is_null($values['Arrow'])) { - unset($values['Arrow']); - } - - if (is_null($values['Id'])) { - unset($values['Id']); - } - - return $values; - } -} diff --git a/src/DTO/Documents/AnnotationsStamps/AnnotationItemLocation.php b/src/DTO/Documents/AnnotationsStamps/AnnotationItemLocation.php deleted file mode 100644 index 6ea0c30..0000000 --- a/src/DTO/Documents/AnnotationsStamps/AnnotationItemLocation.php +++ /dev/null @@ -1,38 +0,0 @@ - $this->x, - 'Y' => $this->y, - 'Left' => $this->left, - 'Top' => $this->top, - 'Width' => $this->width, - 'Height' => $this->height, - ]; - } -} diff --git a/src/DTO/Documents/AnnotationsStamps/AnnotationPlacement.php b/src/DTO/Documents/AnnotationsStamps/AnnotationPlacement.php deleted file mode 100644 index 0474867..0000000 --- a/src/DTO/Documents/AnnotationsStamps/AnnotationPlacement.php +++ /dev/null @@ -1,28 +0,0 @@ -map(fn (array $item) => AnnotationItem::fromData($item)), - ); - } - - public function __construct( - public Collection $items, - ) {} - - public function values(): array - { - return [ - 'Items' => $this->items->map(fn (AnnotationItem|AnnotationItemLayerItem $item) => $item->values())->toArray(), - ]; - } -} diff --git a/src/DTO/Documents/AnnotationsStamps/Annotations.php b/src/DTO/Documents/AnnotationsStamps/Annotations.php deleted file mode 100644 index a18d84d..0000000 --- a/src/DTO/Documents/AnnotationsStamps/Annotations.php +++ /dev/null @@ -1,46 +0,0 @@ -map(fn ($item) => Annotation::fromData($item)) : null, - ); - } - - public function __construct( - public ?int $pageNumber, - public ?int $sectionNumber, - public ?AnnotationPlacement $annotationsPlacement = null, - public ?Collection $annotation = null, - ) {} - - public function values(): array - { - $values = [ - 'PageNumber' => $this->pageNumber, - 'SectionNumber' => $this->sectionNumber, - 'AnnotationsPlacement' => $this->annotationsPlacement?->values(), - 'Annotation' => $this->annotation?->map(fn (Annotation $item) => $item->values())->toArray(), - ]; - - if (is_null($values['AnnotationsPlacement'])) { - unset($values['AnnotationsPlacement']); - } - - if (is_null($values['Annotation'])) { - unset($values['Annotation']); - } - - return $values; - } -} diff --git a/src/Requests/Documents/AnnotationsStamps/AddLineEntryAnnotation.php b/src/Requests/Documents/AnnotationsStamps/AddLineEntryAnnotation.php deleted file mode 100644 index b6f4fcb..0000000 --- a/src/Requests/Documents/AnnotationsStamps/AddLineEntryAnnotation.php +++ /dev/null @@ -1,5 +0,0 @@ -fileCabinetId.'/Documents/'.$this->documentId.'/Annotation'; - } - - public function defaultBody(): array - { - ray($this->annotations->values()); - - return [ - 'Annotations' => [ - $this->annotations->values(), - ], - ]; - } - - public function createDtoFromResponse(Response $response): Collection|Enumerable - { - return AddStampWithPositionResponse::fromResponse($response); - } -} diff --git a/src/Requests/Documents/AnnotationsStamps/AddTextAnnotation.php b/src/Requests/Documents/AnnotationsStamps/AddTextAnnotation.php deleted file mode 100644 index b1c409f..0000000 --- a/src/Requests/Documents/AnnotationsStamps/AddTextAnnotation.php +++ /dev/null @@ -1,5 +0,0 @@ -throw()->json('Annotations'); - - return collect($data)->map(fn (array $item) => Annotations::fromData($item)); - } -} diff --git a/tests/Feature/Requests/Documents/AnnotationsStamps/AddLineEntryAnnotationTest.php b/tests/Feature/Requests/Documents/AnnotationsStamps/AddLineEntryAnnotationTest.php deleted file mode 100644 index 9511034..0000000 --- a/tests/Feature/Requests/Documents/AnnotationsStamps/AddLineEntryAnnotationTest.php +++ /dev/null @@ -1,69 +0,0 @@ -connector, $fileCabinetId); - - [$document, $document2] = uploadFiles($this->connector, $fileCabinetId, $path); - - $annotations = new Annotations( - pageNumber: 0, - sectionNumber: 0, - annotationsPlacement: new AnnotationPlacement( - items: collect([ - new AnnotationItem( - type: 'Annotation', - layer: collect([ - new AnnotationItemLayer( - id: 1, - items: collect([ - new AnnotationItemLayerItem( - type: 'LineEntry', - color: 'Cyan', - rotation: 0, - transparent: false, - strokeWidth: 50, - arrow: false, - from: new AnnotationItemLocation( - x: 100, - y: 100, - ), - to: new AnnotationItemLocation( - x: 200, - y: 200, - ), - ), - ]), - ), - ]), - ), - ]), - ), - ); - - $stamp = $this->connector->send(new AddLineEntryAnnotation( - $fileCabinetId, - $document->id, - $annotations, - ))->dto(); - - expect($stamp)->toBeInstanceOf(Collection::class) - ->and($stamp->first())->toBeInstanceOf(Annotations::class); - - Event::assertDispatched(DocuWareResponseLog::class); -})->group('annotation')->only(); diff --git a/tests/Feature/Requests/Documents/AnnotationsStamps/AddRectEntryAnnotationTest.php b/tests/Feature/Requests/Documents/AnnotationsStamps/AddRectEntryAnnotationTest.php deleted file mode 100644 index 486adbd..0000000 --- a/tests/Feature/Requests/Documents/AnnotationsStamps/AddRectEntryAnnotationTest.php +++ /dev/null @@ -1,68 +0,0 @@ -connector, $fileCabinetId); - - [$document, $document2] = uploadFiles($this->connector, $fileCabinetId, $path); - - $annotations = new Annotations( - pageNumber: 0, - sectionNumber: 0, - annotationsPlacement: new AnnotationPlacement( - items: collect([ - new AnnotationItem( - type: 'Annotation', - layer: collect([ - new AnnotationItemLayer( - id: 1, - items: collect([ - new AnnotationItemLayerItem( - type: 'RectEntry', - color: 'Bisque', - rotation: 0, - transparent: false, - strokeWidth: 50, - filled: true, - ellipse: false, - location: new AnnotationItemLocation( - left: 100, - top: 100, - width: 1500, - height: 100, - ), - ), - ]), - ), - ]), - ), - ]), - ), - ); - - $stamp = $this->connector->send(new AddRectEntryAnnotation( - $fileCabinetId, - $document->id, - $annotations, - ))->dto(); - - expect($stamp)->toBeInstanceOf(Collection::class) - ->and($stamp->first())->toBeInstanceOf(Annotations::class); - - Event::assertDispatched(DocuWareResponseLog::class); -})->group('annotation')->only(); diff --git a/tests/Feature/Requests/Documents/AnnotationsStamps/AddStampWithBestPositionTest.php b/tests/Feature/Requests/Documents/AnnotationsStamps/AddStampWithBestPositionTest.php deleted file mode 100644 index db803c9..0000000 --- a/tests/Feature/Requests/Documents/AnnotationsStamps/AddStampWithBestPositionTest.php +++ /dev/null @@ -1,58 +0,0 @@ -connector, $fileCabinetId); - - [$document, $document2] = uploadFiles($this->connector, $fileCabinetId, $path); - - $annotations = new Annotations( - pageNumber: 0, - sectionNumber: 0, - annotationsPlacement: new AnnotationPlacement( - items: collect([ - new AnnotationItem( - type: 'StampPlacement', - layer: 1, - field: collect([ - new AnnotationItemField( - name: '<#1>', - typedValue: new AnnotationItemFieldTypedValue( - item: 'Text', - itemElementName: 'String', - ), - value: 'Test', - textAsString: 'Test', - ), - ]), - stampId: 'e1b3f6cc-ed69-4af2-afa5-6d990c0144c5', - ), - ]), - ), - ); - - $stamp = $this->connector->send(new AddStampWithBestPosition( - $fileCabinetId, - $document->id, - $annotations, - ))->dto(); - - expect($stamp)->toBeInstanceOf(Collection::class) - ->and($stamp->first())->toBeInstanceOf(Annotations::class); - - Event::assertDispatched(DocuWareResponseLog::class); -})->group('stamp'); diff --git a/tests/Feature/Requests/Documents/AnnotationsStamps/AddStampWithPositionTest.php b/tests/Feature/Requests/Documents/AnnotationsStamps/AddStampWithPositionTest.php deleted file mode 100644 index cbe6e6b..0000000 --- a/tests/Feature/Requests/Documents/AnnotationsStamps/AddStampWithPositionTest.php +++ /dev/null @@ -1,63 +0,0 @@ -connector, $fileCabinetId); - - [$document, $document2] = uploadFiles($this->connector, $fileCabinetId, $path); - - $annotations = new Annotations( - pageNumber: 0, - sectionNumber: 0, - annotationsPlacement: new AnnotationPlacement( - items: collect([ - new AnnotationItem( - type: 'StampPlacement', - layer: 1, - field: collect([ - new AnnotationItemField( - name: '<#1>', - typedValue: new AnnotationItemFieldTypedValue( - item: 'Text', - itemElementName: 'String', - ), - value: 'Test', - textAsString: 'Test', - ), - ]), - location: new AnnotationItemLocation( - x: 0.5, - y: 0.5, - ), - stampId: 'e1b3f6cc-ed69-4af2-afa5-6d990c0144c5', - ), - ]), - ), - ); - - $stamp = $this->connector->send(new AddStampWithPosition( - $fileCabinetId, - $document->id, - $annotations, - ))->dto(); - - expect($stamp)->toBeInstanceOf(Collection::class) - ->and($stamp->first())->toBeInstanceOf(Annotations::class); - - Event::assertDispatched(DocuWareResponseLog::class); -})->group('stamp'); diff --git a/tests/Feature/Requests/Documents/AnnotationsStamps/AddTextAnnotationTest.php b/tests/Feature/Requests/Documents/AnnotationsStamps/AddTextAnnotationTest.php deleted file mode 100644 index ef25220..0000000 --- a/tests/Feature/Requests/Documents/AnnotationsStamps/AddTextAnnotationTest.php +++ /dev/null @@ -1,77 +0,0 @@ -connector, $fileCabinetId); - - [$document, $document2] = uploadFiles($this->connector, $fileCabinetId, $path); - - $annotations = new Annotations( - pageNumber: 0, - sectionNumber: 0, - annotationsPlacement: new AnnotationPlacement( - items: collect([ - new AnnotationItem( - type: 'Annotation', - layer: collect([ - new AnnotationItemLayer( - id: 1, - items: collect([ - new AnnotationItemLayerItem( - type: 'TextEntry', - color: 'Black', - rotation: 0, - transparent: false, - strokeWidth: 50, - value: 'Test', - font: new AnnotationItemFont( - fontName: 'Arial', - bold: false, - italic: false, - underlined: false, - strikeThrough: false, - fontSize: 12, - spacing: 0, - ), - location: new AnnotationItemLocation( - left: 100, - top: 100, - width: 1500, - height: 100, - ), - ), - ]), - ), - ]), - ), - ]), - ), - ); - - $stamp = $this->connector->send(new AddTextAnnotation( - $fileCabinetId, - $document->id, - $annotations, - ))->dto(); - - expect($stamp)->toBeInstanceOf(Collection::class) - ->and($stamp->first())->toBeInstanceOf(Annotations::class); - - Event::assertDispatched(DocuWareResponseLog::class); -})->group('annotation')->only(); diff --git a/tests/Feature/Requests/Documents/AnnotationsStamps/UpdateTextAnnotationTest.php b/tests/Feature/Requests/Documents/AnnotationsStamps/UpdateTextAnnotationTest.php deleted file mode 100644 index 8393ae7..0000000 --- a/tests/Feature/Requests/Documents/AnnotationsStamps/UpdateTextAnnotationTest.php +++ /dev/null @@ -1,78 +0,0 @@ -connector, $fileCabinetId); - - [$document, $document2] = uploadFiles($this->connector, $fileCabinetId, $path); - - $annotations = new Annotations( - pageNumber: 0, - sectionNumber: 0, - annotationsPlacement: new AnnotationPlacement( - items: collect([ - new AnnotationItem( - type: 'Annotation', - layer: collect([ - new AnnotationItemLayer( - id: 1, - items: collect([ - new AnnotationItemLayerItem( - type: 'TextEntry', - color: 'Black', - rotation: 0, - transparent: false, - strokeWidth: 50, - value: 'Test', - font: new AnnotationItemFont( - fontName: 'Arial', - bold: false, - italic: false, - underlined: false, - strikeThrough: false, - fontSize: 12, - spacing: 0, - ), - location: new AnnotationItemLocation( - left: 100, - top: 100, - width: 1500, - height: 100, - ), - id: 1, - ), - ]), - ), - ]), - ), - ]), - ), - ); - - $stamp = $this->connector->send(new AddTextAnnotation( - $fileCabinetId, - $document->id, - $annotations, - ))->dto(); - - expect($stamp)->toBeInstanceOf(Collection::class) - ->and($stamp->first())->toBeInstanceOf(Annotations::class); - - Event::assertDispatched(DocuWareResponseLog::class); -})->group('annotation')->only(); From d08432e53bec22b4599a4f7d236c5a09a0f0badf Mon Sep 17 00:00:00 2001 From: Rhys Lees <43909932+RhysLees@users.noreply.github.com> Date: Mon, 8 Jul 2024 23:53:14 +0200 Subject: [PATCH 50/54] WIP --- README.md | 2 +- .../Upload/AppendFilesToADataRecord.php | 43 +++++++++ .../Upload/AppendFilesToADataRecordTest.php | 84 ++++++++++++++++++ tests/Fixtures/files/test-3.pdf | Bin 0 -> 8683 bytes 4 files changed, 128 insertions(+), 1 deletion(-) create mode 100644 src/Requests/FileCabinets/Upload/AppendFilesToADataRecord.php create mode 100644 tests/Feature/Requests/FileCabinets/Upload/AppendFilesToADataRecordTest.php create mode 100644 tests/Fixtures/files/test-3.pdf diff --git a/README.md b/README.md index 28d501e..8a65ebe 100644 --- a/README.md +++ b/README.md @@ -103,7 +103,7 @@ then optimize the processes that power the core of your business. | FileCabinets/CheckInCheckOut | Undo Check-out | 🕣 | | | FileCabinets/SelectLists | Get Select Lists & Get Filtered Select Lists | ✅ | | | FileCabinets/Upload | Create Data Record | ✅ | | -| FileCabinets/Upload | Append File(s) to a Data Record | ❌ | - | +| FileCabinets/Upload | Append File(s) to a Data Record | ✅ | - | | FileCabinets/Upload | Upload a Single File for a Data Record | ❌ | - | | FileCabinets/Upload | Create a Data Record & Upload File | ❌ | - | | FileCabinets/Upload | Create Data Record & Upload File Using Store Dialog | ❌ | - | diff --git a/src/Requests/FileCabinets/Upload/AppendFilesToADataRecord.php b/src/Requests/FileCabinets/Upload/AppendFilesToADataRecord.php new file mode 100644 index 0000000..26a0f09 --- /dev/null +++ b/src/Requests/FileCabinets/Upload/AppendFilesToADataRecord.php @@ -0,0 +1,43 @@ +fileCabinetId.'/Documents/'.$this->dataRecordId; + } + + protected function defaultBody(): array + { + return $this->files->toArray(); + } + + public function createDtoFromResponse(Response $response): Document + { + return CreateDataRecordResponse::fromResponse($response); + } +} diff --git a/tests/Feature/Requests/FileCabinets/Upload/AppendFilesToADataRecordTest.php b/tests/Feature/Requests/FileCabinets/Upload/AppendFilesToADataRecordTest.php new file mode 100644 index 0000000..5dcafee --- /dev/null +++ b/tests/Feature/Requests/FileCabinets/Upload/AppendFilesToADataRecordTest.php @@ -0,0 +1,84 @@ +connector->send(new CreateDataRecord( + fileCabinetId: $fileCabinetId, + fileContent: file_get_contents(__DIR__.'/../../../../Fixtures/files/test-1.pdf'), + fileName: 'test-1.pdf', + indexes: null + ))->dto(); + + $response = $this->connector->send( + new AppendFilesToADataRecord( + fileCabinetId: $fileCabinetId, + dataRecordId: $document->id, + files: collect([ + new MultipartValue( + name: 'File[]', + value: file_get_contents(__DIR__.'/../../../../Fixtures/files/test-2.pdf'), + filename: 'test-2.pdf', + ), + ]) + ) + )->dto(); + + expect($response)->toBeInstanceOf(Document::class) + ->and($response->sections->count())->toBe(2) + ->and($response->sections->first()->originalFileName)->toBe('test-1.pdf') + ->and($response->sections->last()->originalFileName)->toBe('test-2.pdf'); + + Event::assertDispatched(DocuWareResponseLog::class); +}); + +it('can attach files to a data record', function () { + Event::fake(); + + $fileCabinetId = env('DOCUWARE_TESTS_FILE_CABINET_ID'); + + $document = $this->connector->send(new CreateDataRecord( + fileCabinetId: $fileCabinetId, + fileContent: file_get_contents(__DIR__.'/../../../../Fixtures/files/test-1.pdf'), + fileName: 'test-1.pdf', + indexes: null + ))->dto(); + + $response = $this->connector->send( + new AppendFilesToADataRecord( + fileCabinetId: $fileCabinetId, + dataRecordId: $document->id, + files: collect([ + new MultipartValue( + name: 'File[]', + value: file_get_contents(__DIR__.'/../../../../Fixtures/files/test-2.pdf'), + filename: 'test-2.pdf', + ), + new MultipartValue( + name: 'File[]', + value: file_get_contents(__DIR__.'/../../../../Fixtures/files/test-3.pdf'), + filename: 'test-3.pdf', + ), + ]) + ) + )->dto(); + + ray($response->sections); + + expect($response)->toBeInstanceOf(Document::class) + ->and($response->sections->count())->toBe(3) + ->and($response->sections->first()->originalFileName)->toBe('test-1.pdf') + ->and($response->sections->originalFileName)->toBe('test-2.pdf') + ->and($response->sections->last()->originalFileName)->toBe('test-2.pdf'); + + Event::assertDispatched(DocuWareResponseLog::class); +})->only(); diff --git a/tests/Fixtures/files/test-3.pdf b/tests/Fixtures/files/test-3.pdf new file mode 100644 index 0000000000000000000000000000000000000000..1142803e1a6f4cb3194e467e555d8a2d5878dcbd GIT binary patch literal 8683 zcmcJVby!qg*YE+!k#3L}kj@E)?gmj(=@?+>l5PYEY3UXL=@J1cL1_@B8)@m1kQ8_a zy~F3epYQwLf4+0gHD}J+YoE2(UTe;^e`_CRHCcIXFb@>K+_7@7vQ>EaaLj@=1}OV!%W`ieY0e*$W2$xsLzb)tKYYKfkF8Ft)G9@6W_i~e8uDRx(*F20R{z_< z>!n#<14!PXxB$)k>G7=q)Bz<}69D00{>NaDzivDL|K^F7mlJa6YH-V+-_8gJS0Du0 ztO4ZJK)5)%Ih!F|fPB9MGL8+fe zApki6e;B*z{O7c(IXjwZB3yy`NQ<)aKwd3`rz_A9$SdP$=jg2I1UEwfZ)R7<1q_7! zv>`5zoMWWfpJFX72vFcgjJ*5J4F6$3@HYbwkYnSOx`~YgGB7}1S%kZ_8A3xr`mg9f z_`#6>9>3pXmX++Gr8z|&Hqb24JV?w4WIm$y#sLnCD3YP8hbui%LkkUNahJuACnaKk zWUloARUwSgOpf&S(;(9coC89&u2ywfxs}-{Tb#Xe*x_9IWw-A9)LPxdl;xh^L?epY zk0A6mR~^(Rd^tL#yIZXW#3X$kCuo#}sQ5al9~Lbv&=pQ)(MEqXi>0L%DRxyK@A5n` zZ<^tHug2msejO0UC?Laxi2{%t;}`X3p;$pn)U58Lf?T72JW67Rgn}XDIXJmxjLRLB zcE^RQoK3x{DJ)-esCE0P-toPNYEqj^XI{*ULeDWsWnQq%^Tk3mYbm9ptemiojGShw zpnyozj6bch<-wlGe9-@kpeALL%_45*ZXBw^C48a8LHr zCtUoL0rSff!t3P^Le`&q+qp8cKTzz4tUpv=Ps9lhw`vLz4b*wgV-5%o7+VaW&oXbU(Hy>=*ibnh#%k?FIFOUa>#$|#>^91U2YYvDK{6vxPR`M+# zMKo(k^fyxClPCZw@Fc4HQyV9g(LnD(^anxwPM8Mh+8^+oZsR^tkOYLb-UFe|1zKYV zeIq2xl`45o{)!+?dYtf%9=4Z^l$s#vtxlQn=Y;W+XM-$7lpIe>a%9xRj_$frH)0z; zJ%5Qc2;{@OMD+_MN<|xi<4vNxeKPf0ga%uot#3irlPnX9;=|0May_{?eq9^I;+=0O zTp`A73D}Z7*tdq{b+GU3%Su1jVL~Nhu#IDUg;p$={v7|+orY+|xW`{_VTR?vQz^;2 zsFuTYqZUmc!N*ONL1U?AsgG1BR{1Rmp@C;X`KDu41v;!{67D$sL>bZC9gj?6P4r)< zRNb0{Z;R02cYmN-qH*%Cr!;^#z$(z|2qvPMo@}+_Ewb!;zT=o9-3uaUb@^uM%g_P{ zpb4OxkEQQ=&-xrk58XD1fFT*kWXGgMNR7RQeHl#D#-|=wr0U8TO6b*LV9H( ziH7At0;y6c6NLs7dsVc4QgQS(UuR;Pe+UV&NgW)#fMon zaU#Vd#h53X)tDhb`KsVYJ(_x}WUFRi-s?v>@{2WXVj)U$>A6X!&rH)z!%d$q!8+BM z-^B;U*Ac50OK!X#X3l4zmLAFX8m_OoUn4w?m7h^o7(F2789xn#6jQOs={s`NA-5Bm&e{S==eN${R zfjXVKg_?@`A$1C07mO<1A-y+!C4G&ryT(fIb}hQzir!kS5hy8b_mh?db9JOpPI<*n zA@`8@tJzYqaUiM%d=m-S9q@< z@bSYSaM~nNDx1+T)w&m2t*-TP#v1GK+kc+?Z>J zOOtzxi(Z#q7emLsX7lxV`*cUTt)ZD;cc{&>S#^KG>}qX!G55Ut`yD@#bi>!P=Ty8Z0^c>Q^| zaVfr0jB-;t4?SM2r*V$sG3SXg_H@b_eK?b}thaUk>Hb9YntO+R$Lyro)MfnzC&4{} zIEBdW#KMF%>Vexv&r&M2|%W&2Kuh8YuA7P2#hTsrmxS_YVqP8{#(en-)GZ~DMqe=geaSsv2f#DjG zox4!-aPgI~YXUeDL1BYU(QD^MebgT z4wr8ASNSNtC}4pYIsF|nA0~I_;*;UodtuAlOMvBF9;iWb_4c%L?MiXqK*e+8R^7)O zba&`!=LxUFN!p56R4R^)8$4FfClZ>%F5=g^IM<^04Nnn2;?Prq-vkfIrgRvFn<-T& zktr>ssY=x@xVe={_&hO>9a=n8{MkCV=Co!+ni(GPn$r*}#@fu=&X)(0Y5ZtC zw)>DIS8^y$h0R6RqA4}zO69v^6jKKCQ{CIuHgD!E6%g4U)jtuf9(_&!>d;5qd)Ry7 z53_)IxLLNiUxof?h3(qnmxqj37|b+0@Gxv`T>Rd$6>AT)SDgCRC*K#1xHIn%F*mCI zQvG#{iBZFMkfS{1QPk%qT{=&mLGRJUM_r> z@gXVQP=n?*oT3Xd2<H+CBT`4X5hM8w(<9b=$)fK$Fkep8`bVIb-(YSz2z zsPkK2RLaP5$b0sywFj*(d_)hNKuFiU{{e^2WlU;AkxpP0fvSmNi zc*tXwcc`c#K~lwEl<{+Ne!~pFzcJ%C3i#Rm z&#CgJH)lyY))L=O5! zCW~+}bGAlaI|IOfFrAj;LkH`hI1B!R`sA&hU0h|X;LboOlC4zWe_p_VyxP|0u2wgm z!JvFV2nc#}2K@sQ+^PLu8&Ln@gxI56^Rum(%f zj+v5rMzEi;u5vr=K~7|yXT116lmBLamIu|T51^nMH{pfTx*iZU4GN~$M)1V7C3j=V2hZJjw-NTPjlYji^SedlTP?Q`59YdmsR zy%R{s1YBx?Ow2v`oM%rV_liaQ}+Au!i&&kAya^n)qM9==^%Q$ccap5Lb z29rDMzyCfz1M=?}{~fYlA$$P0M`G?jLTd-Nyn*(gF_!)b=-e<62*?c)fC0f^K?o2G z0)q?zyh_LL#q0+Eg`h$=;QZ@?8-i5lm4Q1cBCIW~T!H*B0U)oY zE5iQKO%I)4QUIR-KeD^K<yK5kgdK zYyy%id>Fp!HARJ|(Z{^6tmB?IMQuRw<=;yN#tQ?wiw9 zw7NU%F-_B@A_hB2YX}?lE8=aXwcO0i zSDT&t9<^&HTvko`Mx%QAh<24xlEiE^oLgLb8pamzf=7F@nK+SL)E#~td%_nzn*3HcDj};U!sP> zQ_tMv^M1FyvEq`U2rW<7EJH+?y@hrGV;-v7-M2Q~I>0P^_LC%n$!9{Z4Hoh7o+&yQ zu+@ctRrZb+QnBaB?Og4?aBzOSI4*beeQLi$M@WyWe}aZ<*i=@MCRIv<`_9n=nvljq zx5wHfZkPU1QzBG+b|IOTIwXcBTK;$fg@A>e;5ryD^*-0=eTheFSJ4-hf!8LrQ4Q}6 z{OAG(F6D~i#=JmH{c~{3{iaU^`*~OTb}tM~+sit5-azfhX$trK6Po+4lF241^-b8??smxB# z$YQ@wQ3yEeonUzo6FW5?zMOZr{b_@lg0Uas<@-HF#{qoqM-QiR6H7}WqM9W(_VASw z8`n~OeNv+SXMk|hZWY=D8)nSVvh77rMtHZE^eef+o?*>Y_lQ#TJB%QJ8H1@wDgkbc zuJ?FvpZbR=U(|#33#HswXJR=P@?1k^XuRxnUpV0)?}a$a9=}rairdL9nH!MXl!OT} zDP&VPh`H*;@Xwuzy(C{aq_l+Ea>L_%F`L(IREKN*#*hM=@e0BGI%#sHWp~pl{ z&@sXTIwK3(9}yD+x0{Q$8123lXRa^>$FDu6r+Y&P&L{LB7R{MCesiHq^7s(lytu6C zQ_{@Sl^SOs&rgl?GWN}4rn8!4u!L?6Ys}A$mC)p5ow7_{0fuln)+cyuscAkovIpIJ zg;e_Sqc3F@>#=#6`pwWDz&jCR?VU`e`WgQnB$yNrdP;ON+^(yR_mS=!ul- z;s_3oDyHcJ=|oW6Mv0nme1(d_7&V!TRFTgIU%;Glh#&Don?z44$Rg@s-$#uG2<>}b zX0IaEBxWaK2OKm%{v@Iq&7hY@q~kJ;?R`CF}Jkao96j<)4+ON8C^U| z1hW-e*d#*-Hx1dtcca`TUMJKm%*XKxI3)Q&9=G#bBfXO?zuzy+WXzVvEN~gO^X=l1 ze5-gEgnh8{N%J568TBq(78!;iZ2)-I!SdnSJvco+h)5E`-;|4g*#I?euJ zr{1V$ImR%NC` zb(}C}mF52;3lmE$#F|L5i}}cUTPG31#k$qyhzNQHW1)572ob5el_-E7$iskAPYb?~ zb8^7jMy2W{AHgFeT0(<9*>~-?Lob;`%8GAE;Sj|HIj&m9^pj<>3rPq(jQn0>@0Zx zY>P4YQ8v4pv-;F$DT!Sg8;SHFXjD}cxtf8N305k5q9
t)PC_!w2*=CwFDIT9;zl zX>&fv=3#vz%qCqlr-#+A-8W)`6DwsKvGrDofwbkrwj(XQ+At$+)V{Dg6}f00aR~Rw zg9FFNAvRgU3aUaydL(T1t>*ilbTdJ8BR;M|V;JTTjGS2DogmRJw&#Y74L2 zHqRi`VZt?)SRuyzwl@s-zACcMk{!sey<;Ekx&#iRv&$6G7Xeb)07gCQGM*!f&4SV6 zAra*&TknwcJ-!2>*aJF z=Aq7g(vUg!)xxUp@I3j%sjE{dVGahmRI4wkGxxO8<;&DW6*+HnDjOUZkoEx{Glas< z5n9p_$rQcVLzyr}3=RAOD>LhlC(KYZuWOG)lCx`e8IGPQ(xhR+68TU_YlHKi>dw0c8+Dtww4WXnD;(6K7~qd(4l5+#gT&@}F1 zOc5b-2^A*NBUH)X+T0(DI!1@C$2Sh*X=^7sQBsW!MYR zdhhjpZH?OZ%6S7?e#Y+v3X_bP4q)(_p+i_WdQuV_etWAYHg$qG?&4;=W=b&YldOt2 z8gWNd&*Q-LQ!9dFUuHA}lddlWpFq6o&G}0XDTqvoH1`DK(s>JIU#wKd-Ll#@OST=? zi(ldmD~T%VA3Vb#VdE&q-|70nBmT-&=26dbhvrO7 z7=_$+iR)WMmi$9(gP( zE}Wq7(9(ob>Lu^nlFNOL$(rNK?>T2pJ(HP`yG7cj@y1GOY#opN$-+W#DH{EWnTdMl zSY{r-&JxaSDUQ*f%TQFlN0NoRPP%;9mGLe57(L3AO;pca!a8>#A7(%CsFqvuPO;mg zvGAo7n>;Sft_^O-4a0_n$EpFK4NkWQ!e*!9D$mMaP1fC7Xk;mw9*!sIB_{WL<|0Fo z(UG8il{%EaprB29{a{h6mH3oiwKY$f%Pe90?y>EU^#G7TU|5d7+C;VY_{ZsCeRtTV z{)^i%tWy5W5q#G?Cbz5NuzA|l7kXUE^T zY3b84uUka~u7D|Ca39d9WGLm}_Hge%;{*FlU|T#rejUBXO6P zPk&^(22h=*3|e^hjMPSN+0+GpGsFAd8iHLK*sx>aW6v=*{wT%9asJTP-3KyNKLP)S1KkDzh)P3=r{EIwi@!jq*|iI z_58eU@5h`Et^H>9_0{rHg^Za*tfgs4b&Oc;OWDVsXGAI~X5c!Af zXRm+ApaOhIQ2yESmt7Da@?C>}$e>UmWO?X6^`KyZf6HJXWHs_1di+BFvcU&|{98}x zrabYVefjwK|K*1u2=bert1}!~0dW5L0)?ivHv&1&$hQm}9bJLQlG)GNpOS-xBM^L( zCdj&}bAy7en0Shw=K|Tu@atmL;)EvfdDg=kX!~y?rm0#617guBw S{fw|6SP%waW|mWx2mB8?<}XnI literal 0 HcmV?d00001 From e938d4d1324cb6a897395b094d8b7d74f1d28adc Mon Sep 17 00:00:00 2001 From: RhysLees Date: Mon, 8 Jul 2024 21:53:40 +0000 Subject: [PATCH 51/54] Fix styling --- src/Requests/FileCabinets/Upload/AppendFilesToADataRecord.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/Requests/FileCabinets/Upload/AppendFilesToADataRecord.php b/src/Requests/FileCabinets/Upload/AppendFilesToADataRecord.php index 26a0f09..6fb25a8 100644 --- a/src/Requests/FileCabinets/Upload/AppendFilesToADataRecord.php +++ b/src/Requests/FileCabinets/Upload/AppendFilesToADataRecord.php @@ -3,15 +3,12 @@ namespace CodebarAg\DocuWare\Requests\FileCabinets\Upload; use CodebarAg\DocuWare\DTO\Documents\Document; -use CodebarAg\DocuWare\DTO\Documents\DocumentIndex\PrepareDTO; use CodebarAg\DocuWare\Responses\FileCabinets\Upload\CreateDataRecordResponse; use Illuminate\Support\Collection; use Saloon\Contracts\Body\HasBody; -use Saloon\Data\MultipartValue; use Saloon\Enums\Method; use Saloon\Http\Request; use Saloon\Http\Response; -use Saloon\Traits\Body\HasFormBody; use Saloon\Traits\Body\HasMultipartBody; class AppendFilesToADataRecord extends Request implements HasBody From 336db6f6232f4b6984e16eba57937cad43baa139 Mon Sep 17 00:00:00 2001 From: Rhys Lees <43909932+RhysLees@users.noreply.github.com> Date: Thu, 11 Jul 2024 18:55:53 +0200 Subject: [PATCH 52/54] WIP --- .phpunit.cache/test-results | 2 +- .../Upload/AppendFilesToADataRecordTest.php | 14 ++++++++------ tests/Fixtures/files/test-3.pdf | Bin 8683 -> 8575 bytes 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.phpunit.cache/test-results b/.phpunit.cache/test-results index 726f8fd..64b648f 100644 --- a/.phpunit.cache/test-results +++ b/.phpunit.cache/test-results @@ -1 +1 @@ -{"version":"pest_2.34.7","defects":[],"times":{"P\\Tests\\Local\\UpdateNichtHandelsrechnungenTest::__pest_evaluable_it_can_update_a_document_value":7.343}} \ No newline at end of file +{"version":"pest_2.34.9","defects":[],"times":{"P\\Tests\\Feature\\Requests\\FileCabinets\\Upload\\AppendFilesToADataRecordTest::__pest_evaluable_it_can_attach_files_to_a_data_record":0.563,"P\\Tests\\Feature\\Requests\\Documents\\ClipUnclipStapleUnstaple\\ClipTest::__pest_evaluable_it_can_clip_2_documents":7.226,"P\\Tests\\Feature\\Requests\\FileCabinets\\Dialogs\\GetDialogsOfASpecificTypeTest::__pest_evaluable_it_can_list_dialogs_for_a_file_cabinet":0.709,"P\\Tests\\Feature\\Requests\\FileCabinets\\Upload\\AppendFilesToADataRecordTest::__pest_evaluable_it_can_attach_a_file_to_a_data_record":1.051,"P\\Tests\\Unit\\DTO\\DocumentIndex\\IndexDateTimeDTOTest::__pest_evaluable_it_create_index_date_time_dto":0.001,"P\\Tests\\Unit\\DTO\\DocumentIndex\\IndexTextDTOTest::__pest_evaluable_it_create_prepare_index_text_dto":0,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetUsers\\GetUsersOfAGroupTest::__pest_evaluable_it_can_list_users_of_a_group":0.873,"P\\Tests\\Feature\\Requests\\Documents\\Sections\\GetASpecificSectionTest::__pest_evaluable_it_can_get_a_specific_section":1.001,"P\\Tests\\Core\\ArchTest::__pest_evaluable_it_will_not_use_any_debug_function":0.202,"P\\Tests\\Feature\\Requests\\FileCabinets\\Search\\GetDocumentsFromAFileCabinetTest::__pest_evaluable_it_can_get_all_documents":1.128,"P\\Tests\\Feature\\Requests\\Documents\\ApplicationProperties\\ApplicationPropertiesTest::__pest_evaluable_it_can_add_get_update_delete_application_properties_to_a_document":1.321,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetModifyRoles\\AddRemoveUserToARoleTest::__pest_evaluable_it_can_add_roles_to_a_user":7.208,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetModifyRoles\\AddRemoveUserToARoleTest::__pest_evaluable_it_can_remove_roles_to_a_user":5.942,"P\\Tests\\Feature\\Requests\\Documents\\PutDocumentFieldsRequestTest::__pest_evaluable_it_can_update_multiple_document_values":0.897,"P\\Tests\\Feature\\Requests\\Documents\\PutDocumentFieldsRequestTest::__pest_evaluable_it_can_update_a_document_value":0.917,"P\\Tests\\Feature\\Requests\\Documents\\Download\\DownloadSectionTest::__pest_evaluable_it_can_download_a_section":0.958,"P\\Tests\\Feature\\Requests\\Documents\\ClipUnclipStapleUnstaple\\StapleTest::__pest_evaluable_it_can_staple_2_documents":12.678,"P\\Tests\\Feature\\Requests\\Documents\\ClipUnclipStapleUnstaple\\UnclipTest::__pest_evaluable_it_can_unclip_2_documents":12.252,"P\\Tests\\Feature\\DocuWareAuthenticationTest::__pest_evaluable_it_can_get_oath_responsible_identity_service":0.681,"P\\Tests\\Feature\\DocuWareAuthenticationTest::__pest_evaluable_it_can_authenticate_with_DocuWare_Credentials":0.657,"P\\Tests\\Feature\\DocuWareAuthenticationTest::__pest_evaluable_it_can_get_oath_identity_service_configuration":1.107,"P\\Tests\\Feature\\Requests\\FileCabinets\\Search\\GetASpecificDocumentFromAFileCabinetTest::__pest_evaluable_it_can_show_a_document":0.986,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetModifyGroups\\GetGroupsTest::__pest_evaluable_it_can_list_groups":0.725,"P\\Tests\\Feature\\Requests\\Documents\\Thumbnail\\GetDocumentDownloadThumbnailRequestTest::__pest_evaluable_it_can_download_a_document_thumbnail":1.22,"P\\Tests\\Feature\\Requests\\Documents\\Download\\DownloadDocumentTest::__pest_evaluable_it_can_download_a_document":0.874,"P\\Tests\\Feature\\Requests\\Organization\\GetOrganizationsRequestTest::__pest_evaluable_it_can_list_organizations":0.689,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetModifyGroups\\GetAllGroupsForASpecificUserTest::__pest_evaluable_it_can_list_groups_for_a_specific_user":0.92,"P\\Tests\\Feature\\Requests\\Fields\\GetFieldsRequestTest::__pest_evaluable_it_can_list_fields_for_a_file_cabinet":0.752,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetUsers\\GetUserByIdTest::__pest_evaluable_it_can_get_user_by_id":1.005,"P\\Tests\\Feature\\Requests\\Documents\\Download\\DownloadThumbnailTest::__pest_evaluable_it_can_download_a_thumbnail":0.996,"P\\Tests\\Feature\\SleepTest::__pest_evaluable_sleep":0.544,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetUsers\\GetUsersTest::__pest_evaluable_it_can_list_users":0.812,"P\\Tests\\Unit\\DTO\\DocumentIndex\\IndexDecimalDTOTest::__pest_evaluable_it_create_index_numeric_dto":0.001,"P\\Tests\\Feature\\Requests\\Documents\\PostDocumentRequestTest::__pest_evaluable_it_can_upload_document_with_index_values_and_delete_it":0.836,"P\\Tests\\Feature\\Requests\\Documents\\PostDocumentRequestTest::__pest_evaluable_it_can_upload_document_without_file_name_and_file_content_and_delete_it":0.76,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_override_search_documents_dates_filter_by_using_equal_operator":0.72,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_search_documents_with_null_values":0.714,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_override_search_documents_dates_filter_by_using_same_operator":0.781,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_t_search_documents_by_more_than_two_dates":0.544,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_t_search_documents_by_diverged_date_range":0.555,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_search_documents_dates_filter_in_future":0.763,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_search_documents_dates_filter_in_past":0.816,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_search_documents":0.779,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_search_documents_with_multiple_values":1.354,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetModifyGroups\\AddRemoveUserToAGroupTest::__pest_evaluable_it_can_add_groups_to_a_user":7.049,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetModifyGroups\\AddRemoveUserToAGroupTest::__pest_evaluable_it_can_remove_groups_to_a_user":6.021,"P\\Tests\\Feature\\Requests\\Documents\\Sections\\DeleteSectionTest::__pest_evaluable_it_can_delete_a_specific_section":1.031,"P\\Tests\\Feature\\Requests\\FileCabinets\\Dialogs\\GetASpecificDialogTest::__pest_evaluable_it_can_get_a_dialog":0.767,"P\\Tests\\Feature\\Requests\\Workflow\\GetDocumentWorkflowHistoryTest::__pest_evaluable_it_can_get_document_workflow_history":5.948,"P\\Tests\\Feature\\Requests\\Documents\\GetDocumentPreviewRequestTest::__pest_evaluable_it_can_preview_a_document_image":1.154,"P\\Tests\\Unit\\DTO\\DocumentIndex\\IndexDateDTOTest::__pest_evaluable_it_create_index_date_dto":0.003,"P\\Tests\\Feature\\Requests\\Documents\\DocumentsTrashBin\\DeleteDocumentsFromTrashBinTest::__pest_evaluable_it_can_delete_documents_in_trash":1.141,"P\\Tests\\Unit\\DTO\\DocumentIndex\\PrepareTableDTOTest::__pest_evaluable_it_create_prepare_index_table_dto":0.002,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetModifyRoles\\GetAllRolesForASpecificUserTest::__pest_evaluable_it_can_list_groups":1.082,"P\\Tests\\Feature\\Requests\\Documents\\Sections\\GetAllSectionsFromADocumentTest::__pest_evaluable_it_can_get_all_sections_from_a_document":0.904,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetUsers\\GetUsersOfARoleTest::__pest_evaluable_it_can_list_users_of_a_role":0.767,"P\\Tests\\Feature\\Requests\\Documents\\DocumentsTrashBin\\RestoreDocumentsFromTrashBinTest::__pest_evaluable_it_can_restore_documents_in_trash":1.114,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_document_paginator":0.54,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_dialog":0.544,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_field":0.561,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_organization":0.549,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_table_row":0.562,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_document":0.554,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_organization_index":0.568,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_suggestion_field":0.535,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_file_cabinet":0.548,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_document_field":0.551,"P\\Tests\\Unit\\DTO\\DocumentIndex\\PrepareDTOTest::__pest_evaluable_it_create_prepare_makeContent_dto":0.001,"P\\Tests\\Unit\\DTO\\DocumentIndex\\PrepareDTOTest::__pest_evaluable_it_create_prepare_index_dto":0.002,"P\\Tests\\Feature\\Requests\\FileCabinets\\General\\GetFileCabinetInformationTest::__pest_evaluable_it_can_get_file_cabinet_information":0.83,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\CreateUpdateUsers\\CreateUpdateUserTest::__pest_evaluable_it_can_create_users":1.484,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\CreateUpdateUsers\\CreateUpdateUserTest::__pest_evaluable_it_can_update_users":6.052,"P\\Tests\\Unit\\DTO\\DocumentIndex\\IndexNumericDTOTest::__pest_evaluable_it_create_index_numeric_dto":0.001,"P\\Tests\\Feature\\DocuWareTest::__pest_evaluable_it_can_create_encrypted_url_for_a_document_in_a_basket":0.59,"P\\Tests\\Feature\\DocuWareTest::__pest_evaluable_it_can_create_encrypted_url_for_a_document_in_a_file_cabinet":0.541,"P\\Tests\\Unit\\DTO\\DocumentIndex\\IndexTableDTOTest::__pest_evaluable_it_create_prepare_index_text_dto":0.001,"P\\Tests\\Feature\\Requests\\Documents\\DocumentsTrashBin\\GetDocumentsFromTrashBinTest::__pest_evaluable_it_can_search_documents_with_null_values_in_trash":0.783,"P\\Tests\\Feature\\Requests\\Documents\\DocumentsTrashBin\\GetDocumentsFromTrashBinTest::__pest_evaluable_it_can_t_search_documents_by_diverged_date_range":0.546,"P\\Tests\\Feature\\Requests\\Documents\\DocumentsTrashBin\\GetDocumentsFromTrashBinTest::__pest_evaluable_it_can_override_search_documents_dates_filter_by_using_same_operator_in_trash":0.679,"P\\Tests\\Feature\\Requests\\Documents\\DocumentsTrashBin\\GetDocumentsFromTrashBinTest::__pest_evaluable_it_can_search_documents_dates_filter_in_future_in_trash":0.66,"P\\Tests\\Feature\\Requests\\Documents\\DocumentsTrashBin\\GetDocumentsFromTrashBinTest::__pest_evaluable_it_can_search_documents_dates_filter_in_past_in_trash":0.68,"P\\Tests\\Feature\\Requests\\Documents\\DocumentsTrashBin\\GetDocumentsFromTrashBinTest::__pest_evaluable_it_can_search_documents_in_trash":0.69,"P\\Tests\\Feature\\Requests\\Documents\\DocumentsTrashBin\\GetDocumentsFromTrashBinTest::__pest_evaluable_it_can_override_search_documents_dates_filter_by_using_equal_operator_in_trash":0.678,"P\\Tests\\Feature\\Requests\\Documents\\DocumentsTrashBin\\GetDocumentsFromTrashBinTest::__pest_evaluable_it_can_t_search_documents_by_more_than_two_dates_in_trash":0.534,"P\\Tests\\Feature\\Requests\\Workflow\\GetDocumentWorkflowHistoryStepsTest::__pest_evaluable_it_can_get_document_workflow_history":6.748,"P\\Tests\\Feature\\Requests\\Documents\\ClipUnclipStapleUnstaple\\UnstapleTest::__pest_evaluable_it_can_unstaple_a_document":13.846,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetModifyRoles\\GetRolesTest::__pest_evaluable_it_can_list_groups":0.688,"P\\Tests\\Feature\\Requests\\Documents\\GetDocumentCountRequestTest::__pest_evaluable_it_can_get_a_total_count_of_documents":0.938}} \ No newline at end of file diff --git a/tests/Feature/Requests/FileCabinets/Upload/AppendFilesToADataRecordTest.php b/tests/Feature/Requests/FileCabinets/Upload/AppendFilesToADataRecordTest.php index 5dcafee..8f06685 100644 --- a/tests/Feature/Requests/FileCabinets/Upload/AppendFilesToADataRecordTest.php +++ b/tests/Feature/Requests/FileCabinets/Upload/AppendFilesToADataRecordTest.php @@ -72,13 +72,15 @@ ) )->dto(); - ray($response->sections); + $sections = $response->sections->values(); + + ray($sections->toArray()); expect($response)->toBeInstanceOf(Document::class) - ->and($response->sections->count())->toBe(3) - ->and($response->sections->first()->originalFileName)->toBe('test-1.pdf') - ->and($response->sections->originalFileName)->toBe('test-2.pdf') - ->and($response->sections->last()->originalFileName)->toBe('test-2.pdf'); + ->and($sections->count())->toBe(3) + ->and($sections[0]->originalFileName)->toBe('test-1.pdf') + ->and($sections[1]->originalFileName)->toBe('test-2.pdf') + ->and($sections[2]->originalFileName)->toBe('test-3.pdf'); Event::assertDispatched(DocuWareResponseLog::class); -})->only(); +})->skip(); diff --git a/tests/Fixtures/files/test-3.pdf b/tests/Fixtures/files/test-3.pdf index 1142803e1a6f4cb3194e467e555d8a2d5878dcbd..5cf3fc47436d832ae75f32e322520e746673d780 100644 GIT binary patch literal 8575 zcmc&ZWmuHk)}+XgA_@w~fOHHq!vqLYLrAyMFu(vq%n(D#kyb$IQbJHlM7kxEl9W`s zOF&9MLPhxo&+*=KKJRz`e(y8S^Uhv-?Y;K9Vz1)WQB)R%fM5XLg~k4N00a;W#9KQ8 zq@@93T0n7tn7lIqJFd@8*l&9r zj{D74fk=47WI3JYmZ7-MvR@iq0r*VUIO zekhfMk@8sJFZodpt<9Yzz=T7@NJs$8J4^`v2fPc?=bn8y3vD|vKBvE^-$t9=_LhZL zz}gqW4=NwD&s6ea5|@hVxL78!LhE(e^zC)-nK;pUsjphC=*8kkAg1$StoPl74ahskzw&EAQRe0mw7N>+D8 zJrjp>>UrYl=B_767UTv@NNQQCSSwz`UecJkOmcDi*ciGnF{Gqaji{-rMpT0#Cs{ft zo_lz;sY#{Vmp;F=XDr%gn6&(oJ4)L0==`wVA!qdwfaF>=DKKE0A#H?`BYG->;-itioyU)q$YH@|1-xIhp zGm@HZ-B#NJt}FzwAC3C5QhG2+{6VkHd=8Wf1&Qgt$6ZMip3B=?HJb@=T#%*xmT+;! zgh%Z=zg!fYRFB*s@OX+!hnZW>n*P4mli6<{!WgK6vfv6X?rvMMG+z((=dE|HK1e%~ z?1M`r_A%{NupG8!^2(8u#ZnkNAu$Nz8z66QA{!&|o1>TtVmM3k6bL9J6N#l5BH>&L z+_$3Xq`GT`9HSDFr^}~`dP12_!Z8P{B>{!3&z)fuigHZ8({r zoMSA)_N=iSt;3}y`Y-a$I?T*eyb97c&K8ALE8NwgHlQ9>h#IIF5L_iAT(}&%rC>7v z`z-wVin0}x#$7`zjxlDtroK`!c0ft!`FRZ=(R8Zq;GX$wN32uymVqU$s80gNv>7N8 z1x1JOYu1rq##=lj5z0)AGUew4<+@|9SHt6o7^_pwL9(9GJ**72l^VIwA&q zj#mrL8b(~Z@2Il>1oyOEry^h50cvu|CA=Etmwk0GVwIgBQ%5@;h(lQ_Fg)cSD1orj z(q%s=YxY5Bfx8}gKH`2$sv-PA+Ky2?I;GXR3}A#RBu9|+v;j)Li~%+v8t@29lm7)KQAB|+@&E{N6=op2t z7L-zAR*-e9b@YP#8}<9*Y6iT1yvce&L)5u`-KFJ0?xnlemRq~;bbAOD2xSOe61pJ7 zVrXZ8Ezm0HD#$IcH+(iM;MnuN)-l&{<$cBwX07kD!EMRLFqs#{gh9I1O2HEQR;kKG>K8uri5esTV3h50j- zz1l5{QB&_CT*Vgo_415ti#&_RGcI=`Wl*w8CxJic$j6$xfn86!t(q7Sm58OwSHSEr z1-9|aJCPqFl_OQ#``X9bd)saJVCQ8M%o6AmR`N{p2J`$h{4`}#j8k$`htsB!4H+-G*9Nf_riN|AHuCpas+xkLF!Pnw<-JmGKt z(7YbvhZ5i_uq&@ptT0TGaN?X0E3^XrVzaH~a!2-bT-Oh;}r|wChgXMv_^= zF&{5*`9`;bqoSkJWsoRnlUe)T!-6TGxjn(m`wkap70{~*51v-B8X9iNAHqJOqFE`s>r5j-J;}`f6v!4 zx;{2XqypO_(hEN{l~{wdu2}hyZF<&JulhLFDcLmso1;_PNU?NML$B}Rq;w5@MSW>+ zPo;ViUosvv(L6o)+M}!Q{^Lx*809FS7tjNcWiGp4d0^si^VZ z$?FXrZvBHyYw=aQi+38In|! zP=+AGqT%jgsTZ^CR-CoI18Y|5QEHm#-fyTWl(*w`r^$7~$8LHXdV5ZPJx+_+Z}7$S z_A_tpwcLwQ@ljEZIm5Y$t;9Mz>*0iO_tNh6zU#1#o<3^dOzXS2m^^XQ#A)8m)y(I3 zt;TJZKJ(M{!8`G8<;zl=+Xa&XE|i-(-%=08qjRDM`||sm^<|#b)o;{Kyh48Y(TUxE zXJ~KR&z#Ad-YZq_irakoa_`cLJ&4DGbvt_VRRCmnVKd`N#t-#Z4~xwXYX2x3eR()_ zAx!vL$%OfJ&nUN|#k&3d1DO}EsyPe&9oB2M@SLTWRvXZM*-ox&bK_~zNUlT^G~~-!acX9J%T)9ES@!H1n7UdIlnpR9qHY;eRW2= zZ{?3Be}R+yld|=M?PpXpSQ?twq=%t<-vAh#?O(AX@!x6mc^X2VzM*hQ@zdGU|M0(H zredlnlmglVV+%YDR`tw(Awa-?VVuUUf5xH^ARGaO{r7Mc0y*8~AMt7wtBW&pho{%} zyMs%8h_R-L4bY;L%t*UcX=_RhyG);zRL~yF#sur^mp`hhE!zVjoLcPcOqE!s%kO!< zhnpzH=|$wHUe&`qivwUgGrRRp42p(sCVkD;9Of(Fu8QJrIcOYjY&C*yZob`Ui1FR- zO+(`Cwl|Jm(h73FYg0nxYUi|{JxRJl();mqoAH}_=Gg;NSFW&0qFc8-Lq#56lJrN9 z&7UMP&U0p`ypN?z@Y7*aAw`F@+;k{V(N2F%IGVl7=W}c@@$}*ME2%B#pR20K${R_h zT#GAfUVg3Q<1D>6K>3)_P4J7QEU6|h+tUSY9(g?~0r@|y*EBLf_e+lbTy{#%BySz@ z3+{S+=A4l^yzuG-W-{xleRTWPTzbHzK#SPehwEuyzOGogA7y-6W|6Zj9OtMygD~EW z>rI}rM1nYr>$whxjor7E)e(rkp4(BpoCQ@&Ays?sF?Lyt~x`^i%;o8zSrQ;Fx- zFMMgLt8ECF*8I}tnS9)4qK;!QbvHFiFnyu2bZ2;Pcg9g2M{VpbP0*h~iAq+t$EOYZ z`qnsh>F(zp*Fwd%^+bH1xua&DzVDj671N{nLR6C5bQj@k;$P@!hAS*zx>w-q>$Kd^ zkUJE=E{yL^Lq_$mIeB$g!54S$?W-&?t`=DE7D;Q2DlWr|4TTwAyzuJoreEzOQXgKw zmB?9KP`cFZuAY4PCSt$HK?MKN^n#|U_J4G?|Dniv zzPL<>rFt;h;zMKm4Q+g8#)Z&_Q7^9cHXxxMD^F1i?Q`8UQNwA zw=!=|H3CC7qn=oErB0Wv(bvE0CpU>6ZkAOvmY425iq%^m9kDbE;O7lB%3S&QecL$G zSLnubx`du3V|TKQJ=?QaHY|B;Y=a4Lw2~^(3Fqb{&TL-VW&T2^8fO93std9SH6zW|}*q>Kl}@uM61cyj{xBy{-YzA`@yJ$_8WLHUukbAvPm70AKQvBbDW z75#3odi&MRS0^#)fc=*#!u?vZd!OGgtFwq{WMoQsAG|$UE7RxKW|uv9KR6gS|5oQV zIEh_iD4@1vbbx_lV{Pl>4fe5J1<3&Y+ak?&1 zO%0F_i#NRF^sRI~s~YuVw&M(jWAnSS-g4Zx(WFaRV{axo2L`kUhaZ3@W(HpfyNP#2 z1g`m?Enl15g+1$NGpgw`fdyV{@{>%bIuzxu`Os;A=0T^Tj28f;GC~;2nVmKZm=)g{ zOvq)!=NY6kg_#uZw`^%|2bpQ>90V(35I4>|&0`oeZeH8}sG&;F_AM|ioU2`ZR0R7Z z!ArI)u`&yc52xoN=wlS()##_5hjfG{+7=iX(%OvF=|@Z%P#SY%`}F2bR1iXD>mP?# zf@4ifJlAU!Mx=b{Gd*gTUy+pak|wa$){)d{}gn;9M(AvyRX=%E!R z>uyHAtO+As_#5s*$}Ak|hdXnkjGca@PmN;BffWha_IKBuEh;498ysJEsC)Hyr_9qkB}OdA7@_umi>W!NV8G>r4YG$MvJ7$n!c^7y_G0>@~AUu zKn?S!BQO_LGMc+CG_(9D#azJ;dA)ignyKj5 zg^X5eJ0jyH%~KOxXBZqJWX5t)o~xB&SyaAw^ zOBh~)Zp3m?XCQwFCzJ-N2EmtGdgl(C$>!^^cGk-qqzJT zkJr?|u81Jwdj2D|ScIDoM;Af@+}YEpsiEX{9R(fl~}6iQ|+u)HqU1EHPYCIU|ir#61U$y6+rF7qhVMxI(o z6kz$0SrK~e=>;xwit$KFF5A$ZhR|_p(aCL^>rJ2B)hbfHn+X|>Jg-oUe$zoi&~nl! z96O_!-Y`J@rL~s@@OXu~D%dZZ(U2+n=A*G9sh-x3ngt!f8mj|v)2GS@9a*UrHJ#O? zH$N`(HmS>pe?gTFyrn~o*>Y;F$TP}uMpk#!*1kNTc*0P?9M-}gPayFYXkD@839<{cd&_NXf|L3-iS+8s8nav^YEM zuD#Mlj_qFKnutxw;Vj& z@mETJm)=sf>`U;^N%74Jdmx4HP#(kb!%nWMr2IJ1PMI~uQn-?)O3 z+*z`14ynoqfvglxTQ?9aiIP3s=S`v~y~xJQS<4rvxTLZ-SEWlX4LCKYQY2q2?9&o* z_rhA~j(E3CI+=U|$9=dvFR#7FbgmmfT1#Hf%iusOEbn^j{GmOo2IZJ@H{exi>zw=< z$a~vVrI*JsYXS72C!v<02sB8!RM3dQXnjFN|M)@K8}`jYcefu=H|(XD+l_Q-x5a!A z7pzE}L-!xotuL|rKQ@|UjczHbWvnN=v)z*$s&9gG?!&kKp)O^^g09~eY|47JwV>KU z;p5jLbd%b=qY53FIh6iji@A8~0%+@go`A}H#)b29)s$4ry3z&AO9x@T@#6C>9nT5tVLjtLL^j4l2-6ste-I5yU@k=IY+#nIyI&|)bJ!9@g~#AR$;>y zNp+K*HRk-aE7$T zPj~Xmg$y>vNay0!LexprXXMnw*FjTkCY>bjb3R>N$rK2BP2Q$H_lZ}?jkG=KYOjNN-w(mZ?<8@SZ(5yu}Ehc~6UG8bPQl)sIB`OAvKseLAgU>9(RCatDWk#pJ z3BN$P6ciViyna1dwLTN3(B62*Pv2&xc`K-_CZlopyW&O}9H%{bOZK~sxu++`2xqNq z!(mCEO%>dat%h^py#6SNQ=Qgjc!JF}gM4JASk~`m3oW)X$6B>Zh(S81;qCP;{x?>* z#+#N*5$}hSls~Q`U7|~5$#J^HD$-gCJ2EMMu7J@P!M^MCg*tla|33zv6Vn!TmptzQ7?+!;D~$ev!jK5!axeQ^ zSX*Kb1CD?I#5B=9e~utf1aZI9qY(QZm{Z!nQpUe>Qwa2LU;5vABM|XlEC1CTG1uvF zYy~qmtP3AJx)N-ga$rlr%Qc7Me7{N6IW%$BQMGfoIlvN|kT=jO^0u!JEF!zVGE+}` ze4SF<>Ry*`nk$_t^z7BXz6#}FPrg}J&5G4d9|*&@RJXP7%um)?NlpZIQ{T~t*|RDC zkzZe93z3vG zDv^P^C+2hlAa+^?I2Frp>O+M6Tg`x{dZ-5wGr$|-u&1pm;7@rGA<9^H4+6>o?G6+t zwz@RXzXouC*iXrO08QcIFd!5x4kW(KPm2V^az}Hd!JyEKj#~_l8(A!_hxbzEMQg2tbXdbOBn2$Jr@+}#xBB%= zc?&T=`qJ-RytNu4(Is+T8D*dMxsnRjy*&)%Tkf(~t)vc{jyq_3BQp{3;5)GEZf)Fl z%`Q>{1U>!_?Eh6%fk2_ZzU-GoPOB(?vR?;nPvo^G#ukhIX^E%W50`|4pg;*21SAP1 znxP)X1Mlf>gYf{KE<@p+@$UMrXdBF*Ll0sd<`)-!n$b_NfdO%YUtl6Fs$K}7MUIhjz+Y=;Q2BwgUHkM#o}qLg zc#iahWJWR@^i)|AQ!g)x048wuHay*#DO(e%9FjPf`5+-uw3ni5Iv!)|O~IKW{tWPiYdB z1cmoJmFC~Ah$z`p>;Jc|q0qz&9dCb1(4MGGzlr|umjjB}UM67iIK|WMw1DC@C>RO@ zBf)S8@g)v10fYI8KS84A;%)zl0)ar_P$HrUaZ<+}Z|iA8>}3mxi~i{fJj?_PG|dEo z#Kt&K9*1`J^}u=n`G9&DS2WfgsPBMrb_T*g5GV+W0Eq+51RMwi*K1;8-rn9IS6e$# z0v_+|0kXlnm||J)CXMEnQ5-)SIV zh~H@-iH`h#?T3&=5G~=KG>{O)Z)Zk|!+ytuBYxunQUXrYzhCz zo`C4s_3(HC@Xso+m@3W=4}|=AEs3cr0!^irpfH#?LIEl+fj}ywlqF!wa3}(TR8WK? z6eQ)La2cSqI1;HWuK-gf`UwP)9z+=qmPZk%Vd8LQlmbLt=BMZIAfVj|Kh;123l5PYEY3UXL=@J1cL1_@B8)@m1kQ8_a zy~F3epYQwLf4+0gHD}J+YoE2(UTe;^e`_CRHCcIXFb@>K+_7@7vQ>EaaLj@=1}OV!%W`ieY0e*$W2$xsLzb)tKYYKfkF8Ft)G9@6W_i~e8uDRx(*F20R{z_< z>!n#<14!PXxB$)k>G7=q)Bz<}69D00{>NaDzivDL|K^F7mlJa6YH-V+-_8gJS0Du0 ztO4ZJK)5)%Ih!F|fPB9MGL8+fe zApki6e;B*z{O7c(IXjwZB3yy`NQ<)aKwd3`rz_A9$SdP$=jg2I1UEwfZ)R7<1q_7! zv>`5zoMWWfpJFX72vFcgjJ*5J4F6$3@HYbwkYnSOx`~YgGB7}1S%kZ_8A3xr`mg9f z_`#6>9>3pXmX++Gr8z|&Hqb24JV?w4WIm$y#sLnCD3YP8hbui%LkkUNahJuACnaKk zWUloARUwSgOpf&S(;(9coC89&u2ywfxs}-{Tb#Xe*x_9IWw-A9)LPxdl;xh^L?epY zk0A6mR~^(Rd^tL#yIZXW#3X$kCuo#}sQ5al9~Lbv&=pQ)(MEqXi>0L%DRxyK@A5n` zZ<^tHug2msejO0UC?Laxi2{%t;}`X3p;$pn)U58Lf?T72JW67Rgn}XDIXJmxjLRLB zcE^RQoK3x{DJ)-esCE0P-toPNYEqj^XI{*ULeDWsWnQq%^Tk3mYbm9ptemiojGShw zpnyozj6bch<-wlGe9-@kpeALL%_45*ZXBw^C48a8LHr zCtUoL0rSff!t3P^Le`&q+qp8cKTzz4tUpv=Ps9lhw`vLz4b*wgV-5%o7+VaW&oXbU(Hy>=*ibnh#%k?FIFOUa>#$|#>^91U2YYvDK{6vxPR`M+# zMKo(k^fyxClPCZw@Fc4HQyV9g(LnD(^anxwPM8Mh+8^+oZsR^tkOYLb-UFe|1zKYV zeIq2xl`45o{)!+?dYtf%9=4Z^l$s#vtxlQn=Y;W+XM-$7lpIe>a%9xRj_$frH)0z; zJ%5Qc2;{@OMD+_MN<|xi<4vNxeKPf0ga%uot#3irlPnX9;=|0May_{?eq9^I;+=0O zTp`A73D}Z7*tdq{b+GU3%Su1jVL~Nhu#IDUg;p$={v7|+orY+|xW`{_VTR?vQz^;2 zsFuTYqZUmc!N*ONL1U?AsgG1BR{1Rmp@C;X`KDu41v;!{67D$sL>bZC9gj?6P4r)< zRNb0{Z;R02cYmN-qH*%Cr!;^#z$(z|2qvPMo@}+_Ewb!;zT=o9-3uaUb@^uM%g_P{ zpb4OxkEQQ=&-xrk58XD1fFT*kWXGgMNR7RQeHl#D#-|=wr0U8TO6b*LV9H( ziH7At0;y6c6NLs7dsVc4QgQS(UuR;Pe+UV&NgW)#fMon zaU#Vd#h53X)tDhb`KsVYJ(_x}WUFRi-s?v>@{2WXVj)U$>A6X!&rH)z!%d$q!8+BM z-^B;U*Ac50OK!X#X3l4zmLAFX8m_OoUn4w?m7h^o7(F2789xn#6jQOs={s`NA-5Bm&e{S==eN${R zfjXVKg_?@`A$1C07mO<1A-y+!C4G&ryT(fIb}hQzir!kS5hy8b_mh?db9JOpPI<*n zA@`8@tJzYqaUiM%d=m-S9q@< z@bSYSaM~nNDx1+T)w&m2t*-TP#v1GK+kc+?Z>J zOOtzxi(Z#q7emLsX7lxV`*cUTt)ZD;cc{&>S#^KG>}qX!G55Ut`yD@#bi>!P=Ty8Z0^c>Q^| zaVfr0jB-;t4?SM2r*V$sG3SXg_H@b_eK?b}thaUk>Hb9YntO+R$Lyro)MfnzC&4{} zIEBdW#KMF%>Vexv&r&M2|%W&2Kuh8YuA7P2#hTsrmxS_YVqP8{#(en-)GZ~DMqe=geaSsv2f#DjG zox4!-aPgI~YXUeDL1BYU(QD^MebgT z4wr8ASNSNtC}4pYIsF|nA0~I_;*;UodtuAlOMvBF9;iWb_4c%L?MiXqK*e+8R^7)O zba&`!=LxUFN!p56R4R^)8$4FfClZ>%F5=g^IM<^04Nnn2;?Prq-vkfIrgRvFn<-T& zktr>ssY=x@xVe={_&hO>9a=n8{MkCV=Co!+ni(GPn$r*}#@fu=&X)(0Y5ZtC zw)>DIS8^y$h0R6RqA4}zO69v^6jKKCQ{CIuHgD!E6%g4U)jtuf9(_&!>d;5qd)Ry7 z53_)IxLLNiUxof?h3(qnmxqj37|b+0@Gxv`T>Rd$6>AT)SDgCRC*K#1xHIn%F*mCI zQvG#{iBZFMkfS{1QPk%qT{=&mLGRJUM_r> z@gXVQP=n?*oT3Xd2<H+CBT`4X5hM8w(<9b=$)fK$Fkep8`bVIb-(YSz2z zsPkK2RLaP5$b0sywFj*(d_)hNKuFiU{{e^2WlU;AkxpP0fvSmNi zc*tXwcc`c#K~lwEl<{+Ne!~pFzcJ%C3i#Rm z&#CgJH)lyY))L=O5! zCW~+}bGAlaI|IOfFrAj;LkH`hI1B!R`sA&hU0h|X;LboOlC4zWe_p_VyxP|0u2wgm z!JvFV2nc#}2K@sQ+^PLu8&Ln@gxI56^Rum(%f zj+v5rMzEi;u5vr=K~7|yXT116lmBLamIu|T51^nMH{pfTx*iZU4GN~$M)1V7C3j=V2hZJjw-NTPjlYji^SedlTP?Q`59YdmsR zy%R{s1YBx?Ow2v`oM%rV_liaQ}+Au!i&&kAya^n)qM9==^%Q$ccap5Lb z29rDMzyCfz1M=?}{~fYlA$$P0M`G?jLTd-Nyn*(gF_!)b=-e<62*?c)fC0f^K?o2G z0)q?zyh_LL#q0+Eg`h$=;QZ@?8-i5lm4Q1cBCIW~T!H*B0U)oY zE5iQKO%I)4QUIR-KeD^K<yK5kgdK zYyy%id>Fp!HARJ|(Z{^6tmB?IMQuRw<=;yN#tQ?wiw9 zw7NU%F-_B@A_hB2YX}?lE8=aXwcO0i zSDT&t9<^&HTvko`Mx%QAh<24xlEiE^oLgLb8pamzf=7F@nK+SL)E#~td%_nzn*3HcDj};U!sP> zQ_tMv^M1FyvEq`U2rW<7EJH+?y@hrGV;-v7-M2Q~I>0P^_LC%n$!9{Z4Hoh7o+&yQ zu+@ctRrZb+QnBaB?Og4?aBzOSI4*beeQLi$M@WyWe}aZ<*i=@MCRIv<`_9n=nvljq zx5wHfZkPU1QzBG+b|IOTIwXcBTK;$fg@A>e;5ryD^*-0=eTheFSJ4-hf!8LrQ4Q}6 z{OAG(F6D~i#=JmH{c~{3{iaU^`*~OTb}tM~+sit5-azfhX$trK6Po+4lF241^-b8??smxB# z$YQ@wQ3yEeonUzo6FW5?zMOZr{b_@lg0Uas<@-HF#{qoqM-QiR6H7}WqM9W(_VASw z8`n~OeNv+SXMk|hZWY=D8)nSVvh77rMtHZE^eef+o?*>Y_lQ#TJB%QJ8H1@wDgkbc zuJ?FvpZbR=U(|#33#HswXJR=P@?1k^XuRxnUpV0)?}a$a9=}rairdL9nH!MXl!OT} zDP&VPh`H*;@Xwuzy(C{aq_l+Ea>L_%F`L(IREKN*#*hM=@e0BGI%#sHWp~pl{ z&@sXTIwK3(9}yD+x0{Q$8123lXRa^>$FDu6r+Y&P&L{LB7R{MCesiHq^7s(lytu6C zQ_{@Sl^SOs&rgl?GWN}4rn8!4u!L?6Ys}A$mC)p5ow7_{0fuln)+cyuscAkovIpIJ zg;e_Sqc3F@>#=#6`pwWDz&jCR?VU`e`WgQnB$yNrdP;ON+^(yR_mS=!ul- z;s_3oDyHcJ=|oW6Mv0nme1(d_7&V!TRFTgIU%;Glh#&Don?z44$Rg@s-$#uG2<>}b zX0IaEBxWaK2OKm%{v@Iq&7hY@q~kJ;?R`CF}Jkao96j<)4+ON8C^U| z1hW-e*d#*-Hx1dtcca`TUMJKm%*XKxI3)Q&9=G#bBfXO?zuzy+WXzVvEN~gO^X=l1 ze5-gEgnh8{N%J568TBq(78!;iZ2)-I!SdnSJvco+h)5E`-;|4g*#I?euJ zr{1V$ImR%NC` zb(}C}mF52;3lmE$#F|L5i}}cUTPG31#k$qyhzNQHW1)572ob5el_-E7$iskAPYb?~ zb8^7jMy2W{AHgFeT0(<9*>~-?Lob;`%8GAE;Sj|HIj&m9^pj<>3rPq(jQn0>@0Zx zY>P4YQ8v4pv-;F$DT!Sg8;SHFXjD}cxtf8N305k5q9t)PC_!w2*=CwFDIT9;zl zX>&fv=3#vz%qCqlr-#+A-8W)`6DwsKvGrDofwbkrwj(XQ+At$+)V{Dg6}f00aR~Rw zg9FFNAvRgU3aUaydL(T1t>*ilbTdJ8BR;M|V;JTTjGS2DogmRJw&#Y74L2 zHqRi`VZt?)SRuyzwl@s-zACcMk{!sey<;Ekx&#iRv&$6G7Xeb)07gCQGM*!f&4SV6 zAra*&TknwcJ-!2>*aJF z=Aq7g(vUg!)xxUp@I3j%sjE{dVGahmRI4wkGxxO8<;&DW6*+HnDjOUZkoEx{Glas< z5n9p_$rQcVLzyr}3=RAOD>LhlC(KYZuWOG)lCx`e8IGPQ(xhR+68TU_YlHKi>dw0c8+Dtww4WXnD;(6K7~qd(4l5+#gT&@}F1 zOc5b-2^A*NBUH)X+T0(DI!1@C$2Sh*X=^7sQBsW!MYR zdhhjpZH?OZ%6S7?e#Y+v3X_bP4q)(_p+i_WdQuV_etWAYHg$qG?&4;=W=b&YldOt2 z8gWNd&*Q-LQ!9dFUuHA}lddlWpFq6o&G}0XDTqvoH1`DK(s>JIU#wKd-Ll#@OST=? zi(ldmD~T%VA3Vb#VdE&q-|70nBmT-&=26dbhvrO7 z7=_$+iR)WMmi$9(gP( zE}Wq7(9(ob>Lu^nlFNOL$(rNK?>T2pJ(HP`yG7cj@y1GOY#opN$-+W#DH{EWnTdMl zSY{r-&JxaSDUQ*f%TQFlN0NoRPP%;9mGLe57(L3AO;pca!a8>#A7(%CsFqvuPO;mg zvGAo7n>;Sft_^O-4a0_n$EpFK4NkWQ!e*!9D$mMaP1fC7Xk;mw9*!sIB_{WL<|0Fo z(UG8il{%EaprB29{a{h6mH3oiwKY$f%Pe90?y>EU^#G7TU|5d7+C;VY_{ZsCeRtTV z{)^i%tWy5W5q#G?Cbz5NuzA|l7kXUE^T zY3b84uUka~u7D|Ca39d9WGLm}_Hge%;{*FlU|T#rejUBXO6P zPk&^(22h=*3|e^hjMPSN+0+GpGsFAd8iHLK*sx>aW6v=*{wT%9asJTP-3KyNKLP)S1KkDzh)P3=r{EIwi@!jq*|iI z_58eU@5h`Et^H>9_0{rHg^Za*tfgs4b&Oc;OWDVsXGAI~X5c!Af zXRm+ApaOhIQ2yESmt7Da@?C>}$e>UmWO?X6^`KyZf6HJXWHs_1di+BFvcU&|{98}x zrabYVefjwK|K*1u2=bert1}!~0dW5L0)?ivHv&1&$hQm}9bJLQlG)GNpOS-xBM^L( zCdj&}bAy7en0Shw=K|Tu@atmL;)EvfdDg=kX!~y?rm0#617guBw S{fw|6SP%waW|mWx2mB8?<}XnI From 03e64669e2918cad366422e1a1aee508e572661d Mon Sep 17 00:00:00 2001 From: Rhys Lees <43909932+RhysLees@users.noreply.github.com> Date: Mon, 29 Jul 2024 17:10:00 +0100 Subject: [PATCH 53/54] WIP --- .phpunit.cache/test-results | 2 +- README.md | 969 ++++++++++++++---- ...etDocumentDownloadThumbnailRequestTest.php | 37 - 3 files changed, 773 insertions(+), 235 deletions(-) delete mode 100644 tests/Feature/Requests/Documents/Thumbnail/GetDocumentDownloadThumbnailRequestTest.php diff --git a/.phpunit.cache/test-results b/.phpunit.cache/test-results index 64b648f..cb9bd62 100644 --- a/.phpunit.cache/test-results +++ b/.phpunit.cache/test-results @@ -1 +1 @@ -{"version":"pest_2.34.9","defects":[],"times":{"P\\Tests\\Feature\\Requests\\FileCabinets\\Upload\\AppendFilesToADataRecordTest::__pest_evaluable_it_can_attach_files_to_a_data_record":0.563,"P\\Tests\\Feature\\Requests\\Documents\\ClipUnclipStapleUnstaple\\ClipTest::__pest_evaluable_it_can_clip_2_documents":7.226,"P\\Tests\\Feature\\Requests\\FileCabinets\\Dialogs\\GetDialogsOfASpecificTypeTest::__pest_evaluable_it_can_list_dialogs_for_a_file_cabinet":0.709,"P\\Tests\\Feature\\Requests\\FileCabinets\\Upload\\AppendFilesToADataRecordTest::__pest_evaluable_it_can_attach_a_file_to_a_data_record":1.051,"P\\Tests\\Unit\\DTO\\DocumentIndex\\IndexDateTimeDTOTest::__pest_evaluable_it_create_index_date_time_dto":0.001,"P\\Tests\\Unit\\DTO\\DocumentIndex\\IndexTextDTOTest::__pest_evaluable_it_create_prepare_index_text_dto":0,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetUsers\\GetUsersOfAGroupTest::__pest_evaluable_it_can_list_users_of_a_group":0.873,"P\\Tests\\Feature\\Requests\\Documents\\Sections\\GetASpecificSectionTest::__pest_evaluable_it_can_get_a_specific_section":1.001,"P\\Tests\\Core\\ArchTest::__pest_evaluable_it_will_not_use_any_debug_function":0.202,"P\\Tests\\Feature\\Requests\\FileCabinets\\Search\\GetDocumentsFromAFileCabinetTest::__pest_evaluable_it_can_get_all_documents":1.128,"P\\Tests\\Feature\\Requests\\Documents\\ApplicationProperties\\ApplicationPropertiesTest::__pest_evaluable_it_can_add_get_update_delete_application_properties_to_a_document":1.321,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetModifyRoles\\AddRemoveUserToARoleTest::__pest_evaluable_it_can_add_roles_to_a_user":7.208,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetModifyRoles\\AddRemoveUserToARoleTest::__pest_evaluable_it_can_remove_roles_to_a_user":5.942,"P\\Tests\\Feature\\Requests\\Documents\\PutDocumentFieldsRequestTest::__pest_evaluable_it_can_update_multiple_document_values":0.897,"P\\Tests\\Feature\\Requests\\Documents\\PutDocumentFieldsRequestTest::__pest_evaluable_it_can_update_a_document_value":0.917,"P\\Tests\\Feature\\Requests\\Documents\\Download\\DownloadSectionTest::__pest_evaluable_it_can_download_a_section":0.958,"P\\Tests\\Feature\\Requests\\Documents\\ClipUnclipStapleUnstaple\\StapleTest::__pest_evaluable_it_can_staple_2_documents":12.678,"P\\Tests\\Feature\\Requests\\Documents\\ClipUnclipStapleUnstaple\\UnclipTest::__pest_evaluable_it_can_unclip_2_documents":12.252,"P\\Tests\\Feature\\DocuWareAuthenticationTest::__pest_evaluable_it_can_get_oath_responsible_identity_service":0.681,"P\\Tests\\Feature\\DocuWareAuthenticationTest::__pest_evaluable_it_can_authenticate_with_DocuWare_Credentials":0.657,"P\\Tests\\Feature\\DocuWareAuthenticationTest::__pest_evaluable_it_can_get_oath_identity_service_configuration":1.107,"P\\Tests\\Feature\\Requests\\FileCabinets\\Search\\GetASpecificDocumentFromAFileCabinetTest::__pest_evaluable_it_can_show_a_document":0.986,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetModifyGroups\\GetGroupsTest::__pest_evaluable_it_can_list_groups":0.725,"P\\Tests\\Feature\\Requests\\Documents\\Thumbnail\\GetDocumentDownloadThumbnailRequestTest::__pest_evaluable_it_can_download_a_document_thumbnail":1.22,"P\\Tests\\Feature\\Requests\\Documents\\Download\\DownloadDocumentTest::__pest_evaluable_it_can_download_a_document":0.874,"P\\Tests\\Feature\\Requests\\Organization\\GetOrganizationsRequestTest::__pest_evaluable_it_can_list_organizations":0.689,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetModifyGroups\\GetAllGroupsForASpecificUserTest::__pest_evaluable_it_can_list_groups_for_a_specific_user":0.92,"P\\Tests\\Feature\\Requests\\Fields\\GetFieldsRequestTest::__pest_evaluable_it_can_list_fields_for_a_file_cabinet":0.752,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetUsers\\GetUserByIdTest::__pest_evaluable_it_can_get_user_by_id":1.005,"P\\Tests\\Feature\\Requests\\Documents\\Download\\DownloadThumbnailTest::__pest_evaluable_it_can_download_a_thumbnail":0.996,"P\\Tests\\Feature\\SleepTest::__pest_evaluable_sleep":0.544,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetUsers\\GetUsersTest::__pest_evaluable_it_can_list_users":0.812,"P\\Tests\\Unit\\DTO\\DocumentIndex\\IndexDecimalDTOTest::__pest_evaluable_it_create_index_numeric_dto":0.001,"P\\Tests\\Feature\\Requests\\Documents\\PostDocumentRequestTest::__pest_evaluable_it_can_upload_document_with_index_values_and_delete_it":0.836,"P\\Tests\\Feature\\Requests\\Documents\\PostDocumentRequestTest::__pest_evaluable_it_can_upload_document_without_file_name_and_file_content_and_delete_it":0.76,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_override_search_documents_dates_filter_by_using_equal_operator":0.72,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_search_documents_with_null_values":0.714,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_override_search_documents_dates_filter_by_using_same_operator":0.781,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_t_search_documents_by_more_than_two_dates":0.544,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_t_search_documents_by_diverged_date_range":0.555,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_search_documents_dates_filter_in_future":0.763,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_search_documents_dates_filter_in_past":0.816,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_search_documents":0.779,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_search_documents_with_multiple_values":1.354,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetModifyGroups\\AddRemoveUserToAGroupTest::__pest_evaluable_it_can_add_groups_to_a_user":7.049,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetModifyGroups\\AddRemoveUserToAGroupTest::__pest_evaluable_it_can_remove_groups_to_a_user":6.021,"P\\Tests\\Feature\\Requests\\Documents\\Sections\\DeleteSectionTest::__pest_evaluable_it_can_delete_a_specific_section":1.031,"P\\Tests\\Feature\\Requests\\FileCabinets\\Dialogs\\GetASpecificDialogTest::__pest_evaluable_it_can_get_a_dialog":0.767,"P\\Tests\\Feature\\Requests\\Workflow\\GetDocumentWorkflowHistoryTest::__pest_evaluable_it_can_get_document_workflow_history":5.948,"P\\Tests\\Feature\\Requests\\Documents\\GetDocumentPreviewRequestTest::__pest_evaluable_it_can_preview_a_document_image":1.154,"P\\Tests\\Unit\\DTO\\DocumentIndex\\IndexDateDTOTest::__pest_evaluable_it_create_index_date_dto":0.003,"P\\Tests\\Feature\\Requests\\Documents\\DocumentsTrashBin\\DeleteDocumentsFromTrashBinTest::__pest_evaluable_it_can_delete_documents_in_trash":1.141,"P\\Tests\\Unit\\DTO\\DocumentIndex\\PrepareTableDTOTest::__pest_evaluable_it_create_prepare_index_table_dto":0.002,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetModifyRoles\\GetAllRolesForASpecificUserTest::__pest_evaluable_it_can_list_groups":1.082,"P\\Tests\\Feature\\Requests\\Documents\\Sections\\GetAllSectionsFromADocumentTest::__pest_evaluable_it_can_get_all_sections_from_a_document":0.904,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetUsers\\GetUsersOfARoleTest::__pest_evaluable_it_can_list_users_of_a_role":0.767,"P\\Tests\\Feature\\Requests\\Documents\\DocumentsTrashBin\\RestoreDocumentsFromTrashBinTest::__pest_evaluable_it_can_restore_documents_in_trash":1.114,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_document_paginator":0.54,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_dialog":0.544,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_field":0.561,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_organization":0.549,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_table_row":0.562,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_document":0.554,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_organization_index":0.568,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_suggestion_field":0.535,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_file_cabinet":0.548,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_document_field":0.551,"P\\Tests\\Unit\\DTO\\DocumentIndex\\PrepareDTOTest::__pest_evaluable_it_create_prepare_makeContent_dto":0.001,"P\\Tests\\Unit\\DTO\\DocumentIndex\\PrepareDTOTest::__pest_evaluable_it_create_prepare_index_dto":0.002,"P\\Tests\\Feature\\Requests\\FileCabinets\\General\\GetFileCabinetInformationTest::__pest_evaluable_it_can_get_file_cabinet_information":0.83,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\CreateUpdateUsers\\CreateUpdateUserTest::__pest_evaluable_it_can_create_users":1.484,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\CreateUpdateUsers\\CreateUpdateUserTest::__pest_evaluable_it_can_update_users":6.052,"P\\Tests\\Unit\\DTO\\DocumentIndex\\IndexNumericDTOTest::__pest_evaluable_it_create_index_numeric_dto":0.001,"P\\Tests\\Feature\\DocuWareTest::__pest_evaluable_it_can_create_encrypted_url_for_a_document_in_a_basket":0.59,"P\\Tests\\Feature\\DocuWareTest::__pest_evaluable_it_can_create_encrypted_url_for_a_document_in_a_file_cabinet":0.541,"P\\Tests\\Unit\\DTO\\DocumentIndex\\IndexTableDTOTest::__pest_evaluable_it_create_prepare_index_text_dto":0.001,"P\\Tests\\Feature\\Requests\\Documents\\DocumentsTrashBin\\GetDocumentsFromTrashBinTest::__pest_evaluable_it_can_search_documents_with_null_values_in_trash":0.783,"P\\Tests\\Feature\\Requests\\Documents\\DocumentsTrashBin\\GetDocumentsFromTrashBinTest::__pest_evaluable_it_can_t_search_documents_by_diverged_date_range":0.546,"P\\Tests\\Feature\\Requests\\Documents\\DocumentsTrashBin\\GetDocumentsFromTrashBinTest::__pest_evaluable_it_can_override_search_documents_dates_filter_by_using_same_operator_in_trash":0.679,"P\\Tests\\Feature\\Requests\\Documents\\DocumentsTrashBin\\GetDocumentsFromTrashBinTest::__pest_evaluable_it_can_search_documents_dates_filter_in_future_in_trash":0.66,"P\\Tests\\Feature\\Requests\\Documents\\DocumentsTrashBin\\GetDocumentsFromTrashBinTest::__pest_evaluable_it_can_search_documents_dates_filter_in_past_in_trash":0.68,"P\\Tests\\Feature\\Requests\\Documents\\DocumentsTrashBin\\GetDocumentsFromTrashBinTest::__pest_evaluable_it_can_search_documents_in_trash":0.69,"P\\Tests\\Feature\\Requests\\Documents\\DocumentsTrashBin\\GetDocumentsFromTrashBinTest::__pest_evaluable_it_can_override_search_documents_dates_filter_by_using_equal_operator_in_trash":0.678,"P\\Tests\\Feature\\Requests\\Documents\\DocumentsTrashBin\\GetDocumentsFromTrashBinTest::__pest_evaluable_it_can_t_search_documents_by_more_than_two_dates_in_trash":0.534,"P\\Tests\\Feature\\Requests\\Workflow\\GetDocumentWorkflowHistoryStepsTest::__pest_evaluable_it_can_get_document_workflow_history":6.748,"P\\Tests\\Feature\\Requests\\Documents\\ClipUnclipStapleUnstaple\\UnstapleTest::__pest_evaluable_it_can_unstaple_a_document":13.846,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetModifyRoles\\GetRolesTest::__pest_evaluable_it_can_list_groups":0.688,"P\\Tests\\Feature\\Requests\\Documents\\GetDocumentCountRequestTest::__pest_evaluable_it_can_get_a_total_count_of_documents":0.938}} \ No newline at end of file +{"version":"pest_2.34.9","defects":{"P\\Tests\\Feature\\Requests\\AnnotationsStamps\\AddRectEntryAnnotationTest::__pest_evaluable_it_can_clip_2_documents":8,"P\\Tests\\Feature\\Requests\\AnnotationsStamps\\AddTextAnnotationTest::__pest_evaluable_it_can_clip_2_documents":8,"P\\Tests\\Feature\\Requests\\AnnotationsStamps\\UpdateTextAnnotationTest::__pest_evaluable_it_can_clip_2_documents":8,"P\\Tests\\Feature\\Requests\\AnnotationsStamps\\AddLineEntryAnnotationTest::__pest_evaluable_it_can_clip_2_documents":8},"times":{"P\\Tests\\Feature\\Requests\\FileCabinets\\Upload\\AppendFilesToADataRecordTest::__pest_evaluable_it_can_attach_files_to_a_data_record":0.435,"P\\Tests\\Feature\\Requests\\Documents\\ClipUnclipStapleUnstaple\\ClipTest::__pest_evaluable_it_can_clip_2_documents":6.938,"P\\Tests\\Feature\\Requests\\FileCabinets\\Dialogs\\GetDialogsOfASpecificTypeTest::__pest_evaluable_it_can_list_dialogs_for_a_file_cabinet":0.592,"P\\Tests\\Feature\\Requests\\FileCabinets\\Upload\\AppendFilesToADataRecordTest::__pest_evaluable_it_can_attach_a_file_to_a_data_record":0.933,"P\\Tests\\Unit\\DTO\\DocumentIndex\\IndexDateTimeDTOTest::__pest_evaluable_it_create_index_date_time_dto":0.001,"P\\Tests\\Unit\\DTO\\DocumentIndex\\IndexTextDTOTest::__pest_evaluable_it_create_prepare_index_text_dto":0,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetUsers\\GetUsersOfAGroupTest::__pest_evaluable_it_can_list_users_of_a_group":0.678,"P\\Tests\\Feature\\Requests\\Documents\\Sections\\GetASpecificSectionTest::__pest_evaluable_it_can_get_a_specific_section":1.014,"P\\Tests\\Core\\ArchTest::__pest_evaluable_it_will_not_use_any_debug_function":0.218,"P\\Tests\\Feature\\Requests\\FileCabinets\\Search\\GetDocumentsFromAFileCabinetTest::__pest_evaluable_it_can_get_all_documents":1.037,"P\\Tests\\Feature\\Requests\\Documents\\ApplicationProperties\\ApplicationPropertiesTest::__pest_evaluable_it_can_add_get_update_delete_application_properties_to_a_document":1.028,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetModifyRoles\\AddRemoveUserToARoleTest::__pest_evaluable_it_can_add_roles_to_a_user":7.329,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetModifyRoles\\AddRemoveUserToARoleTest::__pest_evaluable_it_can_remove_roles_to_a_user":5.854,"P\\Tests\\Feature\\Requests\\Documents\\PutDocumentFieldsRequestTest::__pest_evaluable_it_can_update_multiple_document_values":0.788,"P\\Tests\\Feature\\Requests\\Documents\\PutDocumentFieldsRequestTest::__pest_evaluable_it_can_update_a_document_value":0.974,"P\\Tests\\Feature\\Requests\\Documents\\Download\\DownloadSectionTest::__pest_evaluable_it_can_download_a_section":0.786,"P\\Tests\\Feature\\Requests\\Documents\\ClipUnclipStapleUnstaple\\StapleTest::__pest_evaluable_it_can_staple_2_documents":12.88,"P\\Tests\\Feature\\Requests\\Documents\\ClipUnclipStapleUnstaple\\UnclipTest::__pest_evaluable_it_can_unclip_2_documents":12.684,"P\\Tests\\Feature\\DocuWareAuthenticationTest::__pest_evaluable_it_can_get_oath_responsible_identity_service":0.602,"P\\Tests\\Feature\\DocuWareAuthenticationTest::__pest_evaluable_it_can_authenticate_with_DocuWare_Credentials":0.525,"P\\Tests\\Feature\\DocuWareAuthenticationTest::__pest_evaluable_it_can_get_oath_identity_service_configuration":0.839,"P\\Tests\\Feature\\Requests\\FileCabinets\\Search\\GetASpecificDocumentFromAFileCabinetTest::__pest_evaluable_it_can_show_a_document":0.731,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetModifyGroups\\GetGroupsTest::__pest_evaluable_it_can_list_groups":0.592,"P\\Tests\\Feature\\Requests\\Documents\\Thumbnail\\GetDocumentDownloadThumbnailRequestTest::__pest_evaluable_it_can_download_a_document_thumbnail":0.921,"P\\Tests\\Feature\\Requests\\Documents\\Download\\DownloadDocumentTest::__pest_evaluable_it_can_download_a_document":0.847,"P\\Tests\\Feature\\Requests\\Organization\\GetOrganizationsRequestTest::__pest_evaluable_it_can_list_organizations":0.531,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetModifyGroups\\GetAllGroupsForASpecificUserTest::__pest_evaluable_it_can_list_groups_for_a_specific_user":0.659,"P\\Tests\\Feature\\Requests\\Fields\\GetFieldsRequestTest::__pest_evaluable_it_can_list_fields_for_a_file_cabinet":0.558,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetUsers\\GetUserByIdTest::__pest_evaluable_it_can_get_user_by_id":0.7,"P\\Tests\\Feature\\Requests\\Documents\\Download\\DownloadThumbnailTest::__pest_evaluable_it_can_download_a_thumbnail":0.865,"P\\Tests\\Feature\\SleepTest::__pest_evaluable_sleep":0.451,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetUsers\\GetUsersTest::__pest_evaluable_it_can_list_users":0.595,"P\\Tests\\Unit\\DTO\\DocumentIndex\\IndexDecimalDTOTest::__pest_evaluable_it_create_index_numeric_dto":0.001,"P\\Tests\\Feature\\Requests\\Documents\\PostDocumentRequestTest::__pest_evaluable_it_can_upload_document_with_index_values_and_delete_it":0.675,"P\\Tests\\Feature\\Requests\\Documents\\PostDocumentRequestTest::__pest_evaluable_it_can_upload_document_without_file_name_and_file_content_and_delete_it":0.594,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_override_search_documents_dates_filter_by_using_equal_operator":0.58,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_search_documents_with_null_values":0.534,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_override_search_documents_dates_filter_by_using_same_operator":0.622,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_t_search_documents_by_more_than_two_dates":0.431,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_t_search_documents_by_diverged_date_range":0.473,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_search_documents_dates_filter_in_future":0.638,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_search_documents_dates_filter_in_past":0.579,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_search_documents":0.555,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_search_documents_with_multiple_values":1.181,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetModifyGroups\\AddRemoveUserToAGroupTest::__pest_evaluable_it_can_add_groups_to_a_user":7.132,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetModifyGroups\\AddRemoveUserToAGroupTest::__pest_evaluable_it_can_remove_groups_to_a_user":6.057,"P\\Tests\\Feature\\Requests\\Documents\\Sections\\DeleteSectionTest::__pest_evaluable_it_can_delete_a_specific_section":0.846,"P\\Tests\\Feature\\Requests\\FileCabinets\\Dialogs\\GetASpecificDialogTest::__pest_evaluable_it_can_get_a_dialog":0.565,"P\\Tests\\Feature\\Requests\\Workflow\\GetDocumentWorkflowHistoryTest::__pest_evaluable_it_can_get_document_workflow_history":6.08,"P\\Tests\\Feature\\Requests\\Documents\\GetDocumentPreviewRequestTest::__pest_evaluable_it_can_preview_a_document_image":2.364,"P\\Tests\\Unit\\DTO\\DocumentIndex\\IndexDateDTOTest::__pest_evaluable_it_create_index_date_dto":0.001,"P\\Tests\\Feature\\Requests\\Documents\\DocumentsTrashBin\\DeleteDocumentsFromTrashBinTest::__pest_evaluable_it_can_delete_documents_in_trash":1.428,"P\\Tests\\Unit\\DTO\\DocumentIndex\\PrepareTableDTOTest::__pest_evaluable_it_create_prepare_index_table_dto":0,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetModifyRoles\\GetAllRolesForASpecificUserTest::__pest_evaluable_it_can_list_groups":0.728,"P\\Tests\\Feature\\Requests\\Documents\\Sections\\GetAllSectionsFromADocumentTest::__pest_evaluable_it_can_get_all_sections_from_a_document":0.684,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetUsers\\GetUsersOfARoleTest::__pest_evaluable_it_can_list_users_of_a_role":0.668,"P\\Tests\\Feature\\Requests\\Documents\\DocumentsTrashBin\\RestoreDocumentsFromTrashBinTest::__pest_evaluable_it_can_restore_documents_in_trash":1.007,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_document_paginator":0.482,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_dialog":0.463,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_field":0.428,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_organization":0.447,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_table_row":0.442,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_document":0.488,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_organization_index":0.418,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_suggestion_field":0.462,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_file_cabinet":0.43,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_document_field":0.412,"P\\Tests\\Unit\\DTO\\DocumentIndex\\PrepareDTOTest::__pest_evaluable_it_create_prepare_makeContent_dto":0.004,"P\\Tests\\Unit\\DTO\\DocumentIndex\\PrepareDTOTest::__pest_evaluable_it_create_prepare_index_dto":0.001,"P\\Tests\\Feature\\Requests\\FileCabinets\\General\\GetFileCabinetInformationTest::__pest_evaluable_it_can_get_file_cabinet_information":0.526,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\CreateUpdateUsers\\CreateUpdateUserTest::__pest_evaluable_it_can_create_users":1.303,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\CreateUpdateUsers\\CreateUpdateUserTest::__pest_evaluable_it_can_update_users":5.859,"P\\Tests\\Unit\\DTO\\DocumentIndex\\IndexNumericDTOTest::__pest_evaluable_it_create_index_numeric_dto":0.001,"P\\Tests\\Feature\\DocuWareTest::__pest_evaluable_it_can_create_encrypted_url_for_a_document_in_a_basket":0.407,"P\\Tests\\Feature\\DocuWareTest::__pest_evaluable_it_can_create_encrypted_url_for_a_document_in_a_file_cabinet":0.426,"P\\Tests\\Unit\\DTO\\DocumentIndex\\IndexTableDTOTest::__pest_evaluable_it_create_prepare_index_text_dto":0.002,"P\\Tests\\Feature\\Requests\\Documents\\DocumentsTrashBin\\GetDocumentsFromTrashBinTest::__pest_evaluable_it_can_search_documents_with_null_values_in_trash":0.554,"P\\Tests\\Feature\\Requests\\Documents\\DocumentsTrashBin\\GetDocumentsFromTrashBinTest::__pest_evaluable_it_can_t_search_documents_by_diverged_date_range":0.399,"P\\Tests\\Feature\\Requests\\Documents\\DocumentsTrashBin\\GetDocumentsFromTrashBinTest::__pest_evaluable_it_can_override_search_documents_dates_filter_by_using_same_operator_in_trash":0.571,"P\\Tests\\Feature\\Requests\\Documents\\DocumentsTrashBin\\GetDocumentsFromTrashBinTest::__pest_evaluable_it_can_search_documents_dates_filter_in_future_in_trash":0.525,"P\\Tests\\Feature\\Requests\\Documents\\DocumentsTrashBin\\GetDocumentsFromTrashBinTest::__pest_evaluable_it_can_search_documents_dates_filter_in_past_in_trash":0.518,"P\\Tests\\Feature\\Requests\\Documents\\DocumentsTrashBin\\GetDocumentsFromTrashBinTest::__pest_evaluable_it_can_search_documents_in_trash":0.539,"P\\Tests\\Feature\\Requests\\Documents\\DocumentsTrashBin\\GetDocumentsFromTrashBinTest::__pest_evaluable_it_can_override_search_documents_dates_filter_by_using_equal_operator_in_trash":0.532,"P\\Tests\\Feature\\Requests\\Documents\\DocumentsTrashBin\\GetDocumentsFromTrashBinTest::__pest_evaluable_it_can_t_search_documents_by_more_than_two_dates_in_trash":0.419,"P\\Tests\\Feature\\Requests\\Workflow\\GetDocumentWorkflowHistoryStepsTest::__pest_evaluable_it_can_get_document_workflow_history":6.101,"P\\Tests\\Feature\\Requests\\Documents\\ClipUnclipStapleUnstaple\\UnstapleTest::__pest_evaluable_it_can_unstaple_a_document":13.551,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetModifyRoles\\GetRolesTest::__pest_evaluable_it_can_list_groups":0.545,"P\\Tests\\Feature\\Requests\\Documents\\GetDocumentCountRequestTest::__pest_evaluable_it_can_get_a_total_count_of_documents":0.811,"P\\Tests\\Feature\\Requests\\AnnotationsStamps\\AddRectEntryAnnotationTest::__pest_evaluable_it_can_clip_2_documents":0.916,"P\\Tests\\Feature\\Requests\\AnnotationsStamps\\AddTextAnnotationTest::__pest_evaluable_it_can_clip_2_documents":0.871,"P\\Tests\\Feature\\Requests\\AnnotationsStamps\\UpdateTextAnnotationTest::__pest_evaluable_it_can_clip_2_documents":0.567,"P\\Tests\\Feature\\Requests\\AnnotationsStamps\\AddLineEntryAnnotationTest::__pest_evaluable_it_can_clip_2_documents":0.77,"P\\Tests\\Feature\\Requests\\Documents\\AnnotationsStamps\\AddRectEntryAnnotationTest::__pest_evaluable_it_can_clip_2_documents":6.177,"P\\Tests\\Feature\\Requests\\Documents\\AnnotationsStamps\\UpdateTextAnnotationTest::__pest_evaluable_it_can_clip_2_documents":6.635,"P\\Tests\\Feature\\Requests\\Documents\\AnnotationsStamps\\AddLineEntryAnnotationTest::__pest_evaluable_it_can_clip_2_documents":6.192,"P\\Tests\\Feature\\Requests\\Documents\\AnnotationsStamps\\AddTextAnnotationTest::__pest_evaluable_it_can_clip_2_documents":6.237,"P\\Tests\\Feature\\Requests\\Documents\\AnnotationsStamps\\AddStampWithBestPositionTest::__pest_evaluable_it_can_clip_2_documents":6.458,"P\\Tests\\Feature\\Requests\\Documents\\AnnotationsStamps\\AddStampWithPositionTest::__pest_evaluable_it_can_clip_2_documents":6.371,"P\\Tests\\Feature\\Requests\\Documents\\AnnotationsStamps\\UpdateTextAnnotationTest::__pest_evaluable_it_can_annotate":6.507}} \ No newline at end of file diff --git a/README.md b/README.md index 8a65ebe..8e30f62 100644 --- a/README.md +++ b/README.md @@ -64,86 +64,86 @@ then optimize the processes that power the core of your business.
Current Support -| Group | Request | Supported | TODO | -|-------------------------------------|-------------------------------------------------------------|-----------|----------------| -| Authentication/OAuth | 1. Get Responsible Identity Service | ✅ | | -| Authentication/OAuth | 2. Get Identity Service Configuration | ✅ | | -| Authentication/OAuth | 3.a Request Token w/ Username & Password | ✅ | | -| Authentication/OAuth | 3.b Request Token w/ a DocuWare Token | 🕣 | | -| Authentication/OAuth | 3.c Request Token w/ Username & Password (Trusted User) | 🕣 | | -| Authentication/OAuth | 3.d.1 Obtain Windows Authorization (On Premises Only) | 🕣 | | -| Authentication/OAuth | 3.d.2 Request Token /w a Windows Account (On Premises Only) | 🕣 | | -| General/Organisation | Get Login Token | ✅ | | -| General/Organisation | Get Organization | ✅ | | -| General/Organisation | Get All File Cabinets and Document Trays | ✅ | | -| General/UserManagement | Get Users by ID | ✅ | | -| General/UserManagement | Get Users of a Role | ✅ | | -| General/UserManagement | Get Users of a Group | ✅ | | -| General/UserManagement | Create User | ✅ | | -| General/UserManagement | Update User | ✅ | | -| General/UserManagement | Get Groups | ✅ | | -| General/UserManagement | Get All Groups for a Specific User | ✅ | | -| General/UserManagement | Add User to a Group | ✅ | | -| General/UserManagement | Remove User from a Group | ✅ | | -| General/UserManagement | Get Roles | ✅ | | -| General/UserManagement | Get All Roles for a Specific User | ✅ | | -| General/UserManagement | Add User to a Role | ✅ | | -| General/UserManagement | Remove User from a Role | ✅ | | -| FileCabinets/General | Get File Cabinet Information | ✅ | | -| FileCabinets/General | Get Total Number of Documents | ✅ | | -| FileCabinets/Dialogs | Get All Dialogs | ✅ | | -| FileCabinets/Dialogs | Get a Specific Dialog | ✅ | | -| FileCabinets/Dialogs | Get Dialogs of a Specific Type | ✅ | | -| FileCabinets/Search | Get Documents from a File Cabinet | ✅ | | -| FileCabinets/Search | Get a Specific Document From a File Cabinet | ✅ | | -| FileCabinets/Search | Search for Documents in a Single File Cabinet | ✅ | | -| FileCabinets/Search | Search for Documents in Multiple File Cabinets | ✅ | | -| FileCabinets/CheckInCheckOut | Check-out & Download a Document | 🕣 | | -| FileCabinets/CheckInCheckOut | Check-in a Document from the File System | 🕣 | | -| FileCabinets/CheckInCheckOut | Undo Check-out | 🕣 | | -| FileCabinets/SelectLists | Get Select Lists & Get Filtered Select Lists | ✅ | | -| FileCabinets/Upload | Create Data Record | ✅ | | -| FileCabinets/Upload | Append File(s) to a Data Record | ✅ | - | -| FileCabinets/Upload | Upload a Single File for a Data Record | ❌ | - | -| FileCabinets/Upload | Create a Data Record & Upload File | ❌ | - | -| FileCabinets/Upload | Create Data Record & Upload File Using Store Dialog | ❌ | - | -| FileCabinets/Upload | Append a Single PDF to a Document | ❌ | - | -| FileCabinets/Upload | Replace a PDF Document Section | ❌ | - | -| FileCabinets/BatchIndexFieldsUpdate | Batch Update Index Fields By Id | ❌ | - | -| FileCabinets/BatchIndexFieldsUpdate | Batch Update Index Fields By Search | ❌ | - | -| FileCabinets/BatchIndexFieldsUpdate | Batch Append/Update Keyword Fields By Id | ❌ | - | -| Documents/UpdateIndexValues | Update Index Values | ✅ | | -| Documents/UpdateIndexValues | Update Table Field Values | ❌ | - ? | -| Documents/ModifyDocuments | Transfer Document | ✅ | - | -| Documents/ModifyDocuments | Delete Document | ✅ | | -| Documents/ClipUnclip&StapleUnstaple | Clip | ✅ | | -| Documents/ClipUnclip&StapleUnstaple | Unclip | ✅ | | -| Documents/ClipUnclip&StapleUnstaple | Staple | ✅ | | -| Documents/ClipUnclip&StapleUnstaple | Unstaple | ✅ | | -| Documents/AnnotationsStamps | AddStampWithPosition | ❌ | - Better Tests | -| Documents/AnnotationsStamps | AddStampWithBestPosition | ❌ | - Better Tests | -| Documents/AnnotationsStamps | AddTextAnnotation | ❌ | - Better Tests | -| Documents/AnnotationsStamps | AddRectEntryAnnotation | ❌ | - Better Tests | -| Documents/AnnotationsStamps | AddLineEntryAnnotation | ❌ | - Better Tests | -| Documents/AnnotationsStamps | AddPolyLineEntryAnnotation | ❌ | - | -| Documents/AnnotationsStamps | DeleteAnnotation | ❌ | - | -| Documents/AnnotationsStamps | UpdateTextAnnotation | ❌ | - Better Tests | -| Documents/AnnotationsStamps | Get Stamps | ❌ | - | -| Documents/DocumentsTrashBin | Get Documents | ✅ | | -| Documents/DocumentsTrashBin | Delete Documents | ✅ | | -| Documents/DocumentsTrashBin | Restore Documents | ✅ | | -| Documents/ApplicationProperties | Get Application Properties | ✅ | - | -| Documents/ApplicationProperties | Add Application Properties | ✅ | - | -| Documents/ApplicationProperties | Delete Application Properties | ✅ | - | -| Documents/ApplicationProperties | Update Application Properties | ✅ | - | -| Documents/Sections | Get All Sections from a Document | ✅ | - | -| Documents/Sections | Get a Specific Section | ✅ | - | -| Documents/Sections | Delete Section | ✅ | - | -| Documents/Download | Download Document | ✅ | | -| Documents/Download | Download Section | ✅ | - | -| Documents/Download | Download Thumbnail | ✅ | | -| Workflow | Get Document Workflow History | ✅ | - | -| Workflow | Get Document Workflow History Steps | ✅ | - | +| Group | Request | Supported | TODO | +|-------------------------------------|-------------------------------------------------------------|-----------|------| +| Authentication/OAuth | 1. Get Responsible Identity Service | ✅ | | +| Authentication/OAuth | 2. Get Identity Service Configuration | ✅ | | +| Authentication/OAuth | 3.a Request Token w/ Username & Password | ✅ | | +| Authentication/OAuth | 3.b Request Token w/ a DocuWare Token | 🕣 | | +| Authentication/OAuth | 3.c Request Token w/ Username & Password (Trusted User) | 🕣 | | +| Authentication/OAuth | 3.d.1 Obtain Windows Authorization (On Premises Only) | 🕣 | | +| Authentication/OAuth | 3.d.2 Request Token /w a Windows Account (On Premises Only) | 🕣 | | +| General/Organisation | Get Login Token | ✅ | | +| General/Organisation | Get Organization | ✅ | | +| General/Organisation | Get All File Cabinets and Document Trays | ✅ | | +| General/UserManagement | Get Users by ID | ✅ | | +| General/UserManagement | Get Users of a Role | ✅ | | +| General/UserManagement | Get Users of a Group | ✅ | | +| General/UserManagement | Create User | ✅ | | +| General/UserManagement | Update User | ✅ | | +| General/UserManagement | Get Groups | ✅ | | +| General/UserManagement | Get All Groups for a Specific User | ✅ | | +| General/UserManagement | Add User to a Group | ✅ | | +| General/UserManagement | Remove User from a Group | ✅ | | +| General/UserManagement | Get Roles | ✅ | | +| General/UserManagement | Get All Roles for a Specific User | ✅ | | +| General/UserManagement | Add User to a Role | ✅ | | +| General/UserManagement | Remove User from a Role | ✅ | | +| FileCabinets/General | Get File Cabinet Information | ✅ | | +| FileCabinets/General | Get Total Number of Documents | ✅ | | +| FileCabinets/Dialogs | Get All Dialogs | ✅ | | +| FileCabinets/Dialogs | Get a Specific Dialog | ✅ | | +| FileCabinets/Dialogs | Get Dialogs of a Specific Type | ✅ | | +| FileCabinets/Search | Get Documents from a File Cabinet | ✅ | | +| FileCabinets/Search | Get a Specific Document From a File Cabinet | ✅ | | +| FileCabinets/Search | Search for Documents in a Single File Cabinet | ✅ | | +| FileCabinets/Search | Search for Documents in Multiple File Cabinets | ✅ | | +| FileCabinets/CheckInCheckOut | Check-out & Download a Document | 🕣 | | +| FileCabinets/CheckInCheckOut | Check-in a Document from the File System | 🕣 | | +| FileCabinets/CheckInCheckOut | Undo Check-out | 🕣 | | +| FileCabinets/SelectLists | Get Select Lists & Get Filtered Select Lists | ✅ | | +| FileCabinets/Upload | Create Data Record | ✅ | | +| FileCabinets/Upload | Append File(s) to a Data Record | ✅ | | +| FileCabinets/Upload | Upload a Single File for a Data Record | ❌ | - | +| FileCabinets/Upload | Create a Data Record & Upload File | ❌ | - | +| FileCabinets/Upload | Create Data Record & Upload File Using Store Dialog | ❌ | - | +| FileCabinets/Upload | Append a Single PDF to a Document | ❌ | - | +| FileCabinets/Upload | Replace a PDF Document Section | ❌ | - | +| FileCabinets/BatchIndexFieldsUpdate | Batch Update Index Fields By Id | ❌ | - | +| FileCabinets/BatchIndexFieldsUpdate | Batch Update Index Fields By Search | ❌ | - | +| FileCabinets/BatchIndexFieldsUpdate | Batch Append/Update Keyword Fields By Id | ❌ | - | +| Documents/UpdateIndexValues | Update Index Values | ✅ | | +| Documents/UpdateIndexValues | Update Table Field Values | ❌ | - ? | +| Documents/ModifyDocuments | Transfer Document | ✅ | | +| Documents/ModifyDocuments | Delete Document | ✅ | | +| Documents/ClipUnclip&StapleUnstaple | Clip | ✅ | | +| Documents/ClipUnclip&StapleUnstaple | Unclip | ✅ | | +| Documents/ClipUnclip&StapleUnstaple | Staple | ✅ | | +| Documents/ClipUnclip&StapleUnstaple | Unstaple | ✅ | | +| Documents/AnnotationsStamps | AddStampWithPosition | ✅ | | +| Documents/AnnotationsStamps | AddStampWithBestPosition | ✅ | | +| Documents/AnnotationsStamps | AddTextAnnotation | ✅ | | +| Documents/AnnotationsStamps | AddRectEntryAnnotation | ✅ | | +| Documents/AnnotationsStamps | AddLineEntryAnnotation | ✅ | | +| Documents/AnnotationsStamps | AddPolyLineEntryAnnotation | ❌ | - | +| Documents/AnnotationsStamps | DeleteAnnotation | ❌ | - | +| Documents/AnnotationsStamps | UpdateTextAnnotation | ✅ | | +| Documents/AnnotationsStamps | Get Stamps | ❌ | - | +| Documents/DocumentsTrashBin | Get Documents | ✅ | | +| Documents/DocumentsTrashBin | Delete Documents | ✅ | | +| Documents/DocumentsTrashBin | Restore Documents | ✅ | | +| Documents/ApplicationProperties | Get Application Properties | ✅ | | +| Documents/ApplicationProperties | Add Application Properties | ✅ | | +| Documents/ApplicationProperties | Delete Application Properties | ✅ | | +| Documents/ApplicationProperties | Update Application Properties | ✅ | | +| Documents/Sections | Get All Sections from a Document | ✅ | | +| Documents/Sections | Get a Specific Section | ✅ | | +| Documents/Sections | Delete Section | ✅ | | +| Documents/Download | Download Document | ✅ | | +| Documents/Download | Download Section | ✅ | | +| Documents/Download | Download Thumbnail | ✅ | | +| Workflow | Get Document Workflow History | ✅ | | +| Workflow | Get Document Workflow History Steps | ✅ | |
@@ -258,183 +258,744 @@ $connector = new CustomDocuWareConnector(); ### Available Requests
- Available Requests + Documents +#### Add Line Entry Annotation ```php -/** - * Return an organization. - */ - -$organization = $connector->send(new GetOrganization($id))->dto(); +use CodebarAg\DocuWare\DTO\Documents\AnnotationsStamps\AnnotationItem; +use CodebarAg\DocuWare\DTO\Documents\AnnotationsStamps\AnnotationItemLayer; +use CodebarAg\DocuWare\DTO\Documents\AnnotationsStamps\AnnotationItemLayerItem; +use CodebarAg\DocuWare\DTO\Documents\AnnotationsStamps\AnnotationItemLocation; +use CodebarAg\DocuWare\DTO\Documents\AnnotationsStamps\AnnotationPlacement; +use CodebarAg\DocuWare\DTO\Documents\AnnotationsStamps\Annotations; +use CodebarAg\DocuWare\Requests\Documents\AnnotationsStamps\AddLineEntryAnnotation; + +$annotations = new Annotations( + pageNumber: 0, + sectionNumber: 0, + annotationsPlacement: new AnnotationPlacement( + items: collect([ + new AnnotationItem( + type: 'Annotation', + layer: collect([ + new AnnotationItemLayer( + id: 1, + items: collect([ + new AnnotationItemLayerItem( + type: 'LineEntry', + color: 'Cyan', + rotation: 0, + transparent: false, + strokeWidth: 50, + arrow: false, + from: new AnnotationItemLocation( + x: 100, + y: 100, + ), + to: new AnnotationItemLocation( + x: 200, + y: 200, + ), + ), + ]), + ), + ]), + ), + ]), + ), +); + +$stamp = $connector->send(new AddLineEntryAnnotation( + $fileCabinetId, + $documentId, + $annotations, +))->dto(); ``` +#### Add Rect Entry Annotation ```php -/** - * Return all file cabinets. - */ - -$fileCabinets = $connector->send(new GetAllFileCabinetsAndDocumentTrays())->dto(); +use CodebarAg\DocuWare\DTO\Documents\AnnotationsStamps\AnnotationItem; +use CodebarAg\DocuWare\DTO\Documents\AnnotationsStamps\AnnotationItemLayer; +use CodebarAg\DocuWare\DTO\Documents\AnnotationsStamps\AnnotationItemLayerItem; +use CodebarAg\DocuWare\DTO\Documents\AnnotationsStamps\AnnotationItemLocation; +use CodebarAg\DocuWare\DTO\Documents\AnnotationsStamps\AnnotationPlacement; +use CodebarAg\DocuWare\DTO\Documents\AnnotationsStamps\Annotations; +use CodebarAg\DocuWare\Requests\Documents\AnnotationsStamps\AddRectEntryAnnotation; + +$annotations = new Annotations( + pageNumber: 0, + sectionNumber: 0, + annotationsPlacement: new AnnotationPlacement( + items: collect([ + new AnnotationItem( + type: 'Annotation', + layer: collect([ + new AnnotationItemLayer( + id: 1, + items: collect([ + new AnnotationItemLayerItem( + type: 'RectEntry', + color: 'Bisque', + rotation: 0, + transparent: false, + strokeWidth: 50, + filled: true, + ellipse: false, + location: new AnnotationItemLocation( + left: 100, + top: 100, + width: 1500, + height: 100, + ), + ), + ]), + ), + ]), + ), + ]), + ), +); + +$stamp = $connector->send(new AddRectEntryAnnotation( + $fileCabinetId, + $documentId, + $annotations, +))->dto(); ``` + +#### Add Stamp With Best Position ```php -/** - * Return all fields of a file cabinet. - */ - +use CodebarAg\DocuWare\DTO\Documents\AnnotationsStamps\AnnotationItem; +use CodebarAg\DocuWare\DTO\Documents\AnnotationsStamps\AnnotationItemField; +use CodebarAg\DocuWare\DTO\Documents\AnnotationsStamps\AnnotationItemFieldTypedValue; +use CodebarAg\DocuWare\DTO\Documents\AnnotationsStamps\AnnotationPlacement; +use CodebarAg\DocuWare\DTO\Documents\AnnotationsStamps\Annotations; +use CodebarAg\DocuWare\Requests\Documents\AnnotationsStamps\AddStampWithBestPosition; + +$annotations = new Annotations( + pageNumber: 0, + sectionNumber: 0, + annotationsPlacement: new AnnotationPlacement( + items: collect([ + new AnnotationItem( + type: 'StampPlacement', + layer: 1, + field: collect([ + new AnnotationItemField( + name: '<#1>', + typedValue: new AnnotationItemFieldTypedValue( + item: 'Text', + itemElementName: 'String', + ), + value: 'Test', + textAsString: 'Test', + ), + ]), + stampId: 'e1b3f6cc-ed69-4af2-afa5-6d990c0144c5', + ), + ]), + ), +); + +$stamp = $connector->send(new AddStampWithBestPosition( + $fileCabinetId, + $documentId, + $annotations, +))->dto(); +``` + + +#### Add Stamp With Position +```php +use CodebarAg\DocuWare\DTO\Documents\AnnotationsStamps\AnnotationItem; +use CodebarAg\DocuWare\DTO\Documents\AnnotationsStamps\AnnotationItemField; +use CodebarAg\DocuWare\DTO\Documents\AnnotationsStamps\AnnotationItemFieldTypedValue; +use CodebarAg\DocuWare\DTO\Documents\AnnotationsStamps\AnnotationItemLocation; +use CodebarAg\DocuWare\DTO\Documents\AnnotationsStamps\AnnotationPlacement; +use CodebarAg\DocuWare\DTO\Documents\AnnotationsStamps\Annotations; +use CodebarAg\DocuWare\Requests\Documents\AnnotationsStamps\AddStampWithPosition; + +$annotations = new Annotations( + pageNumber: 0, + sectionNumber: 0, + annotationsPlacement: new AnnotationPlacement( + items: collect([ + new AnnotationItem( + type: 'StampPlacement', + layer: 1, + field: collect([ + new AnnotationItemField( + name: '<#1>', + typedValue: new AnnotationItemFieldTypedValue( + item: 'Text', + itemElementName: 'String', + ), + value: 'Test', + textAsString: 'Test', + ), + ]), + location: new AnnotationItemLocation( + x: 0.5, + y: 0.5, + ), + stampId: 'e1b3f6cc-ed69-4af2-afa5-6d990c0144c5', + ), + ]), + ), +); + +$stamp = $connector->send(new AddStampWithPosition( + $fileCabinetId, + $documentId, + $annotations, +))->dto(); +``` + +#### Add Text Annotation +```php +use CodebarAg\DocuWare\DTO\Documents\AnnotationsStamps\AnnotationItem; +use CodebarAg\DocuWare\DTO\Documents\AnnotationsStamps\AnnotationItemFont; +use CodebarAg\DocuWare\DTO\Documents\AnnotationsStamps\AnnotationItemLayer; +use CodebarAg\DocuWare\DTO\Documents\AnnotationsStamps\AnnotationItemLayerItem; +use CodebarAg\DocuWare\DTO\Documents\AnnotationsStamps\AnnotationItemLocation; +use CodebarAg\DocuWare\DTO\Documents\AnnotationsStamps\AnnotationPlacement; +use CodebarAg\DocuWare\DTO\Documents\AnnotationsStamps\Annotations; +use CodebarAg\DocuWare\Requests\Documents\AnnotationsStamps\AddTextAnnotation; + +$annotations = new Annotations( + pageNumber: 0, + sectionNumber: 0, + annotationsPlacement: new AnnotationPlacement( + items: collect([ + new AnnotationItem( + type: 'Annotation', + layer: collect([ + new AnnotationItemLayer( + id: 1, + items: collect([ + new AnnotationItemLayerItem( + type: 'TextEntry', + color: 'Black', + rotation: 0, + transparent: false, + strokeWidth: 50, + value: 'Test', + font: new AnnotationItemFont( + fontName: 'Arial', + bold: false, + italic: false, + underlined: false, + strikeThrough: false, + fontSize: 12, + spacing: 0, + ), + location: new AnnotationItemLocation( + left: 100, + top: 100, + width: 1500, + height: 100, + ), + ), + ]), + ), + ]), + ), + ]), + ), +); + +$stamp = $connector->send(new AddTextAnnotation( + $fileCabinetId, + $documentId, + $annotations, +))->dto(); +``` + +#### Add Application Properties +```php +use CodebarAg\DocuWare\Requests\Documents\ApplicationProperties\AddApplicationProperties; + +$addProperties = $connector->send(new AddApplicationProperties( + $fileCabinetId, + $documentId, + [ + [ + 'Name' => 'Key1', + 'Value' => 'Key1 Value', + ], + [ + 'Name' => 'Key2', + 'Value' => 'Key2 Value', + ], + ], +))->dto(); +``` + +#### Update Application Properties +```php +use CodebarAg\DocuWare\Requests\Documents\ApplicationProperties\UpdateApplicationProperties; + +$updateProperties = $connector->send(new UpdateApplicationProperties( + $fileCabinetId, + $documentId, + [ + [ + 'Name' => 'Key1', + 'Value' => 'Key1 Value Updated', + ], + ], +))->dto()->sortBy('Name'); +``` + +#### Delete Application Properties +```php +use CodebarAg\DocuWare\Requests\Documents\ApplicationProperties\DeleteApplicationProperties; + +$deleteProperties = $connector->send(new DeleteApplicationProperties( + $fileCabinetId, + $document->id, + [ + 'Key1', + ], +))->dto(); +``` + +#### Get Application Properties +```php +use CodebarAg\DocuWare\Requests\Documents\ApplicationProperties\GetApplicationProperties; + +$properties = $connector->send(new GetApplicationProperties( + $fileCabinetId, + $document->id, +))->dto(); +``` + + +#### Clip +```php +use CodebarAg\DocuWare\Requests\Documents\ClipUnclipStapleUnstaple\Clip; + +$clip = $connector->send(new Clip( + $fileCabinetId, + [ + $documentId, + $document2Id, + ] +))->dto(); +``` + +#### Unclip +```php +use CodebarAg\DocuWare\Requests\Documents\ClipUnclipStapleUnstaple\Unclip; + +$unclip = $connector->send(new Unclip( + $fileCabinetId, + $clipId +))->dto(); +``` + +#### Staple +```php +use CodebarAg\DocuWare\Requests\Documents\ClipUnclipStapleUnstaple\Staple; + +$staple = $connector->send(new Staple( + $fileCabinetId, + [ + $documentId, + $document2Id, + ] +))->dto(); +``` + +#### Unstaple +```php +use CodebarAg\DocuWare\Requests\Documents\ClipUnclipStapleUnstaple\Unstaple; + +$unclip = $connector->send(new Unstaple( + $fileCabinetId, + $stapleId +))->dto(); +``` + +#### Delete Documents +```php +use CodebarAg\DocuWare\Requests\Documents\DocumentsTrashBin\DeleteDocuments; + +$delete = $connector->send(new DeleteDocuments([$documentID, $document2ID]))->dto(); +``` + +#### Restore Documents +```php +use CodebarAg\DocuWare\Requests\Documents\DocumentsTrashBin\RestoreDocuments; + +$delete = $connector->send(new RestoreDocuments([$documentID, $document2ID]))->dto(); +``` + +#### Download Document +```php +use CodebarAg\DocuWare\Requests\Documents\Download\DownloadDocument; + +$contents = $connector->send(new DownloadDocument( + $fileCabinetId, + $documentId +))->dto(); +``` + +#### Download Section +```php +use CodebarAg\DocuWare\Requests\Documents\Download\DownloadSection; + +$contents = $connector->send(new DownloadSection( + $fileCabinetId, + $sectionId +))->dto(); +``` + +#### Download Thumbnail +```php +use CodebarAg\DocuWare\Requests\Documents\Download\DownloadThumbnail; + +$contents = $connector->send(new DownloadThumbnail( + $fileCabinetId, + $sectionId +))->dto(); +``` + +#### Delete Section +```php +use CodebarAg\DocuWare\Requests\Documents\Sections\DeleteSection; + +$deleted = $connector->send(new DeleteSection( + $fileCabinetId, + $sectionId +))->dto(); +``` + +#### Get All Section +```php +use CodebarAg\DocuWare\Requests\Documents\Sections\GetAllSectionsFromADocument; + +$sections = $connector->send(new GetAllSectionsFromADocument( + $fileCabinetId, + $documentId +))->dto(); +``` + +#### Get Specific Section +```php +use CodebarAg\DocuWare\Requests\Documents\Sections\GetASpecificSection; + +$section = $connector->send(new GetASpecificSection( + $fileCabinetId, + $sectionsId +))->dto(); +``` + + +#### Get Total Number Of Documents +```php +use CodebarAg\DocuWare\Requests\FileCabinets\General\GetTotalNumberOfDocuments; + +$count = $connector->send(new GetTotalNumberOfDocuments( + $fileCabinetId, + $dialogId +))->dto(); +``` + +#### Get Document Preview +```php +use CodebarAg\DocuWare\Requests\Documents\GetDocumentPreviewRequest; + +$image = $connector->send(new GetDocumentPreviewRequest($fileCabinetId, $documentId))->dto(); +``` + +#### Create Data Record +```php +use CodebarAg\DocuWare\Requests\FileCabinets\Upload\CreateDataRecord; + +$document = $connector->send(new CreateDataRecord( + $fileCabinetId, + null, + null, + collect([ + IndexTextDTO::make('DOCUMENT_LABEL', '::data-entry::'), + ]), +))->dto(); +``` + +#### Update Index Values +```php +use CodebarAg\DocuWare\Requests\Documents\UpdateIndexValues\UpdateIndexValues; + +$response = $connector->send(new UpdateIndexValues( + $fileCabinetId, + $documentId, + collect([ + IndexTextDTO::make('DOCUMENT_LABEL', '::new-data-entry::'), + ]) +))->dto(); +``` +
+ + +
+ Fields + +#### Get Fields +```php +use CodebarAg\DocuWare\Requests\Fields\GetFieldsRequest; + $fields = $connector->send(new GetFieldsRequest($fileCabinetId))->dto(); ``` +
+ +
+ File Cabinets + +#### Get All Dialogs ```php -/** - * Return all dialogs of a file cabinet. - */ - +use CodebarAg\DocuWare\Requests\FileCabinets\Dialogs\GetAllDialogs; + $dialogs = $connector->send(new GetAllDialogs($fileCabinetId))->dto(); ``` +#### Get Dialogs of a Specific Type ```php -/** - * Return all used values for a specific field. - */ - -$values = $connector->send(new GetSelectList($fileCabinetId, $dialogId, $fieldName))->dto(); +use CodebarAg\DocuWare\Requests\FileCabinets\Dialogs\GetASpecificDialog; + +$dialog = $connector->send(new GetASpecificDialog($fileCabinetId, $dialogId))->dto(); ``` +#### Get Dialogs Of A Specific Type ```php -/** - * Return a document. - */ - +use CodebarAg\DocuWare\Enums\DialogType; +use CodebarAg\DocuWare\Requests\FileCabinets\Dialogs\GetDialogsOfASpecificType; + +$dialogs = $connector->send(new GetDialogsOfASpecificType($fileCabinetId, DialogType::SEARCH))->dto(); +``` + +#### Get File Cabinet Information +```php +use CodebarAg\DocuWare\Requests\FileCabinets\General\GetFileCabinetInformation; + +$fileCabinet = $connector->send(new GetFileCabinetInformation($fileCabinetId))->dto(); +``` + +#### Get A Specific Document From A File Cabinet +```php +use CodebarAg\DocuWare\Requests\FileCabinets\Search\GetASpecificDocumentFromAFileCabinet; + $document = $connector->send(new GetASpecificDocumentFromAFileCabinet($fileCabinetId, $documentId))->dto(); ``` +#### Get Documents From A File Cabinet ```php -/** - * Return all documents for a file cabinet. - */ - -$documents = $connector->send(new GetDocumentsFromAFileCabinet($fileCabinetId))->dto(); +use CodebarAg\DocuWare\Requests\FileCabinets\Search\GetDocumentsFromAFileCabinet; + +$documents = $connector->send(new GetDocumentsFromAFileCabinet( + config('laravel-docuware.tests.file_cabinet_id') +))->dto(); ``` +#### Append Files To A Data Record ```php -/** - * Return image preview of a document. - */ - -$content = $connector->send(new GetDocumentPreviewRequest($fileCabinetId, $documentId))->dto(); +use CodebarAg\DocuWare\Requests\FileCabinets\Upload\AppendFilesToADataRecord; + +$response = $connector->send( + new AppendFilesToADataRecord( + fileCabinetId: $fileCabinetId, + dataRecordId: $document->id, + files: collect([ + new MultipartValue( + name: 'File[]', + value: file_get_contents(__DIR__.'/../../../../Fixtures/files/test-2.pdf'), + filename: 'test-2.pdf', + ), + new MultipartValue( + name: 'File[]', + value: file_get_contents(__DIR__.'/../../../../Fixtures/files/test-3.pdf'), + filename: 'test-3.pdf', + ), + ]) + ) +)->dto(); ``` +
+
+ General + +#### Create User ```php -/** - * Download single document. - */ - -$content = $connector->send(new DownloadDocument($fileCabinetId, $documentId))->dto(); +use CodebarAg\DocuWare\Requests\General\UserManagement\CreateUpdateUsers\CreateUser; + +$user = $connector->send(new CreateUser(new User( + name: $timestamp.' - Test User', + dbName: $timestamp, + email: $timestamp.'-test@example.test', + password: 'TESTPASSWORD', +)))->dto(); ``` +#### Update User ```php -/** - * Get sections of a document. - */ - -$section = $connector->send(new GetSectionsRequest($fileCabinetId, $documentId))->dto(); +use CodebarAg\DocuWare\Requests\General\UserManagement\CreateUpdateUsers\UpdateUser; + +$user->name .= ' - Updated'; +$user->active = false; + +$user = $connector->send(new UpdateUser($user))->dto(); ``` +#### Add User To A Group ```php -/** - * Download a document thumbnail. - * - * You will use $section->id from above as $thumbnailId. - */ - -$thumbnail = $connector->send(new DownloadThumbnail($fileCabinetId, $thumbnailId, $page = 0))->dto(); +use CodebarAg\DocuWare\Requests\General\UserManagement\GetModifyGroups\AddUserToAGroup; + +$response = $connector->send(new AddUserToAGroup( + userId: $userId, + ids: [$groupId], +))->dto(); ``` +#### Remove User From A Group ```php -/** - * Update value of a indexed field. - */ - -$value = $connector->send(new UpdateIndexValues($fileCabinetId, $documentId, [$fieldName => $newValue]))->dto(); +use CodebarAg\DocuWare\Requests\General\UserManagement\GetModifyGroups\RemoveUserFromAGroup; + +$response = $connector->send(new RemoveUserFromAGroup( + userId: $userId, + ids: [$groupId], +))->dto(); ``` +#### Get All Groups For A Specific User ```php -/** - * Update multiple values of indexed fields. - */ - -$values = $connector->send(new UpdateIndexValues($fileCabinetId, $documentId, [ - $fieldName => $newValue, - $field2Name => $new2Value, -]))->dto(); +use CodebarAg\DocuWare\Requests\General\UserManagement\GetModifyGroups\GetAllGroupsForASpecificUser; + +$groups = $connector->send(new GetAllGroupsForASpecificUser($userId))->dto(); ``` +#### Get Groups ```php -/** - * Upload new document. - */ - -$document = $connector->send(new CreateDataRecord($fileCabinetId, $fileContent, $fileName))->dto(); +use CodebarAg\DocuWare\Requests\General\UserManagement\GetModifyGroups\GetGroups; + +$groups = $connector->send(new GetGroups())->dto(); ``` +#### Add User To A Role ```php -/** - * Get total document count. - */ - -$content = $connector->send(new GetTotalNumberOfDocuments($fileCabinetId, $dialogId))->dto(); +use CodebarAg\DocuWare\Requests\General\UserManagement\GetModifyRoles\AddUserToARole; + +$response = $connector->send(new AddUserToARole( + userId: $userId, + ids: [$roleId], +))->dto(); ``` +#### Remove User From A Role ```php -/** - * Upload new document with index values. - */ - -use CodebarAg\DocuWare\DTO\Documents\DocumentIndex\PrepareDTO; - -$indexes = collect([ - PrepareDTO::make('FIELD_TEXT', 'Indexed Text'), - PrepareDTO::make('FIELD_NUMERIC', 1), - PrepareDTO::make('FIELD_DECIMAL', 1.00), - PrepareDTO::make('FIELD_DATE', now()), -]); - -$document = $connector->send(new PostDocumentRequest( +use CodebarAg\DocuWare\Requests\General\UserManagement\GetModifyRoles\RemoveUserFromARole; + +$response = $connector->send(new RemoveUserFromARole( + userId: $userId, + ids: [$roleId], +))->dto(); +``` + +#### Get All Roles For A Specific User +```php +use CodebarAg\DocuWare\Requests\General\UserManagement\GetModifyRoles\GetAllRolesForASpecificUser; + +$roles = $connector->send(new GetAllRolesForASpecificUser($userId))->dto(); +``` + +#### Get Roles +```php +use CodebarAg\DocuWare\Requests\General\UserManagement\GetModifyRoles\GetRoles; + +$roles = $this->connector->send(new GetRoles())->dto(); +``` + +#### Get User By Id +```php +use CodebarAg\DocuWare\Requests\General\UserManagement\GetUsers\GetUserById; + +$user = $this->connector->send(new GetUserById($userId))->dto(); +``` + +#### Get Users Of A Group +```php +use CodebarAg\DocuWare\Requests\General\UserManagement\GetUsers\GetUsersOfAGroup; + +$users = $this->connector->send(new GetUsersOfAGroup($groupId))->dto(); +``` + +#### Get Users Of A Role +```php +use CodebarAg\DocuWare\Requests\General\UserManagement\GetUsers\GetUsersOfARole; + +$users = $this->connector->send(new GetUsersOfARole($roleId))->dto(); +``` + +### Get Users +```php +use CodebarAg\DocuWare\Requests\General\UserManagement\GetUsers\GetUsers; + +$users = $this->connector->send(new GetUsers())->dto(); +``` + +
+ +
+ Organization + +#### Get Organization +```php +use CodebarAg\DocuWare\Requests\General\Organization\GetOrganization; + +$organizations = $this->connector->send(new GetOrganization())->dto(); +``` + +
+ +
+ Select List + +#### Get Select Lists +```php +use CodebarAg\DocuWare\Requests\FileCabinets\SelectLists\GetSelectLists; + +$types = $this->connector->send(new GetSelectLists( $fileCabinetId, - $fileContent, - $fileName, - $indexes, + $dialogId, + $fieldName, ))->dto(); ``` +
+ +
+ Workflow + +#### Get Document Workflow History ```php -/** - * Upload new data entry with index values. - */ - -use CodebarAg\DocuWare\DTO\Documents\DocumentIndex\PrepareDTO; - -$indexes = collect([ - PrepareDTO::make('FIELD_TEXT', 'Indexed Text'), - PrepareDTO::make('FIELD_NUMERIC', 1), - PrepareDTO::make('FIELD_DECIMAL', 1.00), - PrepareDTO::make('FIELD_DATE', now()), -]); - -$document = $connector->send(new PostDocumentRequest( +use CodebarAg\DocuWare\Requests\Workflow\GetDocumentWorkflowHistory; + +$history = $this->connector->send(new GetDocumentWorkflowHistory( $fileCabinetId, - null, - null, - $indexes, + $documentId ))->dto(); ``` +#### Get Document Workflow History Steps ```php -/** - * Delete document. - */ - -$connector->send(new DeleteDocumentRequest($fileCabinetId, $document->id))->dto(); +use CodebarAg\DocuWare\Requests\Workflow\GetDocumentWorkflowHistorySteps; + +$historySteps = $this->connector->send(new GetDocumentWorkflowHistorySteps( + $workflowId, + $historyId, +))->dto(); ```
@@ -629,6 +1190,20 @@ $paginator = $connector->send($paginatorRequest)->dto(); ```
+## 🔍 Search usage TrashBin +
+ Search Usage + +> You can use the same methods as in the search usage. The only difference is that you have to use the `trashBin` method after the `searchRequestBuilder` method. + +```php +use CodebarAg\DocuWare\DocuWare; + +$paginatorRequest = (new DocuWare()) + ->searchRequestBuilder() + ->trashBin() +``` + ## 🖼 Make encrypted URL
diff --git a/tests/Feature/Requests/Documents/Thumbnail/GetDocumentDownloadThumbnailRequestTest.php b/tests/Feature/Requests/Documents/Thumbnail/GetDocumentDownloadThumbnailRequestTest.php deleted file mode 100644 index 9297ae4..0000000 --- a/tests/Feature/Requests/Documents/Thumbnail/GetDocumentDownloadThumbnailRequestTest.php +++ /dev/null @@ -1,37 +0,0 @@ -connector->send(new CreateDataRecord( - $fileCabinetId, - '::fake-file-content::', - 'example.txt' - ))->dto(); - - $sections = $this->connector->send(new GetAllSectionsFromADocument( - $fileCabinetId, - $document->id, - ))->dto(); - - $contents = $this->connector->send(new DownloadThumbnail( - $fileCabinetId, - $sections->first()->id, - ))->dto(); - - $this->assertSame('image/png', $contents->mime); - $this->assertSame(282, strlen($contents->data)); - - $this->assertInstanceOf(DocumentThumbnail::class, $contents); - - Event::assertDispatched(DocuWareResponseLog::class); -}); From 10610b89066b8127b543382fe2eff0c5b8a50a4f Mon Sep 17 00:00:00 2001 From: RhysLees Date: Mon, 29 Jul 2024 16:10:26 +0000 Subject: [PATCH 54/54] Fix styling --- src/Connectors/DocuWareConnector.php | 2 +- src/DocuWare.php | 6 +++--- tests/Feature/DocuWareAuthenticationTest.php | 6 +++--- tests/Feature/DocuWareTest.php | 4 ++-- .../DeleteDocumentsFromTrashBinTest.php | 2 +- .../GetDocumentsFromTrashBinTest.php | 16 ++++++++-------- .../RestoreDocumentsFromTrashBinTest.php | 2 +- .../GetAllGroupsForASpecificUserTest.php | 2 +- .../GetModifyGroups/GetGroupsTest.php | 2 +- .../GetAllRolesForASpecificUserTest.php | 2 +- .../GetModifyRoles/GetRolesTest.php | 2 +- .../GetUsers/GetUserByIdTest.php | 2 +- .../GetUsers/GetUsersOfAGroupTest.php | 2 +- .../GetUsers/GetUsersOfARoleTest.php | 2 +- .../UserManagement/GetUsers/GetUsersTest.php | 2 +- .../GetOrganizationsRequestTest.php | 2 +- .../Requests/Search/GetSearchRequestTest.php | 18 +++++++++--------- tests/Pest.php | 4 ++-- 18 files changed, 39 insertions(+), 39 deletions(-) diff --git a/src/Connectors/DocuWareConnector.php b/src/Connectors/DocuWareConnector.php index f64acb3..ddc2e4a 100644 --- a/src/Connectors/DocuWareConnector.php +++ b/src/Connectors/DocuWareConnector.php @@ -89,7 +89,7 @@ protected function getOrCreateNewOAuthToken() protected function getAuthenticationTokenEndpoint(): IdentityServiceConfiguration { - $responsibleIdentityServiceResponse = (new GetResponsibleIdentityService())->send(); + $responsibleIdentityServiceResponse = (new GetResponsibleIdentityService)->send(); $identityServiceConfigurationResponse = (new GetIdentityServiceConfiguration( identityServiceUrl: $responsibleIdentityServiceResponse->dto()->identityServiceUrl diff --git a/src/DocuWare.php b/src/DocuWare.php index f277219..59914ec 100644 --- a/src/DocuWare.php +++ b/src/DocuWare.php @@ -15,7 +15,7 @@ public function getNewAuthenticationOAuthToken( ?string $grantType = 'password', ?string $clientId = 'docuware.platform.net.client' ): RequestTokenDto { - $responsibleIdentityServiceResponse = (new GetResponsibleIdentityService())->send(); + $responsibleIdentityServiceResponse = (new GetResponsibleIdentityService)->send(); $identityServiceConfigurationResponse = (new GetIdentityServiceConfiguration( identityServiceUrl: $responsibleIdentityServiceResponse->dto()->identityServiceUrl @@ -33,11 +33,11 @@ public function getNewAuthenticationOAuthToken( public function searchRequestBuilder(): DocuWareSearchRequestBuilder { - return new DocuWareSearchRequestBuilder(); + return new DocuWareSearchRequestBuilder; } public function url(): DocuWareUrl { - return new DocuWareUrl(); + return new DocuWareUrl; } } diff --git a/tests/Feature/DocuWareAuthenticationTest.php b/tests/Feature/DocuWareAuthenticationTest.php index 643d648..aa96b0b 100644 --- a/tests/Feature/DocuWareAuthenticationTest.php +++ b/tests/Feature/DocuWareAuthenticationTest.php @@ -10,13 +10,13 @@ use CodebarAg\DocuWare\Requests\General\Organization\GetOrganization; it('can get oath responsible identity service', function () { - $responsibleIdentityServiceResponse = (new GetResponsibleIdentityService())->send(); + $responsibleIdentityServiceResponse = (new GetResponsibleIdentityService)->send(); expect($responsibleIdentityServiceResponse->dto())->toBeInstanceOf(ResponsibleIdentityService::class); })->group('authentication'); it('can get oath identity service configuration', function () { - $responsibleIdentityServiceResponse = (new GetResponsibleIdentityService())->send(); + $responsibleIdentityServiceResponse = (new GetResponsibleIdentityService)->send(); $identityServiceConfigurationResponse = (new GetIdentityServiceConfiguration( identityServiceUrl: $responsibleIdentityServiceResponse->dto()->identityServiceUrl @@ -33,7 +33,7 @@ password: config('laravel-docuware.credentials.password'), )); - $connector->send(new GetOrganization()); + $connector->send(new GetOrganization); Event::assertDispatched(DocuWareOAuthLog::class); diff --git a/tests/Feature/DocuWareTest.php b/tests/Feature/DocuWareTest.php index 6860e22..34c9be4 100644 --- a/tests/Feature/DocuWareTest.php +++ b/tests/Feature/DocuWareTest.php @@ -11,7 +11,7 @@ $fileCabinetId = config('laravel-docuware.tests.file_cabinet_id'); $documentId = config('laravel-docuware.tests.document_id'); - $url = (new DocuWare()) + $url = (new DocuWare) ->url() ->fileCabinet($fileCabinetId) ->document($documentId) @@ -35,7 +35,7 @@ $basketId = config('laravel-docuware.tests.basket_id'); $documentId = config('laravel-docuware.tests.document_id'); - $url = (new DocuWare()) + $url = (new DocuWare) ->url() ->basket($basketId) ->document($documentId) diff --git a/tests/Feature/Requests/Documents/DocumentsTrashBin/DeleteDocumentsFromTrashBinTest.php b/tests/Feature/Requests/Documents/DocumentsTrashBin/DeleteDocumentsFromTrashBinTest.php index 86ddd56..19bbb91 100644 --- a/tests/Feature/Requests/Documents/DocumentsTrashBin/DeleteDocumentsFromTrashBinTest.php +++ b/tests/Feature/Requests/Documents/DocumentsTrashBin/DeleteDocumentsFromTrashBinTest.php @@ -20,7 +20,7 @@ $document->id, ))->dto(); - $paginatorRequest = (new DocuWare()) + $paginatorRequest = (new DocuWare) ->searchRequestBuilder() ->trashBin() ->get(); diff --git a/tests/Feature/Requests/Documents/DocumentsTrashBin/GetDocumentsFromTrashBinTest.php b/tests/Feature/Requests/Documents/DocumentsTrashBin/GetDocumentsFromTrashBinTest.php index e5d5fee..fa1b09c 100644 --- a/tests/Feature/Requests/Documents/DocumentsTrashBin/GetDocumentsFromTrashBinTest.php +++ b/tests/Feature/Requests/Documents/DocumentsTrashBin/GetDocumentsFromTrashBinTest.php @@ -10,7 +10,7 @@ it('can search documents in trash', function () { Event::fake(); - $paginatorRequest = (new DocuWare()) + $paginatorRequest = (new DocuWare) ->searchRequestBuilder() ->trashBin() ->page(1) @@ -33,7 +33,7 @@ $this->expectException(UnableToSearch::class); - $request = (new DocuWare()) + $request = (new DocuWare) ->searchRequestBuilder() ->trashBin() ->page(1) @@ -52,7 +52,7 @@ it('can override search documents dates filter by using same operator in trash', function () { Event::fake(); - $paginatorRequest = (new DocuWare()) + $paginatorRequest = (new DocuWare) ->searchRequestBuilder() ->trashBin() ->page(1) @@ -74,7 +74,7 @@ it('can override search documents dates filter by using equal operator in trash', function () { Event::fake(); - $paginatorRequest = (new DocuWare()) + $paginatorRequest = (new DocuWare) ->searchRequestBuilder() ->trashBin() ->page(1) @@ -97,7 +97,7 @@ $this->expectException(UnableToSearch::class); - $request = (new DocuWare()) + $request = (new DocuWare) ->searchRequestBuilder() ->trashBin() ->page(1) @@ -115,7 +115,7 @@ it('can search documents dates filter in future in trash', function () { Event::fake(); - $paginatorRequest = (new DocuWare()) + $paginatorRequest = (new DocuWare) ->searchRequestBuilder() ->trashBin() ->page(1) @@ -135,7 +135,7 @@ it('can search documents dates filter in past in trash', function () { Event::fake(); - $paginatorRequest = (new DocuWare()) + $paginatorRequest = (new DocuWare) ->searchRequestBuilder() ->trashBin() ->page(1) @@ -155,7 +155,7 @@ it('can search documents with null values in trash', function () { Event::fake(); - $paginatorRequest = (new DocuWare()) + $paginatorRequest = (new DocuWare) ->searchRequestBuilder() ->trashBin() ->page(null) diff --git a/tests/Feature/Requests/Documents/DocumentsTrashBin/RestoreDocumentsFromTrashBinTest.php b/tests/Feature/Requests/Documents/DocumentsTrashBin/RestoreDocumentsFromTrashBinTest.php index 0b39b03..7a9330d 100644 --- a/tests/Feature/Requests/Documents/DocumentsTrashBin/RestoreDocumentsFromTrashBinTest.php +++ b/tests/Feature/Requests/Documents/DocumentsTrashBin/RestoreDocumentsFromTrashBinTest.php @@ -20,7 +20,7 @@ $document->id, ))->dto(); - $paginatorRequest = (new DocuWare()) + $paginatorRequest = (new DocuWare) ->searchRequestBuilder() ->trashBin() ->get(); diff --git a/tests/Feature/Requests/General/UserManagement/GetModifyGroups/GetAllGroupsForASpecificUserTest.php b/tests/Feature/Requests/General/UserManagement/GetModifyGroups/GetAllGroupsForASpecificUserTest.php index 1010139..37c8ba9 100644 --- a/tests/Feature/Requests/General/UserManagement/GetModifyGroups/GetAllGroupsForASpecificUserTest.php +++ b/tests/Feature/Requests/General/UserManagement/GetModifyGroups/GetAllGroupsForASpecificUserTest.php @@ -10,7 +10,7 @@ it('can list groups for a specific user', function () { Event::fake(); - $users = $this->connector->send(new GetUsers())->dto(); + $users = $this->connector->send(new GetUsers)->dto(); $groups = $this->connector->send(new GetAllGroupsForASpecificUser($users->get(2)->id))->dto(); diff --git a/tests/Feature/Requests/General/UserManagement/GetModifyGroups/GetGroupsTest.php b/tests/Feature/Requests/General/UserManagement/GetModifyGroups/GetGroupsTest.php index 7d04e77..c984961 100644 --- a/tests/Feature/Requests/General/UserManagement/GetModifyGroups/GetGroupsTest.php +++ b/tests/Feature/Requests/General/UserManagement/GetModifyGroups/GetGroupsTest.php @@ -9,7 +9,7 @@ it('can list groups', function () { Event::fake(); - $groups = $this->connector->send(new GetGroups())->dto(); + $groups = $this->connector->send(new GetGroups)->dto(); $this->assertInstanceOf(Collection::class, $groups); diff --git a/tests/Feature/Requests/General/UserManagement/GetModifyRoles/GetAllRolesForASpecificUserTest.php b/tests/Feature/Requests/General/UserManagement/GetModifyRoles/GetAllRolesForASpecificUserTest.php index 1794ad8..45ab728 100644 --- a/tests/Feature/Requests/General/UserManagement/GetModifyRoles/GetAllRolesForASpecificUserTest.php +++ b/tests/Feature/Requests/General/UserManagement/GetModifyRoles/GetAllRolesForASpecificUserTest.php @@ -10,7 +10,7 @@ it('can list groups', function () { Event::fake(); - $users = $this->connector->send(new GetUsers())->dto(); + $users = $this->connector->send(new GetUsers)->dto(); $roles = $this->connector->send(new GetAllRolesForASpecificUser($users->get(2)->id))->dto(); diff --git a/tests/Feature/Requests/General/UserManagement/GetModifyRoles/GetRolesTest.php b/tests/Feature/Requests/General/UserManagement/GetModifyRoles/GetRolesTest.php index b881811..cafd5d3 100644 --- a/tests/Feature/Requests/General/UserManagement/GetModifyRoles/GetRolesTest.php +++ b/tests/Feature/Requests/General/UserManagement/GetModifyRoles/GetRolesTest.php @@ -9,7 +9,7 @@ it('can list groups', function () { Event::fake(); - $roles = $this->connector->send(new GetRoles())->dto(); + $roles = $this->connector->send(new GetRoles)->dto(); $this->assertInstanceOf(Collection::class, $roles); diff --git a/tests/Feature/Requests/General/UserManagement/GetUsers/GetUserByIdTest.php b/tests/Feature/Requests/General/UserManagement/GetUsers/GetUserByIdTest.php index 43e7363..db417ab 100644 --- a/tests/Feature/Requests/General/UserManagement/GetUsers/GetUserByIdTest.php +++ b/tests/Feature/Requests/General/UserManagement/GetUsers/GetUserByIdTest.php @@ -9,7 +9,7 @@ it('can get user by id', function () { Event::fake(); - $users = $this->connector->send(new GetUsers())->dto(); + $users = $this->connector->send(new GetUsers)->dto(); $user = $this->connector->send(new GetUserById($users->get(2)->id))->dto(); diff --git a/tests/Feature/Requests/General/UserManagement/GetUsers/GetUsersOfAGroupTest.php b/tests/Feature/Requests/General/UserManagement/GetUsers/GetUsersOfAGroupTest.php index 61164cd..5be8470 100644 --- a/tests/Feature/Requests/General/UserManagement/GetUsers/GetUsersOfAGroupTest.php +++ b/tests/Feature/Requests/General/UserManagement/GetUsers/GetUsersOfAGroupTest.php @@ -10,7 +10,7 @@ it('can list users of a group', function () { Event::fake(); - $groups = $this->connector->send(new GetGroups())->dto(); + $groups = $this->connector->send(new GetGroups)->dto(); $users = $this->connector->send(new GetUsersOfAGroup($groups->first()->id))->dto(); diff --git a/tests/Feature/Requests/General/UserManagement/GetUsers/GetUsersOfARoleTest.php b/tests/Feature/Requests/General/UserManagement/GetUsers/GetUsersOfARoleTest.php index 7af21ae..f9de422 100644 --- a/tests/Feature/Requests/General/UserManagement/GetUsers/GetUsersOfARoleTest.php +++ b/tests/Feature/Requests/General/UserManagement/GetUsers/GetUsersOfARoleTest.php @@ -10,7 +10,7 @@ it('can list users of a role', function () { Event::fake(); - $roles = $this->connector->send(new GetRoles())->dto(); + $roles = $this->connector->send(new GetRoles)->dto(); $users = $this->connector->send(new GetUsersOfARole($roles->first()->id))->dto(); diff --git a/tests/Feature/Requests/General/UserManagement/GetUsers/GetUsersTest.php b/tests/Feature/Requests/General/UserManagement/GetUsers/GetUsersTest.php index b6a96a0..6b8696a 100644 --- a/tests/Feature/Requests/General/UserManagement/GetUsers/GetUsersTest.php +++ b/tests/Feature/Requests/General/UserManagement/GetUsers/GetUsersTest.php @@ -9,7 +9,7 @@ it('can list users', function () { Event::fake(); - $users = $this->connector->send(new GetUsers())->dto(); + $users = $this->connector->send(new GetUsers)->dto(); $this->assertInstanceOf(Collection::class, $users); diff --git a/tests/Feature/Requests/Organization/GetOrganizationsRequestTest.php b/tests/Feature/Requests/Organization/GetOrganizationsRequestTest.php index 59e8e74..145529c 100644 --- a/tests/Feature/Requests/Organization/GetOrganizationsRequestTest.php +++ b/tests/Feature/Requests/Organization/GetOrganizationsRequestTest.php @@ -9,7 +9,7 @@ it('can list organizations', function () { Event::fake(); - $organizations = $this->connector->send(new GetOrganization())->dto(); + $organizations = $this->connector->send(new GetOrganization)->dto(); $this->assertInstanceOf(Collection::class, $organizations); diff --git a/tests/Feature/Requests/Search/GetSearchRequestTest.php b/tests/Feature/Requests/Search/GetSearchRequestTest.php index b429abf..6d66889 100644 --- a/tests/Feature/Requests/Search/GetSearchRequestTest.php +++ b/tests/Feature/Requests/Search/GetSearchRequestTest.php @@ -15,7 +15,7 @@ $fileCabinetId = config('laravel-docuware.tests.file_cabinet_id'); $dialogId = config('laravel-docuware.tests.dialog_id'); - $paginatorRequest = (new DocuWare()) + $paginatorRequest = (new DocuWare) ->searchRequestBuilder() ->fileCabinet($fileCabinetId) ->dialog($dialogId) @@ -42,7 +42,7 @@ $this->expectException(UnableToSearch::class); - $request = (new DocuWare()) + $request = (new DocuWare) ->searchRequestBuilder() ->fileCabinet($fileCabinetId) ->dialog($dialogId) @@ -65,7 +65,7 @@ $fileCabinetId = config('laravel-docuware.tests.file_cabinet_id'); $dialogId = config('laravel-docuware.tests.dialog_id'); - $paginatorRequest = (new DocuWare()) + $paginatorRequest = (new DocuWare) ->searchRequestBuilder() ->fileCabinet($fileCabinetId) ->dialog($dialogId) @@ -91,7 +91,7 @@ $fileCabinetId = config('laravel-docuware.tests.file_cabinet_id'); $dialogId = config('laravel-docuware.tests.dialog_id'); - $paginatorRequest = (new DocuWare()) + $paginatorRequest = (new DocuWare) ->searchRequestBuilder() ->fileCabinet($fileCabinetId) ->dialog($dialogId) @@ -118,7 +118,7 @@ $this->expectException(UnableToSearch::class); - $request = (new DocuWare()) + $request = (new DocuWare) ->searchRequestBuilder() ->fileCabinet($fileCabinetId) ->dialog($dialogId) @@ -140,7 +140,7 @@ $fileCabinetId = config('laravel-docuware.tests.file_cabinet_id'); $dialogId = config('laravel-docuware.tests.dialog_id'); - $paginatorRequest = (new DocuWare()) + $paginatorRequest = (new DocuWare) ->searchRequestBuilder() ->fileCabinet($fileCabinetId) ->dialog($dialogId) @@ -164,7 +164,7 @@ $fileCabinetId = config('laravel-docuware.tests.file_cabinet_id'); $dialogId = config('laravel-docuware.tests.dialog_id'); - $paginatorRequest = (new DocuWare()) + $paginatorRequest = (new DocuWare) ->searchRequestBuilder() ->fileCabinet($fileCabinetId) ->dialog($dialogId) @@ -189,7 +189,7 @@ config('laravel-docuware.tests.file_cabinet_id'), ]; - $paginatorRequest = (new DocuWare()) + $paginatorRequest = (new DocuWare) ->searchRequestBuilder() ->fileCabinets($fileCabinetIds) ->page(null) @@ -243,7 +243,7 @@ ))->dto(); // Should filter down to documentOne and documentTwo. documentThree should be filtered out. - $paginatorRequestBothDocuments = (new DocuWare()) + $paginatorRequestBothDocuments = (new DocuWare) ->searchRequestBuilder() ->fileCabinets([$fileCabinetId]) ->page(null) diff --git a/tests/Pest.php b/tests/Pest.php index 3662772..126d33a 100644 --- a/tests/Pest.php +++ b/tests/Pest.php @@ -42,7 +42,7 @@ function clearFiles(): void ))->dto(); } - $paginatorRequest = (new DocuWare()) + $paginatorRequest = (new DocuWare) ->searchRequestBuilder() ->trashBin() ->perPage(1000) @@ -59,7 +59,7 @@ function setUsersInactive(): void { $connector = getConnector(); - $response = $connector->send(new GetUsers()); + $response = $connector->send(new GetUsers); $users = $response->dto()->filter(function ($user) { return Str::contains($user->email, 'test@example.test') && $user->active === true;