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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4d9b652b60ae5d56d9cb9d8aef145fdb110b8097
4
- data.tar.gz: d4436173c3cbe8ddac32dbc3e96cdfc2e4af09c2
3
+ metadata.gz: 61b9c58271e6a76d72c7c7c5dc406c0c6fcda909
4
+ data.tar.gz: 81ff2c15326544960e24520d9867fcb52bbc873c
5
5
  SHA512:
6
- metadata.gz: 90551695d42935ca425be305015aa07060c640427a92442ba10b2305d692f97116c22605348bfd6b78b671c48302bb19cc697a74205ff6cae620a26372fd2452
7
- data.tar.gz: 39e3c5a9514ee6701b0bc40d8c13ad772943f82ea38f8b19aee31625b228e0ba80fcff81f986ce6ec6bd731c821cb98ac59c8addf1095560d73797b41911b5df
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
- { :'message-template' => { id: get_message_template_id(@args.template) },
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.8.0
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"