ecoportal-api-graphql 0.4.0 → 0.4.1

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: 927df3da8239c448be76b32066894a9bb2b8d0aa1f011033da69cf2b7878aa26
4
- data.tar.gz: 15825f1ab4dc7a5a366d8e504d07a377650422cf8a1e49a5c21494089719ffae
3
+ metadata.gz: 9b010f2e79334e228ef058acb2c53aa92e894907a0a13557188227bb36f5c022
4
+ data.tar.gz: fdf9ca5d6486f68be8655a064a5293f1e92cf9d69bb831705ac9916fca60d836
5
5
  SHA512:
6
- metadata.gz: 2020d06df814fb28f2b1592d7107d2368ec23eed3731999964202259f7f486dabb7eff70e7105e5c688e02517e1f8784fc09d682a5c0a5f21234a372cd7e8171
7
- data.tar.gz: d58a1c29ff883c7ea7c26fe931163f9ab4a7b7d81798d69648482bee8d2377fd5866a1b616f264aa530d9dd76c46a812cc51fb2acaaf2f9a61c3614388f3a4eb
6
+ metadata.gz: c63be5db720017916fc426ec1cc7d4d1cfd4c510834b10ec5addd401abe48f19e5973395165fee8106ac3e8b400b1ae588e7e1a49a7165bf16028f2441f0e17d
7
+ data.tar.gz: 2827e76c1c03965d032a6812ad61f3dcf92940b9baf162ac144fe06102d91cbe53caabf34e477a3862ccd58a419b7ab62bae694d019a7bbe7179b519f576da25
data/.rubocop.yml CHANGED
@@ -29,6 +29,9 @@ Style/BlockDelimiters:
29
29
  BracesRequiredMethods: ['log']
30
30
  AllowedMethods: ['proc', 'new']
31
31
  Enabled: false
32
+ Style/HashSyntax:
33
+ EnforcedShorthandSyntax: either
34
+ EnforcedStyle: no_mixed_keys
32
35
  Style/ClassAndModuleChildren:
33
36
  Enabled: false
34
37
  Style/FrozenStringLiteralComment:
data/CHANGELOG.md CHANGED
@@ -9,16 +9,24 @@ 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.0] - 2024-08-01
12
+ ## [0.4.1] - 2024-08-xx
13
13
 
14
14
  ### Added
15
15
 
16
+ - `ContractorEntity` added field `externalId`
17
+
16
18
  ### Changed
17
19
 
18
- - require `ruby 3`
20
+ - gem upgrade `ecoportal-api-v2`
19
21
 
20
22
  ### Fixed
21
23
 
24
+ ## [0.4.0] - 2024-08-01
25
+
26
+ ### Changed
27
+
28
+ - require `ruby 3`
29
+
22
30
  ## [0.3.18] - 2024-05-16
23
31
 
24
32
  ### Fixed
@@ -29,6 +29,6 @@ Gem::Specification.new do |spec|
29
29
  spec.add_development_dependency "redcarpet", ">= 3.6.0", "< 4"
30
30
  spec.add_development_dependency "pry" , ">= 0.14"
31
31
 
32
- spec.add_dependency 'ecoportal-api-v2', '~> 2.0'
32
+ spec.add_dependency 'ecoportal-api-v2', '~> 2.0', '>= 2.0.8'
33
33
  spec.add_dependency 'graphlient', '>= 0.8.0', '< 0.9'
34
34
  end
@@ -26,6 +26,7 @@ module Ecoportal
26
26
  @user_pass = pass
27
27
 
28
28
  puts "Configuring GraphQL Client onto '#{url}'"
29
+
29
30
  super(url,
30
31
  headers: {
31
32
  'Authorization' => "Bearer #{session_token(host: host)}"
@@ -4,6 +4,7 @@ module Ecoportal
4
4
  module Base
5
5
  class ContractorEntity < Ecoportal::API::GraphQL::Base::Model
6
6
  passkey :id
7
+ passthrough :externalId
7
8
  passthrough :name
8
9
  passboolean :active, :approved
9
10
  passthrough :schemaId
@@ -5,6 +5,7 @@ module Ecoportal
5
5
  fragment :ContractorEntity, <<~GRAPHQL
6
6
  fragment on ContractorEntity {
7
7
  id
8
+ externalId
8
9
  name
9
10
  schemaId
10
11
  active
@@ -13,14 +13,20 @@ module Ecoportal
13
13
  def basic_block(&block)
14
14
  connection_block = block || default_connection_block
15
15
  proc {
16
- query(searchConf: :Search, after: :string, before: :string, first: :int, last: :int) {
16
+ query(
17
+ searchConf: :Search,
18
+ after: :string,
19
+ before: :string,
20
+ first: :int,
21
+ last: :int
22
+ ) {
17
23
  currentOrganization {
18
24
  contractorEntities(
19
25
  searchConf: :searchConf,
20
- after: :after,
21
- before: :before,
22
- first: :first,
23
- last: :last,
26
+ after: :after,
27
+ before: :before,
28
+ first: :first,
29
+ last: :last,
24
30
  &connection_block
25
31
  )
26
32
  }
@@ -1,5 +1,5 @@
1
1
  module Ecoportal
2
2
  module API
3
- GRAPQL_VERSION = '0.4.0'.freeze
3
+ GRAPQL_VERSION = '0.4.1'.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.0
4
+ version: 0.4.1
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-08-01 00:00:00.000000000 Z
11
+ date: 2024-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -111,6 +111,9 @@ dependencies:
111
111
  - - "~>"
112
112
  - !ruby/object:Gem::Version
113
113
  version: '2.0'
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ version: 2.0.8
114
117
  type: :runtime
115
118
  prerelease: false
116
119
  version_requirements: !ruby/object:Gem::Requirement
@@ -118,6 +121,9 @@ dependencies:
118
121
  - - "~>"
119
122
  - !ruby/object:Gem::Version
120
123
  version: '2.0'
124
+ - - ">="
125
+ - !ruby/object:Gem::Version
126
+ version: 2.0.8
121
127
  - !ruby/object:Gem::Dependency
122
128
  name: graphlient
123
129
  requirement: !ruby/object:Gem::Requirement