Update cli test authored by Martin Straka's avatar Martin Straka
......@@ -8,9 +8,7 @@
Return
* [status] - 0 is success, 1 error.
* Insert/update message data in the message database and set message as locally read if it was set.
* Message ZFO file saved to target path if was set.
* All attachment files saved to target path if was set.
* Message/envelope/delivery info ZFO/PDF file saved to target path if was set.
* if an error then error code and its description are writing into stderr.
Example:
......@@ -18,3 +16,26 @@ Example:
```
datovka --login "username='xxxxxx'" --export-msg "dmID='123456789',exportPath='C:\temp\',exportMsgType='zfo',exportDelInfo='all'"
```
**--export-msgs**
* *dmType* - Type of messages. Values: {no,sent,received,all}, default is received. [Mandatory]
* *exportPath* - Path to existing folder for export. [Mandatory]
* *exportMsgType* - Export message or pdf message envelope. Values: {no,zfo,pdf,all}, default is zfo. [Optional]
* *exportDelInfo* - Export delivery info. Values: {no,zfo,pdf,all}, default is zfo. [Optional]
* *msgName* - File name of zfo message/pdf envelope without extension defined by user. Default is DZ_ID message id. [Optional]
* *infoName* - File name of delivery info zfo/pdf without extension defined by user. Default is DD_ID message id. [Optional]
* *fromDate* - Delivery date from. Format: YYYY-MM-DD. [Optional]
* *toDate* - Delivery date to. Format: YYYY-MM-DD. [Optional]
Return
* [status] - 0 is success, 1 error.
* List of message ID of files saved to target path if was set.
* if an error then error code and its description are writing into stderr.
Example:
```
datovka --login "username='xxxxxx'" --export-msgs "dmType='received',exportPath='C:\temp\',exportMsgType='all',exportDelInfo='all',fromDate='2024-01-01'"
```