ecoportal-api-v2 1.1.3 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 99d119cc599b33a68117699108312e7a885ec570cbab5ea43087b1366f79cda2
4
- data.tar.gz: a3de4653f9319c0d5a39edc4b7d113666b16241bdfb3cab98e3185ff6bfd153e
3
+ metadata.gz: e7774c15da9ae5d6ff253f7a3d3035d6943e6d4de9b68dbd648ea16b6b815b9e
4
+ data.tar.gz: b87045d030a5648294c0d9ed186cb2324d4df008e19fdb97d6ae2d8a4cc3fe38
5
5
  SHA512:
6
- metadata.gz: 8437419e3eda3f7dfccffb48c4ba5b309cb670f1cdd18470e79b38ad2fba19f9c7b1498b19d4f0f241a7ae80fbbffe0a5a168a99314398c0e59bfa2119a9a1d3
7
- data.tar.gz: 6fd2348676568bca1b50701b7f142c4e8531f3f735d7db73d00764a65ced988c4054f26dea14004d89225db9b1a6213f3b2c7c47bc1a9021cca098d24e29dacb
6
+ metadata.gz: c4586c46e7921caa02d561e9a4b13ff2f2c1cc41d64f4501fff54edb6edb733a43b9adb8d38e93a95c1fbd475f6e837ef6a5ce4a003c338e81dd1d729201f223
7
+ data.tar.gz: b388223450b1324e3a6e46051b07e2266e275c561ffdc2506354714f259a81e825e5772c22a9608d13c6d90b3e76b2b4a2ce372fc231108f78532a7068335c3b
data/CHANGELOG.md CHANGED
@@ -1,10 +1,16 @@
1
1
  # Change Log
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
- ## [1.1.4] - 2023-06-xx
4
+ ## [1.1.4] - 2024-02-xx
5
5
 
6
6
  ### Added
7
+ - Support for new fields
8
+ - `Ecoportal::API::V2::Page::Component::ActionsField`
9
+ - `Ecoportal::API::V2::Page::Component::MailboxField`
10
+
7
11
  ### Changed
12
+ - core gem **upgrade**
13
+
8
14
  ### Fixed
9
15
 
10
16
  ## [1.1.3] - 2023-06-28
@@ -29,5 +29,5 @@ Gem::Specification.new do |spec|
29
29
  spec.add_development_dependency "redcarpet", ">= 3.5.1", "< 4"
30
30
  spec.add_development_dependency "pry" , ">= 0.14"
31
31
 
32
- spec.add_dependency 'ecoportal-api', '>= 0.9.4', '< 0.10'
32
+ spec.add_dependency 'ecoportal-api', '>= 0.9.5', '< 0.10'
33
33
  end
@@ -0,0 +1,37 @@
1
+ module Ecoportal
2
+ module API
3
+ class V2
4
+ class Page
5
+ class Component
6
+ class ActionsField < Page::Component
7
+ passboolean :create_actions
8
+ passthrough :required_completed
9
+ passboolean :filled_in?
10
+ passarray :permitted_person_schema_ids, order_matters: false
11
+
12
+ passboolean :enable_attaching_actions
13
+ passarray :action_ids, :all_actions, order_matters: false
14
+ passarray :open_actions, :closed_actions, :overdue_actions, order_matters: false
15
+ passthrough :actions_hash
16
+ passarray :action_recurrence_ids, order_matters: false
17
+
18
+ def empty?
19
+ action_ids.to_a.empty?
20
+ end
21
+
22
+ # Adds a task with `name` short description
23
+ # @return [Ecoportal::API::V2::Page::Component::Action]
24
+ def attach_action (*ids, force: false)
25
+ raise "Can't attach actions" unless enable_attaching_actions && force
26
+ action_ids << ids
27
+ end
28
+
29
+ def to_s(delimiter: "\n")
30
+ action_ids.join(delimiter)
31
+ end
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
37
+ end
@@ -8,9 +8,10 @@ module Ecoportal
8
8
  passboolean :show_approval_status
9
9
 
10
10
  passboolean :singular
11
+ passthrough :requires_number
11
12
 
12
13
  passarray :contractor_entities_ids
13
- pass_reader :cached_people
14
+ passboolean :show_approval_status
14
15
 
15
16
  passboolean :grant_permissions_enabled
16
17
  passthrough :apply_attached_contractors_permissions_to
@@ -0,0 +1,18 @@
1
+ module Ecoportal
2
+ module API
3
+ class V2
4
+ class Page
5
+ class Component
6
+ class MailboxField < Page::Component
7
+ passarray :email_ids
8
+ passthrough :address_id
9
+
10
+ def to_s(delimiter: "\n")
11
+ email_ids.to_a.join(delimiter)
12
+ end
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
18
+ end
@@ -17,11 +17,13 @@ module Ecoportal
17
17
  class_resolver :contractor_entities_field_class, "Ecoportal::API::V2::Page::Component::ContractorEntitiesField"
18
18
  class_resolver :checklist_field_class, "Ecoportal::API::V2::Page::Component::ChecklistField"
19
19
  class_resolver :action_field_class, "Ecoportal::API::V2::Page::Component::ActionField"
20
+ class_resolver :actions_field_class, "Ecoportal::API::V2::Page::Component::ActionsField"
20
21
  class_resolver :files_field_class, "Ecoportal::API::V2::Page::Component::FilesField"
21
22
  class_resolver :images_field_class, "Ecoportal::API::V2::Page::Component::ImagesField"
22
23
  class_resolver :signature_field_class, "Ecoportal::API::V2::Page::Component::SignatureField"
23
24
  class_resolver :reference_field_class, "Ecoportal::API::V2::Page::Component::ReferenceField"
24
25
  class_resolver :law_field_class, "Ecoportal::API::V2::Page::Component::LawField"
26
+ class_resolver :mailbox_field_class, "Ecoportal::API::V2::Page::Component::MailboxField"
25
27
  class_resolver :chart_field_class, "Ecoportal::API::V2::Page::Component::ChartField"
26
28
  class_resolver :chart_fr_field_class, "Ecoportal::API::V2::Page::Component::ChartFrField"
27
29
 
@@ -66,6 +68,8 @@ module Ecoportal
66
68
  checklist_field_class
67
69
  when "page_action","checklist_task"
68
70
  action_field_class
71
+ when "actions_list"
72
+ actions_field_class
69
73
  when "file"
70
74
  files_field_class
71
75
  when "image_gallery"
@@ -76,6 +80,8 @@ module Ecoportal
76
80
  reference_field_class
77
81
  when "law"
78
82
  law_field_class
83
+ when "mailbox"
84
+ mailbox_field_class
79
85
  when "chart"
80
86
  chart_field_class
81
87
  when "frequency_rate_chart"
@@ -235,10 +241,12 @@ require 'ecoportal/api/v2/page/component/people_field'
235
241
  require 'ecoportal/api/v2/page/component/contractor_entities_field'
236
242
  require 'ecoportal/api/v2/page/component/checklist_field'
237
243
  require 'ecoportal/api/v2/page/component/action_field'
244
+ require 'ecoportal/api/v2/page/component/actions_field'
238
245
  require 'ecoportal/api/v2/page/component/files_field'
239
246
  require 'ecoportal/api/v2/page/component/images_field'
240
247
  require 'ecoportal/api/v2/page/component/signature_field'
241
248
  require 'ecoportal/api/v2/page/component/reference_field'
242
249
  require 'ecoportal/api/v2/page/component/law_field'
250
+ require 'ecoportal/api/v2/page/component/mailbox_field'
243
251
  require 'ecoportal/api/v2/page/component/chart_field'
244
252
  require 'ecoportal/api/v2/page/component/chart_fr_field'
@@ -1,5 +1,5 @@
1
1
  module Ecoportal
2
2
  module API
3
- GEM2_VERSION = "1.1.3"
3
+ GEM2_VERSION = "1.1.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecoportal-api-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oscar Segura
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-06-28 00:00:00.000000000 Z
11
+ date: 2024-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -130,7 +130,7 @@ dependencies:
130
130
  requirements:
131
131
  - - ">="
132
132
  - !ruby/object:Gem::Version
133
- version: 0.9.4
133
+ version: 0.9.5
134
134
  - - "<"
135
135
  - !ruby/object:Gem::Version
136
136
  version: '0.10'
@@ -140,7 +140,7 @@ dependencies:
140
140
  requirements:
141
141
  - - ">="
142
142
  - !ruby/object:Gem::Version
143
- version: 0.9.4
143
+ version: 0.9.5
144
144
  - - "<"
145
145
  - !ruby/object:Gem::Version
146
146
  version: '0.10'
@@ -184,6 +184,7 @@ files:
184
184
  - lib/ecoportal/api/v2/page/component.rb
185
185
  - lib/ecoportal/api/v2/page/component/action.rb
186
186
  - lib/ecoportal/api/v2/page/component/action_field.rb
187
+ - lib/ecoportal/api/v2/page/component/actions_field.rb
187
188
  - lib/ecoportal/api/v2/page/component/chart_field.rb
188
189
  - lib/ecoportal/api/v2/page/component/chart_field/benchmark.rb
189
190
  - lib/ecoportal/api/v2/page/component/chart_field/config.rb
@@ -209,6 +210,7 @@ files:
209
210
  - lib/ecoportal/api/v2/page/component/images_field.rb
210
211
  - lib/ecoportal/api/v2/page/component/law.rb
211
212
  - lib/ecoportal/api/v2/page/component/law_field.rb
213
+ - lib/ecoportal/api/v2/page/component/mailbox_field.rb
212
214
  - lib/ecoportal/api/v2/page/component/number_field.rb
213
215
  - lib/ecoportal/api/v2/page/component/people_field.rb
214
216
  - lib/ecoportal/api/v2/page/component/people_viewable_field.rb