@drdoc-com/pi-drdoc 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -1
- package/package.json +1 -1
- package/src/index.ts +1 -1
- package/src/tools.ts +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Pi Plugin for Dr.DOC
|
|
1
|
+
# Pi Plugin for Dr.DOC DMS
|
|
2
2
|
|
|
3
3
|
An integration plugin Package for the **Pi Agent** (`pi.dev`) ecosystem to interact seamlessly with the [**Dr.DOC Document Management System** \(DMS/ECM\)](https://drdoc.com/node/de/products/web).
|
|
4
4
|
|
|
@@ -46,6 +46,25 @@ pi install git:https://github.com/drdoc-com/pi-drdoc
|
|
|
46
46
|
|
|
47
47
|
---
|
|
48
48
|
|
|
49
|
+
## Usage
|
|
50
|
+
|
|
51
|
+
### Pi Slash Commands (within Pi Agent)
|
|
52
|
+
|
|
53
|
+
Use Pi Slash Command (within Pi Agent) to signin/login.
|
|
54
|
+
Format:
|
|
55
|
+
```bash
|
|
56
|
+
/drdoc_login <baseUrl> <username> <password> <totp> <ignoreSSL:1,0>
|
|
57
|
+
```
|
|
58
|
+
Example:
|
|
59
|
+
```bash
|
|
60
|
+
/drdoc_login https://drdoc.com demo password "" 1
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
And signout/signout:
|
|
64
|
+
```bash
|
|
65
|
+
/drdoc_logout
|
|
66
|
+
```
|
|
67
|
+
|
|
49
68
|
## Configuration
|
|
50
69
|
|
|
51
70
|
The plugin utilizes configuration options supplied by the Dr.DOC client or environment variables.
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -27,7 +27,7 @@ export default function (pi: any): void {
|
|
|
27
27
|
baseUrl = process.env.DRDOC_BASE_URL;
|
|
28
28
|
|
|
29
29
|
if (!baseUrl || !username || !password) {
|
|
30
|
-
msgError("Fehler: Syntax ist `/
|
|
30
|
+
msgError("Fehler: Syntax ist `/drdoc_login <baseUrl> <username> <password> <totp> <ignoreSSL:1,0>`");
|
|
31
31
|
return;
|
|
32
32
|
}
|
|
33
33
|
|
package/src/tools.ts
CHANGED
|
@@ -17,7 +17,7 @@ export async function getClient(config: DrDocConfig = {} as DrDocConfig, force:
|
|
|
17
17
|
if (await clientInstance.state())
|
|
18
18
|
msgInfo('getClient: state ok');
|
|
19
19
|
else {
|
|
20
|
-
throw new Error("getClient: DrDocClient ist nicht initialisiert. Bitte vorher den Befehl /
|
|
20
|
+
throw new Error("getClient: DrDocClient ist nicht initialisiert. Bitte vorher den Befehl /drdoc_login ausführen.");
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
return clientInstance;
|