ecoportal-api-graphql 0.3.15 → 0.3.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -2
- data/lib/ecoportal/api/graphql/builder/contractor_entity.rb +8 -0
- data/lib/ecoportal/api/graphql/input/contractor_entity/create.rb +1 -3
- data/lib/ecoportal/api/graphql/input/contractor_entity/destroy.rb +1 -0
- data/lib/ecoportal/api/graphql/input/contractor_entity/update.rb +7 -1
- data/lib/ecoportal/api/graphql/mutation/action/archive.rb +2 -2
- data/lib/ecoportal/api/graphql/mutation/action/update.rb +2 -2
- data/lib/ecoportal/api/graphql/mutation/contractor_entity/create.rb +3 -3
- data/lib/ecoportal/api/graphql/mutation/contractor_entity/destroy.rb +40 -0
- data/lib/ecoportal/api/graphql/mutation/contractor_entity/update.rb +3 -3
- data/lib/ecoportal/api/graphql/mutation/contractor_entity.rb +1 -1
- data/lib/ecoportal/api/graphql/query/action.rb +2 -2
- data/lib/ecoportal/api/graphql/query/actions.rb +2 -2
- data/lib/ecoportal/api/graphql/query/contractor_entities.rb +2 -2
- data/lib/ecoportal/api/graphql_version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d3550f5f5777e78de779031a4037935cc6ec9d461993ca642f7da06b6e96fa6
|
4
|
+
data.tar.gz: 61e4eeedf713fa389aa8bf3a73093daa5f8400a5517c7cf15d9264055f9ecd01
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0286bc0b8a40a283772b70fc484b0f08ad8dab5026f0db553ff936b137783f7d10e0ceae53148090194df97aea722763a2765c744eb8ce6bb93e0ce9ff1e93be'
|
7
|
+
data.tar.gz: 9bfa704f8104dd98c3d22eb9867ee902bf115a595479bf8cace89d06b12c1ebf0a614be03103d92dc73410e7ccf978c06a259d677d85cc8d4dd047455ae47e49
|
data/CHANGELOG.md
CHANGED
@@ -8,14 +8,29 @@ 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.
|
11
|
+
## [0.3.17] - 2024-05-xx
|
12
|
+
|
13
|
+
### Added
|
14
|
+
### Changed
|
15
|
+
### Fixed
|
16
|
+
|
17
|
+
## [0.3.16] - 2024-04-29
|
18
|
+
|
19
|
+
### Added
|
20
|
+
- Exposed `graphql` `ContractorEntity` `destroy`
|
21
|
+
### Fixed
|
22
|
+
- incorrect loading
|
23
|
+
|
24
|
+
### Changed
|
25
|
+
- Input for ContractorEntity create moved as `update` (as it wasn't correct)
|
26
|
+
|
27
|
+
## [0.3.15] - 2024-04-13
|
12
28
|
|
13
29
|
### Added
|
14
30
|
- `Ecoportal::API::GraphQL::Logic::BaseQuery`
|
15
31
|
- `::base_path` class instance var.
|
16
32
|
- query to retrieve `currentOrganization.classifications`
|
17
33
|
|
18
|
-
### Changed
|
19
34
|
### Fixed
|
20
35
|
- upgraded `ecoportal-api-v2` gem
|
21
36
|
|
@@ -17,6 +17,10 @@ module Ecoportal
|
|
17
17
|
updateMutation.query(**kargs, &block)
|
18
18
|
end
|
19
19
|
|
20
|
+
def destroy(**kargs, &block)
|
21
|
+
destroyMutation.query(**kargs, &block)
|
22
|
+
end
|
23
|
+
|
20
24
|
private
|
21
25
|
|
22
26
|
def createMutation
|
@@ -26,6 +30,10 @@ module Ecoportal
|
|
26
30
|
def updateMutation
|
27
31
|
Ecoportal::API::GraphQL::Mutation::ContractorEntity::Update.new(client)
|
28
32
|
end
|
33
|
+
|
34
|
+
def destroyMutation
|
35
|
+
Ecoportal::API::GraphQL::Mutation::ContractorEntity::Destroy.new(client)
|
36
|
+
end
|
29
37
|
end
|
30
38
|
end
|
31
39
|
end
|
@@ -5,9 +5,7 @@ module Ecoportal
|
|
5
5
|
module ContractorEntity
|
6
6
|
class Create < Ecoportal::API::GraphQL::Base::ContractorEntity
|
7
7
|
passthrough :clientMutationId
|
8
|
-
|
9
|
-
embeds_one :associatedPeopleIds, klass: :id_diff_input
|
10
|
-
embeds_one :leadContractorIds, klass: :id_diff_input
|
8
|
+
passboolean :overrideAutoApproval
|
11
9
|
end
|
12
10
|
end
|
13
11
|
end
|
@@ -2,7 +2,13 @@ module Ecoportal
|
|
2
2
|
module API
|
3
3
|
class GraphQL
|
4
4
|
module Input
|
5
|
-
|
5
|
+
module ContractorEntity
|
6
|
+
class Update < Ecoportal::API::GraphQL::Input::ContractorEntity::Create
|
7
|
+
passthrough :clientMutationId
|
8
|
+
class_resolver :id_diff_input, "Ecoportal::API::GraphQL::Input::IdDiff"
|
9
|
+
embeds_one :associatedPeopleIds, klass: :id_diff_input
|
10
|
+
embeds_one :leadContractorIds, klass: :id_diff_input
|
11
|
+
end
|
6
12
|
end
|
7
13
|
end
|
8
14
|
end
|
@@ -14,7 +14,7 @@ module Ecoportal
|
|
14
14
|
|
15
15
|
def basic_block(&block)
|
16
16
|
payload_block = block || default_payload_block
|
17
|
-
|
17
|
+
proc {
|
18
18
|
mutation(input: :ArchiveActionInput!) {
|
19
19
|
archiveAction(input: :input, &payload_block)
|
20
20
|
}
|
@@ -22,7 +22,7 @@ module Ecoportal
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def default_payload_block
|
25
|
-
|
25
|
+
proc {
|
26
26
|
clientMutationId
|
27
27
|
errors {
|
28
28
|
details
|
@@ -13,7 +13,7 @@ module Ecoportal
|
|
13
13
|
|
14
14
|
def basic_block(&block)
|
15
15
|
payload_block = block || default_payload_block
|
16
|
-
|
16
|
+
proc {
|
17
17
|
mutation(input: :UpdateActionInput!) {
|
18
18
|
updateAction(input: :input, &payload_block)
|
19
19
|
}
|
@@ -21,7 +21,7 @@ module Ecoportal
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def default_payload_block
|
24
|
-
|
24
|
+
proc {
|
25
25
|
clientMutationId
|
26
26
|
errors {
|
27
27
|
details
|
@@ -7,13 +7,13 @@ module Ecoportal
|
|
7
7
|
field_name :createContractorEntity
|
8
8
|
|
9
9
|
class_resolver :payload_class, Ecoportal::API::GraphQL::Payload::ContractorEntity::Create
|
10
|
-
class_resolver :input_class, Ecoportal::API::GraphQL::
|
10
|
+
class_resolver :input_class, Ecoportal::API::GraphQL::Input::ContractorEntity::Create
|
11
11
|
|
12
12
|
private
|
13
13
|
|
14
14
|
def basic_block(&block)
|
15
15
|
payload_block = block || default_payload_block
|
16
|
-
|
16
|
+
proc {
|
17
17
|
mutation(input: :CreateContractorEntityInput!) {
|
18
18
|
createContractorEntity(input: :input, &payload_block)
|
19
19
|
}
|
@@ -21,7 +21,7 @@ module Ecoportal
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def default_payload_block
|
24
|
-
|
24
|
+
proc {
|
25
25
|
clientMutationId
|
26
26
|
errors {
|
27
27
|
details
|
@@ -0,0 +1,40 @@
|
|
1
|
+
module Ecoportal
|
2
|
+
module API
|
3
|
+
class GraphQL
|
4
|
+
module Mutation
|
5
|
+
module ContractorEntity
|
6
|
+
class Destroy < Ecoportal::API::GraphQL::Logic::Mutation
|
7
|
+
field_name :destroyContractorEntity
|
8
|
+
|
9
|
+
class_resolver :payload_class, Ecoportal::API::GraphQL::Payload::ContractorEntity::Destroy
|
10
|
+
class_resolver :input_class, Ecoportal::API::GraphQL::Input::ContractorEntity::Destroy
|
11
|
+
|
12
|
+
private
|
13
|
+
|
14
|
+
def basic_block(&block)
|
15
|
+
payload_block = block || default_payload_block
|
16
|
+
proc {
|
17
|
+
mutation(input: :DestroyContractorEntityInput!) {
|
18
|
+
destroyContractorEntity(input: :input, &payload_block)
|
19
|
+
}
|
20
|
+
}
|
21
|
+
end
|
22
|
+
|
23
|
+
def default_payload_block
|
24
|
+
proc {
|
25
|
+
clientMutationId
|
26
|
+
errors {
|
27
|
+
details
|
28
|
+
fullMessages
|
29
|
+
}
|
30
|
+
item {
|
31
|
+
___Fragment__ContractorEntity
|
32
|
+
}
|
33
|
+
}
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -7,13 +7,13 @@ module Ecoportal
|
|
7
7
|
field_name :updateContractorEntity
|
8
8
|
|
9
9
|
class_resolver :payload_class, Ecoportal::API::GraphQL::Payload::ContractorEntity::Update
|
10
|
-
class_resolver :input_class, Ecoportal::API::GraphQL::
|
10
|
+
class_resolver :input_class, Ecoportal::API::GraphQL::Input::ContractorEntity::Update
|
11
11
|
|
12
12
|
private
|
13
13
|
|
14
14
|
def basic_block(&block)
|
15
15
|
payload_block = block || default_payload_block
|
16
|
-
|
16
|
+
proc {
|
17
17
|
mutation(input: :UpdateContractorEntityInput!) {
|
18
18
|
updateContractorEntity(input: :input, &payload_block)
|
19
19
|
}
|
@@ -21,7 +21,7 @@ module Ecoportal
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def default_payload_block
|
24
|
-
|
24
|
+
proc {
|
25
25
|
clientMutationId
|
26
26
|
errors {
|
27
27
|
details
|
@@ -12,7 +12,7 @@ module Ecoportal
|
|
12
12
|
|
13
13
|
def basic_block(&block)
|
14
14
|
action_block = block || default_block
|
15
|
-
|
15
|
+
proc {
|
16
16
|
query(id: :id!) {
|
17
17
|
currentOrganization {
|
18
18
|
action(id: :id, &action_block)
|
@@ -22,7 +22,7 @@ module Ecoportal
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def default_block
|
25
|
-
|
25
|
+
proc {
|
26
26
|
___Ecoportal__API__GraphQL__Fragment__Action
|
27
27
|
}
|
28
28
|
end
|
@@ -12,7 +12,7 @@ module Ecoportal
|
|
12
12
|
|
13
13
|
def basic_block(&block)
|
14
14
|
connection_block = block || default_connection_block
|
15
|
-
|
15
|
+
proc {
|
16
16
|
query(searchConf: :Search, after: :string, before: :string, first: :int, last: :int) {
|
17
17
|
currentOrganization {
|
18
18
|
actions(
|
@@ -29,7 +29,7 @@ module Ecoportal
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def default_connection_block
|
32
|
-
|
32
|
+
proc {
|
33
33
|
___Ecoportal__API__GraphQL__Fragment__Pagination
|
34
34
|
nodes {
|
35
35
|
___Ecoportal__API__GraphQL__Fragment__Action
|
@@ -12,7 +12,7 @@ module Ecoportal
|
|
12
12
|
|
13
13
|
def basic_block(&block)
|
14
14
|
connection_block = block || default_connection_block
|
15
|
-
|
15
|
+
proc {
|
16
16
|
query(searchConf: :Search, after: :string, before: :string, first: :int, last: :int) {
|
17
17
|
currentOrganization {
|
18
18
|
contractorEntities(
|
@@ -29,7 +29,7 @@ module Ecoportal
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def default_connection_block
|
32
|
-
|
32
|
+
proc {
|
33
33
|
totalCount
|
34
34
|
pageInfo {
|
35
35
|
endCursor
|
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.
|
4
|
+
version: 0.3.16
|
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-
|
11
|
+
date: 2024-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -282,6 +282,7 @@ files:
|
|
282
282
|
- lib/ecoportal/api/graphql/mutation/action/update.rb
|
283
283
|
- lib/ecoportal/api/graphql/mutation/contractor_entity.rb
|
284
284
|
- lib/ecoportal/api/graphql/mutation/contractor_entity/create.rb
|
285
|
+
- lib/ecoportal/api/graphql/mutation/contractor_entity/destroy.rb
|
285
286
|
- lib/ecoportal/api/graphql/mutation/contractor_entity/update.rb
|
286
287
|
- lib/ecoportal/api/graphql/mutation/location_structure.rb
|
287
288
|
- lib/ecoportal/api/graphql/mutation/location_structure/apply_commands.rb
|