From 0c144e21241d60c7daf0a5fefcaf8f064f1b12e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=C4=9Bzslav=20Dvo=C5=99=C3=A1k?= Date: Fri, 14 Jun 2024 12:15:37 +0200 Subject: [PATCH] v0.2.0 release --- README.md | 1 + debian/changelog | 11 +++- .../pohoda_raiffeisenbank.multiflexi.app.json | 58 ++++++++++++++++++- src/pohoda-raiffeisenbank-statements.php | 2 +- 4 files changed, 67 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 64ce44a..93fd72b 100644 --- a/README.md +++ b/README.md @@ -64,6 +64,7 @@ Destination options ```env OFFICE365_TENANT=yourcomapny OFFICE365_SITE=YourSite +OFFICE365_PATH='Shared documents/statements' ``` Into configuration file .env please put ClientID **OR** Login/Password values. diff --git a/debian/changelog b/debian/changelog index 11ef98d..15703d5 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,13 @@ -pohoda-raiffeisenbank (0.1.0) UNRELEASED; urgency=low +pohoda-raiffeisenbank (0.2.0) UNRELEASED; urgency=medium + * Sharepoint & Mssql support added + + -- Fri, 14 Jun 2024 12:15:33 +0200 + +pohoda-raiffeisenbank (0.1.0) unstable; urgency=low + + [ Vítězslav Dvořák ] * Initial release. Closes: #nnnn - -- Vítězslav Dvořák Wed, 22 May 2024 13:45:35 +0200 + -- Fri, 14 Jun 2024 12:15:13 +0200 diff --git a/multiflexi/pohoda_raiffeisenbank.multiflexi.app.json b/multiflexi/pohoda_raiffeisenbank.multiflexi.app.json index 2aceb33..c931d4d 100644 --- a/multiflexi/pohoda_raiffeisenbank.multiflexi.app.json +++ b/multiflexi/pohoda_raiffeisenbank.multiflexi.app.json @@ -122,9 +122,63 @@ "DB_PASSWORD": { "type": "password", "description": "Database Password", - "defval": "XXXXX", + "defval": "pohodaSQLpassword", + "required": true + }, + "DB_SETTINGS": { + "type": "text", + "description": "Database Settings", + "defval": "encrypt=false", + "required": true + }, + "OFFICE365_USERNAME": { + "type": "text", + "description": "Office 365 Username", + "defval": "", + "required": false + }, + "OFFICE365_PASSWORD": { + "type": "password", + "description": "Office 365 Password", + "defval": "", + "required": false + }, + "OFFICE365_CLIENTID": { + "type": "text", + "description": "Office 365 Client ID", + "defval": "", + "required": false + }, + "OFFICE365_SECRET": { + "type": "text", + "description": "Office 365 Secret", + "defval": "", + "required": false + }, + "OFFICE365_CLSECRET": { + "type": "text", + "description": "Office 365 Client Secret", + "defval": "", + "required": false + }, + "OFFICE365_TENANT": { + "type": "text", + "description": "Office 365 Tenant", + "defval": "", + "required": true + }, + "OFFICE365_SITE": { + "type": "text", + "description": "Office 365 Site", + "defval": "", + "required": true + }, + "OFFICE365_PATH": { + "type": "text", + "description": "Office 365 Path", + "defval": "", "required": true } }, "multiflexi": "1.10.2.0" -} \ No newline at end of file +} diff --git a/src/pohoda-raiffeisenbank-statements.php b/src/pohoda-raiffeisenbank-statements.php index e0a75c2..9a8b6a9 100644 --- a/src/pohoda-raiffeisenbank-statements.php +++ b/src/pohoda-raiffeisenbank-statements.php @@ -54,7 +54,7 @@ } $ctx = (new ClientContext('https://' . Shared::cfg('OFFICE365_TENANT') . '.sharepoint.com/sites/' . Shared::cfg('OFFICE365_SITE')))->withCredentials($credentials); -$targetFolder = $ctx->getWeb()->getFolderByServerRelativeUrl('Sdilene dokumenty/Banky/novaslozka'); +$targetFolder = $ctx->getWeb()->getFolderByServerRelativeUrl(Shared::cfg('OFFICE365_PATH')); foreach ($pdfs as $filename) { $uploadFile = $targetFolder->uploadFile(basename($filename), file_get_contents($filename));