ecoportal-api-graphql 0.4.5 → 0.4.7

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
  SHA256:
3
- metadata.gz: a3e3519f253819b10dad7bd065d244dd90a3d7cd3e2ebe224f20bc4ccb83185d
4
- data.tar.gz: 2045d67da3b50b55feaab8bce0fbd67935c79e9947878e4d9483df1fd2cad596
3
+ metadata.gz: b968296728e5236f8a3aae38661d2caa27467e40c20e5b3d81daf436f02d48dd
4
+ data.tar.gz: bbd52cdb4e42afce5e2e7c7712c57d8829d0837ab3f7adc5ef3d5259c6640d8b
5
5
  SHA512:
6
- metadata.gz: 0f64880b73ca0cc855d1d8cbe179e1dda7f79f73b88b9f9d4e41883ef631ee7fac41ced10dc3c1a56f821afe7d9bb4faa239aae86703ffcf4a55a564145c3788
7
- data.tar.gz: 1cb72054839f0aa37d35f86c6ba1a55914c65c721bddc03ea6100d0126a4a42c176fecfb917c35e8b0302db85a726ffa59f12d7dbf0a8e07b3a57f28612fdd3f
6
+ metadata.gz: f1449e74769d6006fd330316f8741525a5c972f9a23654ab4ad08faf9f59e34ad14075e5bf30b1123da20a0cdef8023b19a4e286255d15923118ee92571af11e
7
+ data.tar.gz: 01605be05f707c622ce48f03c722b9c638287b32d57c64e98241115c7ed39d57041809f6445984410d39cb1fce555edf760f56020d6c3fd3549bf9a8ceeaebb6
data/CHANGELOG.md CHANGED
@@ -9,7 +9,13 @@ All notable changes to this project will be documented in this file.
9
9
  - Analyse how to "DSL" currentOrganization.action.activities
10
10
  - review `path` tracking
11
11
 
12
- ## [0.4.6] - 2025-03-xx
12
+ ## [0.4.8] - 2025-04-xx
13
+
14
+ ### Added
15
+
16
+ - `page.id` to Action linked resources.
17
+
18
+ ## [0.4.7] - 2025-04-02
13
19
 
14
20
  ### Added
15
21
 
@@ -17,6 +23,19 @@ All notable changes to this project will be documented in this file.
17
23
 
18
24
  ### Fixed
19
25
 
26
+ ## [0.4.6] - 2025-04-02
27
+
28
+ ### Added
29
+
30
+ - `Ecoportal::API::GraphQL::Logic::QueryConnection`
31
+ - **Require** `default_connection_block` to child classes
32
+ - This aims to **not** having have client code having to define the block for `#each`
33
+
34
+ ### Changed
35
+
36
+ - upgraded `ecoportal-api` gem
37
+ - upgraded `ecoportal-api-v2` gem
38
+
20
39
  ## [0.4.5] - 2025-03-14
21
40
 
22
41
  ### Added
@@ -32,8 +32,8 @@ Gem::Specification.new do |spec|
32
32
  spec.add_development_dependency 'rubocop-rake', '~> 0'
33
33
  spec.add_development_dependency 'yard', '>= 0.9.34', '< 1'
34
34
 
35
- spec.add_dependency 'ecoportal-api', '~> 0.10', '>= 0.10.8'
36
- spec.add_dependency 'ecoportal-api-v2', '~> 2.0', '>= 2.0.15'
35
+ spec.add_dependency 'ecoportal-api', '~> 0.10', '>= 0.10.9'
36
+ spec.add_dependency 'ecoportal-api-v2', '~> 2.0', '>= 2.0.16'
37
37
  spec.add_dependency 'graphlient', '>= 0.8.0', '< 0.9'
38
38
  end
39
39
 
@@ -31,6 +31,10 @@ module Ecoportal
31
31
  dateTime
32
32
  timeZone
33
33
  }
34
+ updatedAt {
35
+ dateTime
36
+ timeZone
37
+ }
34
38
  dueDate {
35
39
  dateTime
36
40
  timeZone
@@ -46,6 +50,7 @@ module Ecoportal
46
50
  linkedResources {
47
51
  id
48
52
  page {
53
+ id
49
54
  name
50
55
  mouldCounter
51
56
  }
@@ -24,6 +24,7 @@ module Ecoportal
24
24
 
25
25
  def each(&block)
26
26
  return to_enum(:each) unless block
27
+
27
28
  nodes.each(&block)
28
29
  end
29
30
  end
@@ -9,6 +9,8 @@ module Ecoportal
9
9
  def each(connection_block: nil, **kargs, &block)
10
10
  return to_enum(:each, **kargs, connection_block: connection_block) unless block
11
11
 
12
+ connection_block ||= default_connection_block
13
+
12
14
  cursor = nil
13
15
  loop do
14
16
  kargs.update(after: cursor) if cursor
@@ -30,6 +32,12 @@ module Ecoportal
30
32
  ) do |klass|
31
33
  klass.item_class = item_class
32
34
  end
35
+
36
+ privae
37
+
38
+ def default_connection_block
39
+ raise 'You should defined this method'
40
+ end
33
41
  end
34
42
  end
35
43
  end
@@ -17,10 +17,10 @@ module Ecoportal
17
17
  currentOrganization {
18
18
  actions(
19
19
  searchConf: :searchConf,
20
- after: :after,
21
- before: :before,
22
- first: :first,
23
- last: :last,
20
+ after: :after,
21
+ before: :before,
22
+ first: :first,
23
+ last: :last,
24
24
  &connection_block
25
25
  )
26
26
  }
@@ -1,5 +1,5 @@
1
1
  module Ecoportal
2
2
  module API
3
- GRAPQL_VERSION = '0.4.5'.freeze
3
+ GRAPQL_VERSION = '0.4.7'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecoportal-api-graphql
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.5
4
+ version: 0.4.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oscar Segura
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-03-13 00:00:00.000000000 Z
11
+ date: 2025-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -141,7 +141,7 @@ dependencies:
141
141
  version: '0.10'
142
142
  - - ">="
143
143
  - !ruby/object:Gem::Version
144
- version: 0.10.8
144
+ version: 0.10.9
145
145
  type: :runtime
146
146
  prerelease: false
147
147
  version_requirements: !ruby/object:Gem::Requirement
@@ -151,7 +151,7 @@ dependencies:
151
151
  version: '0.10'
152
152
  - - ">="
153
153
  - !ruby/object:Gem::Version
154
- version: 0.10.8
154
+ version: 0.10.9
155
155
  - !ruby/object:Gem::Dependency
156
156
  name: ecoportal-api-v2
157
157
  requirement: !ruby/object:Gem::Requirement
@@ -161,7 +161,7 @@ dependencies:
161
161
  version: '2.0'
162
162
  - - ">="
163
163
  - !ruby/object:Gem::Version
164
- version: 2.0.15
164
+ version: 2.0.16
165
165
  type: :runtime
166
166
  prerelease: false
167
167
  version_requirements: !ruby/object:Gem::Requirement
@@ -171,7 +171,7 @@ dependencies:
171
171
  version: '2.0'
172
172
  - - ">="
173
173
  - !ruby/object:Gem::Version
174
- version: 2.0.15
174
+ version: 2.0.16
175
175
  - !ruby/object:Gem::Dependency
176
176
  name: graphlient
177
177
  requirement: !ruby/object:Gem::Requirement