ecoportal-api-graphql 0.3.16 → 0.3.18

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: 7d3550f5f5777e78de779031a4037935cc6ec9d461993ca642f7da06b6e96fa6
4
- data.tar.gz: 61e4eeedf713fa389aa8bf3a73093daa5f8400a5517c7cf15d9264055f9ecd01
3
+ metadata.gz: 53a6919bd12fe2569c78660a80f9ee90b8d23832b2dcb4d4d1cb1daeaf64c085
4
+ data.tar.gz: 812287102b4972106660f7983ca9bc1c803dcfef4c152b5fd3890b326954226d
5
5
  SHA512:
6
- metadata.gz: '0286bc0b8a40a283772b70fc484b0f08ad8dab5026f0db553ff936b137783f7d10e0ceae53148090194df97aea722763a2765c744eb8ce6bb93e0ce9ff1e93be'
7
- data.tar.gz: 9bfa704f8104dd98c3d22eb9867ee902bf115a595479bf8cace89d06b12c1ebf0a614be03103d92dc73410e7ccf978c06a259d677d85cc8d4dd047455ae47e49
6
+ metadata.gz: 845f6fc09d069ea63cdf465583b07fcb8ebfad0a8426059a0917a085809a08cda0ed35e5b4d0338fb917a330ba209af4039178dc823d7d686e106cb19aaf646f
7
+ data.tar.gz: f9699d1df470991e24fc9b262a711dea88986ece3fd5eab8cc2176e57b4637b236f7f9aac705768b49dbd398881d034904c5d2e247427c5356b196a65ca15a53
data/CHANGELOG.md CHANGED
@@ -8,12 +8,23 @@ All notable changes to this project will be documented in this file.
8
8
  - Analyse how to "DSL" currentOrganization.action.activities
9
9
  - review `path` tracking
10
10
 
11
- ## [0.3.17] - 2024-05-xx
11
+ ## [0.3.19] - 2024-05-xx
12
12
 
13
13
  ### Added
14
14
  ### Changed
15
15
  ### Fixed
16
16
 
17
+ ## [0.3.18] - 2024-05-16
18
+
19
+ ### Fixed
20
+ - `Ecoportal::API::GraphQL::Payload::LocationStructure::CommandExecutionResult`
21
+ - Error is nullable
22
+
23
+ ## [0.3.17] - 2024-05-14
24
+
25
+ ### Fixed
26
+ - `field_name` should add up to the path
27
+
17
28
  ## [0.3.16] - 2024-04-29
18
29
 
19
30
  ### Added
@@ -65,6 +65,7 @@ module Ecoportal
65
65
  result = @path
66
66
  result ||= default_path if respond_to?(:default_path, true)
67
67
  result ||= (base_path + [field_name]) if base_path && field_name
68
+ result ||= [field_name]
68
69
  result
69
70
  end
70
71
 
@@ -113,6 +114,7 @@ module Ecoportal
113
114
  msg = "Complete failure on request. Path: #{path}\n#{response.to_h.pretty_inspect}"
114
115
  raise msg
115
116
  end
117
+
116
118
  data = Ecoportal::API::Common::GraphQL::HashHelpers.deep_dup(res)
117
119
  response_class.new(data)
118
120
  end
@@ -31,12 +31,12 @@ module Ecoportal
31
31
  }
32
32
  }
33
33
  results {
34
+ ok
34
35
  command {
35
36
  id
36
37
  state
37
38
  __typename
38
39
  }
39
- ok
40
40
  error {
41
41
  conflictingIds
42
42
  message
@@ -5,7 +5,7 @@ module Ecoportal
5
5
  module LocationStructure
6
6
  class CommandExecutionResult < Ecoportal::API::GraphQL::Base::Model
7
7
  embeds_one :command, klass: Ecoportal::API::GraphQL::Payload::LocationStructure::CommandInterface
8
- embeds_one :error, klass: Ecoportal::API::GraphQL::Error::LocationsError
8
+ embeds_one :error, nullable: true, klass: Ecoportal::API::GraphQL::Error::LocationsError
9
9
  passboolean :ok
10
10
  end
11
11
  end
@@ -1,5 +1,5 @@
1
1
  module Ecoportal
2
2
  module API
3
- GRAPQL_VERSION = '0.3.16'.freeze
3
+ GRAPQL_VERSION = '0.3.18'.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.3.16
4
+ version: 0.3.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oscar Segura
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-05-06 00:00:00.000000000 Z
11
+ date: 2024-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler