mio-config 2.8.0 → 2.9.0
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.
- checksums.yaml +4 -4
- data/lib/mio/model/add_to_group_action.rb +40 -0
- data/lib/mio/model/email_message_action.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61b9c58271e6a76d72c7c7c5dc406c0c6fcda909
|
4
|
+
data.tar.gz: 81ff2c15326544960e24520d9867fcb52bbc873c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2fbafc6990f8dab8315b2156f960514a71b84996981f41f69e6c9603e3186f3d9ff81e475e16d8811a1f6156d4bf4191d15705ab8596498d9d13aa05f337a0f2
|
7
|
+
data.tar.gz: f0b8e1faed33b694da9c55539cd0422092a50b1afef0e24914fe7a2ddea6c73403bb8b3304e14252292db0154e28a1a878dd38929a1322c2c259ad97d91b7c89
|
@@ -0,0 +1,40 @@
|
|
1
|
+
class Mio
|
2
|
+
class Model
|
3
|
+
class AddToGroupAction < Model
|
4
|
+
set_resource :actions
|
5
|
+
|
6
|
+
field :name, String, 'Name of the Add To Group action'
|
7
|
+
field :visibility, Array,'IDs of accounts that may see this', [4]
|
8
|
+
field :targetAssetId, String, 'Expression to resolve and gather Asset Id', '${parentId}'
|
9
|
+
field :groupName, String, 'The group name'
|
10
|
+
field :referenceNamePrefix, String, 'The reference prefix', '${asset.name}'
|
11
|
+
field :enable, Symbol, ':true or :false', :true
|
12
|
+
field :start, Symbol, ':true or :false', :true
|
13
|
+
|
14
|
+
def create_hash
|
15
|
+
plugin = 'tv.nativ.mio.enterprise.execution.action.file.impl.group.GroupManipulationCommand'
|
16
|
+
|
17
|
+
{name: @args.name,
|
18
|
+
pluginClass: plugin,
|
19
|
+
type: 'add-to-group',
|
20
|
+
visibilityIds: @args.visibility}
|
21
|
+
end
|
22
|
+
|
23
|
+
def config_hash
|
24
|
+
h = {}
|
25
|
+
unless @args.targetAssetId.to_s == ''
|
26
|
+
h['target-asset-id'] = @args.targetAssetId
|
27
|
+
end
|
28
|
+
unless @args.groupName.to_s == ''
|
29
|
+
h['group-name'] = @args.groupName
|
30
|
+
end
|
31
|
+
unless @args.referenceNamePrefix.to_s == ''
|
32
|
+
h['reference-name-prefix'] = @args.referenceNamePrefix
|
33
|
+
end
|
34
|
+
|
35
|
+
h
|
36
|
+
end
|
37
|
+
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -34,7 +34,7 @@ class Mio
|
|
34
34
|
end
|
35
35
|
|
36
36
|
def config_hash
|
37
|
-
{
|
37
|
+
{ 'message-template': { id: get_message_template_id(@args.template) },
|
38
38
|
recipients: { expression: [ { value: @args.recipientExpression, isExpression: false } ] }
|
39
39
|
}
|
40
40
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mio-config
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jspc
|
@@ -109,6 +109,7 @@ files:
|
|
109
109
|
- "./lib/mio/migrations.rb"
|
110
110
|
- "./lib/mio/model.rb"
|
111
111
|
- "./lib/mio/model/account_property.rb"
|
112
|
+
- "./lib/mio/model/add_to_group_action.rb"
|
112
113
|
- "./lib/mio/model/autoload.rb"
|
113
114
|
- "./lib/mio/model/email_message_action.rb"
|
114
115
|
- "./lib/mio/model/groovy_script.rb"
|