Skip to content

Commit 7ad29f2

Browse files
committed
Updates app configuration schema and environment variables
Refines the structure of the app configuration file by: - Reformatting and restructuring environment variables for clarity. - Adding new environment variables such as `APP_DEBUG`, `RESULT_FILE`, `ZABBIX_KEY`, and `EASE_LOGGER` to enhance functionality and customization. - Standardizing descriptions and default values for existing variables. Improves usability, debugging capabilities, and integration with external systems.
1 parent 91d4585 commit 7ad29f2

File tree

1 file changed

+86
-68
lines changed

1 file changed

+86
-68
lines changed
Lines changed: 86 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,88 @@
11
{
2-
"$schema": "https://raw.githubusercontent.com/VitexSoftware/php-vitexsoftware-multiflexi-core/refs/heads/main/multiflexi.app.schema.json",
3-
"name": "file2sharepoint",
4-
"description": "Uploads files to SharePoint from local storage.",
5-
"executable": "file2sharepoint",
6-
"deploy": "apt install file2sharepoint",
7-
"homepage": "https://github.com/VitexSoftware/file2sharepoint/",
8-
"requirements": ["Office365"],
9-
"ociimage": "",
10-
"topics": ["File", "Upload", "Sharepoint", "Office365"],
11-
"uuid": "71892aa4-96db-4dbe-805b-0b7e6da3f36e",
12-
"topics":
13-
"arguments": [
14-
{
15-
"name": "source",
16-
"type": "string",
17-
"description": "Path to the local file or directory to upload.",
18-
"required": true
19-
},
20-
{
21-
"name": "destination",
22-
"type": "string",
23-
"description": "SharePoint destination path.",
24-
"required": true
25-
}
26-
],
27-
"environment": {
28-
"OFFICE365_USERNAME": {
29-
"type": "string",
30-
"description": "Office365 username for user authentication (used if present).",
31-
"required": false
32-
},
33-
"OFFICE365_PASSWORD": {
34-
"type": "string",
35-
"description": "Office365 password for user authentication (used if present).",
36-
"required": false
37-
},
38-
"OFFICE365_CLIENTID": {
39-
"type": "string",
40-
"description": "OAuth client ID for app authentication (used if username/password are not set).",
41-
"required": false
42-
},
43-
"OFFICE365_CLSECRET": {
44-
"type": "string",
45-
"description": "OAuth client secret for app authentication (used if username/password are not set).",
46-
"required": false
47-
},
48-
"OFFICE365_TENANT": {
49-
"type": "string",
50-
"description": "The tenant (subdomain) of the Office365/SharePoint site.",
51-
"required": true
52-
},
53-
"OFFICE365_SITE": {
54-
"type": "string",
55-
"description": "The site name within the tenant.",
56-
"required": true
57-
},
58-
"SHAREPOINT_LIBRARY": {
59-
"type": "string",
60-
"description": "The SharePoint library or folder path for file uploads.",
61-
"required": false
62-
}
63-
},
64-
"output": {
65-
"type": "string",
66-
"description": "Result of the upload operation."
67-
},
68-
"multiflexi": "1.25",
69-
"author": "VitexSoftware"
2+
"$schema": "https://raw.githubusercontent.com/VitexSoftware/php-vitexsoftware-multiflexi-core/refs/heads/main/multiflexi.app.schema.json",
3+
"name": "file2sharepoint",
4+
"description": "Uploads files to SharePoint from local storage.",
5+
"executable": "file2sharepoint",
6+
"deploy": "apt install file2sharepoint",
7+
"homepage": "https://github.com/VitexSoftware/file2sharepoint/",
8+
"requirements": ["Office365"],
9+
"ociimage": "",
10+
"topics": ["File", "Upload", "Sharepoint", "Office365"],
11+
"uuid": "71892aa4-96db-4dbe-805b-0b7e6da3f36e",
12+
"environment": {
13+
"OFFICE365_USERNAME": {
14+
"type": "text",
15+
"description": "Office 365 Username",
16+
"defval": "",
17+
"required": false
18+
},
19+
"OFFICE365_PASSWORD": {
20+
"type": "password",
21+
"description": "Office 365 Password",
22+
"defval": "",
23+
"required": false
24+
},
25+
"OFFICE365_CLIENTID": {
26+
"type": "text",
27+
"description": "Office 365 Client ID",
28+
"defval": "",
29+
"required": false
30+
},
31+
"OFFICE365_SECRET": {
32+
"type": "text",
33+
"description": "Office 365 Secret",
34+
"defval": "",
35+
"required": false
36+
},
37+
"OFFICE365_CLSECRET": {
38+
"type": "text",
39+
"description": "Office 365 Client Secret",
40+
"defval": "",
41+
"required": false
42+
},
43+
"OFFICE365_TENANT": {
44+
"type": "text",
45+
"description": "Office 365 Tenant",
46+
"defval": "",
47+
"required": true
48+
},
49+
"OFFICE365_SITE": {
50+
"type": "text",
51+
"description": "Office 365 Site",
52+
"defval": "",
53+
"required": true
54+
},
55+
"OFFICE365_PATH": {
56+
"type": "text",
57+
"description": "Office 365 Path",
58+
"defval": "",
59+
"required": true
60+
},
61+
"APP_DEBUG": {
62+
"type": "bool",
63+
"description": "Show debug messages",
64+
"defval": "False",
65+
"required": true
66+
},
67+
"RESULT_FILE": {
68+
"type": "string",
69+
"description": "write output json data to",
70+
"defval": "bank_import_report_{ACCOUNT_NUMBER}.json",
71+
"required": false
72+
},
73+
"ZABBIX_KEY": {
74+
"type": "string",
75+
"description": "Default name for Zabbix Item key name",
76+
"defval": "Raiff-Import-{ACCOUNT_NUMBER}",
77+
"required": false
78+
},
79+
"EASE_LOGGER": {
80+
"type": "string",
81+
"description": "write log messages using",
82+
"defval": "console|syslog",
83+
"required": false
84+
}
85+
},
86+
"multiflexi": "1.25",
87+
"author": "VitexSoftware"
7088
}

0 commit comments

Comments
 (0)