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 +4 -4
- data/CHANGELOG.md +20 -1
- data/ecoportal-api-graphql.gemspec +2 -2
- data/lib/ecoportal/api/graphql/fragment/action.rb +5 -0
- data/lib/ecoportal/api/graphql/logic/connection.rb +1 -0
- data/lib/ecoportal/api/graphql/logic/query_connection.rb +8 -0
- data/lib/ecoportal/api/graphql/query/actions.rb +4 -4
- data/lib/ecoportal/api/graphql_version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b968296728e5236f8a3aae38661d2caa27467e40c20e5b3d81daf436f02d48dd
|
4
|
+
data.tar.gz: bbd52cdb4e42afce5e2e7c7712c57d8829d0837ab3f7adc5ef3d5259c6640d8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
36
|
-
spec.add_dependency 'ecoportal-api-v2', '~> 2.0', '>= 2.0.
|
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
|
|
@@ -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:
|
21
|
-
before:
|
22
|
-
first:
|
23
|
-
last:
|
20
|
+
after: :after,
|
21
|
+
before: :before,
|
22
|
+
first: :first,
|
23
|
+
last: :last,
|
24
24
|
&connection_block
|
25
25
|
)
|
26
26
|
}
|
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.
|
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-
|
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.
|
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.
|
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.
|
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.
|
174
|
+
version: 2.0.16
|
175
175
|
- !ruby/object:Gem::Dependency
|
176
176
|
name: graphlient
|
177
177
|
requirement: !ruby/object:Gem::Requirement
|