ecoportal-api-graphql 0.2.2 → 0.2.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb03301e45ca9a1431864cfcd700d5a125835932b072fe23ea1b5f6716b62f70
|
4
|
+
data.tar.gz: b9a224ff649c2f457d0c52b864ceb7248545e6b9ed25abd8a8213f62924e066a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4779475c91b6923b1fe7391df32e3949ebf939ab9e9d2ddbffd9fed853808f1cc3d9d92bd3302cd11b99ff4df175cc0dc5d89994a4ccb205ffbdb2d014a6f8b2
|
7
|
+
data.tar.gz: '099818e111d86ea03c57c8662884c8f03eaba5d0f470c1bb0dac137b2f3588633c16783f70b0210a67dbf7f0046d73c4b15f95b9421ba9fbe286da8157b48a88'
|
data/CHANGELOG.md
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
# Change Log
|
2
2
|
All notable changes to this project will be documented in this file.
|
3
3
|
|
4
|
-
## [0.2.3] -
|
4
|
+
## [0.2.3] - 2023-02-xx
|
5
5
|
|
6
6
|
### Added
|
7
7
|
### Changed
|
8
8
|
### Fixed
|
9
|
+
- Typo in tests LocationsStructures... should read `locationStructures`
|
9
10
|
|
10
11
|
### ToDo
|
11
12
|
- Add update operation for `ContractorEntity`
|
@@ -12,8 +12,8 @@ module Ecoportal
|
|
12
12
|
DEFAULT_PATH.dup.push(*add)
|
13
13
|
end
|
14
14
|
|
15
|
-
query :
|
16
|
-
query :
|
15
|
+
query :locationStructure, subpath: "locations", query_klass: "Ecoportal::API::GraphQL::Query::LocationStructure"
|
16
|
+
query :locationStructures, subpath: "locations", query_klass: "Ecoportal::API::GraphQL::Query::LocationStructures"
|
17
17
|
query :contractorEntities, query_klass: "Ecoportal::API::GraphQL::Query::ContractorEntities"
|
18
18
|
#contractorEntity,
|
19
19
|
query :actions, query_klass: "Ecoportal::API::GraphQL::Query::Actions"
|
data/tests/loc_structure_get.rb
CHANGED
@@ -5,7 +5,7 @@ STRUCT_ID = "592642a4ae0c6a00236b110d" # mini test
|
|
5
5
|
|
6
6
|
|
7
7
|
api = Ecoportal::API::GraphQL.new
|
8
|
-
api.currentOrganization.
|
8
|
+
api.currentOrganization.locationStructure(id: STRUCT_ID).tap do |tree|
|
9
9
|
puts "'#{tree.name}' Structure (#{tree.id})"
|
10
10
|
pp tree.treeify
|
11
11
|
end
|
data/tests/loc_structures_get.rb
CHANGED
@@ -5,7 +5,7 @@ kargs = {
|
|
5
5
|
includeArchived: false,
|
6
6
|
includeUnpublished: false
|
7
7
|
}
|
8
|
-
trees = api.currentOrganization.
|
8
|
+
trees = api.currentOrganization.locationStructures(**kargs)
|
9
9
|
trees.each_with_index do |tree, idx|
|
10
10
|
puts "#{tree.weight}. '#{tree.name}' (#{tree.id})"
|
11
11
|
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.2.
|
4
|
+
version: 0.2.3
|
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-02-
|
11
|
+
date: 2023-02-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|