mirror of
https://github.com/Karaka-Management/oms-Messages.git
synced 2026-02-17 09:48:41 +00:00
org -> unit change, some new functionality
This commit is contained in:
parent
770aed4f37
commit
e382553318
121
Admin/Install/Workflow.install.json
Normal file
121
Admin/Install/Workflow.install.json
Normal file
|
|
@ -0,0 +1,121 @@
|
||||||
|
{
|
||||||
|
"triggers": [
|
||||||
|
"PRE:Module:Messages:message-create",
|
||||||
|
"POST:Module:Messages:message-create",
|
||||||
|
"PRE:Module:Messages:message-update",
|
||||||
|
"POST:Module:Messages:message-update",
|
||||||
|
"PRE:Module:Messages:message-delete",
|
||||||
|
"POST:Module:Messages:message-delete"
|
||||||
|
],
|
||||||
|
"actions": {
|
||||||
|
"1001200001": {
|
||||||
|
"name": "Send Email",
|
||||||
|
"description": {
|
||||||
|
"en": "Send Email",
|
||||||
|
"de": "Versende Email"
|
||||||
|
},
|
||||||
|
"function_type": "API",
|
||||||
|
"function": "apiSendEmail",
|
||||||
|
"inputs": [
|
||||||
|
"from",
|
||||||
|
"to",
|
||||||
|
"bcc",
|
||||||
|
"message",
|
||||||
|
"attachments",
|
||||||
|
"{*}"
|
||||||
|
],
|
||||||
|
"outputs": [
|
||||||
|
"message",
|
||||||
|
"message.getTo()",
|
||||||
|
"message.getFrom()",
|
||||||
|
"message.getBcc()",
|
||||||
|
"message.message",
|
||||||
|
"message.getAttachments()",
|
||||||
|
"message.getStatus()",
|
||||||
|
"{*}"
|
||||||
|
],
|
||||||
|
"settings": {
|
||||||
|
"from": {
|
||||||
|
"type": "input",
|
||||||
|
"subtype": "text",
|
||||||
|
"default": null,
|
||||||
|
"pattern": null,
|
||||||
|
"examples": [],
|
||||||
|
"required": true,
|
||||||
|
"title": {
|
||||||
|
"en": "From",
|
||||||
|
"de": "Absender"
|
||||||
|
},
|
||||||
|
"description": {
|
||||||
|
"en": "",
|
||||||
|
"de": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"to": {
|
||||||
|
"type": "input",
|
||||||
|
"subtype": "text",
|
||||||
|
"default": null,
|
||||||
|
"pattern": null,
|
||||||
|
"examples": [],
|
||||||
|
"required": true,
|
||||||
|
"title": {
|
||||||
|
"en": "Receiver",
|
||||||
|
"de": "Empfänger"
|
||||||
|
},
|
||||||
|
"description": {
|
||||||
|
"en": "",
|
||||||
|
"de": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"bcc": {
|
||||||
|
"type": "input",
|
||||||
|
"subtype": "text",
|
||||||
|
"default": null,
|
||||||
|
"pattern": null,
|
||||||
|
"examples": [],
|
||||||
|
"required": true,
|
||||||
|
"title": {
|
||||||
|
"en": "BCC",
|
||||||
|
"de": "BCC"
|
||||||
|
},
|
||||||
|
"description": {
|
||||||
|
"en": "",
|
||||||
|
"de": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"message": {
|
||||||
|
"type": "textarea",
|
||||||
|
"subtype": null,
|
||||||
|
"default": null,
|
||||||
|
"pattern": null,
|
||||||
|
"examples": [],
|
||||||
|
"required": true,
|
||||||
|
"title": {
|
||||||
|
"en": "Message",
|
||||||
|
"de": "Nachricht"
|
||||||
|
},
|
||||||
|
"description": {
|
||||||
|
"en": "",
|
||||||
|
"de": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"attachments": {
|
||||||
|
"type": "input",
|
||||||
|
"subtype": "text",
|
||||||
|
"default": null,
|
||||||
|
"pattern": "/(^\\*$)|(^(\\d+)(,\\s*\\d+)*$)/",
|
||||||
|
"examples": [],
|
||||||
|
"required": false,
|
||||||
|
"title": {
|
||||||
|
"en": "Attachments",
|
||||||
|
"de": "Anhänge"
|
||||||
|
},
|
||||||
|
"description": {
|
||||||
|
"en": "",
|
||||||
|
"de": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
43
Admin/Install/Workflow.php
Normal file
43
Admin/Install/Workflow.php
Normal file
|
|
@ -0,0 +1,43 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Karaka
|
||||||
|
*
|
||||||
|
* PHP Version 8.1
|
||||||
|
*
|
||||||
|
* @package Modules\Messages\Admin\Install
|
||||||
|
* @copyright Dennis Eichhorn
|
||||||
|
* @license OMS License 1.0
|
||||||
|
* @version 1.0.0
|
||||||
|
* @link https://jingga.app
|
||||||
|
*/
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace Modules\Messages\Admin\Install;
|
||||||
|
|
||||||
|
use phpOMS\Application\ApplicationAbstract;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Workflow class.
|
||||||
|
*
|
||||||
|
* @package Modules\Messages\Admin\Install
|
||||||
|
* @license OMS License 1.0
|
||||||
|
* @link https://jingga.app
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
|
class Workflow
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Install workflow providing
|
||||||
|
*
|
||||||
|
* @param ApplicationAbstract $app Application
|
||||||
|
* @param string $path Module path
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
|
public static function install(ApplicationAbstract $app, string $path) : void
|
||||||
|
{
|
||||||
|
\Modules\Workflow\Admin\Installer::installExternal($app, ['path' => __DIR__ . '/Workflow.install.json']);
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user