ecoportal-api-v2 1.1.3 → 1.1.5

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: a3dba4cd5253cab4decdb13d328fb6f42378dd9f04a6bd9a1f3a29d92b1ea742
4
+ data.tar.gz: 711ce1261bb5ca760a6c677d76763b83b1348a224e25479fbb385c603bef0bc8
5
5
  SHA512:
6
- metadata.gz: 8437419e3eda3f7dfccffb48c4ba5b309cb670f1cdd18470e79b38ad2fba19f9c7b1498b19d4f0f241a7ae80fbbffe0a5a168a99314398c0e59bfa2119a9a1d3
7
- data.tar.gz: 6fd2348676568bca1b50701b7f142c4e8531f3f735d7db73d00764a65ced988c4054f26dea14004d89225db9b1a6213f3b2c7c47bc1a9021cca098d24e29dacb
6
+ metadata.gz: cf681ae84a49b6524ddc291a3d73adebbb69fd22a205dd2f8c031e13ee193924de033cb3527c5187a35e68e8c16259e9594cb54822d0c9e09622ac0891cead3b
7
+ data.tar.gz: 4eafbc2ff96d1d617f59422f9b06ee05db7360206669403d5defd54ac005c7117edb44ca51e6f9606cd16b7c28f305de0e51badcc89762d1fa0bba0338622253
data/CHANGELOG.md CHANGED
@@ -1,12 +1,24 @@
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.6] - 2024-02-xx
5
5
 
6
6
  ### Added
7
7
  ### Changed
8
8
  ### Fixed
9
9
 
10
+ ## [1.1.5] - 2024-02-03
11
+
12
+ ### Changed
13
+ - Upgrade gem dependencies
14
+
15
+ ## [1.1.4] - 2024-02-01
16
+
17
+ ### Added
18
+ - Support for new fields
19
+ - `Ecoportal::API::V2::Page::Component::ActionsField`
20
+ - `Ecoportal::API::V2::Page::Component::MailboxField`
21
+
10
22
  ## [1.1.3] - 2023-06-28
11
23
 
12
24
  ### Added
@@ -22,12 +22,12 @@ Gem::Specification.new do |spec|
22
22
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
23
  spec.require_paths = ["lib"]
24
24
 
25
- spec.add_development_dependency "bundler", ">= 2.4.9", "< 3"
26
- spec.add_development_dependency "rspec", ">= 3.10.0", "< 4"
25
+ spec.add_development_dependency "bundler", ">= 2.4.12", "< 3"
26
+ spec.add_development_dependency "rspec", ">= 3.12.0", "< 4"
27
27
  spec.add_development_dependency "rake", ">= 13.0.3", "< 14"
28
- spec.add_development_dependency "yard", ">= 0.9.26", "< 1"
29
- spec.add_development_dependency "redcarpet", ">= 3.5.1", "< 4"
28
+ spec.add_development_dependency "yard", ">= 0.9.34", "< 1"
29
+ spec.add_development_dependency "redcarpet", ">= 3.6.0", "< 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.6', '< 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.5"
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.5
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-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 2.4.9
19
+ version: 2.4.12
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: '3'
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 2.4.9
29
+ version: 2.4.12
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: '3'
@@ -36,7 +36,7 @@ dependencies:
36
36
  requirements:
37
37
  - - ">="
38
38
  - !ruby/object:Gem::Version
39
- version: 3.10.0
39
+ version: 3.12.0
40
40
  - - "<"
41
41
  - !ruby/object:Gem::Version
42
42
  version: '4'
@@ -46,7 +46,7 @@ dependencies:
46
46
  requirements:
47
47
  - - ">="
48
48
  - !ruby/object:Gem::Version
49
- version: 3.10.0
49
+ version: 3.12.0
50
50
  - - "<"
51
51
  - !ruby/object:Gem::Version
52
52
  version: '4'
@@ -76,7 +76,7 @@ dependencies:
76
76
  requirements:
77
77
  - - ">="
78
78
  - !ruby/object:Gem::Version
79
- version: 0.9.26
79
+ version: 0.9.34
80
80
  - - "<"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '1'
@@ -86,7 +86,7 @@ dependencies:
86
86
  requirements:
87
87
  - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: 0.9.26
89
+ version: 0.9.34
90
90
  - - "<"
91
91
  - !ruby/object:Gem::Version
92
92
  version: '1'
@@ -96,7 +96,7 @@ dependencies:
96
96
  requirements:
97
97
  - - ">="
98
98
  - !ruby/object:Gem::Version
99
- version: 3.5.1
99
+ version: 3.6.0
100
100
  - - "<"
101
101
  - !ruby/object:Gem::Version
102
102
  version: '4'
@@ -106,7 +106,7 @@ dependencies:
106
106
  requirements:
107
107
  - - ">="
108
108
  - !ruby/object:Gem::Version
109
- version: 3.5.1
109
+ version: 3.6.0
110
110
  - - "<"
111
111
  - !ruby/object:Gem::Version
112
112
  version: '4'
@@ -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.6
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.6
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