ecoportal-api-graphql 0.2.1 → 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.
|
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`
|
@@ -13,15 +14,18 @@ All notable changes to this project will be documented in this file.
|
|
13
14
|
- Analyse how to "DSL" currentOrganization.action.activities
|
14
15
|
- review `path` tracking
|
15
16
|
|
16
|
-
## [0.2.
|
17
|
+
## [0.2.2] - 2023-02-24
|
17
18
|
|
18
|
-
###
|
19
|
+
### Fixed
|
20
|
+
- Build gem correctly
|
21
|
+
|
22
|
+
## [0.2.1] - 2023-02-24
|
19
23
|
|
20
24
|
### Changed
|
21
25
|
- Migrate from TagTrees to **reporting structures** (breaking change)
|
22
26
|
|
23
|
-
###
|
24
|
-
|
27
|
+
### Added
|
28
|
+
- Basics for reporting structure mutations
|
25
29
|
|
26
30
|
## [0.1.11] - 2022-11-29
|
27
31
|
|
@@ -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
|
-
autorequire:
|
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
|
@@ -164,7 +164,7 @@ dependencies:
|
|
164
164
|
- - "<"
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: '0.8'
|
167
|
-
description:
|
167
|
+
description:
|
168
168
|
email:
|
169
169
|
- oscar@ecoportal.co.nz
|
170
170
|
executables: []
|
@@ -301,7 +301,7 @@ homepage: https://www.ecoportal.com
|
|
301
301
|
licenses:
|
302
302
|
- MIT
|
303
303
|
metadata: {}
|
304
|
-
post_install_message:
|
304
|
+
post_install_message:
|
305
305
|
rdoc_options: []
|
306
306
|
require_paths:
|
307
307
|
- lib
|
@@ -316,8 +316,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
316
316
|
- !ruby/object:Gem::Version
|
317
317
|
version: '0'
|
318
318
|
requirements: []
|
319
|
-
rubygems_version: 3.
|
320
|
-
signing_key:
|
319
|
+
rubygems_version: 3.0.3
|
320
|
+
signing_key:
|
321
321
|
specification_version: 4
|
322
322
|
summary: A collection of helpers for interacting with the ecoPortal GraphQL API
|
323
323
|
test_files: []
|